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