Call toggle() only when the macro key toggles on (fixes #11)

pull/389/head
Michael Richters 7 years ago
parent 17d61518c2
commit 99988e4c76

@ -30,6 +30,7 @@ KEYMAPS(
const macro_t *macroAction(uint8_t macro_index, uint8_t key_state) { const macro_t *macroAction(uint8_t macro_index, uint8_t key_state) {
switch (macro_index) { switch (macro_index) {
case MACRO_TOGGLE_QUKEYS: case MACRO_TOGGLE_QUKEYS:
if (keyToggledOn(key_state))
Qukeys.toggle(); Qukeys.toggle();
break; break;
} }

Loading…
Cancel
Save