draggable-number.js icon indicating copy to clipboard operation
draggable-number.js copied to clipboard

fix Enter key detection

Open Sigill opened this issue 9 years ago • 0 comments

Current implementation use the "KeyboardEvent.charCode" attribute, but "KeyboardEvent.keyCode" is sometimes used (this is the case of Firefox).

Use the "KeyboardEvent.key" attribute instead, but fallback to "charCode" and "keyCode" (both being deprecated, but "key" being not widely used).

Also bump the version number, update the build files.

Sigill avatar Apr 15 '17 13:04 Sigill