From 5d473efeb5c4f42a75aad6ab5892e2813358c0c9 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Mon, 27 May 2019 10:19:03 +0200 Subject: [PATCH] Bind Home key to MOVE_HOME On pressing Home key on the computer, move the cursor to the beginning of the line instead of going back to the home screen. Fixes (part of) . --- app/src/convert.c | 2 +- app/src/main.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/convert.c b/app/src/convert.c index d20e255f..504befe0 100644 --- a/app/src/convert.c +++ b/app/src/convert.c @@ -81,9 +81,9 @@ convert_keycode(SDL_Keycode from, enum android_keycode *to, uint16_t mod) { MAP(SDLK_ESCAPE, AKEYCODE_ESCAPE); MAP(SDLK_BACKSPACE, AKEYCODE_DEL); MAP(SDLK_TAB, AKEYCODE_TAB); - MAP(SDLK_HOME, AKEYCODE_HOME); MAP(SDLK_PAGEUP, AKEYCODE_PAGE_UP); MAP(SDLK_DELETE, AKEYCODE_FORWARD_DEL); + MAP(SDLK_HOME, AKEYCODE_MOVE_HOME); MAP(SDLK_END, AKEYCODE_MOVE_END); MAP(SDLK_PAGEDOWN, AKEYCODE_PAGE_DOWN); MAP(SDLK_RIGHT, AKEYCODE_DPAD_RIGHT); diff --git a/app/src/main.c b/app/src/main.c index c61db725..fe93673f 100644 --- a/app/src/main.c +++ b/app/src/main.c @@ -105,7 +105,6 @@ static void usage(const char *arg0) { " resize window to remove black borders\n" "\n" " Ctrl+h\n" - " Home\n" " Middle-click\n" " click on HOME\n" "\n"