From ba23ba9b8b50f826d7cfc1db4e1f6632e4bd9370 Mon Sep 17 00:00:00 2001 From: Khushboo Vashi Date: Wed, 9 May 2018 14:26:50 +0100 Subject: [PATCH] Ensure the debugger container has focus when loaded. Fixes #3295 --- web/pgadmin/tools/debugger/static/js/direct.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/pgadmin/tools/debugger/static/js/direct.js b/web/pgadmin/tools/debugger/static/js/direct.js index 52c9e6674..b9cb2eccf 100644 --- a/web/pgadmin/tools/debugger/static/js/direct.js +++ b/web/pgadmin/tools/debugger/static/js/direct.js @@ -1850,6 +1850,8 @@ define([ self.docker.off(wcDocker.EVENT.LOADED); // Register the callback when user set/clear the breakpoint on gutter area. self.editor.on('gutterClick', self.onBreakPoint.bind(self), self); + // Set focus to the debugger container + self.$container.focus(); }; self.docker.startLoading(gettext('Loading...'));