mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-07-12 12:37:32 +00:00
fix: _matchesCombo crashes on non-string keybind from server (#2049)
This commit is contained in:
@@ -16,7 +16,7 @@ const _defaultKeybinds = {
|
||||
};
|
||||
|
||||
export function _matchesCombo(e, combo, isMac = IS_MAC) {
|
||||
if (!combo) return false;
|
||||
if (typeof combo !== 'string' || !combo) return false;
|
||||
// Drop AltGr keystrokes so typing characters on non-US layouts can't fire a
|
||||
// Ctrl+Alt shortcut — e.g. the destructive delete_session. See platform.js.
|
||||
if (isAltGrEvent(e, isMac)) return false;
|
||||
|
||||
Reference in New Issue
Block a user