Remove some unnecessary code

We do not need to check if the key we received is masked - the core event
handler does that for us, and we won't even see masked keys. This saves us a few
bytes of code.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
pull/389/head
Gergely Nagy 7 years ago
parent 2fe4ef3aee
commit 37ac11bb49

@ -87,12 +87,6 @@ Key OneShot::eventHandlerHook(Key mapped_key, byte row, byte col, uint8_t key_st
if (!state_.all) { if (!state_.all) {
if (!isOS(mapped_key)) { if (!isOS(mapped_key)) {
if (KeyboardHardware.isKeyMasked(row, col)) {
if (keyToggledOff(key_state))
KeyboardHardware.unMaskKey(row, col);
return Key_NoKey;
}
return mapped_key; return mapped_key;
} }

Loading…
Cancel
Save