ref: 2782eb13587665c4973ac573f14d443efdfd42f6
parent: f543197b49de47a7e8b73941fae8b488248bff4b
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Mon Apr 26 03:02:50 EDT 2021
sdl2: fix upper case text input events
--- a/libnpe_sdl2/events.c
+++ b/libnpe_sdl2/events.c
@@ -77,7 +77,7 @@
switch(alt(salt)){
case Ckey:
recv(salt[Ckeytype].c, &t);
- if(npe_sdl.textinput && kmod == 0 && rune >= 0x20 && (rune < KF || rune >= KF+0x1000)){
+ if(npe_sdl.textinput && (kmod & ~KMOD_LSHIFT) == 0 && rune >= 0x20 && (rune < KF || rune >= KF+0x1000)){
if(t != Rrepeat)
break;
e->type = SDL_TEXTINPUT;