MCPcopy Create free account
hub / github.com/caseywebdev/react-list / getEventCharCode

Function getEventCharCode

docs/index.js:5054–5062  ·  view source on GitHub ↗
(nativeEvent)

Source from the content-addressed store, hash-verified

5052 return (fallbackText = endValue.slice(start, 1 < end ? 1 - end : void 0));
5053}
5054function getEventCharCode(nativeEvent) {
5055 var keyCode = nativeEvent.keyCode;
5056 "charCode" in nativeEvent
5057 ? ((nativeEvent = nativeEvent.charCode),
5058 0 === nativeEvent && 13 === keyCode && (nativeEvent = 13))
5059 : (nativeEvent = keyCode);
5060 10 === nativeEvent && (nativeEvent = 13);
5061 return 32 <= nativeEvent || 13 === nativeEvent ? nativeEvent : 0;
5062}
5063function functionThatReturnsTrue() {
5064 return !0;
5065}

Callers 2

index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…