@@ -10654,6 +10654,7 @@ return jQuery;
1065410654})(jQuery,document,"click mousemove mouseup touchmove touchend", "outjsmol");
1065510655// j2sCore.js (based on JmolCore.js)
1065610656
10657+ // BH 2/20/2018 12:08:08 AM adds J2S._getKeyModifiers
1065710658// BH 1/8/2018 10:27:46 PM SwingJS2
1065810659// BH 12/22/2017 1:18:42 PM adds j2sargs for setting arguments
1065910660// BH 11/19/2017 3:55:04 AM adding support for swingjs2.js; adds static j2sHeadless=true;
@@ -12135,6 +12136,11 @@ J2S._getDefaultLanguage = function(isAll) { return (isAll ? J2S.featureDetection
1213512136 modifiers = (1<<2)|(1<<12);//InputEvent.BUTTON3 + InputEvent.BUTTON3_DOWN_MASK;
1213612137 break;
1213712138 }
12139+ return modifiers | J2S._getKeyModifiers(ev);
12140+ }
12141+
12142+ J2S._getKeyModifiers = function(ev) {
12143+ var modifiers = 0;
1213812144 if (ev.shiftKey)
1213912145 modifiers |= (1<<0)|(1<<6); //InputEvent.SHIFT_MASK + InputEvent.SHIFT_DOWN_MASK;
1214012146 if (ev.ctrlKey)
@@ -13072,6 +13078,7 @@ J2S._getResourcePath = function(path, isJavaPath) {
1307213078// Google closure compiler cannot handle Clazz.new or Clazz.super
1307313079
1307413080
13081+ // BH 2/20/2018 12:59:28 AM adds Character.isISOControl
1307513082// BH 2/13/2018 6:24:44 AM adds String.copyValueOf (two forms)
1307613083// BH 2/7/2018 7:47:07 PM adds System.out.flush and System.err.flush
1307713084// BH 2/1/2018 12:14:20 AM fix for new int[128][] not nulls
@@ -17039,39 +17046,57 @@ function(c){
1703917046c = c.charCodeAt(0);
1704017047return (48 <= c && c <= 57);
1704117048}, 1);
17042- m$(C$,"isUpperCase",
17043- function(c){
17044- c = c.charCodeAt(0);
17045- return (65 <= c && c <= 90);
17046- }, 1);
17047- m$(C$,"isLowerCase",
17048- function(c){
17049- c = c.charCodeAt(0);
17050- return (97 <= c && c <= 122);
17051- }, 1);
17052- m$(C$,"isWhitespace",
17049+
17050+ m$(C$,"isISOControl",
1705317051function(c){
17054- c = (c).charCodeAt(0);
17055- return (c >= 0x1c && c <= 0x20 || c >= 0x9 && c <= 0xd || c == 0x1680
17056- || c >= 0x2000 && c != 0x2007 && (c <= 0x200b || c == 0x2028 || c == 0x2029 || c == 0x3000) );
17052+ if (typeof c == "string")
17053+ c = c.charCodeAt(0);
17054+ return (c < 0x1F || 0x7F <= c && c <= 0x9F );
1705717055}, 1);
17056+
1705817057m$(C$,"isLetter",
1705917058function(c){
17060- c = c.charCodeAt(0);
17059+ if (typeof c == "string")
17060+ c = c.charCodeAt(0);
1706117061return (65 <= c && c <= 90 || 97 <= c && c <= 122);
1706217062}, 1);
1706317063m$(C$,"isLetterOrDigit",
1706417064function(c){
17065- c = c.charCodeAt(0);
17065+ if (typeof c == "string")
17066+ c = c.charCodeAt(0);
1706617067return (65 <= c && c <= 90 || 97 <= c && c <= 122 || 48 <= c && c <= 57);
1706717068}, 1);
17068- m$(C$,"isSpaceChar",
17069+ m$(C$,"isLowerCase",
17070+ function(c){
17071+ if (typeof c == "string")
17072+ c = c.charCodeAt(0);
17073+ return (97 <= c && c <= 122);
17074+ }, 1);
17075+ m$(C$,"isSpace",
1706917076function(c){
1707017077 var i = c.charCodeAt(0);
17078+ return (i==0x20||i==0x9||i==0xA||i==0xC||i==0xD);
17079+ }, 1);
17080+ m$(C$,"isSpaceChar",
17081+ function(c){
17082+ var i = (typeof c == "string" ? c.charCodeAt(0) : c);
1707117083if(i==0x20||i==0xa0||i==0x1680)return true;
1707217084if(i<0x2000)return false;
1707317085return i<=0x200b||i==0x2028||i==0x2029||i==0x202f||i==0x3000;
1707417086}, 1);
17087+ m$(C$,"isUpperCase",
17088+ function(c){
17089+ if (typeof c == "string")
17090+ c = c.charCodeAt(0);
17091+ return (65 <= c && c <= 90);
17092+ }, 1);
17093+ m$(C$,"isWhitespace",
17094+ function(c){
17095+ if (typeof c == "string")
17096+ c = c.charCodeAt(0);
17097+ return (c >= 0x1c && c <= 0x20 || c >= 0x9 && c <= 0xd || c == 0x1680
17098+ || c >= 0x2000 && c != 0x2007 && (c <= 0x200b || c == 0x2028 || c == 0x2029 || c == 0x3000));
17099+ }, 1);
1707517100m$(C$,"digit",
1707617101function(c,radix){
1707717102var i = c.charCodeAt(0);
0 commit comments