From 5d68a29b3e5efd6d41d236a0c213c588cb1d09d1 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Mon, 1 Apr 2013 11:22:20 -0700 Subject: [PATCH] Open full edit SQL with Ctrl --- adminer/include/adminer.inc.php | 2 +- adminer/static/editing.js | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index f29990ba..27ee902c 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -168,7 +168,7 @@ username.form['auth[driver]'].onchange(); return "

" . ">> " . "" . h(str_replace("\n", " ", $query)) . "" - . " " . lang('Edit') . "" + . " " . lang('Edit') . "" . "

\n"; //

- required for IE9 inline edit } diff --git a/adminer/static/editing.js b/adminer/static/editing.js index e2abeb47..7a31e365 100644 --- a/adminer/static/editing.js +++ b/adminer/static/editing.js @@ -169,11 +169,15 @@ function selectFieldChange(form) { } /** Create edit query form +* @param MouseEvent * @param HTMLSpanElement * @param string * @return boolean */ -function selectEditSql(el, label) { +function selectEditSql(event, el, label) { + if (isCtrl(event) || event.altKey) { + return false; + } var sql = el.firstChild; var input = document.createElement('input'); input.name = 'query';