MCPcopy Create free account
hub / github.com/microsoft/SandDance / isFallbackCompositionStart

Function isFallbackCompositionStart

docs/external/js/react-dom.development.js:8840–8842  ·  view source on GitHub ↗

* Does our fallback best-guess model think this event signifies that * composition has begun? * * @param {string} topLevelType * @param {object} nativeEvent * @return {boolean}

(topLevelType, nativeEvent)

Source from the content-addressed store, hash-verified

8838
8839
8840 function isFallbackCompositionStart(topLevelType, nativeEvent) {
8841 return topLevelType === TOP_KEY_DOWN && nativeEvent.keyCode === START_KEYCODE;
8842 }
8843 /**
8844 * Does our fallback mode think that this event is the end of composition?
8845 *

Callers 1

extractCompositionEventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected