Commit 1ca13d3
committed
Enable zooming on macOS WebKit control with Command +/- keys
If keydown events for Command +/= or Command - are not consumed by any
event handler, invoke the native methods `makeTextLarger` or
`makeTextSmaller` on the WebKit control to provide zooming functionality
on macOS.1 parent 72ae11b commit 1ca13d3
4 files changed
Lines changed: 16 additions & 0 deletions
File tree
- bundles/org.eclipse.swt
- Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa
- Eclipse SWT WebKit/cocoa/org/eclipse/swt/browser
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
991 | 991 | | |
992 | 992 | | |
993 | 993 | | |
| 994 | + | |
| 995 | + | |
994 | 996 | | |
995 | 997 | | |
996 | 998 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| 237 | + | |
| 238 | + | |
237 | 239 | | |
238 | 240 | | |
239 | 241 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
34 | 42 | | |
35 | 43 | | |
36 | 44 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1586 | 1586 | | |
1587 | 1587 | | |
1588 | 1588 | | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
1589 | 1593 | | |
1590 | 1594 | | |
1591 | 1595 | | |
| |||
0 commit comments