MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / nativeEvent

Function nativeEvent

packages/app-core/src/lib/ime.test.ts:10–12  ·  view source on GitHub ↗
(isComposing: boolean, keyCode = 13)

Source from the content-addressed store, hash-verified

8 return { nativeEvent: { isComposing } as KeyboardEvent, keyCode } as ReactKeyboardEvent
9}
10function nativeEvent(isComposing: boolean, keyCode = 13): KeyboardEvent {
11 return { isComposing, keyCode } as KeyboardEvent
12}
13
14describe('isImeComposing (#183)', () => {
15 it('is true while a React synthetic event is composing', () => {

Callers 1

ime.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected