From 9f827805f18a5e2b0d1070e1db6ae623f451aaa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=93=87=E5=91=9C=E5=93=87=E5=91=9C=E5=91=80=E5=92=A6?= =?UTF-8?q?=E8=80=B6?= Date: Sat, 12 Nov 2022 10:47:02 +0800 Subject: Support clipboard to text input (#1926) --- zellij-client/src/input_handler.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'zellij-client/src') diff --git a/zellij-client/src/input_handler.rs b/zellij-client/src/input_handler.rs index 03cb57dc5..801ff0951 100644 --- a/zellij-client/src/input_handler.rs +++ b/zellij-client/src/input_handler.rs @@ -114,6 +114,24 @@ impl InputHandler { None, ); } + if self.mode == InputMode::EnterSearch { + self.dispatch_action( + Action::SearchInput(pasted_text.as_bytes().to_vec()), + None, + ); + } + if self.mode == InputMode::RenameTab { + self.dispatch_action( + Action::TabNameInput(pasted_text.as_bytes().to_vec()), + None, + ); + } + if self.mode == InputMode::RenamePane { + self.dispatch_action( + Action::PaneNameInput(pasted_text.as_bytes().to_vec()), + None, + ); + } }, _ => {}, } -- cgit v1.2.3