vigetlabs/craft-viget-base

[Parts Kit] Restrict `f` key shortcut to `f` key only

jeremyfrank opened this issue · 1 comments

Pressing cmd+f unexpectedly hides the parts list panel on the left, because the f key is a shortcut for hiding the panel. Can we restrict the shortcut to be f key only w/o any modifier keys pressed?

if ((key === "f" || key === "Escape") && this.noUserInput()) {
this.toggleSidebar();
}

@jeremyfrank This was bugging me too! PR is up!