MCPcopy
hub / github.com/autoNumeric/autoNumeric / _updateEventKeyInfo

Method _updateEventKeyInfo

src/AutoNumeric.js:8676–8678  ·  view source on GitHub ↗

* Update the `event.key` attribute that triggered the given event. * * `event.key` describes: * - the key name (if a non-printable character), * - or directly the character that result from the key press used to trigger the event. * * @link https://developer.mozilla.org

(e)

Source from the content-addressed store, hash-verified

8674 * @private
8675 */
8676 _updateEventKeyInfo(e) {
8677 this.eventKey = AutoNumericHelper.character(e);
8678 }
8679
8680 /**
8681 * Save the unformatted element value.

Callers 2

_onKeydownMethod · 0.95
_onKeyupMethod · 0.95

Calls 1

characterMethod · 0.80

Tested by

no test coverage detected