diff --git a/installer/data/mysql/atomicupdate/bug_40633.pl b/installer/data/mysql/atomicupdate/bug_40633.pl new file mode 100755 index 0000000000..a94654bfe3 --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_40633.pl @@ -0,0 +1,20 @@ +use Modern::Perl; +use Koha::Installer::Output qw(say_success); + +return { + bug_number => "40633", + description => "Add keyboard shortcut to advanced cataloging editor for fixed length field plugins", + up => sub { + my ($args) = @_; + my ( $dbh, $out ) = @$args{qw(dbh out)}; + + $dbh->do( + q{ + INSERT IGNORE INTO keyboard_shortcuts (shortcut_name, shortcut_keys) + VALUES ('open_helper_plugin', 'Shift-Ctrl-H') + } + ); + + say_success( $out, "Added 'open_helper_plugin' keyboard shortcut for the advanced cataloging editor" ); + }, +}; diff --git a/installer/data/mysql/mandatory/keyboard_shortcuts.sql b/installer/data/mysql/mandatory/keyboard_shortcuts.sql index 9f57f1e1d3..e00fe6832f 100644 --- a/installer/data/mysql/mandatory/keyboard_shortcuts.sql +++ b/installer/data/mysql/mandatory/keyboard_shortcuts.sql @@ -36,4 +36,5 @@ INSERT INTO keyboard_shortcuts (shortcut_name, shortcut_keys) VALUES ("copy_line","Ctrl-Alt-C"), ("copy_subfield","Shift-Ctrl-C"), ("paste_line","Ctrl-P"), - ("insert_line","Ctrl-I"); + ("insert_line","Ctrl-I"), + ("open_helper_plugin","Shift-Ctrl-H");