Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sticky keys in plain tty mode #2414

Open
unxed opened this issue Oct 5, 2024 · 6 comments
Open

Sticky keys in plain tty mode #2414

unxed opened this issue Oct 5, 2024 · 6 comments

Comments

@unxed
Copy link
Contributor

unxed commented Oct 5, 2024

In plain tty mode (--nodetect) sticky keys with control are working a bit strange.

If you press Ctrl+Space and then L, nothing happens. But if you hold Ctrl+Space and press L, information panel appears.

Ctrl+Space+numbers are not working at all.

@spnethw
Copy link
Contributor

spnethw commented Oct 5, 2024

Bug does not reproduce on Arch / X11 / KDE.
Tested in Virtual Console, Konsole, GNOME terminal and kitty.

UPD: but the second attempt, made a little later, was successful. the same behavior. strange.

UPD2: well, found the reason for this behavior on my side:
Ctrl+Space, L does not work when the Russian keyboard layout is selected.
Ctrl+Space+L does work, though.

Ctrl+Space, and numbers work in all cases.

@unxed
Copy link
Contributor Author

unxed commented Oct 5, 2024

Non-Latin keyboard layout is required to reproduce, confirming.

Bug with digits reproduces for me on 2.6.0 from Ubuntu 24.04, not reproduces on master.

@spnethw
Copy link
Contributor

spnethw commented Oct 6, 2024

far2-GUI, russian keyboard layout, X11 / KDE:

Ctrl+Space, L starts Macro recording.

@unxed can you check it on your side?

@spnethw
Copy link
Contributor

spnethw commented Oct 10, 2024

Yep, something strange is here.
far2l-gui, russian keyboard layout, X11 / KDE.
Ctrl+Space, L:

OnKeyDown: aCsm CONTROL raw=ffe3 code=134 uni=0 ( ) ts=25412620 [now=25412617]
ConsoleInput::Enqueue: ncs e la LC sh ra rc VK_CONTROL "#" DOWN, 8 11 0 1d

OnKeyDown: aCsm SPACE raw=20 code=20 uni=20 ( ) ts=25412652 [now=25412650]
ConsoleInput::Enqueue: ncs e la LC sh ra rc VK_SPACE " " DOWN, 8 20 20 39
OnChar: aCsm SPACE raw=20 code=20 uni=20 ( ) ts=25412652 lke=1

OnKeyUp: aCsm SPACE raw=20 code=20 uni=20 ( ) ts=25412798
ConsoleInput::Enqueue: ncs e la LC sh ra rc VK_SPACE " " UP, 8 20 20 39

OnKeyUp: acsm CONTROL raw=ffe3 code=134 uni=0 ( ) ts=25412864
ConsoleInput::Enqueue: ncs e la lc sh ra rc VK_CONTROL "#" UP, 0 11 0 1d

OnKeyDown: acsm ERR raw=6c4 code=4c uni=4c (L) ts=25414523 [now=25414520]
OnChar: acsm ERR raw=6c4 code=0 uni=434 (д) ts=25414523 lke=0
ConsoleInput::Enqueue: ncs e la lc sh ra rc VK_OEM_PERIOD "д" DOWN, 0 be 434 0
ConsoleInput::Enqueue: ncs e la lc sh ra rc VK_OEM_PERIOD "д" UP, 0 be 434 0

OnKeyUp: acsm ERR raw=6c4 code=4c uni=4c (L) ts=25414568
ConsoleInput::Enqueue: ncs e la lc sh ra rc VK_L "L" UP, 0 4c 4c 26
GenerateConsoleCtrlEvent(2)

@unxed
Copy link
Contributor Author

unxed commented Oct 12, 2024

far2-GUI, russian keyboard layout, X11 / KDE:
Ctrl+Space, L starts Macro recording.
@unxed can you check it on your side?

Same on Mint, Cinnamon, X11.

@unxed
Copy link
Contributor Author

unxed commented Oct 12, 2024

Don't yet understand how to solve this, because in the console I don't see a way to determine which Latin key corresponds to the received Russian character. In wx we have a raw key code for this, but in console we don't.

As expected, the bug is not reproduced in Xi and kitty modes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants