isFallbackCompositionEnd() — react Function Reference
Architecture documentation for the isFallbackCompositionEnd() function in BeforeInputEventPlugin.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 3274186b_0da8_a8fa_b931_f27f1fec9378["isFallbackCompositionEnd()"] a235366c_1abe_162c_b9bf_7fbbfb597584["BeforeInputEventPlugin.js"] 3274186b_0da8_a8fa_b931_f27f1fec9378 -->|defined in| a235366c_1abe_162c_b9bf_7fbbfb597584 86643861_8bb8_470a_be1c_fd6ca6b189a3["extractCompositionEvent()"] 86643861_8bb8_470a_be1c_fd6ca6b189a3 -->|calls| 3274186b_0da8_a8fa_b931_f27f1fec9378 17925d0e_e60e_3acc_8c2a_0e7947a22eeb["getFallbackBeforeInputChars()"] 17925d0e_e60e_3acc_8c2a_0e7947a22eeb -->|calls| 3274186b_0da8_a8fa_b931_f27f1fec9378 style 3274186b_0da8_a8fa_b931_f27f1fec9378 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-dom-bindings/src/events/plugins/BeforeInputEventPlugin.js lines 135–155
function isFallbackCompositionEnd(
domEventName: DOMEventName,
nativeEvent: any,
): boolean {
switch (domEventName) {
case 'keyup':
// Command keys insert or clear IME input.
return END_KEYCODES.indexOf(nativeEvent.keyCode) !== -1;
case 'keydown':
// Expect IME keyCode on each keydown. If we get any other
// code we must have exited earlier.
return nativeEvent.keyCode !== START_KEYCODE;
case 'keypress':
case 'mousedown':
case 'focusout':
// Events are not possible without cancelling IME.
return true;
default:
return false;
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does isFallbackCompositionEnd() do?
isFallbackCompositionEnd() is a function in the react codebase, defined in packages/react-dom-bindings/src/events/plugins/BeforeInputEventPlugin.js.
Where is isFallbackCompositionEnd() defined?
isFallbackCompositionEnd() is defined in packages/react-dom-bindings/src/events/plugins/BeforeInputEventPlugin.js at line 135.
What calls isFallbackCompositionEnd()?
isFallbackCompositionEnd() is called by 2 function(s): extractCompositionEvent, getFallbackBeforeInputChars.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free