🐛 Fix hide grid keyboard shortcut

This commit is contained in:
Alejandro Alonso 2023-03-31 08:45:01 +02:00 committed by Alonso Torres
parent e1e6816544
commit d5bbc7b1aa
3 changed files with 11 additions and 2 deletions

View file

@ -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