KPopupMenu (& hence K-Menu) keyboard navigation patch

Hamish Rodda meddie at yoyo.its.monash.edu.au
Sat Apr 27 08:18:43 BST 2002


The attached patch changes the method of keyboard navigation of the K-Menu and 
provides this fuctionality to any programmer using KPopupMenu who chooses so. 
It does so with an incremental search algorithm (eg. type "gr" for 
"graphics"), consistent with other areas of KDE (eg. konqueror navigation), 
and gives user feedback by underlining the currently entered key sequence.

This area has been lacking throughout KDE 2, and recently a separate method 
was added to cvs head, where single-key shortcuts are added programmatically. 
Recent discussions on kde-usability found that this method is not optimal 
because:

1. Shortcuts will change when the menu contents change.
2. Items for which a unique shortcut cannot be determined are "left out".
3. Accidental execution of a program can occur.

It was felt that the first two preclude the use of automatic shortcut 
assignment in this case.

Are there any objections to committing this patch to CVS?

Cheers,

Hamish.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdeui-20020427.patch
Type: text/x-diff
Size: 10867 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20020427/b37e235a/attachment.patch>


More information about the kde-core-devel mailing list