Topic text areas: focus next item on tab

This commit is contained in:
miruka 2020-06-03 04:58:09 -04:00
parent 7f72373afe
commit 106bb3546f
3 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,5 @@
# TODO # TODO
- text area tab handling
- fix cursor over field - fix cursor over field
- update room highlight when creating new room - update room highlight when creating new room
- keyerror when forgetting room while loading members - keyerror when forgetting room while loading members

View File

@ -94,6 +94,7 @@ HBox {
HTextArea { HTextArea {
width: parent.width width: parent.width
placeholderText: qsTr("This room is about...") placeholderText: qsTr("This room is about...")
focusItemOnTab: publicCheckBox
} }
} }

View File

@ -112,6 +112,11 @@ HBox {
placeholderText: qsTr("This room is about...") placeholderText: qsTr("This room is about...")
defaultText: chat.roomInfo.plain_topic defaultText: chat.roomInfo.plain_topic
enabled: chat.roomInfo.can_set_topic enabled: chat.roomInfo.can_set_topic
focusItemOnTab:
encryptCheckBox.checked ?
requireInviteCheckbox :
encryptCheckBox
} }
} }