diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-01-27 19:19:21 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-01-27 19:19:21 +0100 |
commit | d1280af2e4c704147a36da510faa0a994d3159c7 (patch) | |
tree | 459ba7dbdf0d50fe5ffef9ccb8a70756c11c9497 /resources/qml/MessageInput.qml | |
parent | Translate some of the new messages (diff) | |
download | nheko-d1280af2e4c704147a36da510faa0a994d3159c7.tar.xz |
Autoclose completer when space is pressed and no suggestion available
Diffstat (limited to 'resources/qml/MessageInput.qml')
-rw-r--r-- | resources/qml/MessageInput.qml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/resources/qml/MessageInput.qml b/resources/qml/MessageInput.qml index 12362f57..138a9ab6 100644 --- a/resources/qml/MessageInput.qml +++ b/resources/qml/MessageInput.qml @@ -162,6 +162,9 @@ Rectangle { if (event.matches(StandardKey.Paste)) { TimelineManager.timeline.input.paste(false); event.accepted = true; + } else if (event.key == Qt.Key_Space) { + if (popup.opened && popup.count <= 0) + popup.close() } else if (event.modifiers == Qt.ControlModifier && event.key == Qt.Key_U) { messageInput.clear(); } else if (event.modifiers == Qt.ControlModifier && event.key == Qt.Key_P) { |