https://bugs.kde.org/show_bug.cgi?id=415289

            Bug ID: 415289
           Summary: Keyboard/mouse shortcuts should map to either keycodes
                    or charcodes
           Product: frameworks-kwindowsystem
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kdelibs-b...@kde.org
          Reporter: ska...@gmail.com
  Target Milestone: ---

SUMMARY
Keyboard/mouse shortcuts currently map to high level character-combinations
only E.G.: CTRL-A or META-Ж, ALT-BTN5

If more than one keyboard layout is used on a system this causes usability
problems.


STEPS TO REPRODUCE
1. Set up multiple keyboard layouts (E.G. US English and Russian)
2. Set the switching policy to "window" (this is optional, but amplifies the
problem)
3. Configure some global shortcuts, E.G.: META-$ on a US layout
4. Switch to the Russian layout
5. Hit the shortcut defined in step 3


OBSERVED RESULT
The shortcut won't run.
META-$ on a US keyboard maps to META-SHIFT-4, but on a Russian layout that maps
back to META-;


EXPECTED RESULT
The specified keyboard shortcut should always work, in every keyboard layout.


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 


ADDITIONAL INFORMATION

Important note:

Keyboard shortcuts should not always be mapped as above.
There are certain known situations, in fact, when users do expect them to map
to keycodes(keysyms).
This is the case for CTRL-z and CTRL-y, for example for undo/redo operations.
QWERTZ vs QWERTY layout users really mean CTRL-z to match the character, not
the keycode, even if they use both and switch between them.


However, for non language or typing related actions, other combinations may be
assigned to some window-management action, like running an application or
switching a desktop, in which case is indeed the keycode, and not the
character, which should be used.



This means KDE system settings should allow to define shortcuts and ask whether
they should match characters or the physical keys on the keyboard/mouse/other
input device.

A dropdown box could let the use specify the type of matching they want for the
given shortcut.

Match [ Key Symbol  [V]]
       |              |
       | Key Symbol   |
       | Physical Key |
        --------------


The same applies to mice/gaming mice and other buttons from input devices
There are some gaming mice which internally map button 6 to PGUP, then have
another operating mode in which button 6 becomes BACK.
This is another case when it is desirable for some shortcuts to be defined
against the low level keycode, so they just work independently of the mode the
mouse is currently set up.

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

Reply via email to