Add keyboard controls for members list & profile
This commit is contained in:
@@ -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 = ""
|
||||
|
Reference in New Issue
Block a user