1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-03 04:23:42 -05:00

Add home/end key support

This commit is contained in:
Qball Cow 2014-01-31 18:09:36 +01:00
parent 290ed81e08
commit 972e3ee1d7

View file

@ -1033,6 +1033,10 @@ 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) {
selected = 0;
} else if ( key == XK_End) {
selected = num_lines-1;
} else if ( key == XK_Tab ) {
if ( filtered_lines == 1 ) {
chosen = 1;