Add escape to exit and clear room filter field

This commit is contained in:
miruka
2019-09-07 16:46:30 -04:00
parent a15fba92cb
commit 134543728e
3 changed files with 7 additions and 1 deletions

View File

@@ -95,6 +95,12 @@ Rectangle {
sidePaneList.activate()
}
Keys.onEscapePressed: {
if (window.settings.clearRoomFilterOnEscape) {
mainUI.sidePane.toolBar.roomFilter = ""
}
mainUI.pageLoader.forceActiveFocus()
}
HColumnLayout {