1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-11 13:50:48 -05:00

Fix #125: Use shift-left/right for moving between switchers.

This commit is contained in:
Dave Davenport 2015-02-06 08:45:21 +01:00
parent b0b8a0c477
commit fda5badeb6
3 changed files with 13 additions and 17 deletions

View file

@ -498,8 +498,8 @@ Rofi supports the following keybindings:
* `Ctrl-Enter`: Use entered text as command (in ssh/run dialog)
* `Shift-Enter`: Launch the application in a terminal (in run dialog)
* `Shift-Enter`: Return the selected entry and move to the next item while keeping Rofi open. (in dmenu)
* `?`: Switch to the next modi. The list can be customized with the `-switchers` argument.
* `ctrl-/`: Switch to the previous modi. The list can be customized with the `-switchers` argument.
* `Shift-Right`: Switch to the next modi. The list can be customized with the `-switchers` argument.
* `Shift-Left`: Switch to the previous modi. The list can be customized with the `-switchers` argument.
* `Ctrl-space`: Set selected item as input text.
* `Shift-Del`: Delete entry from history.
* `grave`: Toggle case sensitivity.

View file

@ -252,7 +252,7 @@ menu.
.PP
.RS
.nf
rofi \-fg "#005577"
rofi \-hlbg "#005577"
.fi
.RE
.IP
@ -265,7 +265,7 @@ menu.
.PP
.RS
.nf
rofi \-fg "#ffffff"
rofi \-hlfg "#ffffff"
.fi
.RE
.IP
@ -346,7 +346,7 @@ If value is larger then 100, the size is set in pixels. e.g. to span a full hd m
.PP
.RS
.nf
rofi \-width 1980
rofi \-width 1920
.fi
.RE
.IP
@ -625,9 +625,9 @@ Rofi supports the following keybindings:
.IP \(bu 2
\fB\fCShift\-Enter\fR: Return the selected entry and move to the next item while keeping Rofi open. (in dmenu)
.IP \(bu 2
\fB\fC?\fR: Switch to the next modi. The list can be customized with the \fB\fC\-switchers\fR argument.
\fB\fCShift\-Right\fR: Switch to the next modi. The list can be customized with the \fB\fC\-switchers\fR argument.
.IP \(bu 2
\fB\fCctrl\-/\fR: Switch to the previous modi. The list can be customized with the \fB\fC\-switchers\fR argument.
\fB\fCShift\-Left\fR: Switch to the previous modi. The list can be customized with the \fB\fC\-switchers\fR argument.
.IP \(bu 2
\fB\fCCtrl\-space\fR: Set selected item as input text.
.IP \(bu 2
@ -655,18 +655,14 @@ Check quotes used on the commandline: e.g. used “ instead of ".
.SH WEBSITE
.PP
\fBrofi\fP website can be found at here
.UR https://davedavenport.github.io/rofi/
.UE
\[la]https://davedavenport.github.io/rofi/\[ra]
.PP
\fBrofi\fP bugtracker can be found here
.UR https://github.com/DaveDavenport/rofi/issues
.UE
\[la]https://github.com/DaveDavenport/rofi/issues\[ra]
.SH AUTHOR
.PP
Qball Cow
.MT qball@gmpclient.org
.ME
\[la]qball@gmpclient.org\[ra]
.PP
Original code based on work by: Sean Pringle
.MT sean.pringle@gmail.com
.ME
\[la]sean.pringle@gmail.com\[ra]

View file

@ -1767,7 +1767,7 @@ MenuReturn menu ( char **lines, unsigned int num_lines, char **input, char *prom
XA_PRIMARY : netatoms[CLIPBOARD],
netatoms[UTF8_STRING], netatoms[UTF8_STRING], main_window, CurrentTime );
}
else if ( ( ( ev.xkey.state & ControlMask ) == ControlMask ) && key == XK_slash ) {
else if ( ( ( ev.xkey.state & ShiftMask ) == ShiftMask ) && key == XK_Left ) {
state.retv = MENU_PREVIOUS;
*( state.selected_line ) = 0;
state.quit = TRUE;
@ -1775,7 +1775,7 @@ MenuReturn menu ( char **lines, unsigned int num_lines, char **input, char *prom
}
// Menu navigation.
else if ( ( ( ev.xkey.state & ShiftMask ) == ShiftMask ) &&
key == XK_slash ) {
key == XK_Right ) {
state.retv = MENU_NEXT;
*( state.selected_line ) = 0;
state.quit = TRUE;