- Issue created by @besek
- 🇩🇰Denmark ressa Copenhagen
Thanks for raising this issue @besek, there has previously been a challenge with the Polish character of "ś" and Alt+s (Option+s) as mentioned in ✨ Allow shortcut key to be configurable Active .
Would it be possible to detect the system language, and display a warning like below if Polish language is detected AND shortcut Alt + a is enabled?
It looks like your system language is Polish, which can conflict with the Admin Toolbar Search shortcut Alt + a.
- 🇵🇱Poland besek
Unfortunately not. This is not only about system language, but about keyboard layout. And browser is not exposing this information to the website. Language itself is not reliable informaiton, because users may have keyboard layout different than system language.
I think, as a rule, Alt shouldn't be used for letter shortcuts. Polish is just example, but more regional keyoboard layouts are using AltGr as a modifier for other letters, to create special characters.
So, in my opinion there are options to fix this:
1. Ideal: we would need different shortcut (with Ctrl/Cmd, but yeah, I realize finding one that is free may be close to impossible)
2. Disabling this setting by default - the quickest fix that may still deliver this functionality, but for site owners who would turn this on intentionally - otherwise it may cause problems for content editors
3. Probably the most complicated: change behavoior of this shortcut to be fired only when user is not typing in any editable fields.Also, I noticed when this setting is disabled - there is still informaiton about shortcut visible in the search field and it should be disabled. Not sure if this deserves separate issue?