From: Shang Yuanchun Date: Sat, 28 Sep 2019 15:01:22 +0000 (+0800) Subject: Focus to terminal after rz transfer completed (#237) X-Git-Url: http://git.prime8.dev/?a=commitdiff_plain;h=96528fe2e114123934d0a8ec4e3dde02a16e02ac;p=ttyd.git Focus to terminal after rz transfer completed (#237) * Focus to terminal after rz transfer completed * Generate index.html after commit d355d7b9c856171512c2db4668a223b5ebb1b3ee --- 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