From e3040b334dce8a6836424f792d11513f835a5e1b Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Fri, 18 Aug 2017 20:31:07 +0200 Subject: [PATCH] Do not submit injected commands right away but give some space and fix focus --- webadmin/src/views/debug.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webadmin/src/views/debug.js b/webadmin/src/views/debug.js index b9c99e174..61ec3a1f2 100644 --- a/webadmin/src/views/debug.js +++ b/webadmin/src/views/debug.js @@ -143,9 +143,10 @@ angular.module('Application').controller('DebugController', ['$scope', '$locatio if (!cmd) return; - cmd += '\n'; + cmd += ' '; $scope.terminalSocket.send(cmd); + $scope.terminal.focus(); } $scope.$watch('selected', function (newVal) {