diff --git a/adminer/include/editing.inc.php b/adminer/include/editing.inc.php
index 97dc62d8..e7280f8d 100644
--- a/adminer/include/editing.inc.php
+++ b/adminer/include/editing.inc.php
@@ -244,7 +244,7 @@ function edit_fields($fields, $collations, $type = "TABLE", $foreign_keys = arra
?>
>
" . html_select("fields[$i][inout]", explode("|", $inout), $field["inout"]) : ""); ?>
-| " onchange="editingNameChange(this); 1 ? '' : ' editingAddRow(this);" onkeypress="if (this.value) editingAddRow(this);'); ?>" maxlength="64" autocapitalize="off">
+ | " onchange="editingNameChange(this); 1 ? '' : ' editingAddRow(this);" onkeyup="if (this.value) editingAddRow(this);'); ?>" maxlength="64" autocapitalize="off">
diff --git a/adminer/static/editing.js b/adminer/static/editing.js
index 17ff1893..ca7742b5 100644
--- a/adminer/static/editing.js
+++ b/adminer/static/editing.js
@@ -317,14 +317,14 @@ function editingAddRow(button, focus) {
tags[0].onchange = function () {
editingNameChange(tags[0]);
};
- tags[0].onkeypress = function () {
+ tags[0].onkeyup = function () {
};
row.parentNode.insertBefore(row2, row.nextSibling);
if (focus) {
input.onchange = function () {
editingNameChange(input);
};
- input.onkeypress = function () {
+ input.onkeyup = function () {
};
input.focus();
}
|