Bug 278627 - [Mac] Command+. does not "cancel" dialogs
Summary: [Mac] Command+. does not "cancel" dialogs
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.5   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-01 10:58 EDT by Michael Stillwell CLA
Modified: 2019-09-06 15:31 EDT (History)
9 users (show)

See Also:


Attachments
Screenshot showing cancel button (112.73 KB, image/png)
2009-06-01 11:07 EDT, Michael Stillwell CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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. ⌘-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.