mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
If there are no completions matching, detach the completer.
This prevents an invisible completer from swallowing keystrokes such as up/down
This commit is contained in:
parent
e7483ed9e5
commit
72c9c3f020
1 changed files with 2 additions and 0 deletions
|
@ -134,6 +134,8 @@ define [
|
||||||
editor.completer.showPopup(editor)
|
editor.completer.showPopup(editor)
|
||||||
editor.completer.cancelContextMenu()
|
editor.completer.cancelContextMenu()
|
||||||
$(editor.completer.popup?.container).css({'font-size': @$scope.fontSize + 'px'})
|
$(editor.completer.popup?.container).css({'font-size': @$scope.fontSize + 'px'})
|
||||||
|
if editor.completer?.completions?.filtered?.length == 0
|
||||||
|
editor.completer.detach()
|
||||||
bindKey: "Ctrl-Space|Ctrl-Shift-Space|Alt-Space"
|
bindKey: "Ctrl-Space|Ctrl-Shift-Space|Alt-Space"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue