Community
Participate
Working Groups
Build ID: I20090513-2000 Steps To Reproduce: 1. Open any dialog containing a cancel button. (e.g. Preferences.) 2. On a Mac, hit Command-. Nothing happens. More information: The Command-. (i.e. ⌘-period) keybinding is equivalent to the cancel button on Cocoa dialogs. Eclipse 3.5 is implemented in Cocoa, but this keybinding does not work. See attachment for further information.
Created attachment 137856 [details] Screenshot showing cancel button (Compare behaviour to "true" Cocoa apps, such as TextEdit.)
Not for 3.5 NOTE: I am assuming you are seeing the bug on caron, not cocoa due to the OS field of this bug report. Please change it if I am wrong.
The meaning of Command - . is something that needs to be handled at the UI level, not SWT. The SWT has no concept of a button designated as a Cancel button (though that would be a nice addition.) Bug 300620 is now fixed, so command-. is making its way into the SWT event stream in Cocoa.
I don't see Cmd+. listed in the HIG. http://developer.apple.com/library/mac/#documentation/UserExperience/Conceptual/AppleHIGuidelines/XHIGKeyboardShortcuts/XHIGKeyboardShortcuts.html
Escape and command-period are considered to be synonymous. See [NSResponder cancelOperation:] -- escape and command-period both invoke that method. Also, http://developer.apple.com/library/mac/#documentation/UserExperience/Conceptual/AppleHIGuidelines/XHIGUserInput/XHIGUserInput.html talks about Escape being an alternative to command-period.
See also "Dismissing Dialogs" here: http://developer.apple.com/library/mac/#documentation/UserExperience/Conceptual/AppleHIGuidelines/XHIGWindows/XHIGWindows.html#//apple_ref/doc/uid/20000961-BABCAJID It says: "Always map the keyboard shortcut Command-period and the Esc (Escape) key to the Cancel button." I think you should first try a simple command/handler that is only active in dialogs and that sends an SWT.TRAVERSE_ESCAPE event when Command+. has been pressed.
(In reply to comment #6) > See also "Dismissing Dialogs" here: > http://developer.apple.com/library/mac/#documentation/UserExperience/Conceptual/AppleHIGuidelines/XHIGWindows/XHIGWindows.html#//apple_ref/doc/uid/20000961-BABCAJID Thanks for finding this -- I knew it was documented somewhere but was having trouble finding it.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.