Commit fc1780f1 authored by Martin Aumüller's avatar Martin Aumüller Committed by hjk
Browse files

don't allow keys with empty text to reset the currently selected completion item

forwarding keys with empty text() does not restrict the matching items, but
updating the list of possible completions resets the currently selected item to
the first one
parent 1a1d0e26
......@@ -211,6 +211,9 @@ bool CompletionWidget::event(QEvent *e)
forwardKeys = false;
// if a key is forwarded, completion widget is re-opened and selected item is reset to first,
// so only forward keys that insert text and refine the completed item
forwardKeys = !ke->text().isEmpty();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment