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 80587 - Add accelerator keys in "call edit command" dialog
Summary: Add accelerator keys in "call edit command" dialog
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Dialogs&Wizards (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Stanislav Aubrecht
Keywords: UI
Depends on:
Reported: 2006-07-19 13:29 UTC by ats37
Modified: 2013-09-04 13:46 UTC (History)
1 user (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description ats37 2006-07-19 13:29:08 UTC
When I try to type in a source file that's read-only due to not being checked
out in my Clearcase view, I get a useful popup dialog asking "Do you wish to
call edit command?".  It would be more intuitive if the Yes/No buttons also
responded to Y/N keypresses (or, failing that, Alt-Y/Alt-N) to select the
answer.  Admittedly, the buttons are set up as the default & cancel actions, so
I can use Enter and Escape,  or tab to the right one and hit space, but most
Windows Yes/No & Yes/No/Cancel dialogs also have the accelerator key so that's
what I'm most used to using.
Comment 1 Martin Entlicher 2006-07-19 13:45:22 UTC
This is an enhancement for openide (or core?), where the dialog is created. All
Yes/No and Yes/No/Cancel dialogs in the IDE should behave the same way.
Comment 2 Jiri Rechtacek 2006-07-19 14:36:05 UTC
By NetBeans's A11Y guidelines Yes/No dialog has a default mnemonic. 'Enter' for
Yes and 'Escape' for No. IMHO I close as WONTFIX.
Comment 3 ats37 2006-07-20 18:08:03 UTC
So what consideration do the A11y guidelines give to normal platform-specific
conventions?  Or should that be down to the Swing L&F?  In nearly every native
Windows application I'm using, Yes/No dialogs respond to Y/N keypresses. 
Netbeans doesn't...
Comment 4 Jiri Rechtacek 2006-07-21 08:48:32 UTC
Jano, could you please comment this enhancement? What handling of mnemonics in
Yes/No and Yes/No/Cancel is supposed in NetBeans dialog framework? Thanks
Comment 5 jrojcek 2006-07-31 11:17:18 UTC
I tend to say we should follow the native behavior in case of confirmation dialogs. I'll go and check with 
other UI folks and let you know.
Comment 6 Stanislav Aubrecht 2012-04-26 08:12:05 UTC
Guidance from HIE team needed (I'd vote for WONTFIX though:)
Comment 7 Petr Somol 2012-05-11 13:01:02 UTC
IMHO the best solution here would be to do something that would adhere to NB conventions but also that would not unnecessarily go against natural user instincts. So, in the case of Yes/No dialogs I would prefer to have both mnemonics/shortcuts active at once, i.e., 'Enter' and 'Y' for Yes and 'Escape' and 'N' for No. Is this technically doable within the current window system ?