Bugzilla – Attachment 89784 Details for
Bug 17178
Add a popup/keyboard shortcuts for diacritics and symbols in the advanced cataloging editor
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17178: Add shortcut to keyboard_shortcut table
Bug-17178-Add-shortcut-to-keyboardshortcut-table.patch (text/plain), 2.00 KB, created by
Agustín Moyano
on 2019-05-15 13:37:16 UTC
(
hide
)
Description:
Bug 17178: Add shortcut to keyboard_shortcut table
Filename:
MIME Type:
Creator:
Agustín Moyano
Created:
2019-05-15 13:37:16 UTC
Size:
2.00 KB
patch
obsolete
>From fce6c74ee2317eeeab6005520c5c49bd9c62990c Mon Sep 17 00:00:00 2001 >From: Agustin Moyano <agustinmoyano@theke.io> >Date: Tue, 14 May 2019 02:57:07 -0300 >Subject: [PATCH] Bug 17178: Add shortcut to keyboard_shortcut table > >This patch adds Ctrl-K shortcut to toggle virtual keyboard shortcut > >Sponsored-by: Round Rock Public Library >--- > installer/data/mysql/atomicupdate/bug_17178.perl | 15 +++++++++++++++ > installer/data/mysql/mandatory/keyboard_shortcuts.sql | 3 ++- > 2 files changed, 17 insertions(+), 1 deletion(-) > create mode 100644 installer/data/mysql/atomicupdate/bug_17178.perl > >diff --git a/installer/data/mysql/atomicupdate/bug_17178.perl b/installer/data/mysql/atomicupdate/bug_17178.perl >new file mode 100644 >index 0000000000..851285211e >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_17178.perl >@@ -0,0 +1,15 @@ >+$DBversion = 'XXX'; # will be replaced by the RM >+if( CheckVersion( $DBversion ) ) { >+ # you can use $dbh here like: >+ # $dbh->do( "ALTER TABLE biblio ADD COLUMN badtaste int" ); >+ >+ # or perform some test and warn >+ # if( !column_exists( 'biblio', 'biblionumber' ) ) { >+ # warn "There is something wrong"; >+ # } >+ $dbh->do( 'INSERT INTO keyboard_shortcuts (shortcut_name, shortcut_keys) VALUES ("toggle_keyboard", "Ctrl-K")'); >+ >+ # Always end with this (adjust the bug info) >+ SetVersion( $DBversion ); >+ print "Upgrade to $DBversion done (Bug 17178 - add shortcut to keyboard_shortcuts)\n"; >+} >diff --git a/installer/data/mysql/mandatory/keyboard_shortcuts.sql b/installer/data/mysql/mandatory/keyboard_shortcuts.sql >index ef4a95553d..1f87056b24 100644 >--- a/installer/data/mysql/mandatory/keyboard_shortcuts.sql >+++ b/installer/data/mysql/mandatory/keyboard_shortcuts.sql >@@ -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", "Ctrl-K"); >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 17178
:
89784
|
89795
|
90975
|
90976
|
91003
|
91004
|
91077
|
91078
|
91079
|
91080
|
91106
|
91107
|
91108