From 96528fe2e114123934d0a8ec4e3dde02a16e02ac Mon Sep 17 00:00:00 2001 From: Shang Yuanchun Date: Sat, 28 Sep 2019 23:01:22 +0800 Subject: [PATCH] Focus to terminal after rz transfer completed (#237) * Focus to terminal after rz transfer completed * Generate index.html after commit d355d7b9c856171512c2db4668a223b5ebb1b3ee --- html/src/components/zmodem/index.tsx | 2 ++ src/index.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/html/src/components/zmodem/index.tsx b/html/src/components/zmodem/index.tsx index 24d3952..cab3865 100644 --- a/html/src/components/zmodem/index.tsx +++ b/html/src/components/zmodem/index.tsx @@ -70,6 +70,8 @@ export class ZmodemAddon extends Component implements ITerminalAdd this.keyDispose.dispose(); this.keyDispose = null; } + + this.terminal.focus(); } @bind diff --git a/src/index.html b/src/index.html index 03b0b55..5fc1b52 100644 --- a/src/index.html +++ b/src/index.html @@ -1 +1 @@ -ttyd - Terminal \ No newline at end of file +ttyd - Terminal \ No newline at end of file -- 2.43.4