input: kitty: treat repeating == pressed when report-events is off

This commit is contained in:
Daniel Eklöf 2021-11-28 19:20:37 +01:00
parent a242ba3f97
commit 5d94b02a03
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -1151,7 +1151,7 @@ kitty_kbd_protocol(struct seat *seat, struct terminal *term,
const bool disambiguate = flags & KITTY_KBD_DISAMBIGUATE;
const bool report_events = flags & KITTY_KBD_REPORT_EVENT;
if (!report_events && !pressed)
if (!report_events && released)
return false;
/* TODO: should we even bother with this, or just say its not supported? */