Fix SendText/SendKeystroke having the wrong context name in terminal

Co-Authored-By: Max Brunsfeld <max@zed.dev>
This commit is contained in:
Julia 2024-01-04 12:35:51 -05:00
parent 8d07246f7d
commit d79b8e4b98
2 changed files with 2 additions and 10 deletions

View file

@ -61,15 +61,7 @@ use lazy_static::lazy_static;
actions!( actions!(
terminal, terminal,
[ [Clear, Copy, Paste, ShowCharacterPalette, SearchTest,]
Clear,
Copy,
Paste,
ShowCharacterPalette,
SearchTest,
SendText,
SendKeystroke,
]
); );
///Scrolling is unbearably sluggish by default. Alacritty supports a configurable ///Scrolling is unbearably sluggish by default. Alacritty supports a configurable

View file

@ -57,7 +57,7 @@ pub struct SendText(String);
#[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[derive(Clone, Debug, Default, Deserialize, PartialEq)]
pub struct SendKeystroke(String); pub struct SendKeystroke(String);
impl_actions!(terminal_view, [SendText, SendKeystroke]); impl_actions!(terminal, [SendText, SendKeystroke]);
pub fn init(cx: &mut AppContext) { pub fn init(cx: &mut AppContext) {
terminal_panel::init(cx); terminal_panel::init(cx);