| Summary: | Current tool does not remain active (locked) if the user is pressing the ctrl key on Mac OS | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] GMF-Runtime | Reporter: | Andreas Muelder <Andreas.Muelder> | ||||
| Component: | General | Assignee: | Aurelien Pupier <apupier> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | apupier | ||||
| Version: | unspecified | Flags: | apupier:
kepler+
|
||||
| Target Milestone: | 1.7.0 | ||||||
| Hardware: | PC | ||||||
| OS: | Mac OS X - Carbon (unsup.) | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Using SWT.MOD1 will cause both platforms to Ctrl key? Or is it another key on Mac? In this case, it will require to also modify the tooltip. (In reply to comment #0) > Build Identifier: 20110218-0911 > > The ctrl+click is reserved for the context menu on Mac. > The handleFinished method in the CreationTool class should look like this > to work properly on MacOs X. > > protected void handleFinished() { > if (!getCurrentInput().isModKeyDown(SWT.MOD1)) { > super.handleFinished(); > } else { > reactivate(); > } > } > > Reproducible: Always Hi Aurelien, SWT.MOD1 is CMD on Mac, CTRL on Windows/Linux. Regards, Andreas Created attachment 223828 [details]
patch
patch attached
patch applied on HEAD |
Build Identifier: 20110218-0911 The ctrl+click is reserved for the context menu on Mac. The handleFinished method in the CreationTool class should look like this to work properly on MacOs X. protected void handleFinished() { if (!getCurrentInput().isModKeyDown(SWT.MOD1)) { super.handleFinished(); } else { reactivate(); } } Reproducible: Always