mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-22 11:38:57 +00:00
fix: unbreak handling "up" key event in multiline text
pressing the "down" key was working fine, the "up" key to move the cursor to the previous line was broken don't force the focus if it already has it and let the parent TextEdit internals handle the event if we are not interested in it
This commit is contained in:
parent
c8877aaf97
commit
05b28e6f6c
@ -1244,7 +1244,7 @@ Rectangle {
|
||||
leftPadding: 0
|
||||
padding: 0
|
||||
Keys.onUpPressed: {
|
||||
if (isEdit) {
|
||||
if (isEdit && !activeFocus) {
|
||||
forceActiveFocus();
|
||||
} else {
|
||||
if (messageInputField.length === 0) {
|
||||
@ -1254,6 +1254,7 @@ Rectangle {
|
||||
if (emojiSuggestions.visible) {
|
||||
emojiSuggestions.listView.decrementCurrentIndex();
|
||||
}
|
||||
event.accepted = false
|
||||
}
|
||||
Keys.onPressed: {
|
||||
keyEvent = event;
|
||||
|
Loading…
x
Reference in New Issue
Block a user