mousetrap icon indicating copy to clipboard operation
mousetrap copied to clipboard

Uncaught TypeError

Open Trutherzz opened this issue 6 years ago • 2 comments

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)

Trutherzz avatar Jan 08 '18 19:01 Trutherzz

You're calling menu, which returns undefined, which is not a function, as the error says.

fvj avatar Jan 17 '18 10:01 fvj

This can be closed as it’s no error with Mousetrap.

kleinfreund avatar Jan 03 '19 15:01 kleinfreund