[notcurses-demo] ignore Release events

pull/2250/head
nick black 3 years ago
parent f118894057
commit e17e53c99d
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -252,6 +252,9 @@ bool menu_or_hud_key(struct notcurses *nc, const struct ncinput *ni){
}else{
memcpy(&tmpni, ni, sizeof(tmpni));
}
if(tmpni.evtype == NCTYPE_RELEASE){
return false;
}
// toggle the HUD
if(tmpni.id == 'H' && !tmpni.alt && !tmpni.ctrl){
hud_toggle(nc);

Loading…
Cancel
Save