keithamus/jwerty

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

Open

#36 aperta il 12 giu 2013

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)JavaScript (117 fork)batch import
help wanted

Metriche repository

Star
 (1214 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor