tiny refactor

pull/18/head
Jesse Vincent 9 years ago
parent d8f1a02cde
commit cc9546bdd9

@ -56,11 +56,9 @@ void handle_key_event(byte row, byte col) {
} }
if (mappedKey.flags & SYNTHETIC_KEY) { if (mappedKey.flags & SYNTHETIC_KEY) {
handle_synthetic_key_event(switchState, mappedKey); handle_synthetic_key_event(switchState, mappedKey);
} else { } else if (key_is_pressed(switchState)) {
if (key_is_pressed(switchState)) {
press_key(mappedKey); press_key(mappedKey);
} }
}
} }
void press_key(Key mappedKey) { void press_key(Key mappedKey) {

Loading…
Cancel
Save