<
From version < 6.5 >
edited by Jean-Vincent Drean
on 2009/12/10
To version < 7.1 >
edited by Jean-Vincent Drean
on 2009/12/10
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -52,6 +52,35 @@
52 52  |**<Alt> + <Shift> + s** |Save and continue to edit the page
53 53  |**<Alt> + s** |Save and view the page
54 54  
55 +== Modifying keyboard shortcuts ==
56 +
57 +* Create a new page in your wiki, for example //XWiki.KeyboardShortcuts// and paste the following content inside:
58 +{{code}}
59 +core.shortcuts.view.edit=e
60 +core.shortcuts.view.wiki=k
61 +core.shortcuts.view.wysiwyg=g
62 +core.shortcuts.view.inline=f
63 +core.shortcuts.view.rights=r
64 +core.shortcuts.view.objects=o
65 +core.shortcuts.view.class=s
66 +core.shortcuts.view.comments=c
67 +core.shortcuts.view.attachments=a
68 +core.shortcuts.view.history=h
69 +core.shortcuts.view.information=i
70 +core.shortcuts.view.code=d
71 +core.shortcuts.view.delete=Delete
72 +core.shortcuts.view.rename=F2
73 +core.shortcuts.edit.cancel=Alt+C
74 +core.shortcuts.edit.backtoedit=Alt+B
75 +core.shortcuts.edit.preview=Alt+P
76 +core.shortcuts.edit.saveandcontinue=Alt+Shift+S
77 +core.shortcuts.edit.saveandview=Alt+S
78 +{{/code}}
79 +* Modify entries in this list at your convenience
80 +* Save the page
81 +* Go to the wiki administration into the "//Programming//" category
82 +* At the bottom, add //XWiki.KeyboardShortcuts// to the "//Internationalization Document Bundles//" list
83 +
55 55  == Adding your own shortcuts ==
56 56  
57 57  You can add your own keyboard shortcuts in a few javascript lines :
... ... @@ -92,7 +92,7 @@
92 92   shortcut.remove("Ctrl+Alt+n");
93 93  }
94 94  </script>
95 -<a onclick="removeCtrlAltN();">Click here to try the snippet, will remove the Ctrl+Alt+n shortcut</a>.
124 +<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 98  == Removing all shortcuts at once ==
... ... @@ -112,19 +112,18 @@
112 112  {{html clean="false"}}
113 113  <script type="text/javascript">
114 114  //<![CDATA[
144 +function removeAll() {
115 115   for (binding in shortcut.all_shortcuts) {
116 116   shortcut.remove(binding);
117 117   }
148 +}
118 118  //]]>
119 119  </script>
151 +<a onclick="removeAll(); return false;" href="#">Click here to try the snippet, it will disable all keyboard shortcuts</a>.
120 120  {{/html}}
121 121  #end
122 122  {{velocity}}
123 123  
124 -== i18n ==
125 -
126 -All the core XWiki shortcuts can be modified in the xwiki-core application resources (core.shortcuts.*)
127 -
128 128  == Credits ==
129 129  
130 130  XWiki keyboard shortcuts are powered by [[openjs.org shortcut library>>http://www.openjs.com/scripts/events/keyboard_shortcuts/]].

Get Connected