vigetlabs / craft-viget-base

http://code.viget.com/craft-viget-base/
7 stars 3 forks source link

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

Closed jeremyfrank closed 2 years ago

jeremyfrank commented 3 years ago

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?

https://github.com/vigetlabs/craft-viget-base/blob/110103a6ee3e97fd954ab97a446a9ef1efcf2877/src/resources/js/parts-kit.js#L179-L181

joshuapease commented 2 years ago

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