Changes for page XWiki Keyboard Shortcuts

Last modified by Lucas Charpentier (Sereza7) on 2024/02/27

<
From version < 7.2 >
edited by Silvia Macovei
on 2010/02/24
To version < 6.5 >
edited by Jean-Vincent Drean
on 2009/12/10
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,0 @@
1 -XWiki Keyboard Shortcuts
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.SilviaRusu
1 +XWiki.jvdrean
Content
... ... @@ -1,14 +1,16 @@
1 -{{box cssClass="floatinginfobox" title="**Contents**"}}{{toc/}}{{/box}}
1 += XWiki Keyboard Shortcuts =
2 2  
3 +{{toc start=2 depth=6 numbered=false scope=page /}}
4 +
3 3  **Since XWiki Enterprise version 1.4M1**, you can use keyboard shortcuts to use some XWiki features. Keyboard shortcuts help you save time since you never have to take your hands off the keyboard to use the mouse.
4 4  
5 -= Shortcuts =
7 +== Shortcuts ==
6 6  
7 -== View mode ==
9 +=== View mode ===
8 8  
9 9  {{info}}View keyboard shortcuts are only available to advanced users, preventing simple users to get unexpected behavior when pressing keyboard keys by mistake{{/info}}
10 10  
11 -=== Edit ===
13 +==== Edit ====
12 12  
13 13  (% style="width:400px;"%)
14 14  |**e** |Edit the page using the default edition mode
... ... @@ -19,7 +19,7 @@
19 19  |**o** |Edit page objects
20 20  |**s** |Edit class
21 21  
22 -=== Show ===
24 +==== Show ====
23 23  
24 24  (% style="width:400px;"%)
25 25  |**c** |Go to page comments
... ... @@ -27,13 +27,13 @@
27 27  |**h** |Go to page history
28 28  |**d** |View page wiki code
29 29  
30 -=== Actions ===
32 +==== Actions ====
31 31  
32 32  (% style="width:400px;"%)
33 33  |**F2** |Rename page
34 34  |**Delete** |Delete page
35 35  
36 -== Edit & inline mode ==
38 +=== Edit & inline mode ===
37 37  
38 38  {{warning}}Keyboard shortcuts aren't available from the wysiwyg edit mode (since the wysiwyg editor grabs all the key pressed events){{/warning}}
39 39  (% style="width:400px;"%)
... ... @@ -42,7 +42,7 @@
42 42  |**<Alt> + <Shift> + s** |Save and continue to edit the page
43 43  |**<Alt> + s** |Save and view the page
44 44  
45 -== Preview mode ==
47 +=== Preview mode ===
46 46  
47 47  (% style="width:400px;"%)
48 48  |**<Alt> + c** |Cancel edition
... ... @@ -50,37 +50,8 @@
50 50  |**<Alt> + <Shift> + s** |Save and continue to edit the page
51 51  |**<Alt> + s** |Save and view the page
52 52  
53 -= Modifying keyboard shortcuts =
55 +== Adding your own shortcuts ==
54 54  
55 -* Create a new page in your wiki, for example //XWiki.KeyboardShortcuts// and paste the following content inside:
56 -{{code}}
57 -core.shortcuts.view.edit=e
58 -core.shortcuts.view.wiki=k
59 -core.shortcuts.view.wysiwyg=g
60 -core.shortcuts.view.inline=f
61 -core.shortcuts.view.rights=r
62 -core.shortcuts.view.objects=o
63 -core.shortcuts.view.class=s
64 -core.shortcuts.view.comments=c
65 -core.shortcuts.view.attachments=a
66 -core.shortcuts.view.history=h
67 -core.shortcuts.view.information=i
68 -core.shortcuts.view.code=d
69 -core.shortcuts.view.delete=Delete
70 -core.shortcuts.view.rename=F2
71 -core.shortcuts.edit.cancel=Alt+C
72 -core.shortcuts.edit.backtoedit=Alt+B
73 -core.shortcuts.edit.preview=Alt+P
74 -core.shortcuts.edit.saveandcontinue=Alt+Shift+S
75 -core.shortcuts.edit.saveandview=Alt+S
76 -{{/code}}
77 -* Modify entries in this list at your convenience
78 -* Save the page
79 -* Go to the wiki administration into the "//Programming//" category
80 -* At the bottom, add //XWiki.KeyboardShortcuts// to the "//Internationalization Document Bundles//" list
81 -
82 -= Adding your own shortcuts =
83 -
84 84  You can add your own keyboard shortcuts in a few javascript lines :
85 85  
86 86  {{code language="javascript"}}
... ... @@ -101,7 +101,7 @@
101 101  
102 102  [[Complete documentation>>http://www.openjs.com/scripts/events/keyboard_shortcuts/]].
103 103  
104 -= Removing shortcuts =
77 +== Removing shortcuts ==
105 105  
106 106  To remove a shortcut adapt this snippet to your needs :
107 107  
... ... @@ -119,10 +119,10 @@
119 119   shortcut.remove("Ctrl+Alt+n");
120 120  }
121 121  </script>
122 -<a onclick="removeCtrlAltN(); return false;" href="#">Click here to try the snippet, it will remove the Ctrl+Alt+n shortcut</a>.
95 +<a onclick="removeCtrlAltN();">Click here to try the snippet, will remove the Ctrl+Alt+n shortcut</a>.
123 123  {{/html}}
124 124  
125 -= Removing all shortcuts at once =
98 +== Removing all shortcuts at once ==
126 126  
127 127  {{code language="javascript"}}
128 128  <script type="text/javascript">
... ... @@ -139,18 +139,19 @@
139 139  {{html clean="false"}}
140 140  <script type="text/javascript">
141 141  //<![CDATA[
142 -function removeAll() {
143 143   for (binding in shortcut.all_shortcuts) {
144 144   shortcut.remove(binding);
145 145   }
146 -}
147 147  //]]>
148 148  </script>
149 -<a onclick="removeAll(); return false;" href="#">Click here to try the snippet, it will disable all keyboard shortcuts</a>.
150 150  {{/html}}
151 151  #end
152 152  {{velocity}}
153 153  
154 -= Credits =
124 +== i18n ==
155 155  
126 +All the core XWiki shortcuts can be modified in the xwiki-core application resources (core.shortcuts.*)
127 +
128 +== Credits ==
129 +
156 156  XWiki keyboard shortcuts are powered by [[openjs.org shortcut library>>http://www.openjs.com/scripts/events/keyboard_shortcuts/]].

Get Connected