Tab to move down completer

This commit is contained in:
Nicolas Werner 2021-08-14 12:19:15 +02:00
parent 69e65cef2f
commit 24366b7520
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
2 changed files with 6 additions and 0 deletions

View file

@ -86,6 +86,9 @@ Popup {
} else if (event.key == Qt.Key_Down && completerPopup.opened) { } else if (event.key == Qt.Key_Down && completerPopup.opened) {
event.accepted = true; event.accepted = true;
completerPopup.down(); completerPopup.down();
} else if (event.key == Qt.Key_Tab && completerPopup.opened) {
event.accepted = true;
completerPopup.down();
} else if (event.matches(StandardKey.InsertParagraphSeparator)) { } else if (event.matches(StandardKey.InsertParagraphSeparator)) {
completerPopup.finishCompletion(); completerPopup.finishCompletion();
event.accepted = true; event.accepted = true;

View file

@ -45,6 +45,9 @@ Popup {
} else if (event.key == Qt.Key_Down && completerPopup.opened) { } else if (event.key == Qt.Key_Down && completerPopup.opened) {
event.accepted = true; event.accepted = true;
completerPopup.down(); completerPopup.down();
} else if (event.key == Qt.Key_Tab && completerPopup.opened) {
event.accepted = true;
completerPopup.down();
} else if (event.matches(StandardKey.InsertParagraphSeparator)) { } else if (event.matches(StandardKey.InsertParagraphSeparator)) {
completerPopup.finishCompletion(); completerPopup.finishCompletion();
event.accepted = true; event.accepted = true;