Skip to content

fix: gracefully handle missing Navigator.keyboard property#8

Open
nekename wants to merge 1 commit intotheca11:masterfrom
nekename:patch-1
Open

fix: gracefully handle missing Navigator.keyboard property#8
nekename wants to merge 1 commit intotheca11:masterfrom
nekename:patch-1

Conversation

@nekename
Copy link
Copy Markdown

@nekename nekename commented Jan 22, 2026

Hello @theca11,

navigator.keyboard is undefined in some browsers, since it's a Chromium-only experimental technology right now. This causes the Hotkey Sequence action's PI not to work with OpenDeck on Linux and macOS, because the Tauri framework uses WebKit, not Chromium, on those platforms.

Since the action's PI already handles failure or empty output of getLayoutMap(), it suffices to use optional chaining to handle the case where navigator.keyboard itself is undefined.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant