diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-01-17 11:43:05 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-17 11:43:05 -0500 |
commit | be590004fee5bbbbaefa8a11ddecdb4fca6f7da7 (patch) | |
tree | 40ff739237817035f3836667eba1068233ad0762 /ext/mixed/js/display.js | |
parent | 5d9d96996e1b80ecca94023e20476e5e2f85bbff (diff) |
Text scanner improvements (#1261)
* Add support for allowing TextScanner.search to force focus
* Simplify query parser searched event forwarding
* Defer fallback creation
* Simplify event listeners
* Change type to pointerType
* Change cause to eventType
* Change empty to passive; make .search function passive
* Remove unused input index
Diffstat (limited to 'ext/mixed/js/display.js')
-rw-r--r-- | ext/mixed/js/display.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js index eca4dda5..b8baccf9 100644 --- a/ext/mixed/js/display.js +++ b/ext/mixed/js/display.js @@ -587,11 +587,11 @@ class Display extends EventDispatcher { } } - _onQueryParserSearch({type, definitions, sentence, inputInfo: {cause}, textSource, optionsContext}) { + _onQueryParserSearch({type, definitions, sentence, inputInfo: {eventType}, textSource, optionsContext}) { const query = textSource.text(); const historyState = this._history.state; const history = ( - cause === 'click' || + eventType === 'click' || !isObject(historyState) || historyState.cause !== 'queryParser' ); |