// keymage.js - Javascript keyboard event handling // http://github.com/piranha/keymage // // (c) 2012 Alexander Solovyov // under terms of ISC License (function(a,b){a(function(){function m(a){var b=a.split("-"),d=b[b.length-1],e={code:f[d]};if(!e.code)throw'Unknown key "'+d+'" in keystring "'+a+'"';var g;for(var h=0;h=0;h--){f=q(l,c.slice(0,h));if(!f)continue;d=!0;for(var i=0;i