-
Notifications
You must be signed in to change notification settings - Fork 204
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
Confusion between ² and ' keys on AZERTY (french) keyboard for Macro Shortcuts #864
Comments
@cbouc I cannot reproduce the issue with the latest available version (assuming that by AZERTY you mean French keyboard layout). Please try to upgrade: https://github.com/FarGroup/FarManager/releases |
It's even worse: not only I still have the bug, but now, instead of starting/finishing macro recording with Ctrl+Shift+. (because . is Shift+; on AZERTY, it worked that way until 3.0.6300.0), now it's Ctrl+Shift+/ (/ being Shift+: with AZERTY keyboard, the . key in QWERTY being the / key in AZERTY, I think the key code is checked instead of the associated character on the keyboard). INFO: key (upper left one below Escape, pressed without any modifier key) that produces the ² in AZERTY produces a ` (backquote) in QWERTY (doesn't really explain the problem as I get a quote in AZERTY). Made the test without ConEmu to ensure it wasn't the source of the problem. Screenshot after finishing recording a macro and pressing the ² (AZERTY) key, I still have a ' (latest FAR version as recommended). |
In a way, yes: VK_OEM_* keys are mapped to completely different actions on various national keyboards and it is a pain if you have multiple keyboard layouts installed, so for macros we map such keys to the US keyboard if nothing else works, which might be not what is written on the keys, but at least it is consistent.
When we map the keys, we try to take keyboard layouts into account. This generally works as expected locally, but in remote sessions we get server layouts, which are not necessarily the same, so things might get worse. I can reproduce |
Thank you for the quick answers! |
I've made a few experimental changes, |
Far Manager version
3.0.6300.0 x64
OS version
10.0.22631.3880
Other software
No response
Steps to reproduce
On an AZERTY keyboard (yes, I know, make the matter difficult), there's a ² (U+00B2 Superscript two) key right under the Escape key and I use it to run a macro, everything was ok until I upgraded FAR to recent version (sorry, don't know the old version).
Pressing Ctrl+Shift+. twice (empty macro, not important) and trying to enter ² in the "Press the desired key" dialog result in a ' (U+0027 Apostrophe) instead of ². Then, both the ² and ' keys activate the macro!
Very bad as ' is often required in command lines!
Trying to fix the recorded macro to replace ' shortcut with ² doesn't work, pressing ² doesn't activates the macro.
I can investigate the problem (debug) if I have some guidance (where to look in the sources to put breakpoints).
Still, without macro associated to ', pressing ² or ' produce the expected character (no confusion in command line nor editor, it seem to be a problem with macro shortcuts alone)!
Expected behavior
Macro shortcuts detection distinguish ² from ' !!!
Actual behavior
Macro shortcut detection confuse ' and ²
The text was updated successfully, but these errors were encountered: