99 lines
8.1 KiB
JavaScript
99 lines
8.1 KiB
JavaScript
// Module ID: 12703
|
|
// Function ID: 97471
|
|
// Name: keyCode
|
|
// Dependencies: []
|
|
|
|
// Module 12703 (keyCode)
|
|
let num2;
|
|
let num3;
|
|
let num4;
|
|
function keyCode(which) {
|
|
let tmp = which;
|
|
if (which) {
|
|
tmp = which;
|
|
if ("object" === typeof which) {
|
|
tmp = which;
|
|
if (which.which || which.keyCode || which.charCode) {
|
|
tmp = tmp2;
|
|
}
|
|
}
|
|
}
|
|
if ("number" === typeof tmp) {
|
|
return obj[tmp];
|
|
} else {
|
|
const _String = String;
|
|
const str2 = String(tmp);
|
|
let tmp5 = obj[str2.toLowerCase(str2)];
|
|
if (!tmp5) {
|
|
let tmp7 = obj[str2.toLowerCase(str2)];
|
|
if (!tmp7) {
|
|
let charCodeAtResult;
|
|
if (1 === str2.length) {
|
|
charCodeAtResult = str2.charCodeAt(0);
|
|
}
|
|
tmp7 = charCodeAtResult;
|
|
}
|
|
tmp5 = tmp7;
|
|
}
|
|
return tmp5;
|
|
}
|
|
}
|
|
keyCode.isEventKey = function isEventKey(which) {
|
|
if (which) {
|
|
if ("object" === typeof which) {
|
|
if (null == (which.which || which.keyCode || which.charCode)) {
|
|
return false;
|
|
} else {
|
|
if ("string" === typeof arg1) {
|
|
if (obj[arg1.toLowerCase(arg1)]) {
|
|
return tmp5 === tmp;
|
|
} else if (obj[arg1.toLowerCase(arg1)]) {
|
|
return tmp7 === tmp;
|
|
}
|
|
} else if ("number" === tmp3) {
|
|
return arg1 === tmp;
|
|
}
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
};
|
|
let obj = { hash: null, Text: null, colors: null, disabled: null, y: null, isArray: null, body: null, source: null, error_reason: null, error_message: null, source: null, login_method: null, source: null, error_reason: null, flex: null, alignItems: "f", alignContent: "g", fontSize: "h", lineHeight: "i", color: "j", textAlign: "k", marginTop: "l", marginBottom: "m", display: "n", flexDirection: "o", alignItems: "p", backgroundColor: "q", marginTop: "r", marginBottom: "s", marginLeft: "t", marginRight: "u", borderRadius: "v", padding: "w", shadowColor: "x", shadowOpacity: "y", shadowRadius: "z", width: "0", height: "1", borderRadius: "2", marginBottom: "3", backgroundColor: "4", alignItems: "5", justifyContent: "6" };
|
|
keyCode.codes = obj;
|
|
keyCode.code = obj;
|
|
obj = { <string:2966223717>: 13549608912843054000000000000000000000000000000000000000000000000000000000000000, <string:3444663276>: 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004383619097214926, <string:3439027609>: 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009768010982666905, <string:1365503192>: 290293.3780415356, <string:996383181>: 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000132794497347833, <string:2001886368>: -0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000713938347077077, <string:1638701484>: -0.0000000000000000000000000000000000000009768103514459726, <string:1318211938>: 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001208685756490951, <string:1660657763>: 13340561933132850000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, <string:1663511889>: 0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000050927898995, <string:1403038267>: 0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000016688073237549856, <string:4012543693>: 0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001731667043385682, <string:1431499709>: 0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001112536929771666, <string:1654238466>: 0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000292899618365375, -1108399534: 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000217292369046, -1594137869: 995032063270274200000000000000000000000000000000000000000000000000000000000000000000000, 1659841105: 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000132830954578414, 1751201478: 0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000052150168574952, 924993106: 0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200599799485647, 1375887657: 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007294092739075597 };
|
|
keyCode.aliases = obj;
|
|
let num = 97;
|
|
do {
|
|
let _String = String;
|
|
obj[String.fromCharCode(num)] = num - 32;
|
|
num = num + 1;
|
|
num2 = 48;
|
|
} while (num < 123);
|
|
do {
|
|
obj[num2 - 48] = num2;
|
|
num2 = num2 + 1;
|
|
num3 = 1;
|
|
} while (num2 < 58);
|
|
do {
|
|
obj["f" + num3] = num3 + 111;
|
|
num3 = num3 + 1;
|
|
num4 = 0;
|
|
} while (num3 < 13);
|
|
do {
|
|
obj["numpad " + num4] = num4 + 96;
|
|
num4 = num4 + 1;
|
|
} while (num4 < 10);
|
|
obj = {};
|
|
keyCode.title = obj;
|
|
keyCode.names = obj;
|
|
for (const key10033 in obj) {
|
|
let tmp = key10033;
|
|
obj[obj[key10033]] = key10033;
|
|
}
|
|
for (const key10036 in obj) {
|
|
let tmp2 = key10036;
|
|
obj[key10036] = obj[key10036];
|
|
}
|
|
|
|
export default keyCode;
|