Add escape to exit and clear room filter field
This commit is contained in:
parent
a15fba92cb
commit
134543728e
1
TODO.md
1
TODO.md
|
@ -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
|
||||
|
|
|
@ -106,6 +106,7 @@ class UISettings(JSONConfigFile):
|
|||
return {
|
||||
"alertOnMessageForMsec": 4000,
|
||||
"clearRoomFilterOnEnter": True,
|
||||
"clearRoomFilterOnEscape": True,
|
||||
"theme": "Default.qpl",
|
||||
"writeAliases": {},
|
||||
"keys": {
|
||||
|
|
|
@ -95,6 +95,12 @@ Rectangle {
|
|||
|
||||
sidePaneList.activate()
|
||||
}
|
||||
Keys.onEscapePressed: {
|
||||
if (window.settings.clearRoomFilterOnEscape) {
|
||||
mainUI.sidePane.toolBar.roomFilter = ""
|
||||
}
|
||||
mainUI.pageLoader.forceActiveFocus()
|
||||
}
|
||||
|
||||
|
||||
HColumnLayout {
|
||||
|
|
Loading…
Reference in New Issue
Block a user