Changes for page XWiki Keyboard Shortcuts
Last modified by Lucas Charpentier (Sereza7) on 2024/02/27
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -154,7 +154,7 @@ 154 154 155 155 == Developer shortcuts == 156 156 157 -The following key sequences can be used to toggle specific actions on the current logged in user .157 +The following key sequences can be used to toggle specific actions on the current logged in user: 158 158 159 159 (% class="keyboard" summary="Keyboard Shortcuts for developers" %) 160 160 | (% class="shortcut" %) ... ... @@ -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 ;)"); });210 + shortcut.add("Ctrl+Alt+n", function() { alert("Hey there! Congratulations on typing this one ;)"); }); 211 211 //]]> 212 212 </script> 213 213 {{/code}} ... ... @@ -214,7 +214,7 @@ 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 ;)"); });217 + shortcut.add("Ctrl+Alt+n", function() { alert("Hey there! Congratulations on typing this one ;)"); }, {'propagate':false} ); 218 218 </script> 219 219 {{/html}} 220 220 ... ... @@ -229,7 +229,7 @@ 229 229 {{code language="html"}} 230 230 <script type="text/javascript"> 231 231 //<![CDATA[ 232 - shortcut.remove("Ctrl+Alt+ N");232 + 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");240 + 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>. ... ... @@ -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(' '));264 + for (binding in shortcut.all_shortcuts) { 265 + shortcut.remove(binding); 266 266 } 267 267 } 268 268 //]]>