Add clearRoomFilterOnEnter setting, default true
This commit is contained in:
parent
a731013a8c
commit
a15fba92cb
|
@ -105,6 +105,7 @@ class UISettings(JSONConfigFile):
|
|||
async def default_data(self) -> JsonData:
|
||||
return {
|
||||
"alertOnMessageForMsec": 4000,
|
||||
"clearRoomFilterOnEnter": True,
|
||||
"theme": "Default.qpl",
|
||||
"writeAliases": {},
|
||||
"keys": {
|
||||
|
|
|
@ -89,6 +89,10 @@ Rectangle {
|
|||
Keys.onReturnPressed: if (event.modifiers & Qt.ShiftModifier) {
|
||||
sidePaneList.toggleCollapseAccount()
|
||||
} else {
|
||||
if (window.settings.clearRoomFilterOnEnter) {
|
||||
mainUI.sidePane.toolBar.roomFilter = ""
|
||||
}
|
||||
|
||||
sidePaneList.activate()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user