From 87257489161245967e33ab43ee2a19aad9b5a7d8 Mon Sep 17 00:00:00 2001 From: QC Date: Fri, 31 Jan 2014 19:39:09 +0100 Subject: [PATCH] Home/End key map to list browsing. --- source/simpleswitcher.c | 2 +- source/textbox.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/simpleswitcher.c b/source/simpleswitcher.c index 49e7fa42..22f135e9 100644 --- a/source/simpleswitcher.c +++ b/source/simpleswitcher.c @@ -1055,7 +1055,7 @@ int menu( char **lines, char **input, char *prompt, Time *time, int *shift, } else{ selected = selected < filtered_lines-1 ? MIN( filtered_lines-1, selected+1 ): 0; } - } + } } menu_draw( text, boxes, max_lines,num_lines, &last_offset, selected, filtered ); diff --git a/source/textbox.c b/source/textbox.c index 80cd6bc0..846f02dc 100644 --- a/source/textbox.c +++ b/source/textbox.c @@ -373,13 +373,13 @@ int textbox_keypress( textbox *tb, XEvent *ev ) } else if ( key == XK_Right ) { textbox_cursor_inc( tb ); return 1; - } else if ( key == XK_Home ) { + } /*else if ( key == XK_Home ) { textbox_cursor_home( tb ); return 1; } else if ( key == XK_End ) { textbox_cursor_end( tb ); return 1; - } else if ( key == XK_Delete ) { + } */else if ( key == XK_Delete ) { textbox_cursor_del( tb ); return 1; } else if ( key == XK_BackSpace ) {