Bug 489603 - Alt+Shift is early consumed when it's used with another third key
Summary: Alt+Shift is early consumed when it's used with another third key
Status: RESOLVED DUPLICATE of bug 434988
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 6.1.1
Platform: Manjaro Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-02 12:55 UTC by medin
Modified: 2024-09-02 21:01 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description medin 2024-07-02 12:55:36 UTC
Steps:

1. Set two keyboard layouts,
2. Set Alt+Shift as shortcut to change keyboard layout,
3. Press Meta+Shift+Print, then draw a rectangular region,
4. Press Alt+Shift+Left Arrow to increase the width of captured region by 1px.


Expected result:
Rectangular region width is increased by 1px.


Observed result:
Keyboard layout is changed, and the rectangular region width is increased by more than 1px, like if only Alt+Left Arrow was pressed.



Operating System: Manjaro Linux 
KDE Plasma Version: 6.1.1
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2
Kernel Version: 6.9.7-1-MANJARO (64-bit)
Graphics Platform: Wayland
Comment 1 fanzhuyifan 2024-07-02 17:32:13 UTC
(In reply to medin from comment #0)
> 2. Set Alt+Shift as shortcut to change keyboard layout,

Are you setting that as main shortcuts or as alternative shortcut? If you are setting it in main shortcuts, then it is handled by xkb and you would need to report this upstream. kde only handles the shortcut assigned through alternative shortcut.
Comment 2 medin 2024-07-02 19:28:52 UTC
(In reply to fanzhuyifan from comment #1)
> (In reply to medin from comment #0)
> > 2. Set Alt+Shift as shortcut to change keyboard layout,
> 
> Are you setting that as main shortcuts or as alternative shortcut? If you
> are setting it in main shortcuts, then it is handled by xkb and you would
> need to report this upstream. kde only handles the shortcut assigned through
> alternative shortcut.

I'm used to setting it as main shortcut, because in the previous versions of Plasma when I did set Alt+Shift as alternative shortcut it didn't work inside some apps like Firefox where I needed to press Alt+Shift 3 or 4 times to get it working.

For now, it seems to be working fine as alternative shortcut, so I will test it and see if it's working.
Comment 3 Justin Zobel 2024-09-02 11:48:46 UTC
How did your testing go medin? Is this still a recurring issue for you?
Comment 4 Nate Graham 2024-09-02 16:40:06 UTC

*** This bug has been marked as a duplicate of bug 434988 ***
Comment 5 medin 2024-09-02 20:57:21 UTC
(In reply to Justin Zobel from comment #3)
> How did your testing go medin? Is this still a recurring issue for you?

I'm now using Alt+Shit as an "Alternative shortcut" to switch layouts and it works fine. Still don't know why setting it in "Main shortcut" doesn't work for Plasma, may be a bug in xkb like how fanzhuyifan@gmail.com already said.
Comment 6 fanzhuyifan 2024-09-02 21:01:18 UTC
(In reply to medin from comment #5)
> (In reply to Justin Zobel from comment #3)
> > How did your testing go medin? Is this still a recurring issue for you?
> 
> I'm now using Alt+Shit as an "Alternative shortcut" to switch layouts and it
> works fine. Still don't know why setting it in "Main shortcut" doesn't work
> for Plasma, may be a bug in xkb like how fanzhuyifan@gmail.com already said.

might be caused by this: https://gitlab.freedesktop.org/xorg/xserver/-/issues/258