Add keybind to toggle room pane focus
This commit is contained in:
@@ -37,6 +37,7 @@ MultiviewPane {
|
||||
|
||||
function toggleFocus() {
|
||||
if (swipeView.currentItem.keybindFocusItem.activeFocus) {
|
||||
if (roomPane.collapse) roomPane.close()
|
||||
pageLoader.takeFocus()
|
||||
return
|
||||
}
|
||||
|
@@ -53,16 +53,7 @@ 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
|
||||
}
|
||||
readonly property Item keybindFocusItem: nameField.field
|
||||
|
||||
|
||||
HRoomAvatar {
|
||||
|
Reference in New Issue
Block a user