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
-
... ... @@ -92,7 +92,7 @@ 92 92 shortcut.remove("Ctrl+Alt+n"); 93 93 } 94 94 </script> 95 -<a onclick="removeCtrlAltN(); return false;"href="#">Click here to try the snippet,itwill 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>. 96 96 {{/html}} 97 97 98 98 == Removing all shortcuts at once == ... ... @@ -112,14 +112,11 @@ 112 112 {{html clean="false"}} 113 113 <script type="text/javascript"> 114 114 //<![CDATA[ 115 -function removeAll() { 116 116 for (binding in shortcut.all_shortcuts) { 117 117 shortcut.remove(binding); 118 118 } 119 -} 120 120 //]]> 121 121 </script> 122 -<a onclick="removeAll(); return false;" href="#">Click here to try the snippet, it will disable all keyboard shortcuts</a>. 123 123 {{/html}} 124 124 #end 125 125 {{velocity}}