Add window close keybindings for Settings UI (#39578)

Closes #ISSUE

Release Notes:

- N/A
This commit is contained in:
Mikayla Maki
2025-10-06 07:27:54 +00:00
committed by GitHub
parent f9919f9214
commit ee557fb7ea
3 changed files with 25 additions and 2 deletions
+9 -1
View File
@@ -369,7 +369,15 @@
"bindings": { "bindings": {
"new": "rules_library::NewRule", "new": "rules_library::NewRule",
"ctrl-n": "rules_library::NewRule", "ctrl-n": "rules_library::NewRule",
"ctrl-shift-s": "rules_library::ToggleDefaultRule" "ctrl-shift-s": "rules_library::ToggleDefaultRule",
"ctrl-w": "workspace::CloseWindow"
}
},
{
"context": "SettingsWindow",
"use_key_equivalents": true,
"bindings": {
"ctrl-w": "workspace::CloseWindow"
} }
}, },
{ {
+7
View File
@@ -430,6 +430,13 @@
"cmd-w": "workspace::CloseWindow" "cmd-w": "workspace::CloseWindow"
} }
}, },
{
"context": "SettingsWindow",
"use_key_equivalents": true,
"bindings": {
"cmd-w": "workspace::CloseWindow"
}
},
{ {
"context": "BufferSearchBar", "context": "BufferSearchBar",
"use_key_equivalents": true, "use_key_equivalents": true,
+9 -1
View File
@@ -378,7 +378,15 @@
"use_key_equivalents": true, "use_key_equivalents": true,
"bindings": { "bindings": {
"ctrl-n": "rules_library::NewRule", "ctrl-n": "rules_library::NewRule",
"ctrl-shift-s": "rules_library::ToggleDefaultRule" "ctrl-shift-s": "rules_library::ToggleDefaultRule",
"ctrl-w": "workspace::CloseWindow"
}
},
{
"context": "SettingsWindow",
"use_key_equivalents": true,
"bindings": {
"ctrl-w": "workspace::CloseWindow"
} }
}, },
{ {