View | Details | Raw Unified | Return to bug 21411
Collapse All | Expand All

(-)a/installer/data/mysql/en/mandatory/keyboard_shortcuts.txt (-1 lines)
Line 1 Link Here
1
Default keyboard shorcuts
(-)a/installer/data/mysql/mandatory/keyboard_shortcuts.sql (-2 / +1 lines)
Lines 2-9 Link Here
2
-- Default keyboard shortcuts
2
-- Default keyboard shortcuts
3
-- for Koha.
3
-- for Koha.
4
--
4
--
5
-- Copyright (C) 2007 LiblimeA
5
-- Copyright 2019 Koha Development Team
6
-- Copyright 2018 Koha Development Team
7
--
6
--
8
-- This file is part of Koha.
7
-- This file is part of Koha.
9
--
8
--
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt (-1 / +1 lines)
Lines 211-217 Link Here
211
                    <dt><a href="/cgi-bin/koha/admin/additional-fields.pl">Additional fields</a></dt>
211
                    <dt><a href="/cgi-bin/koha/admin/additional-fields.pl">Additional fields</a></dt>
212
                    <dd>Add additional fields to certain tables</dd>
212
                    <dd>Add additional fields to certain tables</dd>
213
                    [% END %]
213
                    [% END %]
214
                    [% IF ( CAN_user_parameters_manage_keyboard_shortcuts ) %]
214
                    [% IF Koha.Preference('EnableAdvancedCatalogingEditor') && ( CAN_user_parameters_manage_keyboard_shortcuts ) %]
215
                        <dt><a href="/cgi-bin/koha/admin/adveditorshortcuts.pl">Keyboard shortcuts</a></dt>
215
                        <dt><a href="/cgi-bin/koha/admin/adveditorshortcuts.pl">Keyboard shortcuts</a></dt>
216
                        <dd>Define which keys trigger actions in the advanced cataloging editor</dd>
216
                        <dd>Define which keys trigger actions in the advanced cataloging editor</dd>
217
                    [% END %]
217
                    [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/adveditorshortcuts.tt (-31 / +35 lines)
Lines 1-5 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% USE Asset %]
2
[% USE Asset %]
3
[% USE Koha %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Administration &rsaquo; Advanced editor shortcuts</title>
6
<title>Koha &rsaquo; Administration &rsaquo; Advanced editor shortcuts</title>
Lines 21-59 Link Here
21
        <div class="col-sm-10 col-sm-push-2">
22
        <div class="col-sm-10 col-sm-push-2">
22
            <main>
23
            <main>
23
                <h1>Advanced editor keyboard shortcuts</h1>
24
                <h1>Advanced editor keyboard shortcuts</h1>
24
                <ul>
25
                [% IF Koha.Preference('EnableAdvancedCatalogingEditor') %]
25
                    <li>Separate keys using a hyphen "-"</li>
26
                    <ul>
26
                    <li>Control key is "Ctrl"</li>
27
                        <li>Separate keys using a hyphen "-"</li>
27
                    <li>Alt key is "Alt"</li>
28
                        <li>Control key is "Ctrl"</li>
28
                    <li>Shift is "Shift"</li>
29
                        <li>Alt key is "Alt"</li>
29
                    <li>If combining multiple keys they must be in specified order: Shift-Cmd-Ctrl-Alt</li>
30
                        <li>Shift is "Shift"</li>
30
                    <li><a href="https://codemirror.net/doc/manual.html#keymaps">More documentation on defining key maps</a></li>
31
                        <li>If combining multiple keys they must be in specified order: Shift-Cmd-Ctrl-Alt</li>
31
                </ul>
32
                        <li><a href="https://codemirror.net/doc/manual.html#keymaps">More documentation on defining key maps</a></li>
33
                    </ul>
32
34
33
                <form id="adveditor_shortcuts" method="post" action="/cgi-bin/koha/admin/adveditorshortcuts.pl">
35
                    <form id="adveditor_shortcuts" method="post" action="/cgi-bin/koha/admin/adveditorshortcuts.pl">
34
                    <fieldset>
36
                        <fieldset>
35
                    <input type=hidden name="op" value="save" />
37
                        <input type=hidden name="op" value="save" />
36
37
                    <table id="adv_editor_keyboard_shortcuts">
38
                        <thead>
39
                            <th>Description</th>
40
                            <th>Shortcut keys</th>
41
                        </thead>
42
                        <tbody>
43
                           [% FOREACH shortcut IN shortcuts %]
44
                        <tr>
45
                            <td><label for="shortcut_keys">[% PROCESS keyboard_shortcut_descriptions shortcut_name=shortcut.shortcut_name %]</label></td>
46
                            <td>
47
                                <input type="hidden" name="shortcut_name" value="[% shortcut.shortcut_name | html %]">
48
                                <input type="text" name="shortcut_keys" value="[% shortcut.shortcut_keys | html %]">
49
                           </td>
50
                        </tr>
51
                   [% END %]
52
                   </table>
53
                   </fieldset>
54
                   </fieldset class="action"><input type="submit" value="Save shortcuts"></fieldset>
55
               </form>
56
38
39
                        <table id="adv_editor_keyboard_shortcuts">
40
                            <thead>
41
                                <th>Description</th>
42
                                <th>Shortcut keys</th>
43
                            </thead>
44
                            <tbody>
45
                               [% FOREACH shortcut IN shortcuts %]
46
                            <tr>
47
                                <td><label for="shortcut_keys">[% PROCESS keyboard_shortcut_descriptions shortcut_name=shortcut.shortcut_name %]</label></td>
48
                                <td>
49
                                    <input type="hidden" name="shortcut_name" value="[% shortcut.shortcut_name | html %]">
50
                                    <input type="text" name="shortcut_keys" value="[% shortcut.shortcut_keys | html %]">
51
                               </td>
52
                            </tr>
53
                       [% END %]
54
                       </table>
55
                       </fieldset>
56
                       </fieldset class="action"><input type="submit" value="Save shortcuts"></fieldset>
57
                   </form>
58
               [% ELSE %]
59
                   <p>Enable the advanced cataloging editor ( EnableAdvancedCatalogingEditor system preference) to define keyboard shortcuts</p>
60
               [% END %]
57
           </main>
61
           </main>
58
        </div> <!-- /.col-sm-10.col-sm-push-2 -->
62
        </div> <!-- /.col-sm-10.col-sm-push-2 -->
59
63
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/editor.tt (-2 / +3 lines)
Lines 269-275 Link Here
269
</div>
269
</div>
270
270
271
<div id="shortcuts-contents" style="display: none">
271
<div id="shortcuts-contents" style="display: none">
272
<a id="redefine_shortcuts" href="/cgi-bin/koha/admin/adveditorshortcuts.pl">Redefine shortcuts</a>
272
[% IF ( CAN_user_parameters_manage_keyboard_shortcuts ) %]
273
    <a id="redefine_shortcuts" href="/cgi-bin/koha/admin/adveditorshortcuts.pl">Redefine shortcuts</a>
274
[% END %]
273
<table class="table table-condensed">
275
<table class="table table-condensed">
274
    <thead>
276
    <thead>
275
        <tr>
277
        <tr>
276
- 

Return to bug 21411