added alt as meta setting
This commit is contained in:
parent
7c6769b392
commit
9c42b92663
4 changed files with 79 additions and 34 deletions
|
@ -155,8 +155,14 @@ impl TerminalView {
|
|||
{
|
||||
cx.show_character_palette();
|
||||
} else {
|
||||
self.terminal.update(cx, |term, _| {
|
||||
term.try_keystroke(&Keystroke::parse("ctrl-cmd-space").unwrap())
|
||||
self.terminal.update(cx, |term, cx| {
|
||||
term.try_keystroke(
|
||||
&Keystroke::parse("ctrl-cmd-space").unwrap(),
|
||||
cx.global::<Settings>()
|
||||
.terminal_overrides
|
||||
.option_as_meta
|
||||
.unwrap_or(false),
|
||||
)
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -280,7 +286,7 @@ impl TerminalView {
|
|||
fn up(&mut self, _: &Up, cx: &mut ViewContext<Self>) {
|
||||
self.clear_bel(cx);
|
||||
self.terminal.update(cx, |term, _| {
|
||||
term.try_keystroke(&Keystroke::parse("up").unwrap())
|
||||
term.try_keystroke(&Keystroke::parse("up").unwrap(), false)
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -288,7 +294,7 @@ impl TerminalView {
|
|||
fn down(&mut self, _: &Down, cx: &mut ViewContext<Self>) {
|
||||
self.clear_bel(cx);
|
||||
self.terminal.update(cx, |term, _| {
|
||||
term.try_keystroke(&Keystroke::parse("down").unwrap())
|
||||
term.try_keystroke(&Keystroke::parse("down").unwrap(), false)
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -296,7 +302,7 @@ impl TerminalView {
|
|||
fn ctrl_c(&mut self, _: &CtrlC, cx: &mut ViewContext<Self>) {
|
||||
self.clear_bel(cx);
|
||||
self.terminal.update(cx, |term, _| {
|
||||
term.try_keystroke(&Keystroke::parse("ctrl-c").unwrap())
|
||||
term.try_keystroke(&Keystroke::parse("ctrl-c").unwrap(), false)
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -304,7 +310,7 @@ impl TerminalView {
|
|||
fn escape(&mut self, _: &Escape, cx: &mut ViewContext<Self>) {
|
||||
self.clear_bel(cx);
|
||||
self.terminal.update(cx, |term, _| {
|
||||
term.try_keystroke(&Keystroke::parse("escape").unwrap())
|
||||
term.try_keystroke(&Keystroke::parse("escape").unwrap(), false)
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -312,7 +318,7 @@ impl TerminalView {
|
|||
fn enter(&mut self, _: &Enter, cx: &mut ViewContext<Self>) {
|
||||
self.clear_bel(cx);
|
||||
self.terminal.update(cx, |term, _| {
|
||||
term.try_keystroke(&Keystroke::parse("enter").unwrap())
|
||||
term.try_keystroke(&Keystroke::parse("enter").unwrap(), false)
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue