From 3dd469e9bf9c4f5f548a149a108f46f0fce4f226 Mon Sep 17 00:00:00 2001
From: Nick Clemens <nick@bywatersolutions.com>
Date: Wed, 7 Feb 2024 17:17:43 +0000
Subject: [PATCH] Bug 27769: Update default key mapping to copy text

When implemented, the keyboard shortcuts could not use the system clipboard so
Citrl-C was mapped to use the editor clipboard. As this now works with the system clipboard
we should allow standard functionality and remap the Koha shortcut.

This will not affect existing installations, however, they can modify the keyboard shortcut if they
wish by visting:
Administration->Keyboard shortcuts
 or
Clicking the 'Redefine shortcuts' link under 'Keyboard shortcuts' in the advanced editor.

To test:
1 - Apply this patch
2 - Reset all
3 - Confirm Ctrl-Alt-C is the command to 'Copy current field' in Keyboard shortcuts in the advanced editor

Signed-off-by: David Nind <david@davidnind.com>
---
 installer/data/mysql/mandatory/keyboard_shortcuts.sql | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/installer/data/mysql/mandatory/keyboard_shortcuts.sql b/installer/data/mysql/mandatory/keyboard_shortcuts.sql
index 3179d30880f..e9caf9c0088 100644
--- a/installer/data/mysql/mandatory/keyboard_shortcuts.sql
+++ b/installer/data/mysql/mandatory/keyboard_shortcuts.sql
@@ -33,7 +33,7 @@ INSERT INTO keyboard_shortcuts (shortcut_name, shortcut_keys) VALUES
     ("next_position","Tab"),
     ("prev_position","Shift-Tab"),
     ("toggle_keyboard", "Shift-Ctrl-K"),
-    ("copy_line","Ctrl-C"),
+    ("copy_line","Ctrl-Alt-C"),
     ("copy_subfield","Shift-Ctrl-C"),
     ("paste_line","Ctrl-P"),
     ("insert_line","Ctrl-I");
-- 
2.39.2