| Summary: | [Commands] request: Close dialogs on Command+W | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Kaj Hejer <kaj.hejer> |
| Component: | UI | Assignee: | Paul Webster <pwebster> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P5 | CC: | eclipse, markus.kell.r, Silenio_Quarti, snorthov |
| Version: | 3.2 | Keywords: | helpwanted |
| Target Milestone: | --- | ||
| Hardware: | Macintosh | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
|
Description
Kaj Hejer
Steve, should we make Cmd+w send a SWT.Traverse event with detail=SWT.TRAVERSE_ESCAPE? Sounds ok. I don't have a Mac here at EclipseCon. Can you verify the statement that "most windows can be closed" on a bunch of native apps? Also, does Eclipse use Cmd+W for anything (it shouldn't)? Apps usually have a MenuItem with an accelerator Cmd+w that closes the active window. The problem with eclipse is that the menu bar is cleared when the Find/Replace dialog is up. Ok, I don't think we should do this. It sounds like this should be done by those above us, not SWT. Ok, moving to UI to get their thoughts. Okay, we could do this at the workbench level. I'm not convinced that is great idea, as this means MOD1+W would close dialogs on all platforms. Since the user asks for platform-specific behaviour, it is probably be better to handle this in SWT land. If UI were to do it, we would do the following: + Add a default handler for the "Close" command that closes the active shell. + Change the "M1+W" binding to be in dialogAndWindow (rather than window). I don't think UI should do this unless they step up to a real, Mac style UI where the menu bar is not replaced when a dialog comes up. This would require new API in Display (Display.setMenuBar()) and for all code in Eclipse to be changed to NEVER call Shell.setMenuBar(). Display.setMenuBar() would do nothing on the other platforms. Since this is a huge amount of work and relies on API that is not there yet, we shouldn't do this. I mean "unless we step up" rather than "unless they step up". Moving Dougs bugs *** This bug has been marked as a duplicate of bug 94153 *** |