Opened 6 years ago
Closed 3 years ago
#4915 closed defect (fixed)
Inconsistent behaviour of SDL_HOTKEYDOWN for special keys
Reported by: | Imarok | Owned by: | |
---|---|---|---|
Priority: | Must Have | Milestone: | Alpha 24 |
Component: | Core engine | Keywords: | |
Cc: | echotangoecho | Patch: |
Description (last modified by )
There are two different behaviours that can occur when a special hotkey (like shift and not like 'h') is pressed:
A: On button press only one SDL_HOTKEYDOWN event is sent.
B: On button press one SDL_HOTKEYDOWN event is sent. After a short break the SDL_HOTKEYDOWN event is spammed until the key is released.
A has been observed under various Linux distribution. B has been observer under Windows.
maybe refs #3870.
The desired behaviour is not clear, but it should be at least consistent among all platforms.
Change History (7)
comment:1 by , 6 years ago
comment:2 by , 6 years ago
I guess behaviour A was me on Ubuntu: I have repeat key "on" with delay 25% where 0% is "short" and 100% is "long" and speed with 33% where 0% is "slow" and 100% is "fast".
comment:3 by , 6 years ago
Description: | modified (diff) |
---|---|
Summary: | Inconsistent behaviour of SDL_HOTKEYDOWN → Inconsistent behaviour of SDL_HOTKEYDOWN for special keys |
comment:4 by , 6 years ago
Sadly it is not an sdl issue, its how linux handles the ctrl/alt/shift etc. itself (I remember playing pinball games with shift and ctrl as keys and we when pressing both and dropping one, both bars drop...)
see https://github.com/SFML/SFML/issues/122, https://www.ibm.com/support/knowledgecenter/en/SSS9FA_12.0.0/com.ibm.hod.doc/help/repeatkey.html
comment:6 by , 4 years ago
Description: | modified (diff) |
---|
comment:7 by , 3 years ago
Milestone: | Backlog → Alpha 24 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
The bug was fixed, the behaviour is documented, and we're unlikely to change linux distributions behaviour -> marking fixed
Imarok (or anyone else with behaviour A): could you check what setting there is for "repeat key" on your OS (when disabling here on fedora I get behaviour A, enabling gives B). Also is there a difference between "Shift" and any other hotkey? for me "Shift" also has behaviour A (whatever the setting), while others have B (when setting is enabled ofc), iirc this is some linux thing
The repeat key setting btw has nothing todo with the "t" in the ally chat.