Ticket #28 (closed defect: fixed)
Use SWT.MOD1 instead of SWT.CONTROL
| Reported by: | axel@… | Owned by: | |
|---|---|---|---|
| Priority: | major | Keywords: | |
| Cc: |
Description
Especially when it comes to OKing the commit dialog. The following snippet might help:
/**
- Windows uses Ctrl for menu accelerators, Mac OS X uses Command. This
- method can be invoked to print the correct name of
- the modifier key. */
public static final String getNameOfMod1() {
return getNameOfKey(SWT.MOD1);
}
public static final String getNameOfKey(int keyCode) {
return LegacyActionTools?.findModifierString(keyCode);
}
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
