Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Commits on Apr 17, 2013
  1. @ciaranj

    Updates the makefile comment to explicitly suggest v1 of uglifyjs

    ciaranj authored
    The default uglifyjs package is now v2, this means that the generated
    (minified) js looks very different to what was presumably intended
    (based on the existing .min.js file)
  2. @ciaranj

    Fixes Issue #72 and Issue #39 - Adds support for F keys

    ciaranj authored
    Provides support (and test) for the F keys 1-19 as described
    on the homepage.
    
    Signed-off-by: ciaranj <ciaranj@gmail.com>
Commits on Feb 13, 2013
  1. Merge pull request #54 from clvrobj/master

    authored
    Modifiers reset issue
Commits on Jan 24, 2013
  1. Merge pull request #75 from Burgestrand/isPressedPatch

    authored
    key descriptions (e.g. 'up', 'space', etc) in key.isPressed()
  2. @Burgestrand
Commits on Dec 26, 2012
  1. @smdern
  2. Merge pull request #70 from smdern/master

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

    authored
    Fixed README
Commits on Nov 26, 2012
  1. @qiao

    Fixed readme

    qiao authored
Commits on Nov 22, 2012
  1. @davidchambers

    fix typo

    davidchambers authored
Commits on Nov 10, 2012
  1. update readme

    authored
  2. Merge bleadof-noConflict

    authored
  3. Merge branch 'noConflict' of https://github.com/bleadof/keymaster int…

    authored
    …o bleadof-noConflict
    
    Conflicts:
    	keymaster.js
    	test/keymaster.html
  4. update minified version

    authored
  5. add gitignore

    authored
  6. Merge pull request #63 from mimshwright/master

    authored
    Added the ability to check if a key is down
Commits on Nov 6, 2012
  1. @mimshwright

    Added unit test

    mimshwright authored
Commits on Oct 24, 2012
  1. @mimshwright
Commits on Oct 15, 2012
  1. Add noConflict

    Tarmo Aidantausta authored
Commits on Oct 1, 2012
  1. @davidchambers

    fix typo

    davidchambers authored
Commits on Sep 9, 2012
  1. @clvrobj

    modifiers reset issue

    clvrobj authored
Commits on Aug 14, 2012
  1. Merge pull request #51 from okonet/master

    authored
    Passing _scope to a callback as argument. Updated test suit.
  2. @okonet

    Removed setTimeout from setScope since it's unreliable and breaks tes…

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

    authored
    Defer setting of scope in setScope
  2. @okonet

    Defer setting of scope in setScope to prevent potential loop or calli…

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

    authored
  2. update docs

    authored
  3. Merge pull request #33 from dominictarr/keymaster

    authored
    ---
    
    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
  4. Merge pull request #31 from agnoster/keymaster

    authored
    ---
    
    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
Commits on Mar 5, 2012
  1. @dominictarr

    capital V

    dominictarr authored
  2. @dominictarr

    updated kemaster.min.js

    dominictarr authored
  3. @dominictarr
Something went wrong with that request. Please try again.