small fix in wmiimenu

This commit is contained in:
Sander van Dijk 2006-04-19 23:19:23 +00:00
parent 74a288bccd
commit dade08e735

View File

@ -239,8 +239,10 @@ handle_kpress(XKeyEvent * e)
sel++;
break;
case XK_Return:
if(e->state & ShiftMask)
if(e->state & ShiftMask) {
if(text)
fprintf(stdout, "%s", text);
}
else if(sel >= 0)
fprintf(stdout, "%s", item.data[sel]);
else if(text)