Support clipboard to text input (#1926)

This commit is contained in:
哇呜哇呜呀咦耶 2022-11-12 10:47:02 +08:00 committed by GitHub
parent a71b2ae890
commit 9f827805f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -114,6 +114,24 @@ impl InputHandler {
None, 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,
);
}
}, },
_ => {}, _ => {},
} }