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

@ -26,7 +26,6 @@
- Verify big avatars aren't downloaded uselessly
- UI
- Esc in sidepane to focus chat again
- Set an explicit placeholder text color for text field/area
- Change typing bar background
- Show error if uploading avatar fails or file is corrupted

View File

@ -106,6 +106,7 @@ class UISettings(JSONConfigFile):
return {
"alertOnMessageForMsec": 4000,
"clearRoomFilterOnEnter": True,
"clearRoomFilterOnEscape": True,
"theme": "Default.qpl",
"writeAliases": {},
"keys": {

View File

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