|
|
@ -152,11 +152,13 @@ Key OneShot::eventHandlerHook(Key mapped_key, byte row, byte col, uint8_t key_st
|
|
|
|
// ordinary key here, with some event
|
|
|
|
// ordinary key here, with some event
|
|
|
|
|
|
|
|
|
|
|
|
if (keyIsPressed(key_state)) {
|
|
|
|
if (keyIsPressed(key_state)) {
|
|
|
|
|
|
|
|
saveAsPrevious(mapped_key);
|
|
|
|
|
|
|
|
if (!isModifier(mapped_key)) {
|
|
|
|
if (should_mask_on_interrupt_)
|
|
|
|
if (should_mask_on_interrupt_)
|
|
|
|
KeyboardHardware.maskKey(row, col);
|
|
|
|
KeyboardHardware.maskKey(row, col);
|
|
|
|
saveAsPrevious(mapped_key);
|
|
|
|
|
|
|
|
should_cancel_ = true;
|
|
|
|
should_cancel_ = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return mapped_key;
|
|
|
|
return mapped_key;
|
|
|
|
}
|
|
|
|
}
|
|
|
|