1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-11 00:54:08 +02:00

Create table keyboard shortcuts: Ctrl+Up, Ctrl+Down

This commit is contained in:
Jakub Vrana
2011-01-25 15:26:13 +01:00
parent 57ec8f0266
commit 4a5eb8b408
3 changed files with 29 additions and 1 deletions

View File

@@ -231,7 +231,7 @@ function edit_fields($fields, $collations, $type = "TABLE", $allowed = 0, $forei
<?php } ?>
<td><?php echo "<input type='image' name='add[" . (support("move_col") ? 0 : count($fields)) . "]' src='../adminer/static/plus.gif' alt='+' title='" . lang('Add next') . "'>"; ?><script type="text/javascript">row_count = <?php echo count($fields); ?>;</script>
</thead>
<?php
<tbody onkeydown="return editingKeydown(event);"><?php // no newline for JavaScript
foreach ($fields as $i => $field) {
$i++;
$orig = $field[($_POST ? "orig" : "field")];