Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNisarg Jhaveri <nisargjhaveri@gmail.com>2014-12-14 16:31:57 +0300
committerNisarg Jhaveri <nisargjhaveri@gmail.com>2014-12-14 16:31:57 +0300
commit57c498f060f340654a980845f5cd4e641410a774 (patch)
tree87d10fb90d08249eef539cd2df34e908708bca6d /js/console.js
parent00f2d635f31fcbe657c2d7c2d08da95cd5cda671 (diff)
Set cursor at end in console while navigating with up/down key
Signed-off-by: Nisarg Jhaveri <nisargjhaveri@gmail.com>
Diffstat (limited to 'js/console.js')
-rw-r--r--js/console.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/console.js b/js/console.js
index 7601768ec6..433337c336 100644
--- a/js/console.js
+++ b/js/console.js
@@ -582,6 +582,9 @@ var PMA_consoleInput = {
if (queryString !== false) {
PMA_consoleInput._historyCount = nextCount;
PMA_consoleInput.setText(queryString, 'console');
+ if (PMA_consoleInput._codemirror) {
+ editor.setCursor(editor.lineCount(), 0);
+ }
event.preventDefault();
}
}