mirror of
https://github.com/zen-browser/components.git
synced 2025-07-07 21:39:58 +02:00
Refactor ZenKeyboardShortcuts to remove unnecessary console logs and improve setNewBinding method
This commit is contained in:
parent
15fbb2030f
commit
b48e947798
1 changed files with 0 additions and 2 deletions
|
@ -470,9 +470,7 @@ class KeyShortcut {
|
|||
|
||||
setNewBinding(shortcut) {
|
||||
for (let keycode of Object.keys(KEYCODE_MAP)) {
|
||||
console.log(keycode);
|
||||
if (keycode == shortcut.toUpperCase()) {
|
||||
console.log('Found keycode', shortcut);
|
||||
this.#keycode = KEYCODE_MAP[keycode];
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue