ref: 167ec7c08ffa7b4a5140c9bc1f1f276abeda56e0
parent: fa433522dcff818d71ced0e30279a541e0024f75
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Wed Apr 14 03:39:51 EDT 2021
sdl2: do not send SDL_TEXTINPUT event if a modifier used
--- 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 && rune >= 0x20 && (rune < KF || rune >= KF+0x1000)){
+ if(npe_sdl.textinput && kmod == 0 && rune >= 0x20 && (rune < KF || rune >= KF+0x1000)){
if(t != Rrepeat)
break;
e->type = SDL_TEXTINPUT;