Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #19 from micsco/patch-1

Added a getScope method.
  • Loading branch information...
commit 6b0695544bb25ecbcbacf7216a7bc0c473d7a0a7 2 parents f2d6747 + b0c7801
@madrobby authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  keymaster.js
View
2  keymaster.js
@@ -136,6 +136,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) {
@@ -155,6 +156,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.