Fix binding to multi-button keygroup
Oops, the code didn't check subkey number. Fix this.
This commit is contained in:
parent
fe7112bc24
commit
232df64731
1 changed files with 3 additions and 1 deletions
|
@ -448,11 +448,13 @@ namespace
|
|||
keygroup* group;
|
||||
unsigned subkey;
|
||||
std::string command;
|
||||
void key_event(const modifier_set& modifiers, keygroup& keygroup, unsigned subkey, bool polarity,
|
||||
void key_event(const modifier_set& modifiers, keygroup& keygroup, unsigned _subkey, bool polarity,
|
||||
const std::string& name)
|
||||
{
|
||||
if(!modifier_set::triggers(modifiers, mod, modmask))
|
||||
return;
|
||||
if(subkey != _subkey)
|
||||
return;
|
||||
std::string cmd = fixup_command_polarity(command, polarity);
|
||||
if(cmd == "")
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue