Skip to content

Instantly share code, notes, and snippets.

@gauntface
Created December 27, 2012 15:38
Show Gist options
  • Save gauntface/4389117 to your computer and use it in GitHub Desktop.
Save gauntface/4389117 to your computer and use it in GitHub Desktop.
FocusController constructor - Source which handles
/**
* 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