Skip to content

Commit f21a6f0

Browse files
committed
j2sApplet.js // BH 2022.06.23 implements J2S._lastAppletID
1 parent 25d2b3b commit f21a6f0

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed
23.2 KB
Binary file not shown.

sources/net.sf.j2s.java.core/srcjs/js/j2sApplet.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// j2sApplet.js BH = Bob Hanson hansonr@stolaf.edu
22

3+
// BH 2022.06.23 implements J2S._lastAppletID
34
// BH 2022.01.12 adds pointer option
45
// BH 2021.09.22 default file save as application/octet-stream, not text/plain
56
// BH 2020.12.31 full 64-bit long
@@ -2060,10 +2061,12 @@ if (ev.keyCode == 9 && ev.target["data-focuscomponent"]) {
20602061

20612062
//who && who.focus();
20622063

2063-
if (!who || doSet)
2064+
if (!who || doSet) {
20642065
J2S._mouseOwner = who;
2065-
else if (J2S._mouseOwner == who)
2066+
who && who.applet && (J2S._lastAppletID = who.applet._id);
2067+
} else if (J2S._mouseOwner == who) {
20662068
J2S._mouseOwner = who = null;
2069+
}
20672070
if (target || !who)
20682071
J2S._mouseTarget = target || null;
20692072
}

sources/net.sf.j2s.java.core/srcjs/swingjs2.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10686,6 +10686,7 @@ return jQuery;
1068610686
})(jQuery,document,"click mousemove mouseup touchmove touchend", "outjsmol");
1068710687
// j2sApplet.js BH = Bob Hanson hansonr@stolaf.edu
1068810688

10689+
// BH 2022.06.23 implements J2S._lastAppletID
1068910690
// BH 2022.01.12 adds pointer option
1069010691
// BH 2021.09.22 default file save as application/octet-stream, not text/plain
1069110692
// BH 2020.12.31 full 64-bit long
@@ -12746,10 +12747,12 @@ if (ev.keyCode == 9 && ev.target["data-focuscomponent"]) {
1274612747

1274712748
//who && who.focus();
1274812749

12749-
if (!who || doSet)
12750+
if (!who || doSet) {
1275012751
J2S._mouseOwner = who;
12751-
else if (J2S._mouseOwner == who)
12752+
who && who.applet && (J2S._lastAppletID = who.applet._id);
12753+
} else if (J2S._mouseOwner == who) {
1275212754
J2S._mouseOwner = who = null;
12755+
}
1275312756
if (target || !who)
1275412757
J2S._mouseTarget = target || null;
1275512758
}
@@ -14039,6 +14042,7 @@ if (ev.keyCode == 9 && ev.target["data-focuscomponent"]) {
1403914042

1404014043
// Google closure compiler cannot handle Clazz.new or Clazz.super
1404114044

14045+
// BH 2022.04.19 TypeError and ResourceError gain printStackTrace$() methods
1404214046
// BH 2022.03.19 String.valueOf(Double) does not add ".0"
1404314047
// BH 2022.01.17 fixes interface default method referencing own static fields
1404414048
// BH 2021.12.19 adds Double -0; fixes println(Double)

0 commit comments

Comments
 (0)