Page 1 of 1
[Rseding91] [0.14.7] Duplicated keybinding cause peculiar behavior
Posted: Tue Sep 20, 2016 6:09 pm
by canidae
Two mods (Auto Research and Foreman) used the same keybinding (Control+T). Clicking the keybinding caused one of the mod (Auto Research) to be triggered twice, the other mod not at all.
Suggestions:
- Trigger both mods in case of duplicate keybinds.
- Warn user on new/resumed game about any duplicated keybindings.
Re: [0.14.7] Duplicated keybinding cause peculiar behavior
Posted: Tue Sep 20, 2016 6:21 pm
by Rseding91
How they're handled is determined by how they register the hotkeys. If they register with consuming all or script then the other mod doesn't get the event.
Also I just tested with both of the mods you mentioned and when I set the hotkeys to the same value both events are fired in both mods:
http://imgur.com/a/3gkbx
Re: [0.14.7] Duplicated keybinding cause peculiar behavior
Posted: Tue Sep 20, 2016 6:28 pm
by Rseding91
After more testing I see what's happening now

Re: [Rseding91] [0.14.7] Duplicated keybinding cause peculiar behavior
Posted: Tue Sep 20, 2016 6:45 pm
by canidae
Hooray, it's possible I'm not crazy after all, then

Re: [Rseding91] [0.14.7] Duplicated keybinding cause peculiar behavior
Posted: Tue Sep 20, 2016 8:59 pm
by Rseding91
Fixed for 0.14.9.