allow modifierless root keys

This commit is contained in:
Dana Jansens 2002-08-08 22:45:26 +00:00
parent 7d72843f3a
commit 652addd232

View file

@ -132,11 +132,6 @@ const Action * keytree::getAction(const XEvent &e, unsigned int state,
void keytree::addAction(Action::ActionType action, unsigned int mask, void keytree::addAction(Action::ActionType action, unsigned int mask,
string key, string arg) string key, string arg)
{ {
// can't grab non-modifier as topmost key
// XXX: do we allow Esc to be grabbed at the top?
if (_current == _head && (mask == 0 || mask == ShiftMask))
return;
keynode *tmp = new keynode; keynode *tmp = new keynode;
tmp->action = new Action(action, tmp->action = new Action(action,
XKeysymToKeycode(_display, XKeysymToKeycode(_display,