mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
Solved the annoying stuff related to this <https://github.com/rust-lang/rust/issues/59159>.
This commit is contained in:
@@ -797,9 +797,17 @@ impl FileTransferActivity {
|
|||||||
///
|
///
|
||||||
/// Handle input event based on current input mode
|
/// Handle input event based on current input mode
|
||||||
fn handle_input_event(&mut self, ev: &InputEvent) {
|
fn handle_input_event(&mut self, ev: &InputEvent) {
|
||||||
|
// NOTE: this is necessary due to this <https://github.com/rust-lang/rust/issues/59159>
|
||||||
|
// NOTE: Do you want my opinion about that issue? It's a bs and doesn't make any sense.
|
||||||
|
let popup: Option<PopupType> = match &self.input_mode {
|
||||||
|
InputMode::Popup(ptype) => Some(ptype.clone()),
|
||||||
|
_ => None
|
||||||
|
};
|
||||||
match &self.input_mode {
|
match &self.input_mode {
|
||||||
InputMode::Explorer => self.handle_input_event_mode_explorer(ev),
|
InputMode::Explorer => self.handle_input_event_mode_explorer(ev),
|
||||||
InputMode::Popup(ptype) => self.handle_input_event_mode_popup(ev, ptype.clone()),
|
InputMode::Popup(_) => if let Some(popup) = popup {
|
||||||
|
self.handle_input_event_mode_popup(ev, popup);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user