ref: 01554ffb5ab1f016a2c1c9a97245c80cd584b90b
parent: 7944a8444f40c267b9f622bfbe7f835115f8155a
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Wed Mar 17 07:13:26 EDT 2021
use alt+del for SDL_QUIT. alt+f4 is used in FT2 :O
--- a/README.md
+++ b/README.md
@@ -27,6 +27,6 @@
Stack size is set to 256k.
-With SDL applications Alt+F4 is used to send `SDL_QUIT` event.
+With SDL applications Alt+Delete is used to send `SDL_QUIT` event.
[General porting guide](http://docs.9front.org/porting).
--- a/libnpe_sdl2/sdl2.c
+++ b/libnpe_sdl2/sdl2.c
@@ -837,7 +837,7 @@
break;
e->type = SDL_TEXTINPUT;
e->text.text[runetochar(e->text.text, &rune)] = 0;
- }else if((kmod & KMOD_LALT) != 0 && rune == (KF|4)){
+ }else if((kmod & KMOD_LALT) != 0 && rune == Kdel){ /* alt+del = quit */
e->type = SDL_QUIT;
return 1;
}else if(textinput && t == Rdown){