mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-18 03:25:55 +00:00
demo-input: pass 'q' through in addition to interrupt
This commit is contained in:
parent
a14ec34d78
commit
2601fe9191
@ -68,10 +68,12 @@ ultramegaok_demo(void* vnc){
|
|||||||
}
|
}
|
||||||
if(nckey_mouse_p(ni.id)){
|
if(nckey_mouse_p(ni.id)){
|
||||||
// FIXME
|
// FIXME
|
||||||
}else if(ni.id == 'q'){
|
|
||||||
interrupt_demo();
|
|
||||||
return NULL;
|
|
||||||
}else{
|
}else{
|
||||||
|
if(ni.id == 'q'){
|
||||||
|
interrupt_demo();
|
||||||
|
}
|
||||||
|
// go ahead and pass through the keyboard press, even if it was a 'q'
|
||||||
|
// (this might cause the demo to exit immediately, as is desired)
|
||||||
pass_along(&ni);
|
pass_along(&ni);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user