Skip to content

alisabzevari/NgHotkey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NgHotkey

Provide hotkey functionality in AngularJS using Mousetrap

Getting Started

  1. Include nghotkey on your page
<script src="/path/to/mousetrap.min.js"></script>
<script src="/path/to/nghotkey.js"></script>
  1. Put nghotkey to your module dependencies
var app = angular.module('app', ['nghotkey']);
  1. Set hotkey for elements or directives using hotkey directive as an attribute
  <input type="text" hotkey="h ?" hotkey-action="keyup" />
  <input type="button" hotkey="ctrl+;"/>

About

Provide hotkey functionality in AngularJS using Mousetrap

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published