File tree Expand file tree Collapse file tree 4 files changed +16
-0
lines changed
Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa
Eclipse SWT WebKit/cocoa/org/eclipse/swt/browser Expand file tree Collapse file tree 4 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -991,6 +991,8 @@ public static Selector getSelector (long value) {
991991public static final long sel_canBecomeKeyWindow = Selector .sel_canBecomeKeyWindow .value ;
992992public static final long sel_canDragRowsWithIndexes_atPoint_ = Selector .sel_canDragRowsWithIndexes_atPoint_ .value ;
993993public static final long sel_canGoBack = Selector .sel_canGoBack .value ;
994+ public static final long sel_makeTextLarger = Selector .sel_makeTextLarger .value ;
995+ public static final long sel_makeTextSmaller = Selector .sel_makeTextSmaller .value ;
994996public static final long sel_canGoForward = Selector .sel_canGoForward .value ;
995997public static final long sel_canRedo = Selector .sel_canRedo .value ;
996998public static final long sel_canShowMIMEType_ = Selector .sel_canShowMIMEType_ .value ;
Original file line number Diff line number Diff line change @@ -234,6 +234,8 @@ public enum Selector {
234234 , sel_canBecomeKeyWindow ("canBecomeKeyWindow" )
235235 , sel_canDragRowsWithIndexes_atPoint_ ("canDragRowsWithIndexes:atPoint:" )
236236 , sel_canGoBack ("canGoBack" )
237+ , sel_makeTextLarger ("makeTextLarger:" )
238+ , sel_makeTextSmaller ("makeTextSmaller:" )
237239 , sel_canGoForward ("canGoForward" )
238240 , sel_canRedo ("canRedo" )
239241 , sel_canShowMIMEType_ ("canShowMIMEType:" )
Original file line number Diff line number Diff line change @@ -31,6 +31,14 @@ public boolean canGoBack() {
3131 return OS .objc_msgSend_bool (this .id , OS .sel_canGoBack );
3232}
3333
34+ public void makeTextLarger () {
35+ OS .objc_msgSend (this .id , OS .sel_makeTextLarger );
36+ }
37+
38+ public void makeTextSmaller () {
39+ OS .objc_msgSend (this .id , OS .sel_makeTextSmaller );
40+ }
41+
3442public boolean canGoForward () {
3543 return OS .objc_msgSend_bool (this .id , OS .sel_canGoForward );
3644}
Original file line number Diff line number Diff line change @@ -1586,6 +1586,10 @@ void handleEvent(long evtId) {
15861586 } else if (translatedKey == 'x' ) {
15871587 webView .cut (webView );
15881588 event .preventDefault ();
1589+ } else if (translatedKey == '=' || translatedKey == '+' ) {
1590+ webView .makeTextLarger ();
1591+ } else if (translatedKey == '-' ) {
1592+ webView .makeTextSmaller ();
15891593 }
15901594 }
15911595 }
You can’t perform that action at this time.
0 commit comments