diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-08-28 00:38:33 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-08-29 16:32:22 +0200 |
commit | 09c041c8ac40d2d3608c7224614fde69e1e4f08b (patch) | |
tree | b606a260d7f22a703684e186a0af9d8215be734d /resources/qml/MessageInput.qml | |
parent | Remove CC-BY as main project license (diff) | |
download | nheko-09c041c8ac40d2d3608c7224614fde69e1e4f08b.tar.xz |
Use in memory media player instead of storing unencrypted files on disk
Diffstat (limited to 'resources/qml/MessageInput.qml')
-rw-r--r-- | resources/qml/MessageInput.qml | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/resources/qml/MessageInput.qml b/resources/qml/MessageInput.qml index 36d8fbce..e1bf3f06 100644 --- a/resources/qml/MessageInput.qml +++ b/resources/qml/MessageInput.qml @@ -134,9 +134,9 @@ Rectangle { return ; room.input.updateState(selectionStart, selectionEnd, cursorPosition, text); - if (popup.opened && cursorPosition <= completerTriggeredAt) { + if (popup.opened && cursorPosition <= completerTriggeredAt) popup.close(); - } + if (popup.opened) popup.completer.setSearchString(messageInput.getText(completerTriggeredAt, cursorPosition)); @@ -195,11 +195,10 @@ Rectangle { } else if (event.key == Qt.Key_Tab) { event.accepted = true; if (popup.opened) { - if (event.modifiers & Qt.ShiftModifier) { + if (event.modifiers & Qt.ShiftModifier) popup.down(); - } else { + else popup.up(); - } } else { var pos = cursorPosition - 1; while (pos > -1) { |