Permalink
Switch branches/tags
Nothing to show
Commits on Dec 26, 2012
  1. Merge pull request #70 from smdern/master

    getPressedKeys() should return a clone of _downKeys
    madrobby committed Dec 26, 2012
Commits on Dec 25, 2012
Commits on Dec 17, 2012
  1. Merge pull request #67 from qiao/master

    Fixed README
    madrobby committed Dec 17, 2012
Commits on Nov 26, 2012
  1. Fixed readme

    qiao committed Nov 26, 2012
Commits on Nov 22, 2012
  1. Merge pull request #66 from davidchambers/master

    fix typo
    madrobby committed Nov 22, 2012
  2. fix typo

    davidchambers committed Nov 22, 2012
Commits on Nov 10, 2012
  1. update readme

    madrobby committed Nov 10, 2012
  2. Merge bleadof-noConflict

    madrobby committed Nov 10, 2012
  3. Merge branch 'noConflict' of https://github.com/bleadof/keymaster int…

    …o bleadof-noConflict
    
    Conflicts:
    	keymaster.js
    	test/keymaster.html
    madrobby committed Nov 10, 2012
  4. update minified version

    madrobby committed Nov 10, 2012
  5. add gitignore

    madrobby committed Nov 10, 2012
  6. Merge pull request #63 from mimshwright/master

    Added the ability to check if a key is down
    madrobby committed Nov 10, 2012
Commits on Nov 6, 2012
  1. Added unit test

    mimshwright committed Nov 6, 2012
Commits on Oct 24, 2012
Commits on Oct 15, 2012
  1. Add noConflict

    Tarmo Aidantausta committed Oct 15, 2012
Commits on Oct 1, 2012
  1. Merge pull request #58 from davidchambers/master

    fix typo
    madrobby committed Oct 1, 2012
  2. fix typo

    davidchambers committed Oct 1, 2012
Commits on Aug 14, 2012
  1. Merge pull request #51 from okonet/master

    Passing _scope to a callback as argument. Updated test suit.
    madrobby committed Aug 14, 2012
  2. Removed setTimeout from setScope since it's unreliable and breaks tes…

    …ts. Instead passing _scope to a callback as argument to ensure it remains the same by the time of execution. Fixes #48
    okonet committed Aug 14, 2012
Commits on Aug 13, 2012
  1. Merge pull request #49 from okonet/master

    Defer setting of scope in setScope
    madrobby committed Aug 13, 2012
  2. Defer setting of scope in setScope to prevent potential loop or calli…

    …ng callbacks from different scope for the same shortcut. Fixes #28. Fixes #48
    okonet committed Aug 13, 2012
Commits on Mar 21, 2012
  1. one more doc fix

    madrobby committed Mar 21, 2012
  2. update docs

    madrobby committed Mar 21, 2012
  3. Merge pull request #33 from dominictarr/keymaster

    ---
    
    Ive moved the test for INPUT, SELECT and TEXTAREA into a property of `key`,
    `key.prekeydown`
    
    if the function assigned to `prekeydown` returns `false`, then keymaster ignores the key press.
    
    you can also change scope in this function, so you can have a scope the shortcuts that work inside an input.
    
    one quirk is that keys in the all scope still work when youve changed the scope.
    so, if you want shortcuts that do not apply inside an input, you need to assign them to a particular scope.
    
    Conflicts:
    	keymaster.min.js
    madrobby committed Mar 21, 2012
  4. Merge pull request #31 from agnoster/keymaster

    ---
    
    Removes all handlers associated with a given scope, allowing throw-away and re-usable scopes. Includes test. Adds 1 function, 8 lines of functional code, and 117 bytes to the minified version.
    
    I took the liberty of adding a simple test for scope while I was at it.
    
    I love how keymaster is so simple and small, I hope this addition does not constitute undue bloat.
    
    If youre curious why I added this function: on a single-site app Im building we want to be able to be able to switch to different "apps" with their own shortcuts. However, when we navigate away from the app it is destroyed, and a new one is created when we navigate back. Allowing us to destroy the scope of all shortcuts the app registered means we dont need to worry about callbacks to a dead app being fired (and of course the app not getting garbage-collected because the closures hold references to it). Of course, if theres another, better way to do this, Id be happy to hear that too. Now, we can just do:
    
        // on app open
        key(n, this.appName, this.createNewItem);
        // ... and other shortcuts...
        key.setScope(this.appName);
    
        // on app close
        key.setScope(all);
        key.deleteScope(this.appName);
    
    Conflicts:
    	keymaster.js
    	keymaster.min.js
    madrobby committed Mar 21, 2012
Commits on Mar 5, 2012
  1. capital V

    dominictarr committed Mar 5, 2012
  2. updated kemaster.min.js

    dominictarr committed Mar 5, 2012
Commits on Nov 11, 2011
  1. update minified version

    madrobby committed Nov 11, 2011
  2. Merge pull request #19 from micsco/patch-1

    Added a getScope method.
    madrobby committed Nov 11, 2011
  3. Merge pull request #32 from lowe/alttab

    reset modifiers to false on window focus. fixes alt+tab, tab switching, and related issues
    madrobby committed Nov 11, 2011
Commits on Nov 6, 2011
  1. reset modifiers to false on window focus. fixes issues with alt+tab, …

    …switching browser tabs with the keyboard, etc
    lowe committed Nov 6, 2011
Commits on Nov 3, 2011
  1. Add key.deleteScope(scope) to remove all handlers

    Removes all handlers associated with a given scope, allowing throw-away and re-usable scopes. Includes test. Adds 1 function, 8 lines of functional code, and 117 bytes to the minified version.
    agnoster committed Nov 3, 2011
  2. Add test for scoping

    agnoster committed Nov 3, 2011