mirror of
https://github.com/penpot/penpot.git
synced 2025-06-06 15:11:47 +02:00
🐛 Fix hide grid keyboard shortcut
This commit is contained in:
parent
e1e6816544
commit
d5bbc7b1aa
3 changed files with 11 additions and 2 deletions
|
@ -9,6 +9,12 @@
|
|||
|
||||
import Mousetrap from 'mousetrap'
|
||||
|
||||
if (Mousetrap.addKeycodes) {
|
||||
Mousetrap.addKeycodes({
|
||||
219: '219'
|
||||
});
|
||||
}
|
||||
|
||||
const target = Mousetrap.prototype || Mousetrap;
|
||||
target.stopCallback = function(e, element, combo) {
|
||||
// if the element has the class "mousetrap" then no need to stop
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue