Change comment:
Rollback to version 14.3
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -152,22 +152,6 @@ 152 152 (% class="key" %)Meta(%%) + (% class="key" %)G 153 153 )))|Jump to any page in the wiki 154 154 155 -== Developer shortcuts == 156 - 157 -The following key sequences can be used to toggle specific actions on the current logged in user: 158 - 159 -(% class="keyboard" summary="Keyboard Shortcuts for developers" %) 160 -| (% class="shortcut" %) 161 -((( 162 -(% class="key" %)x(%%) (% class="key" %)x(%%) (% class="key" %)x(%%) (% class="key" %)a 163 -)))|Toggle advanced user mode for the current user. 164 - 165 -(% class="keyboard" summary="Keyboard Shortcuts for developers" %) 166 -| (% class="shortcut" %) 167 -((( 168 -(% class="key" %)x(%%) (% class="key" %)x(%%) (% class="key" %)x(%%) (% class="key" %)h 169 -)))|Toggle hidden pages for the current user. 170 - 171 171 = Configuring keyboard shortcuts = 172 172 173 173 == Modifying keyboard shortcuts == ... ... @@ -207,7 +207,7 @@ 207 207 {{code language="html"}} 208 208 <script type="text/javascript"> 209 209 //<![CDATA[ 210 - shortcut.add("Ctrl+Alt+ N", function() { alert("Hey there! Congratulations on typing this one ;)"); });194 + shortcut.add("Ctrl+Alt+n", function() { alert("Hey there! Congratulations on typing this one ;)"); }); 211 211 //]]> 212 212 </script> 213 213 {{/code}} ... ... @@ -214,13 +214,13 @@ 214 214 215 215 {{html clean="false"}} 216 216 <script type="text/javascript"> 217 - shortcut.add("Ctrl+Alt+ N", function() { alert("Hey there! Congratulations on typing this one ;)"); });201 + shortcut.add("Ctrl+Alt+n", function() { alert("Hey there! Congratulations on typing this one ;)"); }, {'propagate':false} ); 218 218 </script> 219 219 {{/html}} 220 220 221 221 Try the snippet by pressing (% class="key" %)**Ctrl**(%%) + (% class="key" %)**Alt**(%%) + (% class="key" %)**n**(%%). 222 222 223 -Also check the [[complete documentation>>http s://dmauro.github.io/Keypress/]].207 +Also check the [[complete documentation>>http://www.openjs.com/scripts/events/keyboard_shortcuts/]]. 224 224 225 225 == Removing keyboard shortcuts == 226 226 ... ... @@ -229,7 +229,7 @@ 229 229 {{code language="html"}} 230 230 <script type="text/javascript"> 231 231 //<![CDATA[ 232 - shortcut.remove("Ctrl+Alt+ N");216 + shortcut.remove("Ctrl+Alt+n"); 233 233 //]]> 234 234 </script> 235 235 {{/code}} ... ... @@ -237,7 +237,7 @@ 237 237 {{html clean="false"}} 238 238 <script type="text/javascript"> 239 239 function removeCtrlAltN() { 240 - shortcut.remove("Ctrl+Alt+ N");224 + shortcut.remove("Ctrl+Alt+n"); 241 241 } 242 242 </script> 243 243 <a onclick="removeCtrlAltN(); return false;" href="#">Click here to try the snippet, it will remove the Ctrl+Alt+n shortcut</a>. ... ... @@ -248,8 +248,8 @@ 248 248 {{code language="html"}} 249 249 <script type="text/javascript"> 250 250 //<![CDATA[ 251 - for (binding in shortcut.all_shortcuts ()){252 - shortcut.remove(binding .keys.join(' '));235 + for (binding in shortcut.all_shortcuts) { 236 + shortcut.remove(binding); 253 253 } 254 254 //]]> 255 255 </script> ... ... @@ -261,8 +261,8 @@ 261 261 <script type="text/javascript"> 262 262 //<![CDATA[ 263 263 function removeAll() { 264 - for (binding in shortcut.all_shortcuts ()){265 - shortcut.remove(binding .keys.join(' '));248 + for (binding in shortcut.all_shortcuts) { 249 + shortcut.remove(binding); 266 266 } 267 267 } 268 268 //]]> ... ... @@ -274,4 +274,4 @@ 274 274 275 275 == Credits == 276 276 277 -XWiki keyboard shortcuts are powered by [[ KeypressJSshortcut library>>https://dmauro.github.io/Keypress/]].261 +XWiki keyboard shortcuts are powered by [[openjs.com shortcut library>>http://www.openjs.com/scripts/events/keyboard_shortcuts/]].