Fix issue with cmd-w
closing window in preview tabs on MacOS (#25878)
Closes #25810 Reorders default macOS keymap so that `cmd-w` in `"context": "PromptLibrary"` bindings is not the last binding for `workspace::CloseWindow` and therefore does not get rendered in the app menu or intercepted by MacOS Release Notes: - N/A
This commit is contained in:
parent
e00d737196
commit
fec228bb23
1 changed files with 11 additions and 9 deletions
|
@ -1,4 +1,15 @@
|
|||
[
|
||||
// Moved before Standard macOS bindings so that `cmd-w` is not the last binding for
|
||||
// `workspace::CloseWindow` and displayed/intercepted by macOS
|
||||
{
|
||||
"context": "PromptLibrary",
|
||||
"use_key_equivalents": true,
|
||||
"bindings": {
|
||||
"cmd-n": "prompt_library::NewPrompt",
|
||||
"cmd-shift-s": "prompt_library::ToggleDefaultPrompt",
|
||||
"cmd-w": "workspace::CloseWindow"
|
||||
}
|
||||
},
|
||||
// Standard macOS bindings
|
||||
{
|
||||
"use_key_equivalents": true,
|
||||
|
@ -270,15 +281,6 @@
|
|||
"backspace": "assistant2::RemoveSelectedThread"
|
||||
}
|
||||
},
|
||||
{
|
||||
"context": "PromptLibrary",
|
||||
"use_key_equivalents": true,
|
||||
"bindings": {
|
||||
"cmd-n": "prompt_library::NewPrompt",
|
||||
"cmd-shift-s": "prompt_library::ToggleDefaultPrompt",
|
||||
"cmd-w": "workspace::CloseWindow"
|
||||
}
|
||||
},
|
||||
{
|
||||
"context": "BufferSearchBar",
|
||||
"use_key_equivalents": true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue