Close popup on SelectAll

This commit is contained in:
Thomas Karpiniec 2021-08-21 13:29:27 +10:00
parent 327a889ad5
commit 47ad58ef49
1 changed files with 4 additions and 0 deletions

View File

@ -176,7 +176,11 @@ Rectangle {
} else if (event.key == Qt.Key_Escape && popup.opened) {
completerTriggeredAt = -1;
popup.completerName = "";
popup.close();
event.accepted = true;
} else if (event.matches(StandardKey.SelectAll) && popup.opened) {
completerTriggeredAt = -1;
popup.completerName = "";
popup.close();
} else if (event.matches(StandardKey.InsertParagraphSeparator)) {
if (popup.opened) {