Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added a getScope method.

  • Loading branch information...
commit ed510bce87077d2d8eca8da2f74b3d7e9a045039 1 parent f23a0ea
@micsco micsco authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  keymaster.js
View
2  keymaster.js
@@ -131,6 +131,7 @@
// set current scope (default 'all')
function setScope(scope){ _scope = scope || 'all' };
+ function getScope(){ return scope || 'all' };
// cross-browser events
function addEvent(object, event, method) {
@@ -147,6 +148,7 @@
// set window.key and window.key.setScope
global.key = assignKey;
global.key.setScope = setScope;
+ global.key.getScope = getScope;
if(typeof module !== 'undefined') module.exports = key;
Please sign in to comment.
Something went wrong with that request. Please try again.