mirror of
https://github.com/davatorium/rofi.git
synced 2025-03-24 17:16:46 -04:00
Ctrl-j should go down, Ctrl-k up.
This commit is contained in:
parent
b1800fdf50
commit
e7cac06c7b
1 changed files with 2 additions and 2 deletions
|
@ -1416,7 +1416,7 @@ MenuReturn menu ( char **lines, unsigned int num_lines, char **input, char *prom
|
|||
else{
|
||||
// Up or Shift-Tab
|
||||
if ( key == XK_Up || ( key == XK_Tab && ev.xkey.state & ShiftMask ) ||
|
||||
( key == XK_j && ev.xkey.state & ControlMask ) ) {
|
||||
( key == XK_k && ev.xkey.state & ControlMask ) ) {
|
||||
if ( selected == 0 ) {
|
||||
selected = filtered_lines;
|
||||
}
|
||||
|
@ -1427,7 +1427,7 @@ MenuReturn menu ( char **lines, unsigned int num_lines, char **input, char *prom
|
|||
update = TRUE;
|
||||
}
|
||||
else if ( key == XK_Down ||
|
||||
( key == XK_k && ev.xkey.state & ControlMask ) ) {
|
||||
( key == XK_j && ev.xkey.state & ControlMask ) ) {
|
||||
selected = selected < filtered_lines - 1 ? MIN ( filtered_lines - 1, selected + 1 ) : 0;
|
||||
update = TRUE;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue