From f8293a12f4e2fb24194a3f63b05f18891e794578 Mon Sep 17 00:00:00 2001 From: alexjba <47811206+alexjba@users.noreply.github.com> Date: Mon, 21 Nov 2022 11:24:57 +0200 Subject: [PATCH] StatusChatInput.qml - Fixing emoij suggestion keyNav Fixing up/down key handler when emojiSuggestions are visible --- ui/imports/shared/status/StatusChatInput.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/imports/shared/status/StatusChatInput.qml b/ui/imports/shared/status/StatusChatInput.qml index 2da2567c1b..4fa2d487b7 100644 --- a/ui/imports/shared/status/StatusChatInput.qml +++ b/ui/imports/shared/status/StatusChatInput.qml @@ -422,10 +422,12 @@ Rectangle { event.accepted = true } - if (event.key === Qt.Key_Down) { + if (event.key === Qt.Key_Down && emojiSuggestions.visible) { + event.accepted = true return emojiSuggestions.listView.incrementCurrentIndex() } - if (event.key === Qt.Key_Up) { + if (event.key === Qt.Key_Up && emojiSuggestions.visible) { + event.accepted = true return emojiSuggestions.listView.decrementCurrentIndex() }