1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2025-04-14 17:43:01 -04:00

Add kp home/end

This commit is contained in:
Qball Cow 2014-01-31 18:14:46 +01:00
parent 972e3ee1d7
commit 47ad13fdf3

View file

@ -1033,9 +1033,9 @@ int menu( char **lines, char **input, char *prompt, Time *time, int *shift,
} else if ( key == XK_Page_Down) {
selected += (max_lines-1);
if(selected >= num_lines) selected = num_lines-1;
} else if ( key == XK_Home) {
} else if ( key == XK_Home || key == XK_KP_Home) {
selected = 0;
} else if ( key == XK_End) {
} else if ( key == XK_End || key == XK_KP_End) {
selected = num_lines-1;
} else if ( key == XK_Tab ) {
if ( filtered_lines == 1 ) {