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

Summary

Details

Page properties
Content
... ... @@ -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>.
95 +<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,11 +112,14 @@
112 112  {{html clean="false"}}
113 113  <script type="text/javascript">
114 114  //<![CDATA[
115 +function removeAll() {
115 115   for (binding in shortcut.all_shortcuts) {
116 116   shortcut.remove(binding);
117 117   }
119 +}
118 118  //]]>
119 119  </script>
122 +<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}}

Get Connected