XWiki Keyboard Shortcuts
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.
Using keyboard shortcuts
View Mode
Edit Actions
E | Edit the page using the default edition mode |
K | Edit the page in wiki edition mode |
G | Edit the page using the WYSIWYG editor |
F | Inline Form |
R | Edit page access rights |
O | Edit page objects |
S | Edit class |
View Actions
C | Go to page comments |
N | Go to page annotations |
A | Go to page attachments |
H | Go to page history |
I | Go to page information |
D | View page wiki code |
Other Actions
F2 | Rename page |
Delete | Delete page |
Edit Mode
Alt + C | Cancel edition |
Alt + P | Preview the page without saving |
Alt + Shift + S | Save and continue to edit the page |
Alt + S | Save and view the page |
WYSIWYG Edit Mode
See the WYSIWYG Editor keyboard shortcuts.
Preview Mode
Alt + C | Cancel edition |
Alt + B | Back to the edition |
Alt + Shift + S | Save and continue to edit the page |
Alt + S | Save and view the page |
Annotations
Ctrl + M or Meta + M | Annotate a piece of text |
Alt + A | Show annotations |
Navigation
Ctrl + G or Meta + G | Jump to any page in the wiki |
Developer shortcuts
, the following key sequences can be used to toggle specific actions on the current logged in user:
x x x a | Toggle advanced user mode for the current user. |
x x x h | Toggle hidden pages for the current user. |
Configuring keyboard shortcuts
Modifying keyboard shortcuts
- Create a new page in your wiki, for example XWiki.KeyboardShortcuts and paste the following content inside: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.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.saveandcontinue=Alt+Shift+S
core.shortcuts.edit.saveandview=Alt+S - Modify entries in this list at your convenience
- Save the page
- Edit the page in object mode and add an XWiki.TranslationDocumentClass xobject
- Select the wiki scope for the new translations (i.e. the new keyboard shortcuts) to apply to the whole wiki.
Adding your own shortcuts
You can add your own keyboard shortcuts in a few javascript lines. You can do that, for example, by adding a JavaScript StyleSheet Extension and putting the following content:
Also check the complete documentation.
Removing keyboard shortcuts
To remove a shortcut adapt the following snippet to your needs and use by putting it in a JavaScript StyleSheet Extension:
Removing all shortcuts at once
shortcut.remove(binding.keys.join(' '));
}
Credits
XWiki keyboard shortcuts are powered by Keypress JS shortcut library.