diff --git a/repos/os/include/input/event.h b/repos/os/include/input/event.h index 393c8ec189..3cf00a6d88 100644 --- a/repos/os/include/input/event.h +++ b/repos/os/include/input/event.h @@ -141,7 +141,7 @@ class Input::Event template void handle_repeat(FN const &fn) const { - if (key_press(KEY_UNKNOWN) && _attr.press.codepoint.value) + if (key_press(KEY_UNKNOWN) && _attr.press.codepoint.valid()) fn(_attr.press.codepoint); }