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

Summary: Add accelerator keys in "call edit command" dialog
Product: platform Reporter: ats37 <ats37>
Component: Dialogs&WizardsAssignee: Stanislav Aubrecht <saubrecht>
Status: NEW ---    
Severity: blocker CC: jrojcek
Priority: P3 Keywords: UI
Version: 5.x   
Hardware: PC   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:

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 ?