Commit b988176
committed
Accelerator: refine meaning of the caret (^)
On OS X, it was previously impossible to define a plugin's shortcut as
"control KEY" for any key. The control was always replaced with meta.
Ultimately, I consider this limitation to be a bug.
To fix it, the caret character now expands to control on non-Mac
platforms, and expands to meta (i.e., the command key) on Mac platforms.
99% of the time, this is the desired behavior for keyboard shortcuts.
However, if you actually want a plugin to always use the control key
across all platforms, you can now spell it out by writing "control" or
"ctrl" and it will no longer be replaced by meta on OS X.
Technically, this is a backwards incompatible change in behavior which
one could argue warrants a bump to 3.0.0 according to SemVer. However:
* It is not a backwards-incompatible change to the API proper.
* It is unlikely that any downstream code other than ImageJ2 will be
affected by the change.
* The fix is trivial (replace spelled out "control " and "ctrl " strings
with "^" in affected plugins).
* The previous behavior was inflexible and undesirable.
So we'll leave this as a "bug-fix" instead.1 parent 3ae109d commit b988176
1 file changed
Lines changed: 11 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
| 112 | + | |
112 | 113 | | |
113 | 114 | | |
114 | 115 | | |
| |||
125 | 126 | | |
126 | 127 | | |
127 | 128 | | |
128 | | - | |
129 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
130 | 132 | | |
131 | 133 | | |
132 | 134 | | |
| |||
149 | 151 | | |
150 | 152 | | |
151 | 153 | | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | 154 | | |
159 | 155 | | |
160 | 156 | | |
| |||
170 | 166 | | |
171 | 167 | | |
172 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
173 | 175 | | |
0 commit comments