Add room header buttons to access sidepanes

This commit is contained in:
miruka
2020-03-17 16:39:29 -04:00
parent 5392016dab
commit b092cc11eb
8 changed files with 92 additions and 3 deletions

View File

@@ -53,6 +53,17 @@ HBox {
encryptCheckBox.changed || requireInviteCheckbox.changed ||
forbidGuestsCheckBox.changed
readonly property Item keybindFocusItem: {
for (let i = 0; i < visibleChildren.length; i++) {
const child = visibleChildren[i]
if (child.focus || (child.field && child.field.focus))
return visibleChildren[i]
}
return nameField.field
}
HRoomAvatar {
id: avatar
@@ -74,6 +85,8 @@ HBox {
field.enabled: chat.roomInfo.can_set_name
Layout.fillWidth: true
Component.onCompleted: field.forceActiveFocus()
}
HLabeledTextField {