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

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

@ -30,7 +30,8 @@ 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:
Qukeys.toggle(); if (keyToggledOn(key_state))
Qukeys.toggle();
break; break;
} }
return MACRO_NONE; return MACRO_NONE;

Loading…
Cancel
Save