Bug 17178: Add shortcut to keyboard_shortcut table
authorAgustin Moyano <agustinmoyano@theke.io>
Tue, 14 May 2019 05:57:07 +0000 (02:57 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 28 Jun 2019 14:54:19 +0000 (15:54 +0100)
This patch adds Ctrl-K shortcut to toggle virtual keyboard shortcut

Sponsored-by: Round Rock Public Library

Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

installer/data/mysql/atomicupdate/bug_17178.perl [new file with mode: 0644]
installer/data/mysql/mandatory/keyboard_shortcuts.sql

diff --git a/installer/data/mysql/atomicupdate/bug_17178.perl b/installer/data/mysql/atomicupdate/bug_17178.perl
new file mode 100644 (file)
index 0000000..e22a233
--- /dev/null
@@ -0,0 +1,10 @@
+$DBversion = 'XXX';
+if( CheckVersion( $DBversion ) ) {
+    $dbh->do(q{
+        INSERT INTO keyboard_shortcuts (shortcut_name, shortcut_keys)
+            VALUES ("toggle_keyboard", "Shift-Ctrl-K")
+    });
+
+    SetVersion( $DBversion );
+    print "Upgrade to $DBversion done (Bug 17178 - add shortcut to keyboard_shortcuts)\n";
+}
index ef4a955..604fc6f 100644 (file)
@@ -31,4 +31,5 @@ INSERT INTO keyboard_shortcuts (shortcut_name, shortcut_keys) VALUES
     ("new_line","Enter"),
     ("line_break","Shift-Enter"),
     ("next_position","Tab"),
-    ("prev_position","Shift-Tab");
+    ("prev_position","Shift-Tab"),
+    ("toggle_keyboard", "Shift-Ctrl-K");