chieffancypants / angular-hotkeys

Configuration-centric keyboard shortcuts for your Angular apps.
http://chieffancypants.github.io/angular-hotkeys/
MIT License
1.68k stars 254 forks source link

how to create 2 methods for ctrl+r and ctrl+R #261

Closed PManager1 closed 7 years ago

PManager1 commented 7 years ago

how to create 2 hotkey methods for ctrl+r and ctrl+R

or ctrl+r and ctrl+shift+r ?

aramando commented 7 years ago

Haven't you answered your own question? For example:

hotkeys
.add({
    combo: 'ctrl+r',
    callback: fn_1
})
.add({
    combo: 'ctrl+shift+r',
    callback: fn_2
});
PManager1 commented 7 years ago

Lol - k

Best Regards, Jay

On Feb 22, 2017, at 6:45 AM, aramando notifications@github.com wrote:

Haven't you answered your own question? For example:

hotkeys .add({ combo: 'ctrl+r', callback: fn_1 }) .add({ combo: 'ctrl+shift+r', callback: fn_2 }); — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.