madrobby / keymaster

A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
MIT License
6.53k stars 477 forks source link

⌘ remains active forever #52

Open thbar opened 11 years ago

thbar commented 11 years ago

This seems similar to #37.

My pattern in a given app:

Unfortunately, I cannot provide a small reproduction so far, but I thought I'd still log my findings in hope I come back to it later or someone else find a clear reproduction.

My current attempt at reproducing this is here:

http://jsfiddle.net/thbar/gPEj4/

thbar commented 11 years ago

Further notes: in my case I'm starting to think this could be linked to the use of keymaster together with bootstrap typeahead.js plugin. I'll see if I can provide more details.

thbar commented 11 years ago

Note to self: need to investigate around clearModifier (https://github.com/madrobby/keymaster/blob/master/keymaster.js#L87)