|
|
@ -215,7 +215,7 @@ EventHandlerResult OneShot::onKeyEvent(KeyEvent& event) {
|
|
|
|
// hook functions generate (by calling `injectNormalKey()` via one of the
|
|
|
|
// hook functions generate (by calling `injectNormalKey()` via one of the
|
|
|
|
// `*OneShot()` functions). There are more robust ways to do this, but since
|
|
|
|
// `*OneShot()` functions). There are more robust ways to do this, but since
|
|
|
|
// OneShot is intended to react to only physical keypresses, this is adequate.
|
|
|
|
// OneShot is intended to react to only physical keypresses, this is adequate.
|
|
|
|
if (event.state & INJECTED)
|
|
|
|
if (keyIsInjected(event.state))
|
|
|
|
return EventHandlerResult::OK;
|
|
|
|
return EventHandlerResult::OK;
|
|
|
|
|
|
|
|
|
|
|
|
bool temp = temp_addrs_.read(event.addr);
|
|
|
|
bool temp = temp_addrs_.read(event.addr);
|
|
|
|