Skip to content

Commit

Permalink
void fix and package update
Browse files Browse the repository at this point in the history
  • Loading branch information
justintaylor-dev committed Jul 20, 2023
1 parent 73a0cde commit 639f8a1
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.react.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"types-for-adobe-extras": "^0.0.1",
"typescript": "^4.6.4",
"vite": "^4.0.5",
"vite-cep-plugin": "^1.1.7",
"vite-cep-plugin": "^1.1.8",
"yarn": "^1.22.17"
},
"main": "index.js",
Expand Down
2 changes: 1 addition & 1 deletion package.svelte.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"types-for-adobe-extras": "^0.0.1",
"typescript": "^4.6.4",
"vite": "^4.0.5",
"vite-cep-plugin": "^1.1.7",
"vite-cep-plugin": "^1.1.8",
"yarn": "^1.22.17"
},
"main": "index.js",
Expand Down
2 changes: 1 addition & 1 deletion package.vue.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"types-for-adobe-extras": "^0.0.1",
"typescript": "^4.6.4",
"vite": "^4.0.5",
"vite-cep-plugin": "^1.1.7",
"vite-cep-plugin": "^1.1.8",
"yarn": "^1.22.17"
},
"main": "index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/js/lib/cep/es-types/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export type Scripts = {
[key: string]: (a: any, ...ags: any) => any;
[key: string]: (...ags: any) => any;
};
9 changes: 8 additions & 1 deletion src/js/lib/utils/cep.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,18 @@ import { csi } from "./bolt";
*/

export const keyRegisterOverride = () => {
//@ts-ignore
const platform = navigator.platform.substring(0, 3);
let maxKey = 0;
if (platform === "Mac") maxKey = 126; // Mac Max Key Code
else if (platform === "Win") maxKey = 222; // HTML Max Key Code
let allKeys = [];
let allKeys: {
keyCode: number;
ctrlKey: boolean;
altKey: boolean;
shiftKey: boolean;
metaKey: boolean;
}[] = [];
for (let k = 0; k <= maxKey; k++) {
for (let j = 0; j <= 15; j++) {
const guide = (j >>> 0).toString(2).padStart(4, "0");
Expand Down
1 change: 1 addition & 0 deletions tsconfig-build.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"noImplicitAny": false,
"paths": {
"@esTypes/*": ["./src/js/lib/cep/es-types"]
}
Expand Down

0 comments on commit 639f8a1

Please sign in to comment.