mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-01-24 09:16:48 +00:00
fix missed break in prev^2 commit
This commit is contained in:
parent
5f2a0119be
commit
55a37e7728
1 changed files with 5 additions and 7 deletions
|
@ -1501,17 +1501,15 @@ void Core::onEvent(const SDL_Event& event)
|
||||||
{
|
{
|
||||||
if(textInputMap[i].key == kidx)
|
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;
|
c = textInputMap[i].upper;
|
||||||
else
|
if(!c)
|
||||||
c = textInputMap[i].lower;
|
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
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue