]> git.joonet.de Git - adminer.git/commitdiff
Keyboard shortcuts (thanks to Konrad Cerny)
authorJakub Vrana <jakub@vrana.cz>
Wed, 8 Jun 2011 12:09:20 +0000 (14:09 +0200)
committerJakub Vrana <jakub@vrana.cz>
Wed, 8 Jun 2011 12:09:20 +0000 (14:09 +0200)
adminer/edit.inc.php
adminer/include/design.inc.php
changes.txt

index 76754908205bfff4d2c34ce323d829fd2093f236..733778de863253095b529e7495df8f27de014b1c 100644 (file)
@@ -94,7 +94,7 @@ if ($fields) {
 if ($fields) {
        echo "<input type='submit' value='" . lang('Save') . "'>\n";
        if (!isset($_GET["select"])) {
-               echo '<input type="submit" name="insert" value="' . ($update ? lang('Save and continue edit') : lang('Save and insert next')) . "\">\n";
+               echo "<input type='submit' name='insert' value='" . ($update ? lang('Save and continue edit') : lang('Save and insert next')) . "' accesskey='Q' title='Alt+Shift+Q'>\n";
        }
 }
 echo ($update ? "<input type='submit' name='delete' value='" . lang('Delete') . "' onclick=\"return confirm('" . lang('Are you sure?') . "');\">\n"
index f8c66f20c9a1fb105bf394997adaa2a42f07e153..85c501c0d7aa7682f9874872ca55373f93a5bb23 100644 (file)
@@ -48,13 +48,13 @@ document.body.className = document.body.className.replace(/(^|\s)nojs(\s|$)/, '$
        }
        if (isset($breadcrumb)) {
                $link = substr(preg_replace('~(username|db|ns)=[^&]*&~', '', ME), 0, -1);
-               echo '<p id="breadcrumb"><a href="' . ($link ? h($link) : ".") . '">' . $drivers[DRIVER] . '</a> &raquo; ';
+               echo '<p id="breadcrumb"><a href="' . h($link ? $link : ".") . '">' . $drivers[DRIVER] . '</a> &raquo; ';
                $link = substr(preg_replace('~(db|ns)=[^&]*&~', '', ME), 0, -1);
                $server = (SERVER != "" ? h(SERVER) : lang('Server'));
                if ($breadcrumb === false) {
                        echo "$server\n";
                } else {
-                       echo "<a href='" . ($link ? h($link) : ".") . "'>$server</a> &raquo; ";
+                       echo "<a href='" . ($link ? h($link) : ".") . "' accesskey='1' title='Alt+Shift+1'>$server</a> &raquo; ";
                        if ($_GET["ns"] != "" || (DB != "" && is_array($breadcrumb))) {
                                echo '<a href="' . h($link . "&db=" . urlencode(DB) . (support("scheme") ? "&ns=" : "")) . '">' . h(DB) . '</a> &raquo; ';
                        }
index a5623b2bf5661001b15b07ba467c99a7a6448d85..ff73a8eb4f5ec7ff016c69c8e592046c22c35a94 100644 (file)
@@ -7,6 +7,7 @@ Bit type default value
 Display foreign key name in tooltip
 Display default column value in table overview
 Display column collation in tooltip
+Keyboard shortcuts: Alt+Shift+1 for homepage, Alt+Shift+Q for Save and continue edit
 Pagination support (Oracle)
 Autocomplete for big foreign keys (Editor)
 Display name of the referenced record in PostgreSQL (Editor)