keithamus/jwerty

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

Open

#36 ouverte le 12 juin 2013

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)JavaScript (117 forks)batch import
help wanted

Métriques du dépôt

Stars
 (1 214 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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.

Guide contributeur