<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>375518</bug_id>
          
          <creation_ts>2017-01-24 20:22:40 +0000</creation_ts>
          <short_desc>global shortcuts do not work for non-Latin symbols of foreign keyboard layouts</short_desc>
          <delta_ts>2026-03-04 15:26:57 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>kwin</product>
          <component>input</component>
          <version>git master</version>
          <rep_platform>Compiled Sources</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WAITINGFORINFO</resolution>
          
          <see_also>https://bugs.kde.org/show_bug.cgi?id=350816</see_also>
    
    <see_also>https://bugs.kde.org/show_bug.cgi?id=435651</see_also>
    
    <see_also>https://bugs.kde.org/show_bug.cgi?id=309193</see_also>
    
    <see_also>https://bugs.kde.org/show_bug.cgi?id=453461</see_also>
    
    <see_also>https://bugs.kde.org/show_bug.cgi?id=434949</see_also>
    
    <see_also>https://bugs.kde.org/show_bug.cgi?id=453661</see_also>
    
    <see_also>https://bugs.kde.org/show_bug.cgi?id=415995</see_also>
    
    <see_also>https://bugs.kde.org/show_bug.cgi?id=462274</see_also>
          <bug_file_loc>https://bugreports.qt.io/browse/QTBUG-90611</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>VHI</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anton Kreuzkamp">akreuzkamp</reporter>
          <assigned_to name="Andrey">butirsky</assigned_to>
          <cc>80p3fy75dc</cc>
    
    <cc>aspotashev</cc>
    
    <cc>bharadwaj.raju777</cc>
    
    <cc>bizyaev</cc>
    
    <cc>butirsky</cc>
    
    <cc>contact</cc>
    
    <cc>desintegr</cc>
    
    <cc>dev</cc>
    
    <cc>dmayr.dev</cc>
    
    <cc>dmitry.ashkadov</cc>
    
    <cc>eugene.savitsky</cc>
    
    <cc>genet</cc>
    
    <cc>h.klene</cc>
    
    <cc>igor.poboiko</cc>
    
    <cc>jany.belluz</cc>
    
    <cc>kirill.bogdanenko</cc>
    
    <cc>kiwiiii</cc>
    
    <cc>lemondejojo</cc>
    
    <cc>leonard</cc>
    
    <cc>mail</cc>
    
    <cc>mail</cc>
    
    <cc>nate</cc>
    
    <cc>notuxius</cc>
    
    <cc>nowrep</cc>
    
    <cc>praveen</cc>
    
    <cc>ticket.kde.djr4kjpch5320z5k</cc>
    
    <cc>tony.ducrocq</cc>
    
    <cc>xalt7x.service</cc>
    
    <cc>zir0faive</cc>
    
    <cc>zvova7890</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/kwin/commit/91f47c909237437e93ceb84326ae1eead0c3e3e7</cf_commitlink>
          <cf_versionfixedin>Plasma 5.22 with a Qt version that has https://codereview.qt-project.org/c/qt/qtbase/+/339895 merged</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      <flag name="Wayland"
          id="1574"
          type_id="31"
          status="+"
          setter="mgraesslin"
    />

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1656480</commentid>
    <comment_count>0</comment_count>
    <who name="Anton Kreuzkamp">akreuzkamp</who>
    <bug_when>2017-01-24 20:22:40 +0000</bug_when>
    <thetext>I&apos;m using a EU (US + special keys) keyboard layout, but occasionally I switch to a greek layout to enter greek symbols. On X11 I used to use CTRL+ALT+K to switch to greek and CTRL+ALT+K again to switch back.
On Wayland, I can use CTRL+ALT+K to switch to greek, but I can&apos;t switch back. Probably this is, because I now effectively enter CTRL+ALT+Kappa.

I&apos;m not 100% sure, how global shortcuts are supposed to work with foreign keyboard layouts, but especially in regards of the &quot;switch keyboard layout&quot; shortcut this is odd.

