Monday, March 28, 2011

How to prevent multiple shortcut events for JQuery Hotkeys plugin

    $(document).bind('keydown''ctrl+s'function (e) {
         DoSomethings();
        e.preventDefault();
    });

preventDefault method in javascirpt
event.preventDefault();
Cancels the event if it is cancelable, without stopping further propagation of the event.
Reference:

1 comment:

  1. When I was started to developing the website in ASP.Net with Visual Studio 2012. Then I was totally beginner.
    As I started building a website, I faced many problems.
    But slowly I learned all the codes and today there is no error and no loophole to hack my website on my designed website. Then I decided that the problem I have had to face, no one else can bear it. And I started a blog website of mine.
    In which I learn and guide with source code. If you want to learn Website Developing Code from scratch then click o this website https://blog.oxirock.com/

    ReplyDelete