[Koha-bugs] [Bug 27769] Advanced editor shouldn't break copying selected text with Ctrl+C

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Feb 24 05:39:06 CET 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27769

--- Comment #1 from Phil Ringnalda <phil at chetcolibrary.org> ---
Created attachment 117236
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=117236&action=edit
Bug 27769: Advanced editor shouldn't break copying selected text with Ctrl+C

When text is selected, the editor keyboard shortcut handler intentionally
doesn't copy the line into the editor's clipboard, but also breaks the
system clipboard copying it on Windows and Linux where Ctrl+C is copy.
Returning CodeMirror.Pass should let the system copy when text is selected.

Test plan:
1. Set the system preference EnableAdvancedCatalogingEditor to Enable
2. Cataloging - Advanced editor
3. Type some text in 245 subfield a
4. Select the text you typed, and type Ctrl+C
5. Verify that the entire line was not copied to the advanced editor's
   Clipboard div in the lower left corner of the page
6. In another app or in one of the Search inputs, Ctrl+V to paste from the
   system clipboard, verify that you pasted the text you selected in 245$a
7. Clear your text selection, but put the text insertion point into the 245
   and type Ctrl+C, and verify that the entire line was copied into the
   editor's Clipboard div in the lower left

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list