Bug 278627

Summary: [Mac] Command+. does not "cancel" dialogs
Product: [Eclipse Project] Platform Reporter: Michael Stillwell <mjs>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: cocoakevin, lshanmug, markus.kell.r, pinnamur, prakash, pwebster, remy.suen, skovatch, steve_northover
Version: 3.5   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:
Attachments:
Description Flags
Screenshot showing cancel button none

Description Michael Stillwell CLA 2009-06-01 10:58:19 EDT
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. &#8984;-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.
Comment 1 Michael Stillwell CLA 2009-06-01 11:07:49 EDT
Created attachment 137856 [details]
Screenshot showing cancel button

(Compare behaviour to "true" Cocoa apps, such as TextEdit.)
Comment 2 Steve Northover CLA 2009-06-01 11:18:26 EDT
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.
Comment 3 Scott Kovatch CLA 2010-10-25 13:34:52 EDT
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.
Comment 5 Scott Kovatch CLA 2010-10-26 01:59:11 EDT
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.
Comment 6 Markus Keller CLA 2010-10-29 05:00:00 EDT
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.
Comment 7 Scott Kovatch CLA 2010-10-29 11:50:15 EDT
(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.
Comment 8 Eclipse Webmaster CLA 2019-09-06 15:31:59 EDT
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.