- if (Surface.button1 && !Surface.button2 && !Surface.button3) return N(1);
- else if (!Surface.button1 && Surface.button2 && !Surface.button3) return N(2);
- else if (!Surface.button1 && !Surface.button2 && Surface.button3) return N(3);
- else return ZERO;
- case "ui.key": return getSub("ui.key");
- case "ui.key.name": return getSub("ui.key.name");
- case "ui.key.name.alt": return Platform.altKeyName();
- case "ui.key.alt": return Surface.alt ? T : F;
- case "ui.key.control": return Surface.control ? T : F;
- case "ui.key.shift": return Surface.shift ? T : F;
- case "ui.clipboard": return Platform.getClipBoard();
- case "ui.maxdim": return N(Short.MAX_VALUE);
- case "ui.screen": return getSub("ui.screen");
- case "ui.screen.width": return N(Platform.getScreenWidth());
- case "ui.screen.height": return N(Platform.getScreenHeight());
- case "undocumented": return getSub("undocumented");
- case "undocumented.initialOrigin": return Main.origin;
- case "undocumented.initialTemplate": return Main.initialTemplate;
- case "thread": return getSub("thread");
+ if (Surface.button1 && !Surface.button2 && !Surface.button3) return JSU.N(1);
+ else if (!Surface.button1 && Surface.button2 && !Surface.button3) return JSU.N(2);
+ else if (!Surface.button1 && !Surface.button2 && Surface.button3) return JSU.N(3);
+ else return JSU.ZERO;
+ case "ui.key": return getSub(name);
+ case "ui.key.name": return getSub(name);
+ case "ui.key.name.alt": return JSU.S(Platform.altKeyName());
+ case "ui.key.alt": return Surface.alt ? JSU.T : JSU.F;
+ case "ui.key.control": return Surface.control ? JSU.T : JSU.F;
+ case "ui.key.shift": return Surface.shift ? JSU.T : JSU.F;
+ case "ui.clipboard": return JSU.S((String)Platform.getClipBoard());
+ case "ui.maxdim": return JSU.N(Short.MAX_VALUE);
+ case "ui.screen": return getSub(name);
+ case "ui.screen.width": return JSU.N(Platform.getScreenWidth());
+ case "ui.screen.height": return JSU.N(Platform.getScreenHeight());
+ case "undocumented": return getSub(name);
+ case "undocumented.initialOrigin": return JSU.S(Main.origin);
+ case "undocumented.initialTemplate": return JSU.S(Main.initialTemplate);
+ case "thread": return getSub(name);