assistant2: Rename key context to AgentPanel
(#27859)
This PR renames the key context for the Agent Panel from "AssistantPanel2" to "AgentPanel". Release Notes: - N/A
This commit is contained in:
parent
0ad4656489
commit
e63df58adc
3 changed files with 5 additions and 5 deletions
|
@ -625,7 +625,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"context": "AssistantPanel2",
|
"context": "AgentPanel",
|
||||||
"bindings": {
|
"bindings": {
|
||||||
"ctrl-n": "assistant2::NewThread",
|
"ctrl-n": "assistant2::NewThread",
|
||||||
"new": "assistant2::NewThread",
|
"new": "assistant2::NewThread",
|
||||||
|
@ -640,7 +640,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"context": "AssistantPanel2 && prompt_editor",
|
"context": "AgentPanel && prompt_editor",
|
||||||
"use_key_equivalents": true,
|
"use_key_equivalents": true,
|
||||||
"bindings": {
|
"bindings": {
|
||||||
"cmd-n": "assistant2::NewPromptEditor",
|
"cmd-n": "assistant2::NewPromptEditor",
|
||||||
|
|
|
@ -277,7 +277,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"context": "AssistantPanel2",
|
"context": "AgentPanel",
|
||||||
"use_key_equivalents": true,
|
"use_key_equivalents": true,
|
||||||
"bindings": {
|
"bindings": {
|
||||||
"cmd-n": "assistant2::NewThread",
|
"cmd-n": "assistant2::NewThread",
|
||||||
|
@ -292,7 +292,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"context": "AssistantPanel2 && prompt_editor",
|
"context": "AgentPanel && prompt_editor",
|
||||||
"use_key_equivalents": true,
|
"use_key_equivalents": true,
|
||||||
"bindings": {
|
"bindings": {
|
||||||
"cmd-n": "assistant2::NewPromptEditor",
|
"cmd-n": "assistant2::NewPromptEditor",
|
||||||
|
|
|
@ -1182,7 +1182,7 @@ impl AssistantPanel {
|
||||||
|
|
||||||
fn key_context(&self) -> KeyContext {
|
fn key_context(&self) -> KeyContext {
|
||||||
let mut key_context = KeyContext::new_with_defaults();
|
let mut key_context = KeyContext::new_with_defaults();
|
||||||
key_context.add("AssistantPanel2");
|
key_context.add("AgentPanel");
|
||||||
if matches!(self.active_view, ActiveView::PromptEditor) {
|
if matches!(self.active_view, ActiveView::PromptEditor) {
|
||||||
key_context.add("prompt_editor");
|
key_context.add("prompt_editor");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue