Kitware / UPennContrast

UPenn ?
https://upenn-contrast.netlify.com/
Apache License 2.0
8 stars 6 forks source link

Hotkey recording not working #668

Closed arjunrajlab closed 3 months ago

arjunrajlab commented 4 months ago

Now, when you try and create a tool and click "Record Hotkey", it just spins forever and doesn't record the hotkey.

image
arjunrajlab commented 4 months ago

The console gives the following:

mousetrap_plugins_record_mousetrap-record__min__js.js?v=aeebce7c:7 Uncaught ReferenceError: i is not defined
    at Mousetrap.n (mousetrap_plugins_record_mousetrap-record__min__js.js?v=aeebce7c:7:16)
    at d.handleKey (mousetrap_plugins_record_mousetrap-record__min__js.js?v=aeebce7c:53:7)
    at HTMLDocument._handleKeyEvent (mousetrap.js?v=aeebce7c:324:16)
arjunrajlab commented 4 months ago

Seems like this error is known: https://github.com/ccampbell/mousetrap/issues/473

I checked, and indeed it is missing the var i; declaration.