decord/source/12705_keyCode.js
2026-07-21 22:01:30 +00:00

99 lines
8.3 KiB
JavaScript

// Module ID: 12705
// Function ID: 97493
// Name: keyCode
// Dependencies: []
// Module 12705 (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 = { backgroundColor: null, borderColor: null, borderWidth: null, borderRadius: null, overflow: null, flex: null, paddingVertical: null, paddingHorizontal: null, maxHeight: null, backgroundColor: null, width: null, marginHorizontal: null, padding: null, fontSize: null, alignItems: null, display: "f", flexDirection: "g", marginBottom: "h", flexDirection: "i", justifyContent: "j", marginBottom: "k", marginEnd: "l", overflow: "m", position: "n", overflow: "o", flex: "p", marginLeft: "q", marginBottom: "r", marginTop: "s", flex: "t", stickerId: "u", stickerName: "v", stickerType: "w", stickerUrl: "x", stickerAnimated: "y", stickerDisabled: "z", stickerOpaque: "0", onPressSticker: "1", onLongPressSticker: "2", flexDirection: "3", width: "4", marginBottom: "5", backgroundColor: "6" };
keyCode.codes = obj;
keyCode.code = obj;
obj = { <string:827415712>: 17835852212633795000000000000000000000000000000000000000000000000000000000000000, <string:3439027534>: 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004383619097214926, <string:1365503152>: 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000980720805464404, <string:4217734130>: 292062.1280262768, <string:1676466380>: 0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000013279449734786, <string:1669591633>: -12292932762272650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, <string:1671494639>: -12656313956214588000000000000000000000000000000000000000000000000000000000000000000000000000000, <string:1381802043>: 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000027373788628423147, <string:2898046095>: 13340553835198480000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, <string:827417185>: 0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000050927898995, <string:4221592398>: 0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000015019267847554946, <string:651579746>: 0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001731725688386546, <string:2695510883>: 0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001112536929771666, <string:865000531>: 0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000293207307755065, <string:1391375855>: 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000217292369046, <string:2782921292>: 995031551932408200000000000000000000000000000000000000000000000000000000000000000000000, <string:1386281826>: 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000132833245398236, <string:4004900659>: 0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000052150168574952, <string:1369504610>: 0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200598116809297, <string:3328372531>: 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007294092847721781 };
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;