allow modifierless root keys
This commit is contained in:
parent
7d72843f3a
commit
652addd232
1 changed files with 0 additions and 5 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue