diff --git a/src/SearchPrompt.php b/src/SearchPrompt.php index 1d6f4255..9ecef48a 100644 --- a/src/SearchPrompt.php +++ b/src/SearchPrompt.php @@ -48,7 +48,7 @@ public function __construct( Key::UP, Key::UP_ARROW, Key::SHIFT_TAB, Key::CTRL_P => $this->highlightPrevious(), Key::DOWN, Key::DOWN_ARROW, Key::TAB, Key::CTRL_N => $this->highlightNext(), Key::ENTER => $this->highlighted !== null ? $this->submit() : $this->search(), - Key::LEFT, Key::LEFT_ARROW, Key::RIGHT, Key::RIGHT_ARROW, Key::CTRL_B, Key::CTRL_F, Key::CTRL_A, Key::CTRL_E => $this->highlighted = null, + Key::LEFT, Key::LEFT_ARROW, Key::RIGHT, Key::RIGHT_ARROW, Key::CTRL_B, Key::CTRL_F, Key::HOME, KEY::END, Key::CTRL_A, Key::CTRL_E => $this->highlighted = null, default => $this->search(), }); } diff --git a/src/SuggestPrompt.php b/src/SuggestPrompt.php index 75cab3b7..9ae71094 100644 --- a/src/SuggestPrompt.php +++ b/src/SuggestPrompt.php @@ -58,7 +58,7 @@ public function __construct( Key::UP, Key::UP_ARROW, Key::SHIFT_TAB, Key::CTRL_P => $this->highlightPrevious(), Key::DOWN, Key::DOWN_ARROW, Key::TAB, Key::CTRL_N => $this->highlightNext(), Key::ENTER => $this->selectHighlighted(), - Key::LEFT, Key::LEFT_ARROW, Key::RIGHT, Key::RIGHT_ARROW, Key::CTRL_B, Key::CTRL_F, Key::CTRL_A, Key::CTRL_E => $this->highlighted = null, + Key::LEFT, Key::LEFT_ARROW, Key::RIGHT, Key::RIGHT_ARROW, Key::CTRL_B, Key::CTRL_F, Key::HOME, KEY::END, Key::CTRL_A, Key::CTRL_E => $this->highlighted = null, default => (function () { $this->highlighted = null; $this->matches = null;