terminal: Fix alt-f and alt-b behavior (#23741)
Fixes alt+f and alt+b (word forward and word backward) behavior in terminal Release Notes: - N/A
This commit is contained in:
@@ -798,6 +798,8 @@
|
|||||||
"shift-insert": "terminal::Paste",
|
"shift-insert": "terminal::Paste",
|
||||||
"ctrl-shift-v": "terminal::Paste",
|
"ctrl-shift-v": "terminal::Paste",
|
||||||
"ctrl-enter": "assistant::InlineAssist",
|
"ctrl-enter": "assistant::InlineAssist",
|
||||||
|
"alt-b": ["terminal::SendText", "\u001bb"],
|
||||||
|
"alt-f": ["terminal::SendText", "\u001bf"],
|
||||||
// Overrides for conflicting keybindings
|
// Overrides for conflicting keybindings
|
||||||
"ctrl-w": ["terminal::SendKeystroke", "ctrl-w"],
|
"ctrl-w": ["terminal::SendKeystroke", "ctrl-w"],
|
||||||
"ctrl-shift-a": "editor::SelectAll",
|
"ctrl-shift-a": "editor::SelectAll",
|
||||||
|
|||||||
@@ -834,6 +834,8 @@
|
|||||||
// Terminal.app compatibility
|
// Terminal.app compatibility
|
||||||
"alt-left": ["terminal::SendText", "\u001bb"],
|
"alt-left": ["terminal::SendText", "\u001bb"],
|
||||||
"alt-right": ["terminal::SendText", "\u001bf"],
|
"alt-right": ["terminal::SendText", "\u001bf"],
|
||||||
|
"alt-b": ["terminal::SendText", "\u001bb"],
|
||||||
|
"alt-f": ["terminal::SendText", "\u001bf"],
|
||||||
// There are conflicting bindings for these keys in the global context.
|
// There are conflicting bindings for these keys in the global context.
|
||||||
// these bindings override them, remove at your own risk:
|
// these bindings override them, remove at your own risk:
|
||||||
"up": ["terminal::SendKeystroke", "up"],
|
"up": ["terminal::SendKeystroke", "up"],
|
||||||
|
|||||||
Reference in New Issue
Block a user