Skip to content

Commit

Permalink
v0.73.7: fix caiiiycuk/js-dos#113
Browse files Browse the repository at this point in the history
  • Loading branch information
caiiiycuk committed Jul 18, 2022
1 parent 28274a8 commit f30917d
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 81 deletions.
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "emulators-ui",
"version": "0.73.6",
"version": "0.73.7",
"description": "Emulators UI",
"main": "dist/emulators-ui.js",
"types": "dist/types/emulators-ui.d.ts",
Expand Down Expand Up @@ -38,18 +38,18 @@
"@types/gulp-size": "^4.0.0",
"@types/gulp-sourcemaps": "0.0.35",
"@types/gulp-terser": "^1.2.1",
"@types/node": "^18.0.3",
"@types/node": "^18.0.6",
"@types/vinyl-buffer": "^1.0.0",
"@types/vinyl-source-stream": "0.0.30",
"@typescript-eslint/eslint-plugin": "^5.30.5",
"@typescript-eslint/parser": "^5.30.5",
"@typescript-eslint/eslint-plugin": "^5.30.6",
"@typescript-eslint/parser": "^5.30.6",
"babelify": "^10.0.0",
"browserify": "^17.0.0",
"core-js": "^3.23.4",
"core-js": "^3.23.5",
"del": "^6.1.1",
"element-resize-detector": "^1.2.4",
"emulators": "^0.73.7",
"eslint": "^8.19.0",
"eslint": "^8.20.0",
"eslint-config-google": "^0.14.0",
"git-repo-info": "^2.1.1",
"gulp": "^4.0.2",
Expand All @@ -60,8 +60,8 @@
"md5.js": "^1.3.5",
"nipplejs": "^0.9.0",
"notyf": "^3.10.0",
"simple-keyboard": "^3.4.122",
"ts-node": "^10.8.2",
"simple-keyboard": "^3.4.126",
"ts-node": "^10.9.1",
"tsify": "^5.0.4",
"typescript": "^4.7.4",
"vinyl-buffer": "^1.0.1",
Expand Down
6 changes: 3 additions & 3 deletions src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// gulpfile.ts/wasm.ts --> generateBuildInfo

export const Build = {
short: "0.73.5",
version: "0.73.5 (2823574dcca80b00ce959e6882126e16)",
buildSeed: 1657520884756,
short: "0.73.6",
version: "0.73.6 (56358274d9c94c50e01e40c6e3b92c6e)",
buildSeed: 1658134329704,
};
19 changes: 16 additions & 3 deletions src/dom/layers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const resizeDetector = elementResizeDetector({
export interface LayersOptions {
optionControls?: string[];
keyboardDiv?: HTMLDivElement;
keyboardInputDiv?: HTMLDivElement;
fullscreenElement?: HTMLElement;
}

Expand Down Expand Up @@ -134,14 +135,22 @@ export class Layers {
}

private initKeyEvents() {
window.addEventListener("keydown", (e) => {
const keyboardInput = this.options.keyboardInputDiv ?? this.root;
keyboardInput.style.outline = "none";
if (!keyboardInput.tabIndex || keyboardInput.tabIndex === -1) {
keyboardInput.tabIndex = 0;
}
keyboardInput.addEventListener("keydown", (e) => {
const keyCode = domToKeyCode(e.keyCode);
this.onKeyDown(keyCode);
e.stopPropagation();
e.preventDefault();
});

window.addEventListener("keyup", (e) => {
keyboardInput.addEventListener("keyup", (e) => {
const keyCode = domToKeyCode(e.keyCode);
this.onKeyUp(keyCode);
e.stopPropagation();
e.preventDefault();
});
}

Expand Down Expand Up @@ -385,6 +394,10 @@ export class Layers {
preventMouseUpDefault: true,
stopMouseDownPropagation: true,
stopMouseUpPropagation: true,
physicalKeyboardHighlight: false,
physicalKeyboardHighlightPress: false,
physicalKeyboardHighlightPressUseClick: false,
physicalKeyboardHighlightPressUsePointerEvents: false,
});

this.toggleKeyboard = () => {
Expand Down
134 changes: 67 additions & 67 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1292,10 +1292,10 @@
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.10.tgz#2e3ad0a680d96367103d3e670d41c2fed3da61ae"
integrity sha512-3aRnHa1KlOEEhJ6+CvyHKK5vE9BcLGjtUpwvqYLRvYNQKMfabu3BwfJaA/SLW8dxe28LsNDjtHwePTuzn3gmOA==

"@types/node@^18.0.3":
version "18.0.3"
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.0.3.tgz#463fc47f13ec0688a33aec75d078a0541a447199"
integrity sha512-HzNRZtp4eepNitP+BD6k2L6DROIDG4Q0fm4x+dwfsr6LGmROENnok75VGw40628xf+iR24WeMFcHuuBDUAzzsQ==
"@types/node@^18.0.6":
version "18.0.6"
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.0.6.tgz#0ba49ac517ad69abe7a1508bc9b3a5483df9d5d7"
integrity sha512-/xUq6H2aQm261exT6iZTMifUySEt4GR5KX8eYyY+C4MSNPqSh9oNIP7tz2GLKTlFaiBbgZNxffoR3CVRG+cljw==

"@types/undertaker-registry@*":
version "1.0.1"
Expand Down Expand Up @@ -1342,84 +1342,84 @@
"@types/expect" "^1.20.4"
"@types/node" "*"

"@typescript-eslint/eslint-plugin@^5.30.5":
version "5.30.5"
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.30.5.tgz#e9a0afd6eb3b1d663db91cf1e7bc7584d394503d"
integrity sha512-lftkqRoBvc28VFXEoRgyZuztyVUQ04JvUnATSPtIRFAccbXTWL6DEtXGYMcbg998kXw1NLUJm7rTQ9eUt+q6Ig==
"@typescript-eslint/eslint-plugin@^5.30.6":
version "5.30.6"
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.30.6.tgz#9c6017b6c1d04894141b4a87816388967f64c359"
integrity sha512-J4zYMIhgrx4MgnZrSDD7sEnQp7FmhKNOaqaOpaoQ/SfdMfRB/0yvK74hTnvH+VQxndZynqs5/Hn4t+2/j9bADg==
dependencies:
"@typescript-eslint/scope-manager" "5.30.5"
"@typescript-eslint/type-utils" "5.30.5"
"@typescript-eslint/utils" "5.30.5"
"@typescript-eslint/scope-manager" "5.30.6"
"@typescript-eslint/type-utils" "5.30.6"
"@typescript-eslint/utils" "5.30.6"
debug "^4.3.4"
functional-red-black-tree "^1.0.1"
ignore "^5.2.0"
regexpp "^3.2.0"
semver "^7.3.7"
tsutils "^3.21.0"

"@typescript-eslint/parser@^5.30.5":
version "5.30.5"
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.30.5.tgz#f667c34e4e4c299d98281246c9b1e68c03a92522"
integrity sha512-zj251pcPXI8GO9NDKWWmygP6+UjwWmrdf9qMW/L/uQJBM/0XbU2inxe5io/234y/RCvwpKEYjZ6c1YrXERkK4Q==
"@typescript-eslint/parser@^5.30.6":
version "5.30.6"
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.30.6.tgz#add440db038fa9d777e4ebdaf66da9e7fb7abe92"
integrity sha512-gfF9lZjT0p2ZSdxO70Xbw8w9sPPJGfAdjK7WikEjB3fcUI/yr9maUVEdqigBjKincUYNKOmf7QBMiTf719kbrA==
dependencies:
"@typescript-eslint/scope-manager" "5.30.5"
"@typescript-eslint/types" "5.30.5"
"@typescript-eslint/typescript-estree" "5.30.5"
"@typescript-eslint/scope-manager" "5.30.6"
"@typescript-eslint/types" "5.30.6"
"@typescript-eslint/typescript-estree" "5.30.6"
debug "^4.3.4"

"@typescript-eslint/[email protected].5":
version "5.30.5"
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.30.5.tgz#7f90b9d6800552c856a5f3644f5e55dd1469d964"
integrity sha512-NJ6F+YHHFT/30isRe2UTmIGGAiXKckCyMnIV58cE3JkHmaD6e5zyEYm5hBDv0Wbin+IC0T1FWJpD3YqHUG/Ydg==
"@typescript-eslint/[email protected].6":
version "5.30.6"
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.30.6.tgz#ce1b49ff5ce47f55518d63dbe8fc9181ddbd1a33"
integrity sha512-Hkq5PhLgtVoW1obkqYH0i4iELctEKixkhWLPTYs55doGUKCASvkjOXOd/pisVeLdO24ZX9D6yymJ/twqpJiG3g==
dependencies:
"@typescript-eslint/types" "5.30.5"
"@typescript-eslint/visitor-keys" "5.30.5"
"@typescript-eslint/types" "5.30.6"
"@typescript-eslint/visitor-keys" "5.30.6"

"@typescript-eslint/[email protected].5":
version "5.30.5"
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.30.5.tgz#7a9656f360b4b1daea635c4621dab053d08bf8a9"
integrity sha512-k9+ejlv1GgwN1nN7XjVtyCgE0BTzhzT1YsQF0rv4Vfj2U9xnslBgMYYvcEYAFVdvhuEscELJsB7lDkN7WusErw==
"@typescript-eslint/[email protected].6":
version "5.30.6"
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.30.6.tgz#a64aa9acbe609ab77f09f53434a6af2b9685f3af"
integrity sha512-GFVVzs2j0QPpM+NTDMXtNmJKlF842lkZKDSanIxf+ArJsGeZUIaeT4jGg+gAgHt7AcQSFwW7htzF/rbAh2jaVA==
dependencies:
"@typescript-eslint/utils" "5.30.5"
"@typescript-eslint/utils" "5.30.6"
debug "^4.3.4"
tsutils "^3.21.0"

"@typescript-eslint/[email protected].5":
version "5.30.5"
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.30.5.tgz#36a0c05a72af3623cdf9ee8b81ea743b7de75a98"
integrity sha512-kZ80w/M2AvsbRvOr3PjaNh6qEW1LFqs2pLdo2s5R38B2HYXG8Z0PP48/4+j1QHJFL3ssHIbJ4odPRS8PlHrFfw==
"@typescript-eslint/[email protected].6":
version "5.30.6"
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.30.6.tgz#86369d0a7af8c67024115ac1da3e8fb2d38907e1"
integrity sha512-HdnP8HioL1F7CwVmT4RaaMX57RrfqsOMclZc08wGMiDYJBsLGBM7JwXM4cZJmbWLzIR/pXg1kkrBBVpxTOwfUg==

"@typescript-eslint/[email protected].5":
version "5.30.5"
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.30.5.tgz#c520e4eba20551c4ec76af8d344a42eb6c9767bb"
integrity sha512-qGTc7QZC801kbYjAr4AgdOfnokpwStqyhSbiQvqGBLixniAKyH+ib2qXIVo4P9NgGzwyfD9I0nlJN7D91E1VpQ==
"@typescript-eslint/[email protected].6":
version "5.30.6"
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.30.6.tgz#a84a0d6a486f9b54042da1de3d671a2c9f14484e"
integrity sha512-Z7TgPoeYUm06smfEfYF0RBkpF8csMyVnqQbLYiGgmUSTaSXTP57bt8f0UFXstbGxKIreTwQCujtaH0LY9w9B+A==
dependencies:
"@typescript-eslint/types" "5.30.5"
"@typescript-eslint/visitor-keys" "5.30.5"
"@typescript-eslint/types" "5.30.6"
"@typescript-eslint/visitor-keys" "5.30.6"
debug "^4.3.4"
globby "^11.1.0"
is-glob "^4.0.3"
semver "^7.3.7"
tsutils "^3.21.0"

"@typescript-eslint/[email protected].5":
version "5.30.5"
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.30.5.tgz#3999cbd06baad31b9e60d084f20714d1b2776765"
integrity sha512-o4SSUH9IkuA7AYIfAvatldovurqTAHrfzPApOZvdUq01hHojZojCFXx06D/aFpKCgWbMPRdJBWAC3sWp3itwTA==
"@typescript-eslint/[email protected].6":
version "5.30.6"
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.30.6.tgz#1de2da14f678e7d187daa6f2e4cdb558ed0609dc"
integrity sha512-xFBLc/esUbLOJLk9jKv0E9gD/OH966M40aY9jJ8GiqpSkP2xOV908cokJqqhVd85WoIvHVHYXxSFE4cCSDzVvA==
dependencies:
"@types/json-schema" "^7.0.9"
"@typescript-eslint/scope-manager" "5.30.5"
"@typescript-eslint/types" "5.30.5"
"@typescript-eslint/typescript-estree" "5.30.5"
"@typescript-eslint/scope-manager" "5.30.6"
"@typescript-eslint/types" "5.30.6"
"@typescript-eslint/typescript-estree" "5.30.6"
eslint-scope "^5.1.1"
eslint-utils "^3.0.0"

"@typescript-eslint/[email protected].5":
version "5.30.5"
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.30.5.tgz#d4bb969202019d5d5d849a0aaedc7370cc044b14"
integrity sha512-D+xtGo9HUMELzWIUqcQc0p2PO4NyvTrgIOK/VnSH083+8sq0tiLozNRKuLarwHYGRuA6TVBQSuuLwJUDWd3aaA==
"@typescript-eslint/[email protected].6":
version "5.30.6"
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.30.6.tgz#94dd10bb481c8083378d24de1742a14b38a2678c"
integrity sha512-41OiCjdL2mCaSDi2SvYbzFLlqqlm5v1ZW9Ym55wXKL/Rx6OOB1IbuFGo71Fj6Xy90gJDFTlgOS+vbmtGHPTQQA==
dependencies:
"@typescript-eslint/types" "5.30.5"
"@typescript-eslint/types" "5.30.6"
eslint-visitor-keys "^3.3.0"

JSONStream@^1.0.3:
Expand Down Expand Up @@ -2339,10 +2339,10 @@ core-js-compat@^3.22.1:
browserslist "^4.20.3"
semver "7.0.0"

core-js@^3.23.4:
version "3.23.4"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.23.4.tgz#92d640faa7f48b90bbd5da239986602cfc402aa6"
integrity sha512-vjsKqRc1RyAJC3Ye2kYqgfdThb3zYnx9CrqoCcjMOENMtQPC7ZViBvlDxwYU/2z2NI/IPuiXw5mT4hWhddqjzQ==
core-js@^3.23.5:
version "3.23.5"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.23.5.tgz#1f82b0de5eece800827a2f59d597509c67650475"
integrity sha512-7Vh11tujtAZy82da4duVreQysIoO2EvVrur7y6IzZkH1IHPSekuDi8Vuw1+YKjkbfWLRD7Nc9ICQ/sIUDutcyg==

core-util-is@~1.0.0:
version "1.0.3"
Expand Down Expand Up @@ -2816,10 +2816,10 @@ eslint-visitor-keys@^3.3.0:
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz#f6480fa6b1f30efe2d1968aa8ac745b862469826"
integrity sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==

eslint@^8.19.0:
version "8.19.0"
resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.19.0.tgz#7342a3cbc4fbc5c106a1eefe0fd0b50b6b1a7d28"
integrity sha512-SXOPj3x9VKvPe81TjjUJCYlV4oJjQw68Uek+AM0X4p+33dj2HY5bpTZOgnQHcG2eAm1mtCU9uNMnJi7exU/kYw==
eslint@^8.20.0:
version "8.20.0"
resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.20.0.tgz#048ac56aa18529967da8354a478be4ec0a2bc81b"
integrity sha512-d4ixhz5SKCa1D6SCPrivP7yYVi7nyD6A4vs6HIAul9ujBzcEmZVM3/0NN/yu5nKhmO1wjp5xQ46iRfmDGlOviA==
dependencies:
"@eslint/eslintrc" "^1.3.0"
"@humanwhocodes/config-array" "^0.9.2"
Expand Down Expand Up @@ -5210,10 +5210,10 @@ simple-concat@^1.0.0:
resolved "https://registry.yarnpkg.com/simple-concat/-/simple-concat-1.0.1.tgz#f46976082ba35c2263f1c8ab5edfe26c41c9552f"
integrity sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==

simple-keyboard@^3.4.122:
version "3.4.122"
resolved "https://registry.yarnpkg.com/simple-keyboard/-/simple-keyboard-3.4.122.tgz#786b509b8d6ddd180472b3a0742ff4f8213b589b"
integrity sha512-qG1kXgkAMcJ/yBOjwRHbss/l5EaJoIgU0+4xXd/ynhdfPnD9juAAJNKfgFtFWu/GtfxFJy5N1H40DNI8HJJBEw==
simple-keyboard@^3.4.126:
version "3.4.126"
resolved "https://registry.yarnpkg.com/simple-keyboard/-/simple-keyboard-3.4.126.tgz#ad34254c11a5151a11d430e8d6755d1f03331d02"
integrity sha512-2PaZiDjyi+bfVEMOJwzpoeb6gWtEPmPFC/hGa6ZWGIXWcXYsn7e1RP/NxzlYg9Z5oB0fC1yAtN6Jvk94V4O10w==

slash@^3.0.0:
version "3.0.0"
Expand Down Expand Up @@ -5644,10 +5644,10 @@ to-through@^2.0.0:
dependencies:
through2 "^2.0.3"

ts-node@^10.8.2:
version "10.8.2"
resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.8.2.tgz#3185b75228cef116bf82ffe8762594f54b2a23f2"
integrity sha512-LYdGnoGddf1D6v8REPtIH+5iq/gTDuZqv2/UJUU7tKjuEU8xVZorBM+buCGNjj+pGEud+sOoM4CX3/YzINpENA==
ts-node@^10.9.1:
version "10.9.1"
resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.9.1.tgz#e73de9102958af9e1f0b168a6ff320e25adcff4b"
integrity sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==
dependencies:
"@cspotcode/source-map-support" "^0.8.0"
"@tsconfig/node10" "^1.0.7"
Expand Down

0 comments on commit f30917d

Please sign in to comment.