RollRoll
RollRoll

Reputation: 8462

How to make CTRL+N work on Hotkeys JQuery plugin?

I am using the following plugin : Link

I believe this is the most used one from the JQuery community:

I am having problem trying to make ctrl+N work, see the code below:

    $(document).bind('keydown', 'ctrl+N', function () {
        alert("");
        return false;
    });

when I run it on chrome it opens a new window which is the common shortcut from the browser

Upvotes: 2

Views: 1067

Answers (1)

Plynx
Plynx

Reputation: 11461

The keys Ctrl N, Ctrl T, Ctrl W and the shifted variants of these cannot be captured in Google Chrome.

Work is in progress to create an API allowing these keys to be captured without the issues associated with overriding browser-reserved shortcut keys. See http://code.google.com/p/chromium/issues/detail?id=119881 .

Upvotes: 3

Related Questions