1
0
Fork 0
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:
QC 2014-07-22 20:33:50 +02:00
parent b1800fdf50
commit e7cac06c7b

View file

@ -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;
}