Changes for page XWiki Keyboard Shortcuts

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

<
From version < 31.2 >
edited by Vincent Massol
on 2020/02/05
To version < 32.2 >
edited by Vincent Massol
on 2020/04/05
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -19,31 +19,31 @@
19 19  === a) Edit Actions ===
20 20  
21 21  (% class="keyboard" summary="Keyboard Shortcuts for View Mode in order to activate edit actions" %)
22 -| (% class="shortcut" %)
22 +|(% class="shortcut" %)
23 23  (((
24 24  (% class="key" %)E
25 25  )))|Edit the page using the default edition mode
26 -| (% class="shortcut" %)
26 +|(% class="shortcut" %)
27 27  (((
28 28  (% class="key" %)K
29 29  )))|Edit the page in wiki edition mode
30 -| (% class="shortcut" %)
30 +|(% class="shortcut" %)
31 31  (((
32 32  (% class="key" %)G
33 33  )))|Edit the page using the WYSIWYG editor
34 -| (% class="shortcut" %)
34 +|(% class="shortcut" %)
35 35  (((
36 36  (% class="key" %)F
37 37  )))|Inline Form
38 -| (% class="shortcut" %)
38 +|(% class="shortcut" %)
39 39  (((
40 40  (% class="key" %)R
41 41  )))|Edit page access rights
42 -| (% class="shortcut" %)
42 +|(% class="shortcut" %)
43 43  (((
44 44  (% class="key" %)O
45 45  )))|Edit page objects
46 -| (% class="shortcut" %)
46 +|(% class="shortcut" %)
47 47  (((
48 48  (% class="key" %)S
49 49  )))|Edit class
... ... @@ -51,23 +51,23 @@
51 51  === b) View Actions ===
52 52  
53 53  (% class="keyboard" summary="Keyboard Shortcuts for View Mode in order to activate view actions" %)
54 -| (% class="shortcut" %)
54 +|(% class="shortcut" %)
55 55  (((
56 56  (% class="key" %)C
57 57  )))|Go to page comments
58 -| (% class="shortcut" %)
58 +|(% class="shortcut" %)
59 59  (((
60 60  (% class="key" %)A
61 61  )))|Go to page attachments
62 -| (% class="shortcut" %)
62 +|(% class="shortcut" %)
63 63  (((
64 64  (% class="key" %)H
65 65  )))|Go to page history
66 -| (% class="shortcut" %)
66 +|(% class="shortcut" %)
67 67  (((
68 68  (% class="key" %)I
69 69  )))|Go to page information
70 -| (% class="shortcut" %)
70 +|(% class="shortcut" %)
71 71  (((
72 72  (% class="key" %)D
73 73  )))|View page wiki code
... ... @@ -75,11 +75,11 @@
75 75  === c) Other Actions ===
76 76  
77 77  (% class="keyboard" summary="Keyboard Shortcuts for View Mode in order to activate other actions" %)
78 -| (% class="shortcut" %)
78 +|(% class="shortcut" %)
79 79  (((
80 80  (% class="key" %)F2
81 81  )))|Rename page
82 -| (% class="shortcut" %)
82 +|(% class="shortcut" %)
83 83  (((
84 84  (% class="key" %)Delete
85 85  )))|Delete page
... ... @@ -91,19 +91,19 @@
91 91  {{/warning}}
92 92  
93 93  (% class="keyboard" summary="Keyboard Shortcuts for Edit Wiki and Inline Mode" %)
94 -| (% class="shortcut" %)
94 +|(% class="shortcut" %)
95 95  (((
96 96  (% class="key" %)Alt(%%) + (% class="key" %)C
97 97  )))|Cancel edition
98 -| (% class="shortcut" %)
98 +|(% class="shortcut" %)
99 99  (((
100 100  (% class="key" %)Alt(%%) + (% class="key" %)P
101 101  )))|Preview the page without saving
102 -| (% class="shortcut" %)
102 +|(% class="shortcut" %)
103 103  (((
104 104  (% class="key" %)Alt(%%) + (% class="key" %)Shift(%%) + (% class="key" %)S
105 105  )))|Save and continue to edit the page
106 -| (% class="shortcut" %)
106 +|(% class="shortcut" %)
107 107  (((
108 108  (% class="key" %)Alt(%%) + (% class="key" %)S
109 109  )))|Save and view the page
... ... @@ -115,19 +115,19 @@
115 115  == Preview Mode ==
116 116  
117 117  (% class="keyboard" summary="Keyboard Shortcuts for Preview Mode" %)
118 -| (% class="shortcut" %)
118 +|(% class="shortcut" %)
119 119  (((
120 120  (% class="key" %)Alt(%%) + (% class="key" %)C
121 121  )))|Cancel edition
122 -| (% class="shortcut" %)
122 +|(% class="shortcut" %)
123 123  (((
124 124  (% class="key" %)Alt(%%) + (% class="key" %)B
125 125  )))|Back to the edition
126 -| (% class="shortcut" %)
126 +|(% class="shortcut" %)
127 127  (((
128 128  (% class="key" %)Alt(%%) + (% class="key" %)Shift(%%) + (% class="key" %)S
129 129  )))|Save and continue to edit the page
130 -| (% class="shortcut" %)
130 +|(% class="shortcut" %)
131 131  (((
132 132  (% class="key" %)Alt(%%) + (% class="key" %)S
133 133  )))|Save and view the page
... ... @@ -135,12 +135,12 @@
135 135  == Annotations ==
136 136  
137 137  (% class="keyboard" summary="Keyboard Shortcuts for Annotations" %)
138 -| (% class="shortcut" %)
138 +|(% class="shortcut" %)
139 139  (((
140 140  (% class="key" %)Ctrl(%%) + (% class="key" %)M(%%) (% class="separator" %)or(%%) (% class="key" %)Meta(%%) + (% class="key" %)M(%%)
141 141  (% class="key" %)Ctrl(%%) + (% class="key" %)I(%%) (% class="separator" %)or(%%) (% class="key" %)Meta(%%) + (% class="key" %)I
142 142  )))|Annotate a piece of text
143 -| (% class="shortcut" %)
143 +|(% class="shortcut" %)
144 144  (((
145 145  (% class="key" %)Alt(%%) + (% class="key" %)A
146 146  )))|Show annotations
... ... @@ -148,12 +148,16 @@
148 148  == Navigation ==
149 149  
150 150  (% class="keyboard" summary="Keyboard Shortcuts for Navigation" %)
151 -| (% class="shortcut" %)
151 +|(((
152 +(% class="shortcut" %)
152 152  (((
153 153  (% class="key" %)Ctrl(%%) + (% class="key" %)G
154 -)))(% class="separator" %)or(%%) (% class="shortcut" %)
155 +)))(% class="separator" %)or(%%)
156 +
157 +(% class="shortcut" %)
155 155  (((
156 156  (% class="key" %)Meta(%%) + (% class="key" %)G
160 +)))
157 157  )))|Jump to any page in the wiki
158 158  
159 159  == Developer shortcuts ==
... ... @@ -161,13 +161,13 @@
161 161  {{info}}Since 9.11{{/info}}, the following key sequences can be used to toggle specific actions on the current logged in user:
162 162  
163 163  (% class="keyboard" summary="Keyboard Shortcuts for developers" %)
164 -| (% class="shortcut" %)
168 +|(% class="shortcut" %)
165 165  (((
166 166  (% class="key" %)x(%%) (% class="key" %)x(%%) (% class="key" %)x(%%) (% class="key" %)a
167 167  )))|Toggle advanced user mode for the current user.
168 168  
169 169  (% class="keyboard" summary="Keyboard Shortcuts for developers" %)
170 -| (% class="shortcut" %)
174 +|(% class="shortcut" %)
171 171  (((
172 172  (% class="key" %)x(%%) (% class="key" %)x(%%) (% class="key" %)x(%%) (% class="key" %)h
173 173  )))|Toggle hidden pages for the current user.
... ... @@ -228,54 +228,20 @@
228 228  
229 229  == Removing keyboard shortcuts ==
230 230  
231 -To remove a shortcut adapt this snippet to your needs :
235 +To remove a shortcut adapt the following snippet to your needs and use by putting it in a [[JavaScript StyleSheet Extension>>Documentation.DevGuide.Tutorials.SkinExtensionsTutorial.WebHome]]:
232 232  
233 -{{code language="html"}}
234 -<script type="text/javascript">
235 -//<![CDATA[
236 - shortcut.remove("Ctrl+Alt+n");
237 -//]]>
238 -</script>
237 +{{code language="javascript"}}
238 +shortcut.remove("Ctrl+Alt+n");
239 239  {{/code}}
240 240  
241 -{{html clean="false"}}
242 -<script type="text/javascript">
243 -function removeCtrlAltN() {
244 - shortcut.remove("Ctrl+Alt+n");
245 -}
246 -</script>
247 -<a onclick="removeCtrlAltN(); return false;" href="#">Click here to try the snippet, it will remove the Ctrl+Alt+n shortcut</a>.
248 -{{/html}}
249 -
250 250  == Removing all shortcuts at once ==
251 251  
252 -{{code language="html"}}
253 -<script type="text/javascript">
254 -//<![CDATA[
255 - for (binding in shortcut.all_shortcuts()) {
256 - shortcut.remove(binding.keys.join(' '));
257 - }
258 -//]]>
259 -</script>
243 +{{code language="javascript"}}
244 +for (binding in shortcut.all_shortcuts()) {
245 + shortcut.remove(binding.keys.join(' '));
246 +}
260 260  {{/code}}
261 261  
262 -{{velocity}}
263 -#if (!$isGuest && $isAdvancedUser)
264 -{{html clean="false"}}
265 -<script type="text/javascript">
266 -//<![CDATA[
267 -function removeAll() {
268 - for (binding in shortcut.all_shortcuts()) {
269 - shortcut.remove(binding.keys.join(' '));
270 - }
271 -}
272 -//]]>
273 -</script>
274 -<a onclick="removeAll(); return false;" href="#">Click here to try the snippet, it will disable all keyboard shortcuts</a>.
275 -{{/html}}
276 -#end
277 -{{/velocity}}
278 -
279 279  == Credits ==
280 280  
281 281  XWiki keyboard shortcuts are powered by [[Keypress JS shortcut library>>https://dmauro.github.io/Keypress/]].

Get Connected