mirror of https://github.com/davatorium/rofi.git
Home/End key map to list browsing.
This commit is contained in:
parent
47ad13fdf3
commit
8725748916
|
@ -1055,7 +1055,7 @@ int menu( char **lines, char **input, char *prompt, Time *time, int *shift,
|
||||||
} else{
|
} else{
|
||||||
selected = selected < filtered_lines-1 ? MIN( filtered_lines-1, selected+1 ): 0;
|
selected = selected < filtered_lines-1 ? MIN( filtered_lines-1, selected+1 ): 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
menu_draw( text, boxes, max_lines,num_lines, &last_offset, selected, filtered );
|
menu_draw( text, boxes, max_lines,num_lines, &last_offset, selected, filtered );
|
||||||
|
|
|
@ -373,13 +373,13 @@ int textbox_keypress( textbox *tb, XEvent *ev )
|
||||||
} else if ( key == XK_Right ) {
|
} else if ( key == XK_Right ) {
|
||||||
textbox_cursor_inc( tb );
|
textbox_cursor_inc( tb );
|
||||||
return 1;
|
return 1;
|
||||||
} else if ( key == XK_Home ) {
|
} /*else if ( key == XK_Home ) {
|
||||||
textbox_cursor_home( tb );
|
textbox_cursor_home( tb );
|
||||||
return 1;
|
return 1;
|
||||||
} else if ( key == XK_End ) {
|
} else if ( key == XK_End ) {
|
||||||
textbox_cursor_end( tb );
|
textbox_cursor_end( tb );
|
||||||
return 1;
|
return 1;
|
||||||
} else if ( key == XK_Delete ) {
|
} */else if ( key == XK_Delete ) {
|
||||||
textbox_cursor_del( tb );
|
textbox_cursor_del( tb );
|
||||||
return 1;
|
return 1;
|
||||||
} else if ( key == XK_BackSpace ) {
|
} else if ( key == XK_BackSpace ) {
|
||||||
|
|
Loading…
Reference in New Issue