Summary: | Impossible to set Alt+Print shortcut | ||
---|---|---|---|
Product: | [Applications] systemsettings | Reporter: | Patrick Silva <bugseforuns> |
Component: | kcm_keys | Assignee: | Michael Jansen <kde> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | 7dab773c0c, antkaid+bugskde, aria, aspotashev, bednarczyk.pawel, bluedogerino+kde, codestruct, com-kde, ddascalescu+kde, fanzhuyifan, grzesiek11, karl, kde, kde, kderemie, nate, postix, servbul, sudhir, trufanovan, yanp.bugz |
Priority: | HI | ||
Version: | 5.20.3 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/kglobalacceld/-/commit/da5f52b10d8d5436c6787f20a149450782ddcc56 | Version Fixed In: | 6.0 |
Sentry Crash Report: | |||
Bug Depends on: | |||
Bug Blocks: | 362061 |
Description
Patrick Silva
2017-10-27 15:17:07 UTC
Sorry, I meant "... does NOT allow". Me too By the way "Win" key is not available as modifier too. But Kde menus are still activated by this combination I still have this problem with: KDE Plasma Version: 5.14.3 KDE Frameworks Version: 5.52.0 Qt Version: 5.11.2 *** Bug 405198 has been marked as a duplicate of this bug. *** Still a problem in the new KCM, and not fixed with https://phabricator.kde.org/D29292. Other shortcuts with Alt as the only modifier key seem to work, but Alt+Print does not. Maybe an issue with KKeySequence's focus? That's probably because alt+print is mapped as sysrq Perhaps we should disallow setting that shortcut in the KCM, then? Disallow? I mean it is currently not possible Oh duh. So I guess we just need some kind of notification so the user knows why it's not allowed, or else they think it's a bug. *** Bug 432848 has been marked as a duplicate of this bug. *** I just had a look again and I get after releasing one of they key a delayed KeyPress and KeyRelease event with Key=SysRq as nativeVirtualKey. https://doc.qt.io/qt-5/qkeyevent.html#nativeVirtualKey So it might be possible to show a warning or info box, just have to think about the best way to do this. *** Bug 389787 has been marked as a duplicate of this bug. *** *** Bug 413264 has been marked as a duplicate of this bug. *** *** Bug 434861 has been marked as a duplicate of this bug. *** Is there any way this can be made to work? Loving KDE and trying to port over my "Windows shortcut instincts" and really this is the only thing I couldn't replicate near perfectly! Is the reason that it's mapped to sysrq as one comment mentions? (https://en.wikipedia.org/wiki/Magic_SysRq_key) PS: WinKey+PrintScreen at least is a close workaround and no longer opens the KDE menu when used for it. PPS: If this bug matters to you, please VOTE for it! Is there maybe a way to manually edit the shortcut from Alt+SysReq to Alt+Print in Spectacle? For me, it looks like just an issue of the shortcut recorder, and maybe if it's written correct, it will work? Please suggest where this shortcut is saved to try to edit it manually. *** Bug 474844 has been marked as a duplicate of this bug. *** For some reason I cannot vote for this... If I could, I would. Any news? In regards to the SysRq references... I believe SysRq commands can successfully co-exist with Alt-PrtSc taking screenshots. I'm observing this on Xubuntu 22.04 with Xfce 4.16: even though PrtSc is indeed working as SysRq, so with "SysRq, h" I can send help messages into dmesg (even from the X session), Xfce still perfectly handles Alt+PrtSc for the screenshots. Could KDE just do the same if the user wants to use Alt+PrtSc? A possibly relevant merge request was started @ https://invent.kde.org/plasma/kglobalacceld/-/merge_requests/40 A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kglobalaccel/-/merge_requests/104 A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/5051 A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kguiaddons/-/merge_requests/114 Git commit a6bc3a92e0ae0b99d9306dac2fe6b50cda04d2f9 by Yifan Zhu. Committed on 28/01/2024 at 23:25. Pushed by fanzhuyifan into branch 'master'. globalshortcutsregistry: treat SysReq as Alt+Print For shortcut purposes, treat SysReq as Alt+Print. This enables setting shortcuts like Alt+Print. Known limitation: when using Mod(s)+Alt+Print as shortcut, only works when Alt is released before Mod(s). Also doesn't work in MultiKey shortcuts. M +10 -3 src/globalshortcutsregistry.cpp https://invent.kde.org/plasma/kglobalacceld/-/commit/a6bc3a92e0ae0b99d9306dac2fe6b50cda04d2f9 Git commit e743dbc58da5ce01238f484f26454938b4e88a21 by Yifan Zhu. Committed on 29/01/2024 at 17:09. Pushed by fanzhuyifan into branch 'master'. recorder/KKeySequenceRecorderPrivate: treat SysReq as Alt+Print For shortcut purposes, treat SysReq as Alt+Print. This enables setting shortcuts like Alt+Print. Known limitation: when using Mod(s)+Alt+Print as shortcut, only works when Alt is released before Mod(s). M +11 -0 src/recorder/kkeysequencerecorder.cpp https://invent.kde.org/frameworks/kguiaddons/-/commit/e743dbc58da5ce01238f484f26454938b4e88a21 Git commit da5f52b10d8d5436c6787f20a149450782ddcc56 by Yifan Zhu. Committed on 29/01/2024 at 17:17. Pushed by fanzhuyifan into branch 'Plasma/6.0'. globalshortcutsregistry: treat SysReq as Alt+Print For shortcut purposes, treat SysReq as Alt+Print. This enables setting shortcuts like Alt+Print. Known limitation: when using Mod(s)+Alt+Print as shortcut, only works when Alt is released before Mod(s). Also doesn't work in MultiKey shortcuts. (cherry picked from commit a6bc3a92e0ae0b99d9306dac2fe6b50cda04d2f9) M +10 -3 src/globalshortcutsregistry.cpp https://invent.kde.org/plasma/kglobalacceld/-/commit/da5f52b10d8d5436c6787f20a149450782ddcc56 |