[kitty] treat absent event type as NCTYPE_PRESS #2527

This commit is contained in:
nick black 2022-01-10 01:19:37 -05:00
parent dc8c7d8826
commit 2584435efc
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -801,6 +801,8 @@ kitty_kbd(inputctx* ictx, int val, int mods, int evtype){
}
// FIXME decode remaining modifiers super, hyper, caps_lock, num_lock
switch(evtype){
case 0:
__attribute__ ((fallthrough));
case 1:
tni.evtype = NCTYPE_PRESS;
break;