mousetrap
mousetrap copied to clipboard
Uncaught TypeError
Hello,
When i try to run this keybind
Mousetrap.bind('ctrl+m', menu()); function menu(){ alert("Hi"); };
i get this error
Uncaught TypeError: a is not a function at f (mousetrap.min.js:5) at c.h._handleKey (mousetrap.min.js:7) at c.handleKey (mousetrap.min.js:10) at HTMLDocument.d (mousetrap.min.js:5)
You're calling menu
, which returns undefined
, which is not a function, as the error says.
This can be closed as it’s no error with Mousetrap.