Bug 203962

Summary: Alt key is broken in code completion
Product: [Developer tools] kdevplatform Reporter: Alexander <ashaduri>
Component: shellAssignee: kdevelop-bugs-null
Status: RESOLVED DUPLICATE    
Severity: normal CC: david.nolden.kde, olivier.jg
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Alexander 2009-08-15 16:49:15 UTC
Version:           SVN (using KDE 4.3.0)
OS:                Linux
Installed from:    SuSE RPMs

According to http://zwabel.wordpress.com/2008/12/10/code-navigation-in-kdevelop4-meet-the-magic-modifier/ , there are several things the Alt key does in KDevelop. Most of them are broken for me.

In code completion popup, the following is broken:
1. Invoke code completion.
2. Press alt. The entry is expanded.
3. Release alt. The completion popup is hidden.
4. Press the down arrow. The File menu is opened at this point.

Note that If doing this: Press alt, press and release down arrow, release alt - in this case the popup stays and I can navigate with the arrow keys.

Also, there is no "show tooltip on Alt press, hide it on release" functionality (from the blog entry) either. It just goes to the File menu.

Overall, the Alt key is universally used as the "go to menu" key; is it really wise to make it behave otherwise?
Comment 1 David Nolden 2009-08-15 17:06:43 UTC
The problem is probably that you don't have the code browser toolview, which contains the code that prevents that menu-shortcut from working. I guess that code should be moved somewhere else, but for now, you can just add the code browser toolview.

The ALT key menu shortcut is not universal, but it is style-dependent. For example the oxygen style does not have that shortcut enabled. And for the other styles, we replace a useless shortcut with a useful one..
Comment 2 Alexander 2009-08-15 17:46:00 UTC
Adding the code browser toolview seems to fix it.
Note that the "show tooltip while Alt is pressed" is does not work if the code browser toolview happens to be active. I guess this is by design...
Comment 3 David Nolden 2009-08-15 17:48:35 UTC
Yes that is by design, because the code-browser shows the same information.
Comment 4 Olivier.jg 2010-12-17 09:44:45 UTC
So this is an invalid bug then?
Comment 5 Milian Wolff 2010-12-17 13:04:18 UTC
more a duplicate, or the other way around. anyways, marking this one as a duplicate and will fix it later today.

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