madrobby/keymaster — pull request #53 by dsc (2012-09-02 00:25:46+00:00)
Title: Adds support for auto-translating shift-modified glyphs

Shift-modified glyphs, like `!`, are now automatically translated into their canonical form (in this case, `shift+1`) before event registration.

As it stands, this will never fire:

```js
key("$", function(){ console.log("$$$bling$$$"); });
```

This patch translates it into `key("shift+4", ...)`. It preserves all other modifiers, which means `shift` might get doubled, but that doesn't effect the semantics at all.