Maybe CTRL+ALT+Kappa is simply missing as a trigger for the shortcut or KWin&apos;s handling should be different here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1656611</commentid>
    <comment_count>1</comment_count>
    <who name="Martin Flöser">mgraesslin</who>
    <bug_when>2017-01-25 09:53:08 +0000</bug_when>
    <thetext>On Wayland we use the actual keyboard layout. Which is something which in my opinion makes a lot of sense. If you enter ctrl+alt+k it&apos;s using the config printed on they keyboard and the user does not have to know where the k key is on the English layout. So this is in my opinion a huge improvement over X11. Especially as on X11 it was inconsistent or just broken. AFAIK on X11 global shortcuts just does not notice when the layout changes. If you would start with greek layout as primary layout, it should be also broken.

Now the problem is tricky. Do you know whether there is a key in the layout which renders a &quot;k&quot;? Or whether the k key actually generates multiple keysyms? If it generated kappa and k, we could change the code to support all syms.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1660187</commentid>
    <comment_count>2</comment_count>
    <who name="Igor Poboiko">igor.poboiko</who>
    <bug_when>2017-02-10 20:01:10 +0000</bug_when>
    <thetext>Same here with russian layout (which is obviously completely different from english).

(In reply to Martin Gräßlin from comment #1)
&gt; Now the problem is tricky. Do you know whether there is a key in the layout
&gt; which renders a &quot;k&quot;? Or whether the k key actually generates multiple
&gt; keysyms? If it generated kappa and k, we could change the code to support
&gt; all syms.

I suppose Greek layout just doesn&apos;t have a &quot;k&quot; symbol at all. Does such layouts even exist (where the same symbol is placed on the some place in one layout and on another place on second layout)? 

Can we just bind it not to the symbol but to key (&quot;scan code&quot;) instead? (however, it might break if user attaches another keyboard...)
Or just map everything to English layout? (it might be weird if user isn&apos;t familiar with latin alphabet)
Or maybe iterate over all configured layouts and check if pressed key code corresponds to a shortcut on any of it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1660262</commentid>
    <comment_count>3</comment_count>
    <who name="Martin Flöser">mgraesslin</who>
    <bug_when>2017-02-11 06:44:11 +0000</bug_when>
    <thetext>Am 10. Februar 2017 21:01:10 MEZ schrieb Igor Poboiko &lt;bugzilla_noreply@kde.org&gt;:
&gt;https://bugs.kde.org/show_bug.cgi?id=375518
&gt;
&gt;Igor Poboiko &lt;igor.poboiko@gmail.com&gt; changed:
&gt;
&gt;           What    |Removed                     |Added
&gt;----------------------------------------------------------------------------
&gt;                 CC|                            |igor.poboiko@gmail.com
&gt;
&gt;--- Comment #2 from Igor Poboiko &lt;igor.poboiko@gmail.com&gt; ---
&gt;Same here with russian layout (which is obviously completely different
&gt;from
&gt;english).
&gt;
&gt;(In reply to Martin Gräßlin from comment #1)
&gt;&gt; Now the problem is tricky. Do you know whether there is a key in the
&gt;layout
&gt;&gt; which renders a &quot;k&quot;? Or whether the k key actually generates multiple
&gt;&gt; keysyms? If it generated kappa and k, we could change the code to
&gt;support
&gt;&gt; all syms.
&gt;
&gt;I suppose Greek layout just doesn&apos;t have a &quot;k&quot; symbol at all. Does such
&gt;layouts
&gt;even exist (where the same symbol is placed on the some place in one
&gt;layout and
&gt;on another place on second layout)? 
&gt;
&gt;Can we just bind it not to the symbol but to key (&quot;scan code&quot;) instead?

Unfortunately not. It&apos;s all keysym based.

&gt;(however, it might break if user attaches another keyboard...)
&gt;Or just map everything to English layout? (it might be weird if user
&gt;isn&apos;t
&gt;familiar with latin alphabet)

Requires the English layout to be part of the Keymap. So not a general solution.
&gt;Or maybe iterate over all configured layouts and check if pressed key
&gt;code
&gt;corresponds to a shortcut on any of it?

In general I like this idea, but I fear it&apos;s technically not possible.

I think the best solution would be to start translating the shortcuts.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1771073</commentid>
    <comment_count>4</comment_count>
    <who name="Alexander Mentyu">notuxius</who>
    <bug_when>2018-08-09 09:20:48 +0000</bug_when>
    <thetext>Ctrl+Alt+K shortcut switches keyboard layouts from Ukrainian to Russian and from Russian to English in X11 but not in Wayland

Distribution: KDE neon Developer Edition
Kernel: 4.15.0-29-generic
Plasma: 5.13.80
Apps: 18.11.70
Qt: 5.11.1
Frameworks: 5.48.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1791096</commentid>
    <comment_count>5</comment_count>
    <who name="Holger">h.klene</who>
    <bug_when>2018-10-01 21:19:52 +0000</bug_when>
    <thetext>*** Bug 365812 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1791100</commentid>
    <comment_count>6</comment_count>
    <who name="Holger">h.klene</who>
    <bug_when>2018-10-01 21:29:49 +0000</bug_when>
    <thetext>Does killing &amp; restarting /usr/bin/kglobalaccel5 help?

see: bug 350816</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1791153</commentid>
    <comment_count>7</comment_count>
    <who name="Martin Flöser">mgraesslin</who>
    <bug_when>2018-10-02 04:00:58 +0000</bug_when>
    <thetext>(In reply to Holger from comment #6)
&gt; Does killing &amp; restarting /usr/bin/kglobalaccel5 help?
&gt; 
&gt; see: bug 350816

Certainly not: this is Wayland and kglobalaccel is not used.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1848133</commentid>
    <comment_count>8</comment_count>
    <who name="Igor Poboiko">igor.poboiko</who>
    <bug_when>2019-04-02 09:57:15 +0000</bug_when>
    <thetext>Related link to the same bug in Qt: https://bugreports.qt.io/browse/QTBUG-66497</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1866297</commentid>
    <comment_count>9</comment_count>
    <who name="Igor Poboiko">igor.poboiko</who>
    <bug_when>2019-06-30 11:06:00 +0000</bug_when>
    <thetext>*** Bug 407703 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1990631</commentid>
    <comment_count>10</comment_count>
    <who name="Andrey">butirsky</who>
    <bug_when>2021-01-03 17:14:01 +0000</bug_when>
    <thetext>Could someone try it on other compositor?
It&apos;s still not clear to me if it KWin or Qt bug</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1997553</commentid>
    <comment_count>11</comment_count>
    <who name="Andrey">butirsky</who>
    <bug_when>2021-01-25 16:46:07 +0000</bug_when>
    <thetext>I&apos;ve opened Qt bug report:  
https://bugreports.qt.io/browse/QTBUG-90611</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1999636</commentid>
    <comment_count>12</comment_count>
    <who name="Leonard Lausen">leonard</who>
    <bug_when>2021-02-02 14:27:49 +0000</bug_when>
    <thetext>Have you tried switching the order of layouts? In https://bugs.kde.org/show_bug.cgi?id=432367 I observe related issues that only occur if US layout is on position 1 in the settings screen and my custom layout is on position 2. However, when moving the custom layout to position 1 and US layout to position 2 fixes there are no problems.

Note that the Layout Settings have Move Up/Down buttons to change layout order.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2008207</commentid>
    <comment_count>13</comment_count>
    <who name="Bharadwaj Raju">bharadwaj.raju777</who>
    <bug_when>2021-03-03 11:17:15 +0000</bug_when>
    <thetext>&gt;&gt; Or maybe iterate over all configured layouts and 
&gt;&gt; check if pressed key code corresponds to a shortcut on any of it?
&gt; In general I like this idea, but I fear it&apos;s technically not possible.
Would it be a decent solution to allow the user to configure which of their layouts is used to interpret global shortcuts?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2008212</commentid>
    <comment_count>14</comment_count>
    <who name="Andrey">butirsky</who>
    <bug_when>2021-03-03 11:45:11 +0000</bug_when>
    <thetext>(In reply to Bharadwaj Raju from comment #13)
&gt; Would it be a decent solution to allow the user to configure which of their
&gt; layouts is used to interpret global shortcuts?
Qt already handles this by searching for a Latin1 shortcut for a key unconditionally, it occurs in special private library:
https://code.woboq.org/qt5/qtbase/src/platformsupport/input/xkbcommon/qxkbcommon.cpp.html#525
We are going to just link to that library so the behavior will be consistent.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2015563</commentid>
    <comment_count>15</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2021-03-15 18:01:53 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/786</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2019666</commentid>
    <comment_count>16</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-03-26 14:47:59 +0000</bug_when>
    <thetext>*** Bug 434949 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2019679</commentid>
    <comment_count>17</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-03-26 16:07:34 +0000</bug_when>
    <thetext>*** Bug 318666 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2019681</commentid>
    <comment_count>18</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-03-26 16:07:59 +0000</bug_when>
    <thetext>*** Bug 167428 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2019683</commentid>
    <comment_count>19</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-03-26 16:08:26 +0000</bug_when>
    <thetext>*** Bug 252594 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2019685</commentid>
    <comment_count>20</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-03-26 16:08:51 +0000</bug_when>
    <thetext>*** Bug 260260 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2019687</commentid>
    <comment_count>21</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-03-26 16:09:39 +0000</bug_when>
    <thetext>*** Bug 176514 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2019689</commentid>
    <comment_count>22</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-03-26 16:10:10 +0000</bug_when>
    <thetext>*** Bug 177321 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2019691</commentid>
    <comment_count>23</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-03-26 16:10:29 +0000</bug_when>
    <thetext>*** Bug 182434 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2019693</commentid>
    <comment_count>24</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-03-26 16:10:34 +0000</bug_when>
    <thetext>*** Bug 187730 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2019695</commentid>
    <comment_count>25</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-03-26 16:11:08 +0000</bug_when>
    <thetext>*** Bug 320612 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2019699</commentid>
    <comment_count>26</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-03-26 16:13:17 +0000</bug_when>
    <thetext>*** Bug 422329 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2022582</commentid>
    <comment_count>27</comment_count>
    <who name="Andrey">butirsky</who>
    <bug_when>2021-04-05 19:43:10 +0000</bug_when>
    <thetext>Git commit 91f47c909237437e93ceb84326ae1eead0c3e3e7 by Andrey Butirsky.
Committed on 05/04/2021 at 19:39.
Pushed by butirsky into branch &apos;master&apos;.

fix global shortcuts for non-Latin symbols

Re-use Qt&apos;s implementation of handling non-Latin layouts here
For full ASCII range support (Alt+`, etc.) Qt needs to be patched still,
see QTBUG-90611

M  +2    -0    CMakeLists.txt
M  +1    -0    autotests/CMakeLists.txt
M  +83   -0    autotests/integration/globalshortcuts_test.cpp
M  +0    -21   autotests/test_xkb.cpp
M  +1    -0    src/CMakeLists.txt
M  +4    -5    src/input.cpp
M  +3    -2    src/keyboard_input.cpp
M  +26   -22   src/xkb.cpp
M  +5    -4    src/xkb.h
D  +0    -312  src/xkb_qt_mapping.h

https://invent.kde.org/plasma/kwin/commit/91f47c909237437e93ceb84326ae1eead0c3e3e7</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2022589</commentid>
    <comment_count>28</comment_count>
    <who name="Andrey">butirsky</who>
    <bug_when>2021-04-05 20:03:01 +0000</bug_when>
    <thetext>Note:

For full ASCII range support (Alt+`, etc.) Qt needs to be patched still:  
[QTBUG-90611](https://bugreports.qt.io/browse/QTBUG-90611), fix: https://codereview.qt-project.org/c/qt/qtbase/+/339895.  

Without patched Qt, only alphabetical key shortcuts (on any layout) brought back to work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2026262</commentid>
    <comment_count>29</comment_count>
    <who name="Bharadwaj Raju">bharadwaj.raju777</who>
    <bug_when>2021-04-20 09:30:52 +0000</bug_when>
    <thetext>*** Bug 309193 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2026271</commentid>
    <comment_count>30</comment_count>
    <who name="Andrey">butirsky</who>
    <bug_when>2021-04-20 09:43:25 +0000</bug_when>
    <thetext>Good catch. Thanks!
(still, please pay attention this bug is about global shortcuts)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2026276</commentid>
    <comment_count>31</comment_count>
    <who name="Bharadwaj Raju">bharadwaj.raju777</who>
    <bug_when>2021-04-20 09:53:27 +0000</bug_when>
    <thetext>(In reply to Andrey from comment #30)
&gt; Good catch. Thanks!
&gt; (still, please pay attention this bug is about global shortcuts)

Yes, however the non-global i.e. application shortcuts problem is fixed as of now (tested on Neon unstable), and the only remaining part was the global shortcuts bit (fixed here).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2026284</commentid>
    <comment_count>32</comment_count>
    <who name="Andrey">butirsky</who>
    <bug_when>2021-04-20 10:00:52 +0000</bug_when>
    <thetext>Yes, that&apos;s because global and non-global ones are now using the same internal Qt function which handles this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2032427</commentid>
    <comment_count>33</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-05-13 17:08:27 +0000</bug_when>
    <thetext>*** Bug 437043 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2054248</commentid>
    <comment_count>34</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-08-18 16:03:25 +0000</bug_when>
    <thetext>*** Bug 441103 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2131025</commentid>
    <comment_count>35</comment_count>
    <who name="Johannes">lemondejojo</who>
    <bug_when>2022-06-14 14:04:58 +0000</bug_when>
    <thetext>Dear all,

This bug had been reported to be fixed over a year ago, but I am still experiencing it on all my installs. I opened a bug request (448154) five months ago, that was closed duplicate immediately, yet the bug remains, although I am running the latest Kubuntu with KDE backports. I am basically unable to use accented chars such as ç or é in global keyboard shortcuts, which makes a lot of my keys useless for &lt;Ctrl&gt;+key bindings.

Can you tell me what the state is? Thanks a lot!!!

Operating System: Ubuntu 22.04
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.3
Kernel Version: 5.15.0-37-generic (64-bit)
Graphics Platform: X11</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2131627</commentid>
    <comment_count>36</comment_count>
    <who name="Andrey">butirsky</who>
    <bug_when>2022-06-15 21:36:06 +0000</bug_when>
    <thetext>Johannes, please note the bug was filed for Wayland, please see if you still can reproduce the issue there.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2131746</commentid>
    <comment_count>37</comment_count>
    <who name="Johannes">lemondejojo</who>
    <bug_when>2022-06-16 08:28:06 +0000</bug_when>
    <thetext>You are right: I don&apos;t experience the bug in Wayland! Sorry that I did not realise that it was Wayland specific here!

But that&apos;s not an honest point because several bug files that have been marked duplicate of this one imply X11, and were closed regardless. Besides, the bug isn&apos;t really a purely Xorg thing as accented keyboard shortcuts only break in KDE under Xorg, not in Gnome or Cinnamon using Xorg.

I am therefore re-closing that one (sorry!) and will awake another one that is more Xorg specific!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2164790</commentid>
    <comment_count>38</comment_count>
    <who name="George Melikov">mail</who>
    <bug_when>2022-10-24 10:56:08 +0000</bug_when>
    <thetext>Global hotkey Shift+Win+2 is still broken for me on layout switch to non-English with other Shift+2 symbol (english has @ there, my layout has &quot;) in Wayland , it worked on X11. Wayland just tries to insert &quot;.

Operating System: Debian GNU/Linux Testing (Bookworm)
KDE Plasma Version: 5.26.0
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.4
Kernel Version: 5.19.0-2-amd64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5800U with Radeon Graphics
Memory: 15.0 GiB of RAM
Graphics Processor: RENOIR
Manufacturer: HP
Product Name: HP Pavilion Aero Laptop 13-be0xxx</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2164802</commentid>
    <comment_count>39</comment_count>
    <who name="George Melikov">mail</who>
    <bug_when>2022-10-24 11:55:36 +0000</bug_when>
    <thetext>(In reply to George Melikov from comment #38)
&gt; Global hotkey Shift+Win+2 is still broken for me on layout switch to
&gt; non-English with other Shift+2 symbol (english has @ there, my layout has &quot;)
&gt; in Wayland , it worked on X11. Wayland just tries to insert &quot;.
&gt; 
&gt; Operating System: Debian GNU/Linux Testing (Bookworm)
&gt; KDE Plasma Version: 5.26.0
&gt; KDE Frameworks Version: 5.98.0
&gt; Qt Version: 5.15.4
&gt; Kernel Version: 5.19.0-2-amd64 (64-bit)
&gt; Graphics Platform: Wayland
&gt; Processors: 16 × AMD Ryzen 7 5800U with Radeon Graphics
&gt; Memory: 15.0 GiB of RAM
&gt; Graphics Processor: RENOIR
&gt; Manufacturer: HP
&gt; Product Name: HP Pavilion Aero Laptop 13-be0xxx

Ah, even more interesting - it doesn&apos;t work only when there is active input focus, for ex. if input focus is on browser&apos;s url field, Shift+win+2 will be interpreted as shift+2 and &quot; will be added in url field. 
If there is no active input field - global hotkey works.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2164964</commentid>
    <comment_count>40</comment_count>
    <who name="Andrey">butirsky</who>
    <bug_when>2022-10-24 20:39:04 +0000</bug_when>
    <thetext>Please try on dirsto with patched Qt:
https://community.kde.org/Qt5PatchCollection</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2164972</commentid>
    <comment_count>41</comment_count>
    <who name="George Melikov">mail</who>
    <bug_when>2022-10-24 20:50:17 +0000</bug_when>
    <thetext>(In reply to Andrey from comment #40)
&gt; Please try on dirsto with patched Qt:
&gt; https://community.kde.org/Qt5PatchCollection

Looks like I already have this commit https://salsa.debian.org/qt-kde-team/qt/qtwayland/-/merge_requests/5/diffs?commit_id=d5955f471ef19686137b4f5f835d45fedc0eaa08 (Add patches from KDE&apos;s Qt 5 Patch Collection up to 2022-05-14) in my system https://packages.debian.org/bookworm/qtwayland5 , so it&apos;s reproducible on Qt5PatchCollection from 2022-05-14. Can&apos;t guarantee for 100% Qt5PatchCollection identity though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2166152</commentid>
    <comment_count>42</comment_count>
    <who name="Andrey">butirsky</who>
    <bug_when>2022-10-27 22:19:17 +0000</bug_when>
    <thetext>(In reply to George Melikov from comment #39)
&gt; Ah, even more interesting - it doesn&apos;t work only when there is active input
&gt; focus, for ex. if input focus is on browser&apos;s url field, Shift+win+2 will be
&gt; interpreted as shift+2 and &quot; will be added in url field. 
&gt; If there is no active input field - global hotkey works.

Maybe it&apos;s a different issue then? Could you file it separately?
The one here didn&apos;t work regardless of the focus.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2172171</commentid>
    <comment_count>43</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2022-11-11 05:20:03 +0000</bug_when>
    <thetext>Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED &gt; WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2177950</commentid>
    <comment_count>44</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2022-11-26 05:17:38 +0000</bug_when>
    <thetext>This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED &gt; WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2182047</commentid>
    <comment_count>45</comment_count>
    <who name="Andrey">butirsky</who>
    <bug_when>2022-12-06 17:45:16 +0000</bug_when>
    <thetext>(In reply to George Melikov from comment #41)
&gt; (In reply to Andrey from comment #40)
&gt; &gt; Please try on dirsto with patched Qt:
&gt; &gt; https://community.kde.org/Qt5PatchCollection
&gt; 
&gt; Looks like I already have this commit
&gt; https://salsa.debian.org/qt-kde-team/qt/qtwayland/-/merge_requests/5
You haven&apos;t, it&apos;s even wrong repo.
Unfortunately, Debian applies KDE&apos;s Qt patches just partially. This is the source of many confusions, apparently.
When I realized it, I immediately initiated inclusion of the patch in question but it happened just recently: it will be part of qtbase-opensource-src 5.15.6+dfsg-5.
I also asked the Debian&apos;s Qt maintainer to apply all the patches in the future:
https://salsa.debian.org/qt-kde-team/qt/qtwayland/-/merge_requests/5#note_358970

Please provide the feedback when you get the patch needed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2187808</commentid>
    <comment_count>46</comment_count>
    <who name="Andrey">butirsky</who>
    <bug_when>2022-12-21 16:17:17 +0000</bug_when>
    <thetext>(In reply to George Melikov from comment #38)
&gt; Global hotkey Shift+Win+2 is still broken for me on layout switch to
&gt; non-English with other Shift+2 symbol (english has @ there, my layout has &quot;)
&gt; in Wayland , it worked on X11. Wayland just tries to insert &quot;.
Right, this case is still broken but has a separate report:
bug 453661

Essentially, if a key produces different Latin symbol on other layout, the shortcut won&apos;t work (but it will if the symbol is not Latin).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2282481</commentid>
    <comment_count>47</comment_count>
    <who name="Yevhen Popok">xalt7x.service</who>
    <bug_when>2024-01-22 23:13:06 +0000</bug_when>
    <thetext>(In reply to Andrey from comment #46)
&gt; (In reply to George Melikov from comment #38)
&gt; &gt; Global hotkey Shift+Win+2 is still broken for me on layout switch to
&gt; &gt; non-English with other Shift+2 symbol (english has @ there, my layout has &quot;)
&gt; &gt; in Wayland , it worked on X11. Wayland just tries to insert &quot;.
&gt; Right, this case is still broken but has a separate report:
&gt; bug 453661
&gt; 
&gt; Essentially, if a key produces different Latin symbol on other layout, the
&gt; shortcut won&apos;t work (but it will if the symbol is not Latin).

So basically:
- if my keyboard has non-Latin (e.g. Cyrillic) symbol on the same place as the Latin symbol - shortcut will work
- If my keyboard has some other Latin symbol - shortcut won&apos;t work and I will need to create another shortcut using different keyboard keyboard

For me &quot;Walk Through Windows of Current Application&quot; is broken by default since Ukrainian keyboard layout has another Latin symbol (apostrophe) on the same place as QuoteLeft/Grave symbol.

Is there any hope to workaround it on the KDE side?

I also wonder, why do we need a separate issue (https://bugs.kde.org/show_bug.cgi?id=453661) for this case.
This issue is also about Wayland session but it&apos;s more noticeable and has more useful information.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2282904</commentid>
    <comment_count>48</comment_count>
    <who name="Andrey">butirsky</who>
    <bug_when>2024-01-24 14:31:34 +0000</bug_when>
    <thetext>(In reply to Yevhen from comment #47)
&gt; Is there any hope to workaround it on the KDE side?
It was an attempt to solve that on Qt side once and for all but that was failed, read up from here:
https://bugs.kde.org/show_bug.cgi?id=453661#c30

(In reply to Andrey from comment #37)
https://bugs.kde.org/show_bug.cgi?id=453661#c37
&gt; As the Qt fix was discarded, the focus was shifted to try to solve it on XKB
&gt; level:
&gt; https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config/-/issues/416
If (and only if) that fails too, we could think about customizing KWin behavior, as a _very_ last resort. 

There is a hope but needs to be tested:
https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config/-/issues/428</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2500597</commentid>
    <comment_count>49</comment_count>
    <who name="Eugene Savitsky">eugene.savitsky</who>
    <bug_when>2026-03-04 15:26:57 +0000</bug_when>
    <thetext>It was fixed upstream:
https://github.com/xkbcommon/libxkbcommon/pull/929

What should KDE do to implement it?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>