Support clipboard to text input (#1926)
This commit is contained in:
parent
a71b2ae890
commit
9f827805f1
1 changed files with 18 additions and 0 deletions
|
|
@ -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,
|
||||||
|
);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
_ => {},
|
_ => {},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue