chieffancypants / angular-hotkeys

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

Modify associated DOM element to event #162

Closed xsenechal closed 9 years ago

xsenechal commented 9 years ago

I have several inputs and when type a hotkey inside one of them, I would like the hotkey callback to edit the content of the input. uses cases are uppercase, leftpadd...

I have created a fiddle where I can update the input value but the change is not reflected in the angular model: http://jsfiddle.net/xsenechal/xLo5vtL6/5/ A $scope.$apply does not work in this place.

Is is feature easily provided by the plugin ?

chieffancypants commented 9 years ago

Hmm, that's a pretty specific use-case, I'm not sure how I would incorporate generically into this library. It's probably better off handled in your own app logic.