Bug 151289

Summary: kdelibs KPopupMenu creates shortcuts even if it should not
Product: [Unmaintained] kdelibs Reporter: eekaikko
Component: kdeuiAssignee: kdelibs bugs <kdelibs-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: martin
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description eekaikko 2007-10-24 18:12:34 UTC
Version:            (using KDE KDE 3.5.8)
Installed from:    Ubuntu Packages
OS:                Linux

We use a class which inherits KToolBarButton and has KPopupMenu. We populate the menu with items from a "database". The item texts will be used later and we don't want shortcuts for them. Previously this worked fine because according to the docs and in reality KPopupMenu did not create shortcuts. After upgrading to 3.5.8 KPopupMenu started acting erroneously, creating shortcuts even after adding setKeyboardShortcutsEnabled(false).

When I open a menu from KToolBarButton it does not have the shortcuts. If I close it and reopen it has shortcuts. Also, if I open first time and then move mouse pointer over the items they will get shortcuts one after another.
Comment 1 Maksim Orlovich 2007-10-24 19:29:27 UTC
Not sure about the behavior change, but this might help:
http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKAcceleratorManager.html#7f61103bd3e0a4928493aad29f64392a
Comment 2 Martin Koller 2012-09-08 20:11:39 UTC
is this still a problem in KDE 4.9.1 ? I did not test it, but probably with your application it is very simple to do so.
Comment 3 Christoph Feck 2013-07-24 13:47:38 UTC
No response, changing status. Please reopen, if you have more information.