Opened 6 years ago

Last modified 3 years ago

#4915 closed defect

Inconsistent behaviour of SDL_HOTKEYDOWN for special keys — at Version 3

Reported by: Imarok Owned by:
Priority: Must Have Milestone: Alpha 24
Component: Core engine Keywords:
Cc: echotangoecho Patch:

Description (last modified by Imarok)

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 Ubuntu. B has been observer under Fedora and Windows.

maybe refs #3870.

The desired behaviour is not clear, but it should be at least consistent among all platforms.

Change History (3)

comment:1 by bb, 6 years ago

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.

comment:2 by Imarok, 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 Imarok, 6 years ago

Description: modified (diff)
Summary: Inconsistent behaviour of SDL_HOTKEYDOWNInconsistent behaviour of SDL_HOTKEYDOWN for special keys
Note: See TracTickets for help on using tickets.