Skip to content
Browse files

updated kemaster.min.js

  • Loading branch information...
1 parent 951d6ed commit be1d6dc6a79398b7108174bf663dcd9edbb51e72 @dominictarr committed Mar 5, 2012
Showing with 1 addition and 45 deletions.
  1. +1 −1 keymaster.min.js
  2. +0 −44 npm-debug.log
View
2 keymaster.min.js
@@ -1,4 +1,4 @@
// keymaster.js
// (c) 2011 Thomas Fuchs
// keymaster.js may be freely distributed under the MIT license.
-(function(a){function h(a,b){var c=a.length;while(c--)if(a[c]===b)return c;return-1}function i(a){var b,g,i,j,k,m;g=(a.target||a.srcElement).tagName,b=a.keyCode;if(b==93||b==224)b=91;if(b in d){d[b]=!0;for(j in f)f[j]==b&&(l[j]=!0);return}if(g=="INPUT"||g=="SELECT"||g=="TEXTAREA")return;if(!(b in c))return;for(k=0;k<c[b].length;k++){i=c[b][k];if(i.scope==e||i.scope=="all"){m=i.mods.length>0;for(j in d)if(!d[j]&&h(i.mods,+j)>-1||d[j]&&h(i.mods,+j)==-1)m=!1;(i.mods.length==0&&!d[16]&&!d[18]&&!d[17]&&!d[91]||m)&&i.method(a,i)===!1&&(a.preventDefault?a.preventDefault():a.returnValue=!1,a.stopPropagation&&a.stopPropagation(),a.cancelBubble&&(a.cancelBubble=!0))}}}function j(a){var b=a.keyCode,c;if(b==93||b==224)b=91;if(b in d){d[b]=!1;for(c in f)f[c]==b&&(l[c]=!1)}}function k(){for(b in d)d[b]=!1;for(b in f)l[b]=!1}function l(a,b,d){var e,h,i,j;d===undefined&&(d=b,b="all"),a=a.replace(/\s/g,""),e=a.split(","),e[e.length-1]==""&&(e[e.length-2]+=",");for(i=0;i<e.length;i++){h=[],a=e[i].split("+");if(a.length>1){h=a.slice(0,a.length-1);for(j=0;j<h.length;j++)h[j]=f[h[j]];a=[a[a.length-1]]}a=a[0],a=g[a]||a.toUpperCase().charCodeAt(0),a in c||(c[a]=[]),c[a].push({shortcut:e[i],scope:b,method:d,key:e[i],mods:h})}}function m(a){e=a||"all"}function n(){return e||"all"}function o(a,b,c){a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent&&a.attachEvent("on"+b,function(){c(window.event)})}var b,c={},d={16:!1,18:!1,17:!1,91:!1},e="all",f={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,command:91},g={backspace:8,tab:9,clear:12,enter:13,"return":13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,"delete":46,home:36,end:35,pageup:33,pagedown:34,",":188,".":190,"/":191,"`":192,"-":189,"=":187,";":186,"'":222,"[":219,"]":221,"\\":220};for(b=1;b<20;b++)f["f"+b]=111+b;for(b in f)l[b]=!1;o(document,"keydown",i),o(document,"keyup",j),o(window,"focus",k),a.key=l,a.key.setScope=m,a.key.getScope=n,typeof module!="undefined"&&(module.exports=key)})(this)
+(function(a){function h(a,b){var c=a.length;while(c--)if(a[c]===b)return c;return-1}function i(a){var b,g,i,j,k;b=a.keyCode;if(b==93||b==224)b=91;if(b in d){d[b]=!0;for(i in f)f[i]==b&&(l[i]=!0);return}if(l.prekeydown.call(this,a)===!1)return;if(!(b in c))return;for(j=0;j<c[b].length;j++){g=c[b][j];if(g.scope==e||g.scope=="all"){k=g.mods.length>0;for(i in d)if(!d[i]&&h(g.mods,+i)>-1||d[i]&&h(g.mods,+i)==-1)k=!1;(g.mods.length==0&&!d[16]&&!d[18]&&!d[17]&&!d[91]||k)&&g.method(a,g)===!1&&(a.preventDefault?a.preventDefault():a.returnValue=!1,a.stopPropagation&&a.stopPropagation(),a.cancelBubble&&(a.cancelBubble=!0))}}}function j(a){var b=a.keyCode,c;if(b==93||b==224)b=91;if(b in d){d[b]=!1;for(c in f)f[c]==b&&(l[c]=!1)}}function k(){for(b in d)d[b]=!1;for(b in f)l[b]=!1}function l(a,b,d){var e,h,i,j;d===undefined&&(d=b,b="all"),a=a.replace(/\s/g,""),e=a.split(","),e[e.length-1]==""&&(e[e.length-2]+=",");for(i=0;i<e.length;i++){h=[],a=e[i].split("+");if(a.length>1){h=a.slice(0,a.length-1);for(j=0;j<h.length;j++)h[j]=f[h[j]];a=[a[a.length-1]]}a=a[0],a=g[a]||a.toUpperCase().charCodeAt(0),a in c||(c[a]=[]),c[a].push({shortcut:e[i],scope:b,method:d,key:e[i],mods:h})}}function m(a){e=a||"all"}function n(){return e||"all"}function o(a,b,c){a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent&&a.attachEvent("on"+b,function(){c(window.event)})}var b,c={},d={16:!1,18:!1,17:!1,91:!1},e="all",f={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,command:91},g={backspace:8,tab:9,clear:12,enter:13,"return":13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,"delete":46,home:36,end:35,pageup:33,pagedown:34,",":188,".":190,"/":191,"`":192,"-":189,"=":187,";":186,"'":222,"[":219,"]":221,"\\":220};for(b=1;b<20;b++)f["f"+b]=111+b;l.prekeydown=function(a){var b=(event.target||event.srcElement).tagName;if(b=="INPUT"||b=="SELECT"||b=="TEXTAREA")return!1};for(b in f)l[b]=!1;o(document,"keydown",i),o(document,"keyup",j),o(window,"focus",k),a.key=l,a.key.setScope=m,a.key.getScope=n,typeof module!="undefined"&&(module.exports=key)})(this);
View
44 npm-debug.log
@@ -1,44 +0,0 @@
-info it worked if it ends with ok
-verbose cli [ 'node',
-verbose cli '/home/dominic/.nave/installed/0.6.10/bin/npm',
-verbose cli 'install',
-verbose cli 'uglyify' ]
-info using npm@1.1.0-3
-info using node@v0.6.10
-verbose config file /home/dominic/.npmrc
-verbose config file /home/dominic/.nave/installed/0.6.10/etc/npmrc
-verbose config file /home/dominic/.nave/installed/0.6.10/lib/node_modules/npm/npmrc
-verbose caching /home/dominic/d/keymaster/package.json
-verbose loadDefaults keymaster@1.0.2
-verbose from cache /home/dominic/d/keymaster/package.json
-verbose cache add [ 'uglyify', null ]
-silly cache add: name, spec, args [ undefined, 'uglyify', [ 'uglyify', null ] ]
-verbose parsed url { pathname: 'uglyify', path: 'uglyify', href: 'uglyify' }
-verbose addNamed [ 'uglyify', '' ]
-verbose addNamed [ null, '' ]
-silly name, range, hasData [ 'uglyify', '', false ]
-verbose raw, before any munging uglyify
-verbose url resolving [ 'https://registry.npmjs.org/', './uglyify' ]
-verbose url resolved https://registry.npmjs.org/uglyify
-http GET https://registry.npmjs.org/uglyify
-http 404 https://registry.npmjs.org/uglyify
-silly get cb [ 404,
-silly get cb { server: 'CouchDB/1.1.0 (Erlang OTP/R14B04)',
-silly get cb date: 'Mon, 05 Mar 2012 04:48:45 GMT',
-silly get cb 'content-type': 'application/json',
-silly get cb 'content-length': '52',
-silly get cb 'cache-control': 'must-revalidate' } ]
-ERR! 404 'uglyify' is not in the npm registry.
-ERR! 404 You should bug the author to publish it
-ERR! 404 Note that you can also install from a
-ERR! 404 tarball, folder, or http url, or git url.
-ERR!
-ERR! System Linux 3.0.0-16-generic
-ERR! command "node" "/home/dominic/.nave/installed/0.6.10/bin/npm" "install" "uglyify"
-ERR! cwd /home/dominic/d/keymaster
-ERR! node -v v0.6.10
-ERR! npm -v 1.1.0-3
-ERR! code E404
-ERR! message 404 Not Found: uglyify
-ERR! errno {}
-verbose exit [ 1, true ]

0 comments on commit be1d6dc

Please sign in to comment.
Something went wrong with that request. Please try again.