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

Summary

Details

Page properties
Content
... ... @@ -52,35 +52,6 @@
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 -
84 84  == Adding your own shortcuts ==
85 85  
86 86  You can add your own keyboard shortcuts in a few javascript lines :
... ... @@ -121,7 +121,7 @@
121 121   shortcut.remove("Ctrl+Alt+n");
122 122  }
123 123  </script>
124 -<a onclick="removeCtrlAltN(); return false;" href="#">Click here to try the snippet, it will remove the Ctrl+Alt+n shortcut</a>.
95 +<a onclick="removeCtrlAltN();">Click here to try the snippet, will remove the Ctrl+Alt+n shortcut</a>.
125 125  {{/html}}
126 126  
127 127  == Removing all shortcuts at once ==
... ... @@ -141,18 +141,19 @@
141 141  {{html clean="false"}}
142 142  <script type="text/javascript">
143 143  //<![CDATA[
144 -function removeAll() {
145 145   for (binding in shortcut.all_shortcuts) {
146 146   shortcut.remove(binding);
147 147   }
148 -}
149 149  //]]>
150 150  </script>
151 -<a onclick="removeAll(); return false;" href="#">Click here to try the snippet, it will disable all keyboard shortcuts</a>.
152 152  {{/html}}
153 153  #end
154 154  {{velocity}}
155 155  
124 +== i18n ==
125 +
126 +All the core XWiki shortcuts can be modified in the xwiki-core application resources (core.shortcuts.*)
127 +
156 156  == Credits ==
157 157  
158 158  XWiki keyboard shortcuts are powered by [[openjs.org shortcut library>>http://www.openjs.com/scripts/events/keyboard_shortcuts/]].

Get Connected