This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 157076 - Keymap panel has two search fields instead of one
Summary: Keymap panel has two search fields instead of one
Status: RESOLVED INVALID
Alias: None
Product: editor
Classification: Unclassified
Component: Key bindings (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-19 16:29 UTC by Ondrej Langr
Modified: 2012-12-10 10:54 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ondrej Langr 2009-01-19 16:29:33 UTC
There are two search fields in the current implementation of the keymap panel, while the UI specification defines just
one, multifunctional, field. 

This field should work for regular strings when user starts typing a string and for shortcuts when a functional key is
hit when a focus is in this field. 

UI specification: http://ui.netbeans.org/docs/ui/keymap_option_panel/
Comment 1 Svata Dedic 2012-11-30 09:35:52 UTC
With all the respect to the later parts of the analysis, the evaluation of IDEA + Eclipse solutions for search is not correct, and so I believe the conclusion proposed to be applied in NetBeans is also not good.

IntelliJ, in fact, uses search box for action names only. The tiny icons to the right of the textfield open a modeless popup with an additional text field for shortcut-based searches.

While Eclipse works as presented, it's important to note that Eclipse's usability is quite bad - the user must type modifier combination *exactly* as shown, that is "Shift+Ctrl" finds a shortcut, while "Ctrl+Shift" does not. It's easy to mistype or swap the modifiers without assistance of the text field. The implementation shoudl 'normalize' the shortcut first, which is not done in Eclipse.

Also note that the textfield cannot assist the user with capturing keys and presenting the key description, since it cannot be determined whether the user pressed Ctrl+Shift+LEFT in order to move the cursor back a word and correct it, or the user really intends to search for Ctrl+Shift+LEFT.

Therefore I think that we need to have 2 input boxes, as done IntelliJ. I am open to suggestions regarding positioning the boxes, or maybe hiding one (the less important one) as done in IntelliJ, if it improves appearance of the Options dialog.

Marking as INVALID - Petr if you see a value in rearranging the search boxes, please reopen.
Comment 2 Petr Somol 2012-12-10 10:54:53 UTC
> Also note that the textfield cannot assist the user with capturing keys and
> presenting the key description, since it cannot be determined whether the user
> pressed Ctrl+Shift+LEFT in order to move the cursor back a word and correct it,
> or the user really intends to search for Ctrl+Shift+LEFT.

This is actually the key point IMHO. The fact that a unified textfield would have to use unreliable heuristics to guess whether the typed content is meant to be the shortcut to be found or just a shortcut to edit the search string - this would be a serious usability problem. Thus I vote against it as well.