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';