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:
parent
290ed81e08
commit
972e3ee1d7
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue