Search code examples
asp.netasp.net-mvctwitter-bootstrapwysiwyghotkeys

How to disable hotkeys in bootstrap-wysiwyg? ASP MVC


I have bootstrap-wysiwyg attached into my ASP MVC project, but i have problem with hotkeys. I don't want them, i use this shortcuts for something else (like special characters).

How to disable them?


Solution

  • According to the documentation, you can specify a hotkey map. Try supplying an empty map:

    $('#editor').wysiwyg({
      hotKeys: {}
    });
    

    Or just omit the jQuery hotkeys script: <script src="jquery.hotkeys.js"></script> which it requires.