Hi,

PFA patch to fix the issue where Tab key was not working as expected in
query tool editor.

Steps to reproduce:
1) Type any multiline sql/text.
2) select the complete sql by pressing Ctrl+A.
3) Press Tab key multiple times, you will see the problem in code
indentation.

Please review.

--
Regards,
Murtuza Zabuawala
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
diff --git a/web/pgadmin/browser/static/js/browser.js 
b/web/pgadmin/browser/static/js/browser.js
index 13af4ea..46b6033 100644
--- a/web/pgadmin/browser/static/js/browser.js
+++ b/web/pgadmin/browser/static/js/browser.js
@@ -1945,7 +1945,7 @@ define('pgadmin.browser', [
       'Shift-Tab': 'indentLess',
     },
     editor_options: {
-      tabSize: pgBrowser.utils.tabSize,
+      tabSize: parseInt(pgBrowser.utils.tabSize),
       wrapCode: pgBrowser.utils.wrapCode,
       insert_pair_brackets: pgBrowser.utils.insertPairBrackets,
       brace_matching: pgBrowser.utils.braceMatching,

Reply via email to