Community
Participate
Working Groups
Broken in I20100119-0800 and 3.5 Cocoa, works in 3.4.2 Carbon. Command+. does not work any more in Trees. I just get an OS beep, and the KeyDown event for Command+. is missing. In Eclipse, this is e.g. visible in the Search view, where Command+. should step to the next match. The reverse (Command+Shift+.) still works. In the Java Editor, Command+. still works (jumps to next annotation).
No key event is coming from the OS in this case. Not sure why we get the key event on Shell, but not on Tree. Cmd-Period is a native keybinding to close a dialog - maybe that's related somehow.
See http://src.chromium.org/svn/branches/375/src/chrome/browser/renderer_host/render_widget_host_view_mac.mm Look for _wantsKeyDownForEvent. We need to implement this to return true on anything that can be a first responder. By doing that we will get cmd-. and a collection of other keys we special-case right now in Shell.windowSendEvent.
Either we need to fix this or add a README entry.
*** Bug 328504 has been marked as a duplicate of this bug. ***
This was bulk-moved to SWT-triaged when Kevin left. Yes, we should fix this, as it would take care of cmd-. not being processed as a dialog-cancel message, either.
I'm wrong on two conclusions today. First, _wantsKeyDownForEvent covers everything _but_ command-., in my testing. That's because command-. is handled as cancelOperation:, which gets sent to the first responder. That's easy to implement, and it's API. The code in Shell for special processing of ctrl-page up, down, etc. works, and switching to SPI, even though it's shown in WebKit isn't a good idea, so I'll leave that alone for now. Fixed in HEAD > 20101025. The UI layer should add a key binding for command-. in a dialog that maps to the Cancel button.
Verified in I20101028-1441. > The UI layer should add a key binding for command-. > in a dialog that maps to the Cancel button. Bug 278627.