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
|
- Verify big avatars aren't downloaded uselessly
|
||||||
|
|
||||||
- UI
|
- UI
|
||||||
- Esc in sidepane to focus chat again
|
|
||||||
- Set an explicit placeholder text color for text field/area
|
- Set an explicit placeholder text color for text field/area
|
||||||
- Change typing bar background
|
- Change typing bar background
|
||||||
- Show error if uploading avatar fails or file is corrupted
|
- Show error if uploading avatar fails or file is corrupted
|
||||||
|
|
|
@ -106,6 +106,7 @@ class UISettings(JSONConfigFile):
|
||||||
return {
|
return {
|
||||||
"alertOnMessageForMsec": 4000,
|
"alertOnMessageForMsec": 4000,
|
||||||
"clearRoomFilterOnEnter": True,
|
"clearRoomFilterOnEnter": True,
|
||||||
|
"clearRoomFilterOnEscape": True,
|
||||||
"theme": "Default.qpl",
|
"theme": "Default.qpl",
|
||||||
"writeAliases": {},
|
"writeAliases": {},
|
||||||
"keys": {
|
"keys": {
|
||||||
|
|
|
@ -95,6 +95,12 @@ Rectangle {
|
||||||
|
|
||||||
sidePaneList.activate()
|
sidePaneList.activate()
|
||||||
}
|
}
|
||||||
|
Keys.onEscapePressed: {
|
||||||
|
if (window.settings.clearRoomFilterOnEscape) {
|
||||||
|
mainUI.sidePane.toolBar.roomFilter = ""
|
||||||
|
}
|
||||||
|
mainUI.pageLoader.forceActiveFocus()
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
HColumnLayout {
|
HColumnLayout {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user