Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Q qtbase
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Merge requests 9
    • Merge requests 9
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • Qt Project
  • qt
  • qtbase
  • Merge requests
  • !239

xkbcommon: make shortcuts persistent across layouts

  • Review changes

  • Download
  • Patches
  • Plain diff
Open Andrey Butirsky requested to merge butirsky/qtbase:work/bam/fix_shortcuts into kde/5.15 Jan 31, 2023
  • Overview 19
  • Commits 178
  • Changes 582+

It can happen the same key has different Latin symbols on different layouts: for example, "`" symbol on English layout, no symbol ("^" dead key) on German and ";" symbol on Czech and Hebrew layouts (for a key below Esc). This creates a problem as these keys will produce different shortcuts depending on what layout is currently active.

This patch makes keys generate the same shortcuts corresponding to the first Latin layout configured in the system, independently of layout actually active.

For example, when having settings like:

setxkbmap -model pc105 -layout "us,de" -option "grp:alt_shift_toggle"

After Alt+Shift, the layout changes to de from us. But Ctrl+"^" still generates Ctrl+` shortcut which is from the first(or default) layout.

[ChangeLog][QtGui][QXkbCommon] make keys produce the same shortcuts independently of current layout

Fixes: QTBUG-108761
Change-Id: Id204a1609ca731f9c56ed3d32847ca18b94be4a0
Reviewed-by: Liang Qi liang.qi@qt.io
Reviewed-by: Andrey Butirsky butirsky@gmail.com
(cherry picked from commit 5e76a956)

Edited Jan 31, 2023 by Andrey Butirsky
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: work/bam/fix_shortcuts