* Translate native top level events into event types. * * @param {string} topLevelType * @return {object}
(topLevelType)
| 8816 | |
| 8817 | |
| 8818 | function getCompositionEventType(topLevelType) { |
| 8819 | switch (topLevelType) { |
| 8820 | case TOP_COMPOSITION_START: |
| 8821 | return eventTypes.compositionStart; |
| 8822 | |
| 8823 | case TOP_COMPOSITION_END: |
| 8824 | return eventTypes.compositionEnd; |
| 8825 | |
| 8826 | case TOP_COMPOSITION_UPDATE: |
| 8827 | return eventTypes.compositionUpdate; |
| 8828 | } |
| 8829 | } |
| 8830 | /** |
| 8831 | * Does our fallback best-guess model think this event signifies that |
| 8832 | * composition has begun? |
no outgoing calls
no test coverage detected