From 100338e9a21740f6174aa21d8cf3ca6f90e306cc Mon Sep 17 00:00:00 2001 From: Justin Schwartz Date: Wed, 5 Apr 2023 21:34:46 -0500 Subject: [PATCH] Issue #43: Reenable keyboard controls except for Browser Source - Bump version to 1.1.1 --- package.json | 2 +- src/modules/KeyController.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 96ffcc6..9416f77 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pso-tracker", - "version": "1.1.0", + "version": "1.1.1", "private": true, "description": "", "browser": "index.html", diff --git a/src/modules/KeyController.js b/src/modules/KeyController.js index dd9e813..059b8a1 100644 --- a/src/modules/KeyController.js +++ b/src/modules/KeyController.js @@ -102,10 +102,10 @@ export default class KeyController { * @return {undefined} */ OnKeyDown(event) { - if (document.getElementById('ctrlAssist').style.display != 'none') - return; if (this._codeToTrackableMap === null) return; + if (document.getElementById('saveWindowSize').style.display == 'none') //browser source mode, disable actual key use due to apparent OBS bugs + return; this._inputLevel = 0; if (event.altKey) @@ -145,7 +145,7 @@ export default class KeyController { OnKeyUp(event) { if (this._codeToTrackableMap === null) return; - if (document.getElementById('ctrlAssist').style.display != 'none') + if (document.getElementById('saveWindowSize').style.display == 'none') //browser source mode, disable actual key use due to apparent OBS bugs return; let shift = event.code.startsWith('Shift');