mirror of
https://github.com/zen-browser/components.git
synced 2025-07-08 16:30:01 +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) {
|
setNewBinding(shortcut) {
|
||||||
for (let keycode of Object.keys(KEYCODE_MAP)) {
|
for (let keycode of Object.keys(KEYCODE_MAP)) {
|
||||||
console.log(keycode);
|
|
||||||
if (keycode == shortcut.toUpperCase()) {
|
if (keycode == shortcut.toUpperCase()) {
|
||||||
console.log('Found keycode', shortcut);
|
|
||||||
this.#keycode = KEYCODE_MAP[keycode];
|
this.#keycode = KEYCODE_MAP[keycode];
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue