keithamus/jwerty

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

Open

#36 建立於 2013年6月12日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)JavaScript (1,214 star) (117 fork)batch import
help wanted

描述

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.

貢獻者指南