https://bugs.kde.org/show_bug.cgi?id=453661
--- Comment #13 from Oded Arbel <o...@geek.co.il> ---
(In reply to Andrey from comment #11)
> Both ` and ; are legitimate (Latin or even ASCII) symbols for shortcuts, so
> if one key generates them it seems impossible to solve without knowing what
> physical key was pressed? Do you have some solution in mind, other than
> obvious with creating different shortcuts for the same key?

Well, as I've noted - adding duplicate shortcuts for the symbols generated by
keys under alternative layouts is a poor workaround because the targeted
symbols will also be generated in other use cases where I don't want the global
shortcuts to trigger (or worse - I want other shortcuts to trigger, for example
I may want different global shortcuts for CTRL+` vs CTRL+;).

>From looking at the Kwin debug console, I assume that what it calls "scan code"
is the value from `QKeyEvent::nativeScanCode()` - and that seems to be stable
for the physical key: i.e. the same physical key always generates the same scan
code. A solution I think would be to store the scan code and trigger the global
action when matching the scan code (and required modifiers) and not the letter.

(In reply to Andrey from comment #12)
> One possible solution to this in Qt would be try to switch to Latin layout

I'm very confused about the term "Latin" to describe a layout (used here and in
Qt code liberally) - there are many different Latin layouts (Dvorak comes to
mind) and these don't map the same letters to the same key...

As I noted in my comment on bug 355046, I think that in a multi-layout work
environment global shortcuts (especially) should be mapped to keys in a
"non-layout-specific" manner - i.e. use native scan codes. I believe this is
how it works under X11.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to