Opened 7 years ago

Last modified 3 years ago

#4400 closed defect

SDL_HOTKEYUP being sent while typing text — at Version 1

Reported by: elexis Owned by:
Priority: Should Have Milestone:
Component: Core engine Keywords:
Cc: Patch:

Description (last modified by elexis)

Before and after r19028, SDL_HOTKEYUP events are sent when typing in input boxes. For example WASD will trigger the key-release events of the camera movement hotkeys.

No HOTKEY events (neither UP nor DOWN) may be sent in text input mode (so that the player can type text without causing unintended actions). This can also be seen in Gamesetup.cpp:

// gui_handler needs to be registered after (i.e. called before!) the
// hotkey handler so that input boxes can be typed in without
// setting off hotkeys.

Because these events are currently unused (except the 2 GUI refresh calls when releasing the shift key introduced in that commit), vanilla 0 A.D. doesn't appear to bugged to the player - yet.

Change History (1)

comment:1 by elexis, 7 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.