Bug 481173 - keyboard shortcuts: allow "meta" alone as shortcut
Summary: keyboard shortcuts: allow "meta" alone as shortcut
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: libinput (show other bugs)
Version: 5.93.0
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-10 14:56 UTC by Henning
Modified: 2024-03-25 19:25 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henning 2024-02-10 14:56:36 UTC
To imitate some GNOME workflows etc., it would be essential to have support for some general things.

I go to systemsettings and try to define a specific key combination.

When entering "Super Super" for example some cryptic symbol combination appears in the input field, instead of "Meta+Meta". 

When entering something like "Fn+something" the Fn is not shown at all.

I dont know if this is some lowlevel issue but it causes a lot of key combos (like the double meta for things like krunner or the overview) to not work.

I know that "meta" alone is also not possible to assign at least through the GUI.

OS: Fedora Linux 39.20240206.0 (Kinoite) 
KDE Plasma: 5.27.10 
KDE Frameworks: 5.113.0 
Qt: 5.15.12 
Kernel: 6.6.14-200.fc39.x86_64 
Compositor: wayland
Comment 1 fanzhuyifan 2024-02-10 16:44:06 UTC
We can't do much about the Fn+Key part -- pressing the fn key does not send a keypress to the OS (with the exception of apple macs); it just reinterprets the key presses.
Comment 2 fanzhuyifan 2024-02-10 16:47:41 UTC
In plasma 6 wayland I can correctly assign Meta as a shortcut in system settings. But currently in system settings assigning multi-key shortcuts is not supported, perhaps that is what you want to change?
Comment 3 Henning 2024-02-11 15:02:45 UTC
no, in 5.27 just meta doesnt work, so this is a nice change. Not sure about multiple presses, Meta+Meta for example.

Okay understood the Fn part. This is entirely firmware then?
Comment 4 Nate Graham 2024-02-14 20:08:21 UTC
Please don't submit one bug report that requests a bunch of things. We need multiple bug reports if you want to request multiple changes, even if they seem related. See https://community.kde.org/Get_Involved/Issue_Reporting#Multiple_issues_in_a_single_Bugzilla_ticket
Comment 5 Henning 2024-02-15 13:34:12 UTC
changed it
Comment 6 Henning 2024-02-15 13:36:54 UTC
https://bugs.kde.org/show_bug.cgi?id=481365
Comment 7 fanzhuyifan 2024-02-15 13:38:18 UTC
Can't reproduce on plasma 6 wayland -- this definitely should work if the shortcut is configured to allow modifier only sequences
Comment 8 fanzhuyifan 2024-02-15 15:59:57 UTC
(In reply to fanzhuyifan from comment #7)
> Can't reproduce on plasma 6 wayland -- this definitely should work if the
> shortcut is configured to allow modifier only sequences

Actually can confirm. I can assign the Meta key as shortcut in system settings, but it doesn't actually get triggered. Other single modifiers, like Ctrl/Alt work.

Arch source build, plasma 6, wayland.
Comment 9 Nate Graham 2024-02-15 16:18:24 UTC
Are you sure it's not just conflicting with KWin's ModifierOnlyShortcut functionality? You might have to set that to none before Meta will work as a sole shortcut. See Bug 371560.
Comment 10 fanzhuyifan 2024-02-15 16:38:00 UTC
(In reply to Nate Graham from comment #9)
> Are you sure it's not just conflicting with KWin's ModifierOnlyShortcut
> functionality? You might have to set that to none before Meta will work as a
> sole shortcut. See Bug 371560.

Yes. For some reason Qt thinks it is getting Meta+Super_L, instead of Meta+Meta_Key.
Comment 11 Bug Janitor Service 2024-02-15 17:09:27 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kglobalacceld/-/merge_requests/44
Comment 12 fanzhuyifan 2024-03-20 17:02:05 UTC
Git commit 07ff1fac19d76977913f26976b597a204414c070 by Yifan Zhu.
Committed on 20/03/2024 at 17:00.
Pushed by fanzhuyifan into branch 'master'.

globalshortcutsregistry: treat super as meta

This conversion already exists in KKeySequenceRecorder.

M  +21   -9    src/globalshortcutsregistry.cpp

https://invent.kde.org/plasma/kglobalacceld/-/commit/07ff1fac19d76977913f26976b597a204414c070