Open AbraaoAlves opened 8 years ago
Allow use hotkey like this:
<!-- Press "ctrl+q" to trigger click and 'doSomething()' --> <button ng-click="doSomething()" hotkey="ctrl+q">
<!-- If element is disabled, handler is not triggered --> <button ng-click="doSomething()" hotkey="ctrl+q" ng-disabled="expression">
[note]: this PR put event.preventDefault in click event, assuming that ng-click is present. Fixes #197
+1
Allow use hotkey like this:
[note]: this PR put event.preventDefault in click event, assuming that ng-click is present. Fixes #197