mirror of
https://github.com/0intro/wmii
synced 2024-11-26 07:39:37 +03:00
small fix in wmiimenu
This commit is contained in:
parent
74a288bccd
commit
dade08e735
@ -239,8 +239,10 @@ handle_kpress(XKeyEvent * e)
|
||||
sel++;
|
||||
break;
|
||||
case XK_Return:
|
||||
if(e->state & ShiftMask)
|
||||
fprintf(stdout, "%s", text);
|
||||
if(e->state & ShiftMask) {
|
||||
if(text)
|
||||
fprintf(stdout, "%s", text);
|
||||
}
|
||||
else if(sel >= 0)
|
||||
fprintf(stdout, "%s", item.data[sel]);
|
||||
else if(text)
|
||||
|
Loading…
Reference in New Issue
Block a user