mousetrap icon indicating copy to clipboard operation
mousetrap copied to clipboard

Error from assigning to readonly KeyboardEvent.which

Open mminer opened this issue 4 years ago • 0 comments

I've logged a few reports of this line: https://github.com/ccampbell/mousetrap/blob/master/mousetrap.js#L721

Throwing this error: TypeError: Cannot assign to read only property 'which' of object '#<KeyboardEvent>'

I can't reproduce it myself and I'm unsure which key was pressed to make that code path execute. Happened on Chrome 79 on both macOS and Windows.

mminer avatar Jan 13 '20 20:01 mminer