[pve-devel] [PATCH xtermjs 1/3] focus terminal when starting
Dominik Csapak
d.csapak at proxmox.com
Fri Apr 27 11:17:35 CEST 2018
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
src/www/main.js | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/www/main.js b/src/www/main.js
index 6fec72f..0b09cbf 100644
--- a/src/www/main.js
+++ b/src/www/main.js
@@ -172,7 +172,11 @@ function runTerminal() {
socket.send(PVE.UserName + ':' + ticket + "\n");
- setTimeout(function() {term.fit();}, 250);
+ // initial focus and resize
+ setTimeout(function() {
+ term.focus();
+ term.fit();
+ }, 250);
}
function getLxcStatus(callback) {
--
2.11.0
More information about the pve-devel
mailing list