input: repeat events require valid codepoints

Issue #3483
This commit is contained in:
Christian Helmuth 2019-09-10 14:54:14 +02:00
parent bbd27a54d3
commit cc611834c9

View File

@ -141,7 +141,7 @@ class Input::Event
template <typename FN> template <typename FN>
void handle_repeat(FN const &fn) const 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); fn(_attr.press.codepoint);
} }