Change the Default Keyboard Shortcuts
Last modified by Eleni Cojocariu on 2026/10/05 14:00
Steps
Rebind any keyboard shortcut of your wiki by overriding the translation keys that define it, which needs the Admin right on the wiki.
- Create a page, for example XWiki.KeyboardShortcuts, and paste the default keys into its content:
core.shortcuts.view.edit=e core.shortcuts.view.wiki=k core.shortcuts.view.wysiwyg=g core.shortcuts.view.inline=f core.shortcuts.view.rights=r core.shortcuts.view.objects=o core.shortcuts.view.class=s core.shortcuts.view.comments=c core.shortcuts.view.attachments=a core.shortcuts.view.history=h core.shortcuts.view.information=i core.shortcuts.view.code=d core.shortcuts.view.annotations=n core.shortcuts.view.delete=Delete core.shortcuts.view.rename=F2 core.shortcuts.edit.cancel=Alt+C core.shortcuts.edit.backtoedit=Alt+B core.shortcuts.edit.preview=Alt+P core.shortcuts.edit.save=Alt+Shift+S core.shortcuts.edit.saveandview=Alt+S core.shortcuts.developer.user.type=x+x+x+a core.shortcuts.developer.user.displayHiddenDocs=x+x+x+h - Change the value of each shortcut you want to rebind, for example core.shortcuts.view.comments=m to reach the "Comments" tab with M instead of C.
- Click "Save".
- Edit the page with the Object editor and add an XWiki.TranslationDocumentClass object:

- Set the object's "Scope" to WIKI, so that the new keys apply to every user of the wiki:

- Click "Save".
- Press a key you rebound. It works straight away, with no cache to flush, and in this example M opens the "Comments" tab:

FAQ
Do I have to list every shortcut in the page?
No. Keep only the lines you want to change, and every key you leave out keeps its default value.
Why are my new shortcuts ignored?
The translations are registered only while the page's author and content author both hold the Admin right on the wiki, so a later save by an account without it silently stops them from applying.
Can I rebind the shortcuts for a single user?
Set the object's "Scope" to USER instead of WIKI, and the keys then apply only to the author of the page.