Bug 501693

Summary: The Menu key opens the context menu only in Qt applications
Product: [Frameworks and Libraries] frameworks-kglobalaccel Reporter: Daniil <daniil-demyanenko1>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: fanzhuyifan, nicolas.fella
Priority: NOR    
Version First Reported In: 6.3.0   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: evtest, when click menu key

Description Daniil 2025-03-18 13:43:01 UTC
Created attachment 179540 [details]
evtest, when click menu key

SUMMARY
By pressing Shift+F10, the context menu can be opened in any application, but by pressing Menu - only in Qt applications.
To add the ability to open the context menu using the Menu key, I added a keyboard shortcut in the settings. At the same time, there was already a check mark next to the "Menu" by default, but it did not change anything. The hotkey I added was signed not as a "Menu", but as a "Keyboard menu".

STEPS TO REPRODUCE
1. Add the Menu key to open the context menu in the settings.
2. Successfully open the context menu in the Qt application.
3. In other applications, only Shift+F10 will work.

SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux 
KDE Plasma Version: 6.3.2
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.13.5-2-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 6800H with Radeon Graphics
Memory: 13.3 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: TIMI
Product Name: Redmi Book Pro 15 2022

ADDITIONAL INFORMATION
My laptop initially did not detect the Menu key (fn+r_ctrl), did not change the r_ctrl keystroke event code, so I added the following udev rule:
```
cat /etc/udev/hwdb.d/90-custom-keyboard.hwdb
evdev:atkbd:dmi:*  
 KEYBOARD_KEY_dd=menu
```
Comment 1 Nicolas Fella 2025-03-18 14:05:09 UTC
It is the responsibility of the applications to handle the menu key.

The entries in the systemsetting module are merely recommendations for which shortcuts KDE applications should use, but they cannot be enforced  to work for all applications
Comment 2 Daniil 2025-03-18 14:13:16 UTC
(In reply to Nicolas Fella from comment #1)
> It is the responsibility of the applications to handle the menu key.

But in KDE 5, the Menu key worked in all applications, not just Qt.