summaryrefslogtreecommitdiffstats
path: root/examples/opengl/contextinfo/widget.cpp
diff options
context:
space:
mode:
authorAndrey Butirsky <butirsky@gmail.com>2022-12-12 22:50:10 +0400
committerLiang Qi <liang.qi@qt.io>2023-01-31 18:02:54 +0000
commit5e76a9569e37e6620a7ddf3a9d9620fbb9b9d04f (patch)
treec918b454751694a217fc1d994bdee9f60b7457ec /examples/opengl/contextinfo/widget.cpp
parentd53607225a2560e419043794d87e4710e9c7475b (diff)
xkbcommon: make shortcuts persistent across layouts
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. 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>
Diffstat (limited to 'examples/opengl/contextinfo/widget.cpp')
0 files changed, 0 insertions, 0 deletions