Skip to content
This repository was archived by the owner on Sep 23, 2025. It is now read-only.

Conversation

AbraaoAlves
Copy link

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

@javisperez
Copy link

+1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants