Add keyboard controls for members list & profile

This commit is contained in:
miruka
2020-07-09 14:53:01 -04:00
parent dc2a7b8ee1
commit 92cbc4b006
4 changed files with 31 additions and 7 deletions

View File

@@ -37,6 +37,12 @@ HColumnLayout {
},
)
}
Keys.onEnterPressed: Keys.onReturnPressed(event)
Keys.onReturnPressed: {
currentItem.leftClicked()
currentItem.clicked()
}
}
Layout.fillWidth: true
@@ -75,6 +81,9 @@ HColumnLayout {
py.callCoro("set_substring_filter", [modelSyncId, text])
}
Keys.forwardTo: [stackView.currentItem]
Keys.priority: Keys.AfterItem
Keys.onEscapePressed: {
roomPane.toggleFocus()
if (window.settings.clearMemberFilterOnEscape) text = ""