Opened 7 years ago

Closed 3 years ago

Last modified 3 years ago

#4400 closed defect (invalid)

SDL_HOTKEYUP being sent while typing text

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

Description (last modified by wraitii)

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 (2)

comment:1 by elexis, 7 years ago

Description: modified (diff)

comment:2 by wraitii, 3 years ago

Description: modified (diff)
Milestone: Backlog
Resolution: invalid
Status: newclosed

I don't think this is necessarily buggy, see e.g. copy-paste which is needed in input boxes. Hotkeys were largely worked, and this problem was talked -> invalid

Last edited 3 years ago by wraitii (previous) (diff)
Note: See TracTickets for help on using tickets.