Merge pull request #92 from algernon/h/layers/toggle-fix

layers: Fix the layer toggle behaviour
pull/94/head
Jesse Vincent 8 years ago committed by GitHub
commit 06e5a2b981

@ -29,6 +29,9 @@ static void handle_keymap_key_event(Key keymapEntry, uint8_t keyState) {
// switch keymap and stay there
} else if (key_toggled_on(keyState)) {
if (Layer.isOn (keymapEntry.keyCode) && keymapEntry.keyCode)
Layer.off(keymapEntry.keyCode);
else
Layer.on(keymapEntry.keyCode);
}
}

Loading…
Cancel
Save