keithamus/jwerty

Trying to use same letter ('a' and 'ctrl+a')

Open

#36 opened on Jun 12, 2013

View on GitHub
 (0 comments) (0 reactions) (0 assignees)JavaScript (117 forks)batch import
help wanted

Repository metrics

Stars
 (1,214 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Hi,

I'm trying to assign a shortcut to "a" key, it's working so good.

I also want to assign a shortcut to "ctrl+a" but it doesn't work with the other shortcut. I think it's a conflict problem and I couldn't figure it out.

Ex:

        jwerty.key('a', function () {
            alert('pressed a key");
        });
        jwerty.key('ctrl+a', function () {
            alert('pressed ctrl+a key');
        });

Thanks.

Contributor guide