Last modified by Eleni Cojocariu on 2026/11/25 14:38

Show last authors
1 {{velocity}}
2 $xwiki.ssx.use("Documentation.UserGuide.Features.KeyboardShortcuts")
3 {{/velocity}}
4
5 Rebind any [[keyboard shortcut>>doc:documentation.xs.user.keyboard-shortcuts.viewing-page.WebHome]] of your wiki by overriding the translation keys that define it, which needs the Admin right on the wiki.
6
7 1. Create a page, for example ##XWiki.KeyboardShortcuts##, and paste the default keys into its content:(((
8 {{code language="properties"}}
9 core.shortcuts.view.edit=e
10 core.shortcuts.view.wiki=k
11 core.shortcuts.view.wysiwyg=g
12 core.shortcuts.view.inline=f
13 core.shortcuts.view.rights=r
14 core.shortcuts.view.objects=o
15 core.shortcuts.view.class=s
16 core.shortcuts.view.comments=c
17 core.shortcuts.view.attachments=a
18 core.shortcuts.view.history=h
19 core.shortcuts.view.information=i
20 core.shortcuts.view.code=d
21 core.shortcuts.view.annotations=n
22 core.shortcuts.view.delete=Delete
23 core.shortcuts.view.rename=F2
24 core.shortcuts.edit.cancel=Alt+C
25 core.shortcuts.edit.backtoedit=Alt+B
26 core.shortcuts.edit.preview=Alt+P
27 core.shortcuts.edit.save=Alt+Shift+S
28 core.shortcuts.edit.saveandview=Alt+S
29 core.shortcuts.developer.user.type=x+x+x+a
30 core.shortcuts.developer.user.displayHiddenDocs=x+x+x+h
31 {{/code}}
32 )))
33 1. Change the value of each shortcut you want to rebind, for example ##core.shortcuts.view.comments=m## to reach the "Comments" tab with (% class="key" %)M(%%) instead of (% class="key" %)C(%%).
34 1. Click "Save".
35 1. Edit the page [[with the Object editor>>doc:documentation.xs.user.content-edit.object-editor.WebHome]] and add an ##XWiki.TranslationDocumentClass## object:(((
36 {{image reference="add-translation-object.png" size="large" alt="The object editor's New object field, with XWiki.TranslationDocumentClass selected in the open list"/}}
37 )))
38 1. Set the object's "Scope" to ##WIKI##, so that the new keys apply to every user of the wiki:(((
39 {{image reference="translation-scope-wiki.png" size="large" alt="The Scope field of the translation object, set to WIKI"/}}
40 )))
41 1. Click "Save".
42 1. Press a key you rebound. It works straight away, with no cache to flush, and in this example (% class="key" %)M(%%) opens the "Comments" tab:(((
43 {{image reference="comments-tab-opened.png" size="large" alt="The page extra area with the Comments tab active next to the Attachments, History and Information tabs"/}}
44 )))

Get Connected