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.
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.
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.
By NetBeans's A11Y guidelines Yes/No dialog has a default mnemonic. 'Enter' for Yes and 'Escape' for No. IMHO I close as WONTFIX.
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...
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
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.
Guidance from HIE team needed (I'd vote for WONTFIX though:)
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 ?