Set focus on xtem.js to terminal

This allows a user to use PgUp/PgDn without first clicking the terminal.

Change-Id: I315f9c8e264a291e4b0e38ecbd1a15dd8df2377c
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2019-04-05 08:55:41 -04:00
parent 5dd031a902
commit 182a831abe
1 changed files with 1 additions and 0 deletions

View File

@ -106,6 +106,7 @@ class StreamPage extends React.Component {
})
term.open(this.terminal)
term.focus()
this.ws = new Sockette(getStreamUrl(this.props.tenant.apiPrefix), {
timeout: 5e3,