You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When experimenting with the configurable hotkeys patch, I encountered the following problem:
When pressing a key which produces a char, windows generates two messages: WM_KEYPRESS and WM_CHAR. This is handled by ignoring the message WM_KEYPRESS for the keys, which produce a char.
But all keys producing a char also produce a char when SHIFT+the key is pressed. In this case, both messages are handled, resulting in a duplicate call to HandleKeypress. This especially bad when using a SHIFT+Key shortcut (only possible with configurable hotkeys), as the two calls may cancel each other (on every toggle command).
Fixed this by ignoring the shift modifier state in the return condition in WM_KEYPRESS.
There's also a duplicate call for AltGr+key combination, like AltGr+E (€).
I tried another way to fix all these problems. It seems to work correctly (for all combinations I tested).
Please try it and tell me if it works (or not) for you.
St256 opened the ticket and wrote:
Attachments
Reported version: 0.6.2
Operating system: Windows
This issue was imported from FlySpray: https://bugs.openttd.org/task/2206
The text was updated successfully, but these errors were encountered: