From 55a37e77280165d69cc05067da287f105dee565c Mon Sep 17 00:00:00 2001 From: fgenesis Date: Tue, 15 Oct 2024 04:11:30 +0200 Subject: [PATCH] fix missed break in prev^2 commit --- BBGE/Core.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/BBGE/Core.cpp b/BBGE/Core.cpp index 49591dd..a047777 100644 --- a/BBGE/Core.cpp +++ b/BBGE/Core.cpp @@ -1501,17 +1501,15 @@ void Core::onEvent(const SDL_Event& event) { if(textInputMap[i].key == kidx) { - if((event.key.keysym.mod & KMOD_SHIFT) && textInputMap[i].upper) + if((event.key.keysym.mod & KMOD_SHIFT)) c = textInputMap[i].upper; - else + if(!c) c = textInputMap[i].lower; + const char buf[2] = { c, 0 }; + onTextInput(TEXTINP_TEXT, &buf[0]); + break; } } - if(c) - { - const char buf[2] = { c, 0 }; - onTextInput(TEXTINP_TEXT, &buf[0]); - } #endif } }