Ha ha! The escape-to-quit behavior...

...seems to be baked into the UVM.
This commit is contained in:
Simon Forman 2023-02-26 16:52:02 -08:00
parent f8f27ed83e
commit 50e34c70cb
1 changed files with 4 additions and 1 deletions

View File

@ -43,6 +43,9 @@ void
keydown(u64 window_id, u16 keycode)
{
if (KEY_BACKSPACE == keycode) {
print_str("bye! ");
print_i64(keycode);
print_endl();
exit(0);
}
if (KEY_BACKSPACE == keycode) {
@ -108,7 +111,7 @@ main()
);
}
window_draw_frame(wid, frame_buffer);
window_on_keydown(wid, keydown);
//window_on_keydown(wid, keydown);
window_on_mousedown(wid, mousedown);
window_on_mousemove(wid, mousemove);
enable_event_loop();