Created
March 21, 2014 19:33
-
-
Save ericwwsun/9694363 to your computer and use it in GitHub Desktop.
[Javascript] [Angular] Capturing document level keypress events in AngularJS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html lang="en" ng-controller="AppController" ng-keyup="keyup($event)"> | |
var AppController = function($scope) { | |
$scope.keyup = function(keyEvent) { | |
console.log('keyup', keyEvent); | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment