mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-17 18:11:54 +00:00
StatusChatInput.qml - Fixing emoij suggestion keyNav
Fixing up/down key handler when emojiSuggestions are visible
This commit is contained in:
parent
1b2fd40b20
commit
f8293a12f4
@ -422,10 +422,12 @@ Rectangle {
|
|||||||
event.accepted = true
|
event.accepted = true
|
||||||
}
|
}
|
||||||
|
|
||||||
if (event.key === Qt.Key_Down) {
|
if (event.key === Qt.Key_Down && emojiSuggestions.visible) {
|
||||||
|
event.accepted = true
|
||||||
return emojiSuggestions.listView.incrementCurrentIndex()
|
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()
|
return emojiSuggestions.listView.decrementCurrentIndex()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user