Skip to content
  • Martin Flöser's avatar
    Translate Qt key events through the unicode text with xkbcommon · 9581f23e
    Martin Flöser authored
    Summary:
    KKeyServer does an incorrect translation to keysyms: it always
    translates to the uppercase variant.
    
    This change makes the default go through xkbcommon and tries to get
    the keysym from matching the unicode representation. E.g. an "a" is
    then recognized as the lower case a, and an "A" as the uppercase one.
    
    Only if the translation through text fails we pass back to KKeyServer
    which does a reasonable translation for non-text symbols.
    
    Reviewers: #plasma_on_wayland
    
    Subscribers: plasma-devel, kwin
    
    Tags: #plasma_on_wayland, #kwin
    
    Differential Revision: https://phabricator.kde.org/D2471
    9581f23e