Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -991,6 +991,8 @@ public static Selector getSelector (long value) {
public static final long sel_canBecomeKeyWindow = Selector.sel_canBecomeKeyWindow.value;
public static final long sel_canDragRowsWithIndexes_atPoint_ = Selector.sel_canDragRowsWithIndexes_atPoint_.value;
public static final long sel_canGoBack = Selector.sel_canGoBack.value;
public static final long sel_makeTextLarger = Selector.sel_makeTextLarger.value;
public static final long sel_makeTextSmaller = Selector.sel_makeTextSmaller.value;
public static final long sel_canGoForward = Selector.sel_canGoForward.value;
public static final long sel_canRedo = Selector.sel_canRedo.value;
public static final long sel_canShowMIMEType_ = Selector.sel_canShowMIMEType_.value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ public enum Selector {
, sel_canBecomeKeyWindow("canBecomeKeyWindow")
, sel_canDragRowsWithIndexes_atPoint_("canDragRowsWithIndexes:atPoint:")
, sel_canGoBack("canGoBack")
, sel_makeTextLarger("makeTextLarger:")
, sel_makeTextSmaller("makeTextSmaller:")
, sel_canGoForward("canGoForward")
, sel_canRedo("canRedo")
, sel_canShowMIMEType_("canShowMIMEType:")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ public boolean canGoBack() {
return OS.objc_msgSend_bool(this.id, OS.sel_canGoBack);
}

public void makeTextLarger() {
OS.objc_msgSend(this.id, OS.sel_makeTextLarger);
}

public void makeTextSmaller() {
OS.objc_msgSend(this.id, OS.sel_makeTextSmaller);
}

public boolean canGoForward() {
return OS.objc_msgSend_bool(this.id, OS.sel_canGoForward);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1586,6 +1586,10 @@ void handleEvent(long evtId) {
} else if (translatedKey == 'x') {
webView.cut (webView);
event.preventDefault();
} else if (translatedKey == '=' || translatedKey == '+') {
webView.makeTextLarger();
} else if (translatedKey == '-') {
webView.makeTextSmaller();
}
}
}
Expand Down
Loading