Removed ability to output arbitrary text. All the output is taken from options
This commit is contained in:
parent
6a3e21f568
commit
5573f5bd23
18
dmenu.c
18
dmenu.c
@ -538,14 +538,16 @@ insert:
|
|||||||
break;
|
break;
|
||||||
case XK_Return:
|
case XK_Return:
|
||||||
case XK_KP_Enter:
|
case XK_KP_Enter:
|
||||||
puts((sel && !(ev->state & ShiftMask)) ? sel->text : text);
|
/* This is where we are handling Ctrl+Enter/Enter and were handling Shift+Enter */
|
||||||
if (!(ev->state & ControlMask)) {
|
if (sel) {
|
||||||
cleanup();
|
puts(sel->text);
|
||||||
exit(0);
|
if (!(ev->state & ControlMask)){
|
||||||
}
|
cleanup();
|
||||||
if (sel)
|
exit(0);
|
||||||
sel->out = 1;
|
}
|
||||||
break;
|
sel->out = 1;
|
||||||
|
}
|
||||||
|
break;
|
||||||
case XK_Right:
|
case XK_Right:
|
||||||
case XK_KP_Right:
|
case XK_KP_Right:
|
||||||
if (columns > 1) {
|
if (columns > 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user