mirror of
https://github.com/zen-browser/components.git
synced 2025-07-08 01:29:57 +02:00
Refactor ZenKeyboardShortcuts to fix case sensitivity issue in setNewBinding method
This commit is contained in:
parent
57b68599e9
commit
287f6fa80a
1 changed files with 1 additions and 1 deletions
|
@ -470,7 +470,7 @@ class KeyShortcut {
|
|||
|
||||
setNewBinding(shortcut) {
|
||||
for (let keycode of Object.entries(KEYCODE_MAP)) {
|
||||
if (KEYCODE_MAP[keycode] == shortcut) {
|
||||
if (KEYCODE_MAP[keycode] == shortcut.toUpperCase()) {
|
||||
this.#keycode = shortcut;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue