desktop icon indicating copy to clipboard operation
desktop copied to clipboard

Shortcuts only working on a US keyboard.

Open YelehaUwU opened this issue 2 years ago • 25 comments

Captchas

  • [X] I have read the instructions.
  • [X] I have searched existing issues and avoided creating duplicates.
  • [X] I am not filing an enhancement request.

What happened?

Shortcuts like Alt Ctrl C or Alt Ctrl V work perfectly on a US keyboard, instead of working on other ones.

Reproducible?

  • [X] I have checked that this issue cannot be reproduced on Mozilla Firefox.

Version

a.14

What platform are you seeing the problem on?

Windows

Relevant log output

No response

YelehaUwU avatar Oct 30 '24 10:10 YelehaUwU

Hi, @YelehaUwU. I'm Dosu, and I'm helping the desktop team manage their backlog. I'm marking this issue as stale.

Issue Summary

  • Problem with keyboard shortcuts (Alt Ctrl C and Alt Ctrl V) not working on non-US keyboard layouts.
  • Issue is specific to the Windows platform.
  • Does not occur on Mozilla Firefox, indicating it may be specific to this application.
  • No comments or further developments have been made.

Next Steps

  • Could you confirm if this issue is still relevant with the latest version of the desktop repository? If so, please comment to keep the discussion open.
  • If there is no further activity, this issue will be automatically closed in 7 days.

Thank you for your understanding and contribution!

dosubot[bot] avatar Nov 30 '24 16:11 dosubot[bot]

Still an issue, seems like multiplatform.

YelehaUwU avatar Nov 30 '24 16:11 YelehaUwU

@mauro-balades, the user @YelehaUwU has confirmed that the issue with keyboard shortcuts not working on non-US keyboard layouts is still relevant and seems to be multiplatform. Could you please assist them with this issue?

dosubot[bot] avatar Nov 30 '24 16:11 dosubot[bot]

Not entirely multiplatform, I cannot reproduce the issue on Linux (both with X11 and wlroots wayland) changing the layout with setxkbmap or xkb_layout in libinput and trying the same shortcuts.

vicky5124 avatar Nov 30 '24 17:11 vicky5124

Not entirely multiplatform, I cannot reproduce the issue on Linux (both with X11 and wlroots wayland) changing the layout with setxkbmap or xkb_layout in libinput and trying the same shortcuts.

Well I tried it on Mac and Windows so perhaps it only works properly on linux

YelehaUwU avatar Dec 01 '24 07:12 YelehaUwU

We just tried this on qwerty PT and the shortcuts worked. Could it be specific non-US keyboards?

salamijason avatar Dec 02 '24 16:12 salamijason

The issue is with non-qwerty layouts, rather than non-US layouts, such as qwertz, azerty, dvorak, etc...

vicky5124 avatar Dec 02 '24 16:12 vicky5124

Ah I see, mb skimmed over it too fast. Will try getting someone on a completely non qwerty keyboard to try.

salamijason avatar Dec 02 '24 16:12 salamijason

Are you guys able to remap the keyboard shortcuts to fit your keyboard layouts?

salamijason avatar Dec 02 '24 16:12 salamijason

Ah I see, mb skimmed over it too fast. Will try getting someone on a completely non qwerty keyboard to try.

I use a slovak keyboard with this issue present.

Are you guys able to remap the keyboard shortcuts to fit your keyboard layouts?

Yes, but they should work out of the box, it's also showing the same keys visually in the remapper but I don't know what is really going on behind the scenes.

YelehaUwU avatar Dec 02 '24 18:12 YelehaUwU

This issue seems to be more prevalent with non-QWERTY layouts like Slovak, and even though remapping works, the shortcuts should ideally function correctly out of the box. It would be great to get a deeper look into how the system processes these layouts behind the scenes. Any progress on this?

oldregime avatar Dec 08 '24 16:12 oldregime

Yes, but they should work out of the box, it's also showing the same keys visually in the remapper

Ah, I see. Alright, I'll send it off to the dev and we'll see what he can do about it. Thank you all for the input!

salamijason avatar Dec 10 '24 12:12 salamijason

Just got a user on a qwertz keyboard to try it out and the keybinds worked fine. Will try searching for users on dvorak, etc.

salamijason avatar Dec 10 '24 13:12 salamijason

Let me get this straight. Do default shortcuts work? I mean, does this only happen when settinga new shortcut?

mr-cheffy avatar Dec 27 '24 19:12 mr-cheffy

It happens for default ones, they need to be re-binded to make them work.

YelehaUwU avatar Dec 27 '24 19:12 YelehaUwU

Do default shortcuts work? I mean, does this only happen when setting a new shortcut?

They do not work, and they are flakey when setting a new shortcut. Also, you don't need to use a different keyboard, just use the "United States-International" layout in Windows.

Using ALT-CTRL-C as the example, the US International keyboard layout produces the character © I guess this is the cause of the issue, the non-international US English layout does not produce a character for this key combination. I also assume that key combinations that do not produce unexpected characters work fine.

Using the US International keyboard layout with Zen's default compact mode shortcut of ALT-CTRL-C, pressing this key combination does not register the corresponding shortcut, Zen seems to see the character © instead. With the compact mode shortcut set to "©" the shortcut is registered, but only when not focusing an input field or the URL bar, which will enter the character "©" into the focused input instead.

PS: If you have never switched keyboard layouts in Windows, see this guide for how to add a keyboard layout in Windows 11 https://www.windowscentral.com/how-change-keyboard-layout-windows-11 This will give you a keyboard layout switcher that shows up next to the systray, as shown under "How to change keyboard layout on Windows 11" in the linked guide. It will disappear again if you remove all keyboard layouts but one. You might try the "United States-International (no dead keys)" layout, the regular US international layout is annoying with the dead key behavior of quotation marks.

Waquo avatar Jan 23 '25 15:01 Waquo

This is, unfortunately, a frustrating and fundamental flaw within the Windows operating system. Similar to the CR+LF newline issue, it was a really bad decision, taken long ago, which we are now seemingly stuck with.

To quote Microsoft's own guidelines:

Use the following guidelines for designing shortcut keys:

  • Avoid CTRL+ALT combinations because the system interprets this combination in some language versions as an ALTGR key, which generates alphanumeric characters.

That is, Ctrl+Alt+Key can be translated to a special character before it even gets sent to applications (give it a try in Zen's keyboard shortcuts, Ctrl+Alt+C and AltGr+C both get translated to © ).

Unless there's a way to make an international layout that doesn't use AltGr at all, I'm afraid us international layout users will be stuck with this frustrating limitation.

To my knowledge, the only existing "solution" (if you can even call it that) is in the form of software that temporarily switches your keyboard layout when you press LCtrl+LAlt.

viktor4006094 avatar Jan 29 '25 23:01 viktor4006094

  • Avoid CTRL+ALT combinations because the system interprets this combination in some language versions as an ALTGR key, which generates alphanumeric characters.

ALT+SHIFT+Key combinations also seem unusable because Left ALT-SHIFT is the standard hotkey to switch keyboard layouts in Windows, if you have several of them installed.

Waquo avatar Jan 30 '25 00:01 Waquo

ALT+SHIFT+Key combinations also seem unusable because Left ALT-SHIFT is the standard hotkey to switch keyboard layouts in Windows, if you have several of them installed.

That can thankfully be changed via: Windows Settings > Time & Language >Typing > Advanced keyboard settings > Input Language hot keys.

viktor4006094 avatar Jan 30 '25 20:01 viktor4006094

While any user may be able to disable the global hotkey for ALT-SHIFT, until they do, anyone who has several keyboard layouts will accidentally switch keyboard layouts and likely not understand what happened. Such a poor and confusing user experience should be avoided, no?

Waquo avatar Jan 30 '25 21:01 Waquo