Created
December 27, 2012 15:38
-
-
Save gauntface/4389117 to your computer and use it in GitHub Desktop.
FocusController constructor - Source which handles
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
/** | |
* This controller will take care of determining where the focus moves when | |
* a key press or mouse movement has occurred | |
* | |
* @constructor | |
*/ | |
function FocusController() { | |
... | |
// Set up binding to listen for key presses | |
$(document).bind('keydown.keycontroller', | |
function(e) { | |
this.onKeyDown(e); | |
}.bind(this) | |
); | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment