Skip to content

Commit a85ac6e

Browse files
hansohanso
authored andcommitted
Sets focusNode to canvas for JSAppletUI
1 parent 21e70eb commit a85ac6e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sources/net.sf.j2s.java.core/src/swingjs/plaf/JSAppletUI.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ public void adjustCanvasForMenuBar() {
5757
}
5858

5959
public HTML5Canvas getCanvas() {
60-
return (HTML5Canvas) c.getAppContext().getThreadGroup().秘html5Applet._getHtml5Canvas();
60+
Object canvas = this.c.getAppContext().getThreadGroup().秘html5Applet._getHtml5Canvas();
61+
focusNode = (DOMNode) canvas;
62+
return (HTML5Canvas) canvas;
6163
}
6264

6365

0 commit comments

Comments
 (0)