Let escape presses work properly inside HDrawer
Also add escape to clear member filter when focusing the field, and clearMemberFilterOnEscape setting.
This commit is contained in:
@@ -61,6 +61,11 @@ HColumnLayout {
|
||||
onTextChanged:
|
||||
py.callCoro("set_substring_filter", [modelSyncId, text])
|
||||
|
||||
Keys.onEscapePressed: {
|
||||
roomPane.toggleFocus()
|
||||
if (window.settings.clearMemberFilterOnEscape) text = ""
|
||||
}
|
||||
|
||||
Behavior on opacity { HNumberAnimation {} }
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user