Fixed issue 70: Unable to type characters with CTRL+ALT

This commit is contained in:
veeso
2021-10-04 20:40:24 +02:00
parent 58d5ea264f
commit 4973bf8cbe
7 changed files with 39 additions and 18 deletions

View File

@@ -113,7 +113,6 @@ impl FileTransferActivity {
error!("Failed to disable raw mode: {}", err);
}
// Leave alternate mode
#[cfg(not(target_os = "windows"))]
if let Some(ctx) = self.context.as_mut() {
ctx.leave_alternate_screen();
}
@@ -128,7 +127,6 @@ impl FileTransferActivity {
),
Err(err) => return Err(format!("Could not open editor: {}", err)),
}
#[cfg(not(target_os = "windows"))]
if let Some(ctx) = self.context.as_mut() {
// Clear screen
ctx.clear_screen();