* Google Input Tools provides composition data via a CustomEvent, * with the `data` property populated in the `detail` object. If this * is available on the event object, use it. If not, this is a plain * composition event and we have nothing special to extract. * * @param {object} nativeEvent
(nativeEvent)
| 194 | * @return {?string} |
| 195 | */ |
| 196 | function getDataFromCustomEvent(nativeEvent) { |
| 197 | var detail = nativeEvent.detail; |
| 198 | if (typeof detail === 'object' && 'data' in detail) { |
| 199 | return detail.data; |
| 200 | } |
| 201 | return null; |
| 202 | } |
| 203 | |
| 204 | // Track the current IME composition fallback object, if any. |
| 205 | var currentComposition = null; |
no outgoing calls
no test coverage detected
searching dependent graphs…