update syntax plans
This commit is contained in:
@@ -398,6 +398,7 @@ bool Window::poll(Event &event) {
|
||||
break;
|
||||
|
||||
case SDL_EVENT_KEY_DOWN:
|
||||
#warning This is a bit of a hack to prevent key down/up events from being generated when text input is active on certian keys, but this list is not enough, need to look more into it
|
||||
if (text_input_active && sdl_event.key.key > '0' && sdl_event.key.key < 'z')
|
||||
return false;
|
||||
event.type = Event::KEY_DOWN;
|
||||
|
||||
Reference in New Issue
Block a user