Bugzilla – Attachment 68675 Details for
Bug 17179
Advanced editor: Add keyboard shortcuts to repeat (duplicate) a field, and cut text
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17179: Followup - Use Ctrl-Shift-V instead of Ctrl-P and fix error
Bug-17179-Followup---Use-Ctrl-Shift-V-instead-of-C.patch (text/plain), 3.61 KB, created by
Nick Clemens (kidclamp)
on 2017-10-27 10:19:01 UTC
(
hide
)
Description:
Bug 17179: Followup - Use Ctrl-Shift-V instead of Ctrl-P and fix error
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2017-10-27 10:19:01 UTC
Size:
3.61 KB
patch
obsolete
>From 36978aefe7a4bf3065ed8d38a52c1884480c6429 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Fri, 27 Oct 2017 10:18:04 +0000 >Subject: [PATCH] Bug 17179: Followup - Use Ctrl-Shift-V instead of Ctrl-P and > fix error > >--- > .../lib/koha/cateditor/marc-editor.js | 8 +++-- > .../prog/en/modules/cataloguing/editor.tt | 34 +++++++++++----------- > 2 files changed, 22 insertions(+), 20 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/lib/koha/cateditor/marc-editor.js b/koha-tmpl/intranet-tmpl/lib/koha/cateditor/marc-editor.js >index b71e917..0fadeba 100644 >--- a/koha-tmpl/intranet-tmpl/lib/koha/cateditor/marc-editor.js >+++ b/koha-tmpl/intranet-tmpl/lib/koha/cateditor/marc-editor.js >@@ -191,12 +191,14 @@ define( [ 'marc-record', 'koha-backend', 'preferences', 'text-marc', 'widget' ], > } > }, > >- 'Ctrl-P': function( cm ) { >+ 'Shift-Ctrl-V': function( cm ) { > // Paste line from "clipboard" > if ( cm.somethingSelected() ) return true; > var cBoard = document.getElementById("clipboard"); >- var strUser = cBoard.options[cBoard.selectedIndex].text; >- cm.replaceRange( strUser, cm.getCursor(), null ); >+ if ( cBoard.selectedIndex.length > 0 ) { >+ var strUser = cBoard.options[cBoard.selectedIndex].text; >+ cm.replaceRange( strUser, cm.getCursor(), null ); >+ } > }, > > 'Ctrl-I': function( cm ) { >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/editor.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/editor.tt >index dc80e27..8fcd6f3 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/editor.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/editor.tt >@@ -267,6 +267,14 @@ > </thead> > <tbody> > <tr> >+ <td>Ctrl-C</td> >+ <td>Copy current field</td> >+ </tr> >+ <tr> >+ <td>Ctrl-Shift-C</td> >+ <td>Copy current subfield</td> >+ </tr> >+ <tr> > <td>Ctrl-D</td> > <td>Insert delimiter (â¡)</td> > </tr> >@@ -275,26 +283,22 @@ > <td>Get help on current subfield</td> > </tr> > <tr> >- <td>Ctrl-S</td> >- <td>Save record</td> >+ <td>Ctrl-I</td> >+ <td>Copy current field on next line</td> > </tr> > <tr> >- <td>Ctrl-C</td> >- <td>Copy current field</td> >+ <td>Ctrl-S</td> >+ <td>Save record</td> > </tr> > <tr> >- <td>Ctrl-Shift-C</td> >- <td>Copy current subfield</td> >+ <td>Ctrl-V</td> >+ <td>Paste from system clipboard</td> > </tr> > <tr> >- <td>Ctrl-P</td> >+ <td>Ctrl-Shift-V</td> > <td>Paste selection from "clipboard"</td> > </tr> > <tr> >- <td>Ctrl-V</td> >- <td>Paste from system clipboard</td> >- </tr> >- <tr> > <td>Ctrl-X</td> > <td>Delete current field</td> > </tr> >@@ -303,8 +307,8 @@ > <td>Delete current subfield</td> > </tr> > <tr> >- <td>Ctrl-I</td> >- <td>Copy current field on next line</td> >+ <td>Ctrl-Z</td> >+ <td>Undo previous action</td> > </tr> > <tr> > <td>Enter</td> >@@ -322,10 +326,6 @@ > <td>Shift-Tab</td> > <td>Move to previous position</td> > </tr> >- <tr> >- <td>Ctrl-Z</td> >- <td>Undo previous action</td> >- </tr> > </tbody> > </table> > </div> >-- >2.1.4
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 17179
:
65090
|
67817
|
68675
|
85396
|
86025
|
86041
|
92406
|
93601
|
93602
|
93676
|
93677
|
93857
|
93858
|
93861
|
93897
|
93898
|
93899