Bug 512473

Summary: Global menu displays wrong accelerators and cannot show menus when activating shortcut keys
Product: [Plasma] plasmashell Reporter: sekatol
Component: Global Menu widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kde, kdedev, mvourlakos
Priority: NOR    
Version First Reported In: 6.5.3   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description sekatol 2025-11-22 15:07:59 UTC
SUMMARY
Global menu cannot show correctly when activating shortcut keys.

STEPS TO REPRODUCE
1. Add global menu widget to a panel
2. Open a application that supports global menu (for example, dolphin)
3. When pressing alt, there is a chance that the accelerator key is displayed wrong and user cannot open it using keyboard shortcut.
As for dolphin, the global menu is:
    File Edit View Go Tools Settings Help Search
When pressing alt: (<underline mark>)
    F<i>le E<d>it Vie<w> G<o> Too<l>s Setti<n>gs Hel<p> Search
When pressing alt+F for the first time after the application is launched, the file menu shows. But after pressed esc to close it and press alt+F for the second time, it doesn't shows.

OBSERVED RESULT
1. Menu accelerators is shown incorrectly:
    F<i>le E<d>it Vie<w> G<o> Too<l>s Setti<n>gs Hel<p> Search
2. Pressing shortcut keys does not evoke the menu

EXPECTED RESULT
1. Menu accelerators is shown correctly:
    <F>ile <E>dit <V>iew <G>o <T>ools <S>ettings <H>elp Se<a>rch
2. Pressing shortcut keys evokes the menu

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.5.3
KDE Frameworks Version: 6.20.0
Qt Version: 6.10.0
Kernel Version: 6.17.8-arch1-1 (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION

(No response)