Fix enter when no completion available
This commit is contained in:
parent
bc93f24a22
commit
0eb8d4126b
@ -117,7 +117,8 @@ Rectangle {
|
||||
popup.completerName = "";
|
||||
event.accepted = true;
|
||||
popup.close();
|
||||
} else if (event.matches(StandardKey.InsertParagraphSeparator) && popup.opened) {
|
||||
} else if (event.matches(StandardKey.InsertParagraphSeparator)) {
|
||||
if (popup.opened) {
|
||||
var currentCompletion = popup.currentCompletion();
|
||||
popup.completerName = "";
|
||||
popup.close();
|
||||
@ -126,6 +127,10 @@ Rectangle {
|
||||
event.accepted = true;
|
||||
return ;
|
||||
}
|
||||
}
|
||||
TimelineManager.timeline.input.send();
|
||||
textArea.clear();
|
||||
event.accepted = true;
|
||||
} else if (event.key == Qt.Key_Tab && popup.opened) {
|
||||
event.accepted = true;
|
||||
popup.down();
|
||||
@ -135,10 +140,6 @@ Rectangle {
|
||||
} else if (event.key == Qt.Key_Down && popup.opened) {
|
||||
event.accepted = true;
|
||||
popup.down();
|
||||
} else if (event.matches(StandardKey.InsertParagraphSeparator)) {
|
||||
TimelineManager.timeline.input.send();
|
||||
textArea.clear();
|
||||
event.accepted = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user