Skip to content

Commit

Permalink
Merge PR #45: Reenable keyboard controls except for Browser Source
Browse files Browse the repository at this point in the history
Issue #43: Reenable keyboard controls except for Browser Source
  • Loading branch information
schwjm authored Apr 6, 2023
2 parents 3ebbf8a + 100338e commit 0cc4629
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pso-tracker",
"version": "1.1.0",
"version": "1.1.1",
"private": true,
"description": "",
"browser": "index.html",
Expand Down
6 changes: 3 additions & 3 deletions src/modules/KeyController.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit 0cc4629

Please sign in to comment.