Changes for page XWiki Keyboard Shortcuts
Last modified by Vincent Massol on 2020/10/21
Change comment:
Fixed Title; Added box to TOC
Summary
-
Page properties (3 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki Keyboard Shortcuts - Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. jvdrean1 +XWiki.SilviaRusu - Content
-
... ... @@ -1,16 +1,14 @@ 1 - =XWikiKeyboardShortcuts=1 +{{box cssClass="floatinginfobox" title="**Contents**"}}{{toc/}}{{/box}} 2 2 3 -{{toc start=2 depth=6 numbered=false scope=page /}} 4 - 5 5 **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. 6 6 7 -= =Shortcuts ==5 += Shortcuts = 8 8 9 -== =View mode ===7 +== View mode == 10 10 11 11 {{info}}View keyboard shortcuts are only available to advanced users, preventing simple users to get unexpected behavior when pressing keyboard keys by mistake{{/info}} 12 12 13 -=== =Edit ====11 +=== Edit === 14 14 15 15 (% style="width:400px;"%) 16 16 |**e** |Edit the page using the default edition mode ... ... @@ -21,7 +21,7 @@ 21 21 |**o** |Edit page objects 22 22 |**s** |Edit class 23 23 24 -=== =Show ====22 +=== Show === 25 25 26 26 (% style="width:400px;"%) 27 27 |**c** |Go to page comments ... ... @@ -29,13 +29,13 @@ 29 29 |**h** |Go to page history 30 30 |**d** |View page wiki code 31 31 32 -=== =Actions ====30 +=== Actions === 33 33 34 34 (% style="width:400px;"%) 35 35 |**F2** |Rename page 36 36 |**Delete** |Delete page 37 37 38 -== =Edit & inline mode ===36 +== Edit & inline mode == 39 39 40 40 {{warning}}Keyboard shortcuts aren't available from the wysiwyg edit mode (since the wysiwyg editor grabs all the key pressed events){{/warning}} 41 41 (% style="width:400px;"%) ... ... @@ -44,7 +44,7 @@ 44 44 |**<Alt> + <Shift> + s** |Save and continue to edit the page 45 45 |**<Alt> + s** |Save and view the page 46 46 47 -== =Preview mode ===45 +== Preview mode == 48 48 49 49 (% style="width:400px;"%) 50 50 |**<Alt> + c** |Cancel edition ... ... @@ -52,8 +52,37 @@ 52 52 |**<Alt> + <Shift> + s** |Save and continue to edit the page 53 53 |**<Alt> + s** |Save and view the page 54 54 55 -= =Adding yourownshortcuts ==53 += Modifying keyboard shortcuts = 56 56 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 + 57 57 You can add your own keyboard shortcuts in a few javascript lines : 58 58 59 59 {{code language="javascript"}} ... ... @@ -74,7 +74,7 @@ 74 74 75 75 [[Complete documentation>>http://www.openjs.com/scripts/events/keyboard_shortcuts/]]. 76 76 77 -= =Removing shortcuts ==104 += Removing shortcuts = 78 78 79 79 To remove a shortcut adapt this snippet to your needs : 80 80 ... ... @@ -95,7 +95,7 @@ 95 95 <a onclick="removeCtrlAltN(); return false;" href="#">Click here to try the snippet, it will remove the Ctrl+Alt+n shortcut</a>. 96 96 {{/html}} 97 97 98 -= =Removing all shortcuts at once ==125 += Removing all shortcuts at once = 99 99 100 100 {{code language="javascript"}} 101 101 <script type="text/javascript"> ... ... @@ -124,10 +124,6 @@ 124 124 #end 125 125 {{velocity}} 126 126 127 -= =i18n==154 += Credits = 128 128 129 -All the core XWiki shortcuts can be modified in the xwiki-core application resources (core.shortcuts.*) 130 - 131 -== Credits == 132 - 133 133 XWiki keyboard shortcuts are powered by [[openjs.org shortcut library>>http://www.openjs.com/scripts/events/keyboard_shortcuts/]].