diff --git a/react/src/WifiConfigDialog.tsx b/react/src/WifiConfigDialog.tsx index 1affb61..0fcbc05 100644 --- a/react/src/WifiConfigDialog.tsx +++ b/react/src/WifiConfigDialog.tsx @@ -223,6 +223,10 @@ const WifiConfigDialog = withStyles(styles, { withTheme: true })( this.state.newPassword; } + onEnterKey() { + this.handleOk(false); + } + handleOk(wifiWarningGiven: boolean) { let hasError = false; if (this.state.autoStartMode !== 0) { @@ -334,8 +338,11 @@ const WifiConfigDialog = withStyles(styles, { withTheme: true })( }; let enabled = this.state.autoStartMode !== 0; return ( - { this.handleOk(false); }} + > {(this.state.fullScreen || !this.state.compactHeight) && ( Wi-fi Auto-Hotspot @@ -353,8 +360,8 @@ const WifiConfigDialog = withStyles(styles, { withTheme: true })( }} > - - Auto-start hotspot when + + Auto-start hotspot when...