Bug 478515

Summary: Disabling "Enable menu accelerators" does not work
Product: [Applications] konsole Reporter: Jean-Francois Roy <jf>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED DUPLICATE    
Severity: normal CC: bodertz, danpaolella, florian.bescher22, steve_v
Priority: NOR Keywords: qt6
Version: 24.01.80   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=482628
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jean-Francois Roy 2023-12-14 16:39:28 UTC
SUMMARY

The "Enable menu accelerators" option in the General settings does not seem to work. It is disabled, and yet when I do Alt-F, the Konsole find panel activates instead of sending Alt-F to my shell.

You can also observe that just pressing Alt causes the underline to show up under the accelerator key/letter in the toolbar.

STEPS TO REPRODUCE
1. Disable (uncheck) "Enable menu accelerators" in General settings.
2. Press Alt-F in terminal (e.g. to advance the cursor in a shell).

OBSERVED RESULT

Konsole find panel appears.

EXPECTED RESULT

Alt-F sent to the shell.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.90.0
KDE Frameworks Version: 5.246.0
Qt Version: 6.6.1
Kernel Version: 6.6.6-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 32 × AMD Ryzen 9 7950X3D 16-Core Processor
Memory: 62.5 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 4090/PCIe/SSE2
Manufacturer: ASUS

ADDITIONAL INFORMATION

Using Plasma 6 beta 1 via Arch Linux kde-unstable packages.
Comment 1 cwo 2024-07-05 13:45:26 UTC
*** Bug 485493 has been marked as a duplicate of this bug. ***
Comment 2 Steve Vialle 2024-09-29 09:45:55 UTC
Still present in konsole 24.05.2 / plasma 6.1.5, renders konsole unusable for several high-profile CLI/TUI applications (emacs, mc, etc.)
Comment 3 flobsh 2024-11-02 19:40:35 UTC
Hello,

To be a bit more precise, this bug only concerns tool bar items. The menu bar accelerators are correctly disabled when the "Enable menu accelerators" option is unchecked.

From what I understood, this takes place in the `MainWindow::removeMenuAccelerator` method in `src/MainWindow.cpp`.
The method only modifies the accelerators for the menu bar: https://invent.kde.org/utilities/konsole/-/blob/e7cdecfb197761a885a50fa725578e939c3c740f/src/MainWindow.cpp#L192.

I tired to retrieve the actions of the tool bar to try to implement a fix but unfortunately I am very new to developping KDE apps so I don't know how to retrieve and modify them.
Comment 4 flobsh 2024-11-04 20:23:01 UTC
I think we can mark this bug as duplicate of 482628 now

*** This bug has been marked as a duplicate of bug 482628 ***