key-definitions
Advanced tools
Comparing version 2.0.1 to 2.0.2-rc1
@@ -1,1 +0,1 @@ | ||
var e=function(){return e=Object.assign||function(e){for(var o,c=1,d=arguments.length;c<d;c++)for(var y in o=arguments[c])Object.prototype.hasOwnProperty.call(o,y)&&(e[y]=o[y]);return e},e.apply(this,arguments)};function o(e,o,c){if(c||2===arguments.length)for(var d,y=0,k=o.length;y<k;y++)!d&&y in o||(d||(d=Array.prototype.slice.call(o,0,y)),d[y]=o[y]);return e.concat(d||Array.prototype.slice.call(o))}var c,d={isAltKey:!1,isMetaKey:!1,isShiftKey:!1,isCtrlKey:!1};!function(e){e.NUMPAD="Numpad",e.DIGIT="Digit",e.FUNCTION="F",e.KEY="Key",e.ESCAPE="Escape",e.TAB="Tab",e.CAPS_LOCK="CapsLock",e.SHIFT="Shift",e.SHIFT_LEFT="ShiftLeft",e.SHIFT_RIGHT="ShiftRight",e.CONTROL="Control",e.CONTROL_LEFT="ControlLeft",e.CONTROL_RIGHT="ControlRight",e.ALT="Alt",e.ALT_LEFT="AltLeft",e.ALT_RIGHT="AltRight",e.SPACE="Space",e.ENTER="Enter",e.PAGE_UP="Page Up",e.PAGE_DOWN="Page Down",e.END="End",e.HOME="Home",e.ARROW_LEFT="ArrowLeft",e.ARROW_UP="ArrowUp",e.ARROW_RIGHT="ArrowRight",e.ARROW_DOWN="ArrowDown",e.PRINT_SCREEN="PrintScreen",e.INSERT="Insert",e.DELETE="Delete",e.NUM_LOCK="NumLock",e.SCROLL_LOCK="ScrollLock",e.EQUAL="Equal",e.HELP="Help",e.PERIOD="Period",e.QUOTE="Quote",e.SEMICOLON="Semicolon",e.SLASH="Slash",e.COMMA="Comma",e.MINUS="Minus",e.BACKSLASH="Backslash",e.BRACKET_LEFT="BracketLeft",e.BRACKET_RIGHT="BracketRight",e.BACKQUOTE="Backquote"}(c||(c={}));var y=e({keyCode:65,code:"".concat(c.KEY,"A"),key:"a",hex:"0x41"},d),k=e({keyCode:66,code:"".concat(c.KEY,"B"),key:"b",hex:"0x42"},d),x=e({keyCode:67,code:"".concat(c.KEY,"C"),key:"c",hex:"0x43"},d),C=e({keyCode:68,code:"".concat(c.KEY,"D"),key:"d",hex:"0x44"},d),t=e({keyCode:69,code:"".concat(c.KEY,"E"),key:"e",hex:"0x45"},d),n=e({keyCode:70,code:"".concat(c.KEY,"F"),key:"f",hex:"0x46"},d),s=e({keyCode:71,code:"".concat(c.KEY,"G"),key:"g",hex:"0x47"},d),r=e({keyCode:72,code:"".concat(c.KEY,"H"),key:"h",hex:"0x48"},d),i=e({keyCode:73,code:"".concat(c.KEY,"I"),key:"i",hex:"0x49"},d),a=e({keyCode:74,code:"".concat(c.KEY,"J"),key:"j",hex:"0x4A"},d),h=e({keyCode:75,code:"".concat(c.KEY,"K"),key:"k",hex:"0x4B"},d),E=e({keyCode:76,code:"".concat(c.KEY,"L"),key:"l",hex:"0x4C"},d),A=e({keyCode:77,code:"".concat(c.KEY,"M"),key:"m",hex:"0x4D"},d),T=e({keyCode:78,code:"".concat(c.KEY,"N"),key:"n",hex:"0x4E"},d),O=e({keyCode:79,code:"".concat(c.KEY,"O"),key:"o",hex:"0x4F"},d),l=e({keyCode:80,code:"".concat(c.KEY,"P"),key:"p",hex:"0x50"},d),S=e({keyCode:[81,186],keyCodeDefinitions:[{os:"windows",browser:"chrome",lang:"us",code:81,hex:"0x51"},{os:"windows",browser:"ie",lang:"ja",code:81,hex:"0x51"},{os:"windows",browser:"ie",lang:"el",code:81,hex:"0x51"},{os:"windows",browser:"chrome",lang:"us",code:81,hex:"0x51"},{os:"windows",browser:"chrome",lang:"ja",code:81,hex:"0x51"},{os:"windows",browser:"chrome",lang:"el",code:81,hex:"0x51"},{os:"mac",browser:"chrome",lang:"us",code:81,hex:"0x51"},{os:"mac",browser:"chrome",lang:"ja",code:81,hex:"0x51"},{os:"mac",browser:"chrome",lang:"el",code:186,hex:"0xBA"},{os:"linux",browser:"chromium",lang:"us",code:81,hex:"0x51"},{os:"linux",browser:"chromium",lang:"ja",code:81,hex:"0x51"},{os:"linux",browser:"chromium",lang:"el",code:186,hex:"0xBA"},{os:"mac",browser:"safari",lang:"us",code:81,hex:"0x51"},{os:"mac",browser:"safari",lang:"ja",code:81,hex:"0x51"},{os:"mac",browser:"safari",lang:"el",code:186,hex:"0xBA"},{os:"windows",browser:"gecko",lang:"us",code:81,hex:"0x51"},{os:"windows",browser:"gecko",lang:"ja",code:81,hex:"0x51"},{os:"windows",browser:"gecko",lang:"el",code:81,hex:"0x51"},{os:"mac",browser:"gecko",lang:"us",code:81,hex:"0x51"},{os:"mac",browser:"gecko",lang:"ja",code:81,hex:"0x51"},{os:"mac",browser:"gecko",lang:"el",code:186,hex:"0xBA"},{os:"linux",browser:"gecko",lang:"us",code:81,hex:"0x51"},{os:"linux",browser:"gecko",lang:"ja",code:81,hex:"0x51"},{os:"linux",browser:"gecko",lang:"el",code:81,hex:"0x51"}],code:"".concat(c.KEY,"Q"),key:"q",hex:["0x51","0xBA"]},d),N=e({keyCode:82,code:"".concat(c.KEY,"R"),key:"r",hex:"0x52"},d),R=e({keyCode:83,code:"".concat(c.KEY,"S"),key:"s",hex:"0x53"},d),K=e({keyCode:84,code:"".concat(c.KEY,"T"),key:"t",hex:"0x54"},d),I=e({keyCode:85,code:"".concat(c.KEY,"U"),key:"u",hex:"0x55"},d),_=e({keyCode:86,code:"".concat(c.KEY,"V"),key:"v",hex:"0x56"},d),L=e({keyCode:87,code:"".concat(c.KEY,"W"),key:"w",hex:"0x57"},d),w=e({keyCode:88,code:"".concat(c.KEY,"X"),key:"x",hex:"0x58"},d),U=e({keyCode:89,code:"".concat(c.KEY,"Y"),key:"y",hex:"0x59"},d),D=e({keyCode:90,code:"".concat(c.KEY,"Z"),key:"z",hex:"0x5A"},d),f=Object.freeze({__proto__:null,A:y,B:k,C:x,D:C,E:t,F:n,G:s,H:r,I:i,J:a,K:h,L:E,M:A,N:T,O:O,P:l,Q:S,R:N,S:R,T:K,U:I,V:_,W:L,X:w,Y:U,Z:D}),u=e({keyCode:186,code:c.SEMICOLON,key:"č"},d),P=e({keyCode:222,code:c.QUOTE,key:"ć"},d),b=e({keyCode:221,code:c.BRACKET_RIGHT,key:"đ"},d),F=e({keyCode:220,code:c.BACKSLASH,key:"ž"},d),M=e({keyCode:219,code:c.BRACKET_LEFT,key:"š"},d),m=Object.freeze({__proto__:null,"Č":u,"Ć":P,"Đ":b,"Ž":F,"Š":M,A:y,B:k,C:x,D:C,E:t,F:n,G:s,H:r,I:i,J:a,K:h,L:E,M:A,N:T,O:O,P:l,Q:S,R:N,S:R,T:K,U:I,V:_,W:L,X:w,Y:U,Z:D}),H=e(e({},y),{key:"A",isShiftKey:!0}),B=e(e({},k),{key:"B",isShiftKey:!0}),g=e(e({},x),{key:"C",isShiftKey:!0}),G=e(e({},C),{key:"D",isShiftKey:!0}),p=e(e({},t),{key:"E",isShiftKey:!0}),W=e(e({},n),{key:"F",isShiftKey:!0}),v=e(e({},s),{key:"G",isShiftKey:!0}),Y=e(e({},r),{key:"H",isShiftKey:!0}),j=e(e({},i),{key:"I",isShiftKey:!0}),Q=e(e({},a),{key:"J",isShiftKey:!0}),V=e(e({},h),{key:"K",isShiftKey:!0}),z=e(e({},E),{key:"L",isShiftKey:!0}),X=e(e({},A),{key:"M",isShiftKey:!0}),Z=e(e({},T),{key:"N",isShiftKey:!0}),J=e(e({},O),{key:"O",isShiftKey:!0}),q=e(e({},l),{key:"P",isShiftKey:!0}),$=e(e({},S),{key:"Q",isShiftKey:!0}),ee=e(e({},N),{key:"R",isShiftKey:!0}),oe=e(e({},R),{key:"S",isShiftKey:!0}),ce=e(e({},K),{key:"T",isShiftKey:!0}),de=e(e({},I),{key:"U",isShiftKey:!0}),ye=e(e({},_),{key:"V",isShiftKey:!0}),ke=e(e({},L),{key:"W",isShiftKey:!0}),xe=e(e({},w),{key:"X",isShiftKey:!0}),Ce=e(e({},U),{key:"Y",isShiftKey:!0}),te=e(e({},D),{key:"Z",isShiftKey:!0}),ne=Object.freeze({__proto__:null,A:H,B:B,C:g,D:G,E:p,F:W,G:v,H:Y,I:j,J:Q,K:V,L:z,M:X,N:Z,O:J,P:q,Q:$,R:ee,S:oe,T:ce,U:de,V:ye,W:ke,X:xe,Y:Ce,Z:te}),se=e(e({},u),{isShiftKey:!0,key:"Č"}),re=e(e({},P),{isShiftKey:!0,key:"Ć"}),ie=e(e({},b),{isShiftKey:!0,key:"Đ"}),ae=e(e({},F),{isShiftKey:!0,key:"Ž"}),he=e(e({},M),{isShiftKey:!0,key:"Š"}),Ee=Object.freeze({__proto__:null,"Č":se,"Ć":re,"Đ":ie,"Ž":ae,"Š":he,A:H,B:B,C:g,D:G,E:p,F:W,G:v,H:Y,I:j,J:Q,K:V,L:z,M:X,N:Z,O:J,P:q,Q:$,R:ee,S:oe,T:ce,U:de,V:ye,W:ke,X:xe,Y:Ce,Z:te}),Ae=Object.freeze({__proto__:null,LowerCase:m,UpperCase:Ee}),Te=e({keyCode:13,hex:"0x0D",code:"".concat(c.NUMPAD,"Enter"),key:c.ENTER},d),Oe=e({keyCode:[12,187,61],keyCodeDefinitions:[{os:"windows",browser:"ie",code:12,hex:"0x0C"},{os:"windows",browser:"chrome",code:12,hex:"0x0C"},{os:"mac",browser:"chrome",code:187,hex:"0xBB"},{os:"linux",browser:"chromium",code:187,hex:"0xBB"},{os:"mac",browser:"safari",code:187,hex:"0xBB"},{os:"windows",browser:"gecko",code:12,hex:"0x0C"},{os:"mac",browser:"gecko",code:61,hex:"0x3D"},{os:"linux",browser:"gecko",code:61,hex:"0x3D"}],hex:["0x0C","0xBB","0x3D"],code:"".concat(c.NUMPAD).concat(c.EQUAL),key:"="},d);e({keyCode:void 0,code:"".concat(c.NUMPAD,"Backspace"),key:""},d);var le=e({keyCode:106,hex:"0x6A",code:"".concat(c.NUMPAD,"Multiply"),key:"*"},d),Se=e({keyCode:107,hex:"0x6B",code:"".concat(c.NUMPAD,"Add"),key:"+"},d),Ne=e({keyCode:109,hex:"0x6D",code:"".concat(c.NUMPAD,"Substract"),key:"-"},d),Re=e({keyCode:[194,188,108],keyCodeDefinitions:[{os:"windows",browser:"ie",code:194,hex:"0xC2"},{os:"windows",browser:"chrome",code:194,hex:"0xC2"},{os:"mac",browser:"chrome",code:188,hex:"0xBC"},{os:"linux",browser:"chromium",code:null,hex:null},{os:"mac",browser:"safari",code:188,hex:"0xBC"},{os:"windows",browser:"gecko",code:194,hex:"0xC2"},{os:"mac",browser:"gecko",code:108,hex:"0x6C"},{os:"linux",browser:"gecko",code:null,hex:null}],hex:["0x6C","0xC2","0xBC"],code:"".concat(c.NUMPAD,"Comma"),key:","},d),Ke=e({keyCode:111,hex:"0x6F",code:"".concat(c.NUMPAD,"Divide"),key:"/"},d),Ie={keyCode:110,hex:"0x6E",code:"".concat(c.NUMPAD,"Decimal"),key:"."},_e=e({keyCode:37,hex:"0x25",code:"".concat(c.NUMPAD,"3"),key:c.ARROW_LEFT},d),Le=e({keyCode:38,hex:"0x26",code:"".concat(c.NUMPAD,"8"),key:c.ARROW_UP},d),we=e({keyCode:39,hex:"0x27",code:"".concat(c.NUMPAD,"6"),key:c.ARROW_RIGHT},d),Ue=e({keyCode:40,hex:"0x28",code:"".concat(c.NUMPAD,"2"),key:c.ARROW_DOWN},d),De=e({keyCode:45,hex:"0x2D",code:"".concat(c.NUMPAD,"0"),key:c.INSERT},d),fe=e({keyCode:35,hex:"0x23",code:"".concat(c.NUMPAD,"1"),key:c.END},d),ue={keyCode:34,hex:"0x22",code:"".concat(c.NUMPAD,"3"),key:c.PAGE_DOWN},Pe={keyCode:36,hex:"0x24",code:"".concat(c.NUMPAD,"7"),key:c.HOME},be={keyCode:33,hex:"0x21",code:"".concat(c.NUMPAD,"9"),key:c.PAGE_UP},Fe={keyCode:46,hex:"0x2E",code:"".concat(c.NUMPAD,"Decimal"),key:c.DELETE},Me=e({keyCode:96,hex:"0x60",code:"".concat(c.NUMPAD,"0"),key:"0"},d),me=e({keyCode:97,hex:"0x61",code:"".concat(c.NUMPAD,"1"),key:"1"},d),He=e({keyCode:98,hex:"0x62",code:"".concat(c.NUMPAD,"2"),key:"2"},d),Be=e({keyCode:99,hex:"0x63",code:"".concat(c.NUMPAD,"3"),key:"3"},d),ge=e({keyCode:100,hex:"0x64",code:"".concat(c.NUMPAD,"4"),key:"4"},d),Ge=e({keyCode:101,hex:"0x65",code:"".concat(c.NUMPAD,"5"),key:"5"},d),pe=e({keyCode:102,hex:"0x66",code:"".concat(c.NUMPAD,"6"),key:"6"},d),We=e({keyCode:103,hex:"0x67",code:"".concat(c.NUMPAD,"7"),key:"7"},d),ve=e({keyCode:104,hex:"0x68",code:"".concat(c.NUMPAD,"8"),key:"8"},d),Ye=e({keyCode:105,hex:"0x69",code:"".concat(c.NUMPAD,"9"),key:"9"},d),je=Object.freeze({__proto__:null,EQUAL:Oe,ENTER:Te,ARROW_UP:Le,ARROW_DOWN:Ue,ARROW_RIGHT:we,ARROW_LEFT:_e,MULTIPLY:le,ADD:Se,SUBSTRACT:Ne,COMMA:Re,DIVIDE:Ke,DECIMAL:Ie,INSERT:De,END:fe,PAGE_DOWN:ue,HOME:Pe,PAGE_UP:be,DELETE:Fe,ZERO:Me,ONE:me,TWO:He,THREE:Be,FOUR:ge,FIVE:Ge,SIX:pe,SEVEN:We,EIGHT:ve,NINE:Ye}),Qe=e({keyCode:48,code:"".concat(c.DIGIT,"0"),key:"0",hex:"0x30"},d),Ve=e({keyCode:49,code:"".concat(c.DIGIT,"1"),key:"1",hex:"0x31"},d),ze=e({keyCode:50,code:"".concat(c.DIGIT,"2"),key:"2",hex:"0x32"},d),Xe=e({keyCode:51,code:"".concat(c.DIGIT,"3"),key:"3",hex:"0x33"},d),Ze=e({keyCode:52,code:"".concat(c.DIGIT,"4"),key:"4",hex:"0x34"},d),Je=e({keyCode:53,code:"".concat(c.DIGIT,"5"),key:"5",hex:"0x35"},d),qe=e({keyCode:54,code:"".concat(c.DIGIT,"6"),key:"6",hex:"0x36"},d),$e=e({keyCode:55,code:"".concat(c.DIGIT,"7"),key:"7",hex:"0x37"},d),eo=e({keyCode:56,code:"".concat(c.DIGIT,"8"),key:"8",hex:"0x38"},d),oo=e({keyCode:57,code:"".concat(c.DIGIT,"9"),key:"9",hex:"0x39"},d),co=e({keyCode:112,hex:"0x70",code:"".concat(c.FUNCTION,"1"),key:"".concat(c.FUNCTION,"1")},d),yo=e({keyCode:113,hex:"0x71",code:"".concat(c.FUNCTION,"2"),key:"".concat(c.FUNCTION,"2")},d),ko=e({keyCode:114,hex:"0x72",code:"".concat(c.FUNCTION,"3"),key:"".concat(c.FUNCTION,"3")},d),xo=e({keyCode:115,hex:"0x73",code:"".concat(c.FUNCTION,"4"),key:"".concat(c.FUNCTION,"4")},d),Co=e({keyCode:116,hex:"0x74",code:"".concat(c.FUNCTION,"5"),key:"".concat(c.FUNCTION,"5")},d),to=e({keyCode:117,hex:"0x75",code:"".concat(c.FUNCTION,"6"),key:"".concat(c.FUNCTION,"6")},d),no=e({keyCode:118,hex:"0x76",code:"".concat(c.FUNCTION,"7"),key:"".concat(c.FUNCTION,"7")},d),so=e({keyCode:119,hex:"0x77",code:"".concat(c.FUNCTION,"8"),key:"".concat(c.FUNCTION,"8")},d),ro=e({keyCode:120,hex:"0x78",code:"".concat(c.FUNCTION,"9"),key:"".concat(c.FUNCTION,"9")},d),io=e({keyCode:121,hex:"0x79",code:"".concat(c.FUNCTION,"10"),key:"".concat(c.FUNCTION,"10")},d),ao=e({keyCode:122,hex:"0x7A",code:"".concat(c.FUNCTION,"11"),key:"".concat(c.FUNCTION,"11")},d),ho=e({keyCode:123,hex:"0x7B",code:"".concat(c.FUNCTION,"12"),key:"".concat(c.FUNCTION,"12")},d),Eo=e({keyCode:9,hex:"0x09",code:c.TAB,key:c.TAB},d),Ao=e({keyCode:13,hex:"0x0D",code:c.ENTER,key:c.ENTER},d),To=e(e({keyCode:16,hex:"0x10",code:c.SHIFT_LEFT,key:c.SHIFT},d),{isShiftKey:!0}),Oo=e(e({keyCode:16,hex:"0x10",code:c.SHIFT_RIGHT,key:c.SHIFT},d),{isShiftKey:!0}),lo=e(e({keyCode:17,hex:"0x11",code:c.CONTROL_LEFT,key:c.CONTROL},d),{isCtrlKey:!0}),So=e(e({keyCode:17,hex:"0x11",code:c.CONTROL_RIGHT,key:c.CONTROL},d),{isCtrlKey:!0}),No=e(e({keyCode:18,hex:"0x12",code:c.ALT_LEFT,key:c.ALT},d),{isAltKey:!0}),Ro=e(e({keyCode:18,hex:"0x12",code:c.ALT_RIGHT,key:c.ALT},d),{isAltKey:!0}),Ko=e({keyCode:20,hex:"0x14",code:c.CAPS_LOCK,key:c.CAPS_LOCK},d),Io=e({keyCode:27,hex:"0x1B",code:c.ESCAPE,key:c.ESCAPE},d),_o=e({keyCode:32,hex:"0x20",code:c.SPACE,key:" "},d),Lo=e({keyCode:33,hex:"0x21",code:c.PAGE_UP,key:c.PAGE_UP},d),wo=e({keyCode:34,hex:"0x22",code:c.PAGE_DOWN,key:c.PAGE_DOWN},d),Uo=e({keyCode:35,hex:"0x23",code:c.END,key:c.END},d),Do=e({keyCode:36,hex:"0x24",code:c.HOME,key:c.HOME},d),fo=e({keyCode:37,hex:"0x25",code:c.ARROW_LEFT,key:c.ARROW_LEFT},d),uo=e({keyCode:38,hex:"0x26",code:c.ARROW_UP,key:c.ARROW_UP},d),Po=e({keyCode:39,hex:"0x27",code:c.ARROW_RIGHT,key:c.ARROW_RIGHT},d),bo=e({keyCode:40,hex:"0x28",code:c.ARROW_DOWN,key:c.ARROW_DOWN},d),Fo=e({keyCode:[44,124,42],keyCodeDefinitions:[{os:"windows",browser:"ie",code:44,hex:"0x2C"},{os:"windows",browser:"chrome",code:44,hex:"0x2C"},{os:"mac",browser:"chrome",code:124,hex:"0x7C"},{os:"linux",browser:"chromium",code:42,hex:"0x2A"},{os:"mac",browser:"safari",code:124,hex:"0x7C"},{os:"windows",browser:"gecko",code:44,hex:"0x2C"},{os:"mac",browser:"gecko",code:44,hex:"0x2C"},{os:"linux",browser:"gecko",code:42,hex:"0x2A"}],hex:["0x2C","0x7C","0x2A"],code:c.PRINT_SCREEN,key:c.PRINT_SCREEN},d),Mo=e({keyCode:45,hex:"0x2D",code:c.INSERT,key:c.INSERT},d),mo=e({keyCode:46,hex:"0x2E",code:c.DELETE,key:c.DELETE},d),Ho=e({keyCode:144,hex:"0x90",code:c.NUM_LOCK,key:c.NUM_LOCK},d),Bo=e({keyCode:[145,125],keyCodeDefinitions:[{os:"windows",browser:"ie",code:145,hex:"0x91"},{os:"windows",browser:"chrome",code:145,hex:"0x91"},{os:"mac",browser:"chrome",code:125,hex:"0x7D"},{os:"linux",browser:"chromium",code:145,hex:"0x91"},{os:"mac",browser:"safari",code:125,hex:"0x7D"},{os:"windows",browser:"gecko",code:145,hex:"0x91"},{os:"mac",browser:"gecko",code:145,hex:"0x91"},{os:"linux",browser:"gecko",code:145,hex:"0x91"}],hex:["0x91","0x7D"],code:c.SCROLL_LOCK,key:c.SCROLL_LOCK},d),go=e({keyCode:[45,47,6],keyCodeDefinitions:[{os:"windows",browser:"ie",code:null,hex:null},{os:"windows",browser:"chrome",code:null,hex:null},{os:"mac",browser:"chrome",code:45,hex:"0x2D"},{os:"linux",browser:"chromium",code:47,hex:"0x2F"},{os:"mac",browser:"safari",code:45,hex:"0x2D"},{os:"windows",browser:"gecko",code:null,hex:null},{os:"mac",browser:"gecko",code:45,hex:"0x2D"},{os:"linux",browser:"gecko",code:6,hex:"0x06"}],hex:["0x06","0x2D","0x2F"],code:c.HELP,key:c.HELP},d),Go=e({keyCode:[19,126],keyCodeDefinitions:[{os:"windows",browser:"ie",code:19,hex:"0x13"},{os:"windows",browser:"chrome",code:19,hex:"0x13"},{os:"mac",browser:"chrome",code:126,hex:"0x7E"},{os:"linux",browser:"chromium",code:19,hex:"0x13"},{os:"mac",browser:"safari",code:126,hex:"0x7E"},{os:"windows",browser:"gecko",code:19,hex:"0x13"},{os:"mac",browser:"gecko",code:19,hex:"0x13"},{os:"linux",browser:"gecko",code:19,hex:"0x13"}],hex:["0x13","0x7E"],code:c.SCROLL_LOCK,key:c.SCROLL_LOCK},d),po=e(e({keyCode:49,code:"".concat(c.DIGIT,"1"),key:"!"},d),{isShiftKey:!0}),Wo=e(e({keyCode:222,code:"".concat(c.QUOTE),key:'"'},d),{isShiftKey:!0}),vo=e(e({keyCode:51,code:"".concat(c.DIGIT,"3"),key:"#"},d),{isShiftKey:!0}),Yo=e(e({keyCode:52,code:"".concat(c.DIGIT,"4"),key:"$"},d),{isShiftKey:!0}),jo=e(e({keyCode:53,code:"".concat(c.DIGIT,"5"),key:"%"},d),{isShiftKey:!0}),Qo=e(e({keyCode:55,code:"".concat(c.DIGIT,"7"),key:"&"},d),{isShiftKey:!0}),Vo=e({keyCode:222,code:"".concat(c.QUOTE),key:"'"},d),zo=e(e({keyCode:57,code:"".concat(c.DIGIT,"9"),key:"("},d),{isShiftKey:!0}),Xo=e(e({keyCode:48,code:"".concat(c.DIGIT,"0"),key:")"},d),{isShiftKey:!0}),Zo=e(e({keyCode:56,code:"".concat(c.DIGIT,"8"),key:"*"},d),{isShiftKey:!0}),Jo=e(e({keyCode:187,code:"".concat(c.EQUAL),key:"+"},d),{isShiftKey:!0}),qo=e({keyCode:188,code:"".concat(c.COMMA),key:","},d),$o=e({keyCode:189,code:"".concat(c.MINUS),key:"-"},d),ec=e({keyCode:190,code:"".concat(c.PERIOD),key:"."},d),oc=e({keyCode:191,code:"".concat(c.SLASH),key:"/"},d),cc=e(e({keyCode:186,code:"".concat(c.SEMICOLON),key:":"},d),{isShiftKey:!0}),dc=e({keyCode:186,code:"".concat(c.SEMICOLON),key:";"},d),yc=e({keyCode:220,code:"Intl".concat(c.BACKSLASH),key:"<"},d),kc=e({keyCode:187,code:"".concat(c.EQUAL),key:"="},d),xc=e(e({keyCode:220,code:"Intl".concat(c.BACKSLASH),key:">"},d),{isShiftKey:!0}),Cc=e(e({keyCode:191,code:"".concat(c.SLASH),key:"?"},d),{isShiftKey:!0}),tc=e(e({keyCode:50,code:"".concat(c.DIGIT,"2"),key:"@"},d),{isShiftKey:!0}),nc=e({keyCode:219,code:"".concat(c.BRACKET_LEFT),key:"["},d),sc=e({keyCode:220,code:"".concat(c.BACKSLASH),key:"\\"},d),rc=e({keyCode:221,code:"".concat(c.BRACKET_RIGHT),key:"]"},d),ic=e(e({keyCode:54,code:"".concat(c.DIGIT,"6"),key:"^"},d),{isShiftKey:!0}),ac=e(e({keyCode:189,code:"".concat(c.SLASH),key:"_"},d),{isShiftKey:!0}),hc=e({keyCode:192,code:"".concat(c.BACKQUOTE),key:"`"},d),Ec=e(e({keyCode:219,code:"".concat(c.BRACKET_LEFT),key:"{"},d),{isShiftKey:!0}),Ac=e(e({keyCode:220,code:"".concat(c.BACKSLASH),key:"|"},d),{isShiftKey:!0}),Tc=e(e({keyCode:221,code:"".concat(c.BRACKET_RIGHT),key:"}"},d),{isShiftKey:!0}),Oc=e(e({keyCode:192,code:"".concat(c.BACKQUOTE),key:"~"},d),{isShiftKey:!0}),lc=Object.freeze({__proto__:null,Numpad:je,LowerCase:f,UpperCase:ne,ZERO:Qe,ONE:Ve,TWO:ze,THREE:Xe,FOUR:Ze,FIVE:Je,SIX:qe,SEVEN:$e,EIGHT:eo,NINE:oo,F1:co,F2:yo,F3:ko,F4:xo,F5:Co,F6:to,F7:no,F8:so,F9:ro,F10:io,F11:ao,F12:ho,TAB:Eo,ENTER:Ao,SHIFT_LEFT:To,SHIFT_RIGHT:Oo,CTRL_LEFT:lo,CTRL_RIGHT:So,ALT_LEFT:No,ALT_RIGHT:Ro,CAPS_LOCK:Ko,ESC:Io,SPACE:_o,PAGE_UP:Lo,PAGE_DOWN:wo,END:Uo,HOME:Do,ARROW_LEFT:fo,ARROW_UP:uo,ARROW_RIGHT:Po,ARROW_DOWN:bo,PRINT_SCREEN:Fo,INSERT:Mo,DELETE:mo,NUM_LOCK:Ho,SCROLL_LOCK:Bo,HELP:go,PAUSE:Go,EXCLAMATION_MARK:po,QUOTATION_MARK:Wo,HASH:vo,DOLLAR_SIGN:Yo,PERCENT:jo,AMPERSAND:Qo,APOSTROPHE:Vo,OPEN_PARENTHESIS:zo,CLOSE_PARENTHESIS:Xo,ASTERISK:Zo,PLUS:Jo,COMMA:qo,DASH:$o,DOT:ec,SLASH:oc,COLON:cc,SEMICOLON:dc,LESS_THAN_BRACKET:yc,EQUAL:kc,GREATER_THAN_BRACKET:xc,QUESTION_MARK:Cc,AMPERSAT:tc,OPEN_BRACKET:nc,BACKSLASH:sc,CLOSE_BRACKET:rc,CARET:ic,UNDERSCORE:ac,BACKQUOTE:hc,OPEN_BRACE:Ec,VERTICAL_BAR:Ac,CLOSE_BRACE:Tc,TILDA:Oc}),Sc=e(e({},lc),Ae),Nc={keyCode:222,code:c.QUOTE,key:"ä"},Rc={keyCode:192,code:c.SEMICOLON,key:"ö"},Kc={keyCode:186,code:c.BRACKET_LEFT,key:"ü"},Ic=Nc,_c=Rc,Lc=Kc,wc=Object.freeze({__proto__:null,"Ä":Nc,"Ö":Rc,"Ü":Kc,UMLAUT_A:Ic,UMLAUT_U:Lc,UMLAUT_O:_c,A:y,B:k,C:x,D:C,E:t,F:n,G:s,H:r,I:i,J:a,K:h,L:E,M:A,N:T,O:O,P:l,Q:S,R:N,S:R,T:K,U:I,V:_,W:L,X:w,Y:U,Z:D}),Uc=e(e({},Nc),{key:"Ä"}),Dc=e(e({},Rc),{key:"Ö"}),fc=e(e({},Kc),{key:"Ü"}),uc=Uc,Pc=Dc,bc=fc,Fc=Object.freeze({__proto__:null,"Ä":Uc,"Ö":Dc,"Ü":fc,UMLAUT_A:uc,UMLAUT_U:bc,UMLAUT_O:Pc,A:H,B:B,C:g,D:G,E:p,F:W,G:v,H:Y,I:j,J:Q,K:V,L:z,M:X,N:Z,O:J,P:q,Q:$,R:ee,S:oe,T:ce,U:de,V:ye,W:ke,X:xe,Y:Ce,Z:te}),Mc={keyCode:63,code:c.MINUS,key:"ß"},mc=Mc,Hc=Object.freeze({__proto__:null,LowerCase:wc,UpperCase:Fc,"ß":Mc,UMLAUT_S:mc}),Bc=e({keyCode:191,code:"".concat(c.BACKSLASH),key:"#"},d),gc=e(e({keyCode:192,code:"".concat(c.BACKQUOTE),key:"°"},d),{isShiftKey:!0}),Gc=Object.freeze({__proto__:null,HASH:Bc,BACKTICK:gc}),pc=e(e(e({},lc),Hc),Gc);function Wc(e){if(!e)return!1;var c=o(o(o(o([],Object.values(f),!0),Object.values(ne),!0),Object.values(m),!0),Object.values(Ee),!0);return e instanceof Object?!!(e.code&&e.key&&e.keyCode)&&!!c.find((function(o){var c,d;return e.key.toUpperCase()===(null===(c=o.key)||void 0===c?void 0:c.toUpperCase())||e.code.toUpperCase()===(null===(d=o.code)||void 0===d?void 0:d.toUpperCase())||e.keyCode===o.keyCode})):"string"==typeof e?!!c.find((function(o){var c,d;return(null===(c=o.key)||void 0===c?void 0:c.toUpperCase())===e.toUpperCase()||(null===(d=o.code)||void 0===d?void 0:d.toUpperCase())===e.toUpperCase()})):"number"==typeof e&&!!c.find((function(o){return o.keyCode===e}))}function vc(e){return(null==e?void 0:e.keyCode)&&(null==e?void 0:e.code)&&(null==e?void 0:e.key)||(null==e?void 0:e.isAltKey)||(null==e?void 0:e.isMetaKey)||(null==e?void 0:e.isShiftKey)}var Yc=[c.SHIFT,c.ALT,c.CONTROL];function jc(e,o){if(!e||!o)return!1;if(d=e,["altKey","ctrlKey","code","key","location","metaKey","repeat","shiftKey","isComposing"].every((function(e){return void 0!==(null==d?void 0:d[e])}))){if(vc(o))return c=null==e?void 0:e.key,(!(null==Yc?void 0:Yc.includes(c))||(null==e?void 0:e.code)===(null==o?void 0:o.code))&&(null==e?void 0:e.key)===(null==o?void 0:o.key);if(Array.isArray(o))return o.some((function(o){return!!vc(o)&&o.key===(null==e?void 0:e.key)}))}var c,d;return!1}export{No as ALT_LEFT,Ro as ALT_RIGHT,Qo as AMPERSAND,tc as AMPERSAT,Vo as APOSTROPHE,bo as ARROW_DOWN,fo as ARROW_LEFT,Po as ARROW_RIGHT,uo as ARROW_UP,Zo as ASTERISK,hc as BACKQUOTE,sc as BACKSLASH,Ko as CAPS_LOCK,ic as CARET,Tc as CLOSE_BRACE,rc as CLOSE_BRACKET,Xo as CLOSE_PARENTHESIS,cc as COLON,qo as COMMA,lo as CTRL_LEFT,So as CTRL_RIGHT,$o as DASH,mo as DELETE,Yo as DOLLAR_SIGN,ec as DOT,eo as EIGHT,Uo as END,Ao as ENTER,kc as EQUAL,Io as ESC,po as EXCLAMATION_MARK,co as F1,io as F10,ao as F11,ho as F12,yo as F2,ko as F3,xo as F4,Co as F5,to as F6,no as F7,so as F8,ro as F9,Je as FIVE,Ze as FOUR,xc as GREATER_THAN_BRACKET,vo as HASH,go as HELP,Do as HOME,Mo as INSERT,yc as LESS_THAN_BRACKET,Sc as Layout_CRO,pc as Layout_DE,f as LowerCase,oo as NINE,Ho as NUM_LOCK,je as Numpad,Ve as ONE,Ec as OPEN_BRACE,nc as OPEN_BRACKET,zo as OPEN_PARENTHESIS,wo as PAGE_DOWN,Lo as PAGE_UP,Go as PAUSE,jo as PERCENT,Jo as PLUS,Fo as PRINT_SCREEN,Cc as QUESTION_MARK,Wo as QUOTATION_MARK,Bo as SCROLL_LOCK,dc as SEMICOLON,$e as SEVEN,To as SHIFT_LEFT,Oo as SHIFT_RIGHT,qe as SIX,oc as SLASH,_o as SPACE,Eo as TAB,Xe as THREE,Oc as TILDA,ze as TWO,ac as UNDERSCORE,ne as UpperCase,Ac as VERTICAL_BAR,Qe as ZERO,jc as compare,Wc as isCharacter}; | ||
var e=function(){return e=Object.assign||function(e){for(var o,c=1,d=arguments.length;c<d;c++)for(var y in o=arguments[c])Object.prototype.hasOwnProperty.call(o,y)&&(e[y]=o[y]);return e},e.apply(this,arguments)};function o(e,o,c){if(c||2===arguments.length)for(var d,y=0,k=o.length;y<k;y++)!d&&y in o||(d||(d=Array.prototype.slice.call(o,0,y)),d[y]=o[y]);return e.concat(d||Array.prototype.slice.call(o))}"function"==typeof SuppressedError&&SuppressedError;var c,d={isAltKey:!1,isMetaKey:!1,isShiftKey:!1,isCtrlKey:!1};!function(e){e.NUMPAD="Numpad",e.DIGIT="Digit",e.FUNCTION="F",e.KEY="Key",e.ESCAPE="Escape",e.TAB="Tab",e.CAPS_LOCK="CapsLock",e.SHIFT="Shift",e.SHIFT_LEFT="ShiftLeft",e.SHIFT_RIGHT="ShiftRight",e.CONTROL="Control",e.CONTROL_LEFT="ControlLeft",e.CONTROL_RIGHT="ControlRight",e.ALT="Alt",e.ALT_LEFT="AltLeft",e.ALT_RIGHT="AltRight",e.SPACE="Space",e.ENTER="Enter",e.PAGE_UP="Page Up",e.PAGE_DOWN="Page Down",e.END="End",e.HOME="Home",e.ARROW_LEFT="ArrowLeft",e.ARROW_UP="ArrowUp",e.ARROW_RIGHT="ArrowRight",e.ARROW_DOWN="ArrowDown",e.PRINT_SCREEN="PrintScreen",e.INSERT="Insert",e.DELETE="Delete",e.NUM_LOCK="NumLock",e.SCROLL_LOCK="ScrollLock",e.EQUAL="Equal",e.HELP="Help",e.PERIOD="Period",e.QUOTE="Quote",e.SEMICOLON="Semicolon",e.SLASH="Slash",e.COMMA="Comma",e.MINUS="Minus",e.BACKSLASH="Backslash",e.BRACKET_LEFT="BracketLeft",e.BRACKET_RIGHT="BracketRight",e.BACKQUOTE="Backquote"}(c||(c={}));var y=e({keyCode:65,code:"".concat(c.KEY,"A"),key:"a",hex:"0x41"},d),k=e({keyCode:66,code:"".concat(c.KEY,"B"),key:"b",hex:"0x42"},d),x=e({keyCode:67,code:"".concat(c.KEY,"C"),key:"c",hex:"0x43"},d),C=e({keyCode:68,code:"".concat(c.KEY,"D"),key:"d",hex:"0x44"},d),t=e({keyCode:69,code:"".concat(c.KEY,"E"),key:"e",hex:"0x45"},d),n=e({keyCode:70,code:"".concat(c.KEY,"F"),key:"f",hex:"0x46"},d),r=e({keyCode:71,code:"".concat(c.KEY,"G"),key:"g",hex:"0x47"},d),s=e({keyCode:72,code:"".concat(c.KEY,"H"),key:"h",hex:"0x48"},d),i=e({keyCode:73,code:"".concat(c.KEY,"I"),key:"i",hex:"0x49"},d),a=e({keyCode:74,code:"".concat(c.KEY,"J"),key:"j",hex:"0x4A"},d),h=e({keyCode:75,code:"".concat(c.KEY,"K"),key:"k",hex:"0x4B"},d),E=e({keyCode:76,code:"".concat(c.KEY,"L"),key:"l",hex:"0x4C"},d),A=e({keyCode:77,code:"".concat(c.KEY,"M"),key:"m",hex:"0x4D"},d),T=e({keyCode:78,code:"".concat(c.KEY,"N"),key:"n",hex:"0x4E"},d),O=e({keyCode:79,code:"".concat(c.KEY,"O"),key:"o",hex:"0x4F"},d),S=e({keyCode:80,code:"".concat(c.KEY,"P"),key:"p",hex:"0x50"},d),l=e({keyCode:[81,186],keyCodeDefinitions:[{os:"windows",browser:"chrome",lang:"us",code:81,hex:"0x51"},{os:"windows",browser:"ie",lang:"ja",code:81,hex:"0x51"},{os:"windows",browser:"ie",lang:"el",code:81,hex:"0x51"},{os:"windows",browser:"chrome",lang:"us",code:81,hex:"0x51"},{os:"windows",browser:"chrome",lang:"ja",code:81,hex:"0x51"},{os:"windows",browser:"chrome",lang:"el",code:81,hex:"0x51"},{os:"mac",browser:"chrome",lang:"us",code:81,hex:"0x51"},{os:"mac",browser:"chrome",lang:"ja",code:81,hex:"0x51"},{os:"mac",browser:"chrome",lang:"el",code:186,hex:"0xBA"},{os:"linux",browser:"chromium",lang:"us",code:81,hex:"0x51"},{os:"linux",browser:"chromium",lang:"ja",code:81,hex:"0x51"},{os:"linux",browser:"chromium",lang:"el",code:186,hex:"0xBA"},{os:"mac",browser:"safari",lang:"us",code:81,hex:"0x51"},{os:"mac",browser:"safari",lang:"ja",code:81,hex:"0x51"},{os:"mac",browser:"safari",lang:"el",code:186,hex:"0xBA"},{os:"windows",browser:"gecko",lang:"us",code:81,hex:"0x51"},{os:"windows",browser:"gecko",lang:"ja",code:81,hex:"0x51"},{os:"windows",browser:"gecko",lang:"el",code:81,hex:"0x51"},{os:"mac",browser:"gecko",lang:"us",code:81,hex:"0x51"},{os:"mac",browser:"gecko",lang:"ja",code:81,hex:"0x51"},{os:"mac",browser:"gecko",lang:"el",code:186,hex:"0xBA"},{os:"linux",browser:"gecko",lang:"us",code:81,hex:"0x51"},{os:"linux",browser:"gecko",lang:"ja",code:81,hex:"0x51"},{os:"linux",browser:"gecko",lang:"el",code:81,hex:"0x51"}],code:"".concat(c.KEY,"Q"),key:"q",hex:["0x51","0xBA"]},d),N=e({keyCode:82,code:"".concat(c.KEY,"R"),key:"r",hex:"0x52"},d),R=e({keyCode:83,code:"".concat(c.KEY,"S"),key:"s",hex:"0x53"},d),K=e({keyCode:84,code:"".concat(c.KEY,"T"),key:"t",hex:"0x54"},d),I=e({keyCode:85,code:"".concat(c.KEY,"U"),key:"u",hex:"0x55"},d),_=e({keyCode:86,code:"".concat(c.KEY,"V"),key:"v",hex:"0x56"},d),L=e({keyCode:87,code:"".concat(c.KEY,"W"),key:"w",hex:"0x57"},d),w=e({keyCode:88,code:"".concat(c.KEY,"X"),key:"x",hex:"0x58"},d),U=e({keyCode:89,code:"".concat(c.KEY,"Y"),key:"y",hex:"0x59"},d),D=e({keyCode:90,code:"".concat(c.KEY,"Z"),key:"z",hex:"0x5A"},d),u=Object.freeze({__proto__:null,A:y,B:k,C:x,D:C,E:t,F:n,G:r,H:s,I:i,J:a,K:h,L:E,M:A,N:T,O:O,P:S,Q:l,R:N,S:R,T:K,U:I,V:_,W:L,X:w,Y:U,Z:D}),f=e({keyCode:186,code:c.SEMICOLON,key:"č"},d),P=e({keyCode:222,code:c.QUOTE,key:"ć"},d),b=e({keyCode:221,code:c.BRACKET_RIGHT,key:"đ"},d),F=e({keyCode:220,code:c.BACKSLASH,key:"ž"},d),M=e({keyCode:219,code:c.BRACKET_LEFT,key:"š"},d),m=Object.freeze({__proto__:null,"Č":f,"Ć":P,"Đ":b,"Ž":F,"Š":M,A:y,B:k,C:x,D:C,E:t,F:n,G:r,H:s,I:i,J:a,K:h,L:E,M:A,N:T,O:O,P:S,Q:l,R:N,S:R,T:K,U:I,V:_,W:L,X:w,Y:U,Z:D}),H=e(e({},y),{key:"A",isShiftKey:!0}),B=e(e({},k),{key:"B",isShiftKey:!0}),g=e(e({},x),{key:"C",isShiftKey:!0}),p=e(e({},C),{key:"D",isShiftKey:!0}),G=e(e({},t),{key:"E",isShiftKey:!0}),W=e(e({},n),{key:"F",isShiftKey:!0}),v=e(e({},r),{key:"G",isShiftKey:!0}),Y=e(e({},s),{key:"H",isShiftKey:!0}),j=e(e({},i),{key:"I",isShiftKey:!0}),Q=e(e({},a),{key:"J",isShiftKey:!0}),V=e(e({},h),{key:"K",isShiftKey:!0}),z=e(e({},E),{key:"L",isShiftKey:!0}),X=e(e({},A),{key:"M",isShiftKey:!0}),Z=e(e({},T),{key:"N",isShiftKey:!0}),J=e(e({},O),{key:"O",isShiftKey:!0}),q=e(e({},S),{key:"P",isShiftKey:!0}),$=e(e({},l),{key:"Q",isShiftKey:!0}),ee=e(e({},N),{key:"R",isShiftKey:!0}),oe=e(e({},R),{key:"S",isShiftKey:!0}),ce=e(e({},K),{key:"T",isShiftKey:!0}),de=e(e({},I),{key:"U",isShiftKey:!0}),ye=e(e({},_),{key:"V",isShiftKey:!0}),ke=e(e({},L),{key:"W",isShiftKey:!0}),xe=e(e({},w),{key:"X",isShiftKey:!0}),Ce=e(e({},U),{key:"Y",isShiftKey:!0}),te=e(e({},D),{key:"Z",isShiftKey:!0}),ne=Object.freeze({__proto__:null,A:H,B:B,C:g,D:p,E:G,F:W,G:v,H:Y,I:j,J:Q,K:V,L:z,M:X,N:Z,O:J,P:q,Q:$,R:ee,S:oe,T:ce,U:de,V:ye,W:ke,X:xe,Y:Ce,Z:te}),re=e(e({},f),{isShiftKey:!0,key:"Č"}),se=e(e({},P),{isShiftKey:!0,key:"Ć"}),ie=e(e({},b),{isShiftKey:!0,key:"Đ"}),ae=e(e({},F),{isShiftKey:!0,key:"Ž"}),he=e(e({},M),{isShiftKey:!0,key:"Š"}),Ee=Object.freeze({__proto__:null,"Č":re,"Ć":se,"Đ":ie,"Ž":ae,"Š":he,A:H,B:B,C:g,D:p,E:G,F:W,G:v,H:Y,I:j,J:Q,K:V,L:z,M:X,N:Z,O:J,P:q,Q:$,R:ee,S:oe,T:ce,U:de,V:ye,W:ke,X:xe,Y:Ce,Z:te}),Ae=Object.freeze({__proto__:null,LowerCase:m,UpperCase:Ee}),Te=e({keyCode:13,hex:"0x0D",code:"".concat(c.NUMPAD,"Enter"),key:c.ENTER},d),Oe=e({keyCode:[12,187,61],keyCodeDefinitions:[{os:"windows",browser:"ie",code:12,hex:"0x0C"},{os:"windows",browser:"chrome",code:12,hex:"0x0C"},{os:"mac",browser:"chrome",code:187,hex:"0xBB"},{os:"linux",browser:"chromium",code:187,hex:"0xBB"},{os:"mac",browser:"safari",code:187,hex:"0xBB"},{os:"windows",browser:"gecko",code:12,hex:"0x0C"},{os:"mac",browser:"gecko",code:61,hex:"0x3D"},{os:"linux",browser:"gecko",code:61,hex:"0x3D"}],hex:["0x0C","0xBB","0x3D"],code:"".concat(c.NUMPAD).concat(c.EQUAL),key:"="},d);e({keyCode:void 0,code:"".concat(c.NUMPAD,"Backspace"),key:""},d);var Se=e({keyCode:106,hex:"0x6A",code:"".concat(c.NUMPAD,"Multiply"),key:"*"},d),le=e({keyCode:107,hex:"0x6B",code:"".concat(c.NUMPAD,"Add"),key:"+"},d),Ne=e({keyCode:109,hex:"0x6D",code:"".concat(c.NUMPAD,"Substract"),key:"-"},d),Re=e({keyCode:[194,188,108],keyCodeDefinitions:[{os:"windows",browser:"ie",code:194,hex:"0xC2"},{os:"windows",browser:"chrome",code:194,hex:"0xC2"},{os:"mac",browser:"chrome",code:188,hex:"0xBC"},{os:"linux",browser:"chromium",code:null,hex:null},{os:"mac",browser:"safari",code:188,hex:"0xBC"},{os:"windows",browser:"gecko",code:194,hex:"0xC2"},{os:"mac",browser:"gecko",code:108,hex:"0x6C"},{os:"linux",browser:"gecko",code:null,hex:null}],hex:["0x6C","0xC2","0xBC"],code:"".concat(c.NUMPAD,"Comma"),key:","},d),Ke=e({keyCode:111,hex:"0x6F",code:"".concat(c.NUMPAD,"Divide"),key:"/"},d),Ie={keyCode:110,hex:"0x6E",code:"".concat(c.NUMPAD,"Decimal"),key:"."},_e=e({keyCode:37,hex:"0x25",code:"".concat(c.NUMPAD,"3"),key:c.ARROW_LEFT},d),Le=e({keyCode:38,hex:"0x26",code:"".concat(c.NUMPAD,"8"),key:c.ARROW_UP},d),we=e({keyCode:39,hex:"0x27",code:"".concat(c.NUMPAD,"6"),key:c.ARROW_RIGHT},d),Ue=e({keyCode:40,hex:"0x28",code:"".concat(c.NUMPAD,"2"),key:c.ARROW_DOWN},d),De=e({keyCode:45,hex:"0x2D",code:"".concat(c.NUMPAD,"0"),key:c.INSERT},d),ue=e({keyCode:35,hex:"0x23",code:"".concat(c.NUMPAD,"1"),key:c.END},d),fe={keyCode:34,hex:"0x22",code:"".concat(c.NUMPAD,"3"),key:c.PAGE_DOWN},Pe={keyCode:36,hex:"0x24",code:"".concat(c.NUMPAD,"7"),key:c.HOME},be={keyCode:33,hex:"0x21",code:"".concat(c.NUMPAD,"9"),key:c.PAGE_UP},Fe={keyCode:46,hex:"0x2E",code:"".concat(c.NUMPAD,"Decimal"),key:c.DELETE},Me=e({keyCode:96,hex:"0x60",code:"".concat(c.NUMPAD,"0"),key:"0"},d),me=e({keyCode:97,hex:"0x61",code:"".concat(c.NUMPAD,"1"),key:"1"},d),He=e({keyCode:98,hex:"0x62",code:"".concat(c.NUMPAD,"2"),key:"2"},d),Be=e({keyCode:99,hex:"0x63",code:"".concat(c.NUMPAD,"3"),key:"3"},d),ge=e({keyCode:100,hex:"0x64",code:"".concat(c.NUMPAD,"4"),key:"4"},d),pe=e({keyCode:101,hex:"0x65",code:"".concat(c.NUMPAD,"5"),key:"5"},d),Ge=e({keyCode:102,hex:"0x66",code:"".concat(c.NUMPAD,"6"),key:"6"},d),We=e({keyCode:103,hex:"0x67",code:"".concat(c.NUMPAD,"7"),key:"7"},d),ve=e({keyCode:104,hex:"0x68",code:"".concat(c.NUMPAD,"8"),key:"8"},d),Ye=e({keyCode:105,hex:"0x69",code:"".concat(c.NUMPAD,"9"),key:"9"},d),je=Object.freeze({__proto__:null,EQUAL:Oe,ENTER:Te,ARROW_UP:Le,ARROW_DOWN:Ue,ARROW_RIGHT:we,ARROW_LEFT:_e,MULTIPLY:Se,ADD:le,SUBSTRACT:Ne,COMMA:Re,DIVIDE:Ke,DECIMAL:Ie,INSERT:De,END:ue,PAGE_DOWN:fe,HOME:Pe,PAGE_UP:be,DELETE:Fe,ZERO:Me,ONE:me,TWO:He,THREE:Be,FOUR:ge,FIVE:pe,SIX:Ge,SEVEN:We,EIGHT:ve,NINE:Ye}),Qe=e({keyCode:48,code:"".concat(c.DIGIT,"0"),key:"0",hex:"0x30"},d),Ve=e({keyCode:49,code:"".concat(c.DIGIT,"1"),key:"1",hex:"0x31"},d),ze=e({keyCode:50,code:"".concat(c.DIGIT,"2"),key:"2",hex:"0x32"},d),Xe=e({keyCode:51,code:"".concat(c.DIGIT,"3"),key:"3",hex:"0x33"},d),Ze=e({keyCode:52,code:"".concat(c.DIGIT,"4"),key:"4",hex:"0x34"},d),Je=e({keyCode:53,code:"".concat(c.DIGIT,"5"),key:"5",hex:"0x35"},d),qe=e({keyCode:54,code:"".concat(c.DIGIT,"6"),key:"6",hex:"0x36"},d),$e=e({keyCode:55,code:"".concat(c.DIGIT,"7"),key:"7",hex:"0x37"},d),eo=e({keyCode:56,code:"".concat(c.DIGIT,"8"),key:"8",hex:"0x38"},d),oo=e({keyCode:57,code:"".concat(c.DIGIT,"9"),key:"9",hex:"0x39"},d),co=e({keyCode:112,hex:"0x70",code:"".concat(c.FUNCTION,"1"),key:"".concat(c.FUNCTION,"1")},d),yo=e({keyCode:113,hex:"0x71",code:"".concat(c.FUNCTION,"2"),key:"".concat(c.FUNCTION,"2")},d),ko=e({keyCode:114,hex:"0x72",code:"".concat(c.FUNCTION,"3"),key:"".concat(c.FUNCTION,"3")},d),xo=e({keyCode:115,hex:"0x73",code:"".concat(c.FUNCTION,"4"),key:"".concat(c.FUNCTION,"4")},d),Co=e({keyCode:116,hex:"0x74",code:"".concat(c.FUNCTION,"5"),key:"".concat(c.FUNCTION,"5")},d),to=e({keyCode:117,hex:"0x75",code:"".concat(c.FUNCTION,"6"),key:"".concat(c.FUNCTION,"6")},d),no=e({keyCode:118,hex:"0x76",code:"".concat(c.FUNCTION,"7"),key:"".concat(c.FUNCTION,"7")},d),ro=e({keyCode:119,hex:"0x77",code:"".concat(c.FUNCTION,"8"),key:"".concat(c.FUNCTION,"8")},d),so=e({keyCode:120,hex:"0x78",code:"".concat(c.FUNCTION,"9"),key:"".concat(c.FUNCTION,"9")},d),io=e({keyCode:121,hex:"0x79",code:"".concat(c.FUNCTION,"10"),key:"".concat(c.FUNCTION,"10")},d),ao=e({keyCode:122,hex:"0x7A",code:"".concat(c.FUNCTION,"11"),key:"".concat(c.FUNCTION,"11")},d),ho=e({keyCode:123,hex:"0x7B",code:"".concat(c.FUNCTION,"12"),key:"".concat(c.FUNCTION,"12")},d),Eo=e({keyCode:9,hex:"0x09",code:c.TAB,key:c.TAB},d),Ao=e({keyCode:13,hex:"0x0D",code:c.ENTER,key:c.ENTER},d),To=e(e({keyCode:16,hex:"0x10",code:c.SHIFT_LEFT,key:c.SHIFT},d),{isShiftKey:!0}),Oo=e(e({keyCode:16,hex:"0x10",code:c.SHIFT_RIGHT,key:c.SHIFT},d),{isShiftKey:!0}),So=e(e({keyCode:17,hex:"0x11",code:c.CONTROL_LEFT,key:c.CONTROL},d),{isCtrlKey:!0}),lo=e(e({keyCode:17,hex:"0x11",code:c.CONTROL_RIGHT,key:c.CONTROL},d),{isCtrlKey:!0}),No=e(e({keyCode:18,hex:"0x12",code:c.ALT_LEFT,key:c.ALT},d),{isAltKey:!0}),Ro=e(e({keyCode:18,hex:"0x12",code:c.ALT_RIGHT,key:c.ALT},d),{isAltKey:!0}),Ko=e({keyCode:20,hex:"0x14",code:c.CAPS_LOCK,key:c.CAPS_LOCK},d),Io=e({keyCode:27,hex:"0x1B",code:c.ESCAPE,key:c.ESCAPE},d),_o=e({keyCode:32,hex:"0x20",code:c.SPACE,key:" "},d),Lo=e({keyCode:33,hex:"0x21",code:c.PAGE_UP,key:c.PAGE_UP},d),wo=e({keyCode:34,hex:"0x22",code:c.PAGE_DOWN,key:c.PAGE_DOWN},d),Uo=e({keyCode:35,hex:"0x23",code:c.END,key:c.END},d),Do=e({keyCode:36,hex:"0x24",code:c.HOME,key:c.HOME},d),uo=e({keyCode:37,hex:"0x25",code:c.ARROW_LEFT,key:c.ARROW_LEFT},d),fo=e({keyCode:38,hex:"0x26",code:c.ARROW_UP,key:c.ARROW_UP},d),Po=e({keyCode:39,hex:"0x27",code:c.ARROW_RIGHT,key:c.ARROW_RIGHT},d),bo=e({keyCode:40,hex:"0x28",code:c.ARROW_DOWN,key:c.ARROW_DOWN},d),Fo=e({keyCode:[44,124,42],keyCodeDefinitions:[{os:"windows",browser:"ie",code:44,hex:"0x2C"},{os:"windows",browser:"chrome",code:44,hex:"0x2C"},{os:"mac",browser:"chrome",code:124,hex:"0x7C"},{os:"linux",browser:"chromium",code:42,hex:"0x2A"},{os:"mac",browser:"safari",code:124,hex:"0x7C"},{os:"windows",browser:"gecko",code:44,hex:"0x2C"},{os:"mac",browser:"gecko",code:44,hex:"0x2C"},{os:"linux",browser:"gecko",code:42,hex:"0x2A"}],hex:["0x2C","0x7C","0x2A"],code:c.PRINT_SCREEN,key:c.PRINT_SCREEN},d),Mo=e({keyCode:45,hex:"0x2D",code:c.INSERT,key:c.INSERT},d),mo=e({keyCode:46,hex:"0x2E",code:c.DELETE,key:c.DELETE},d),Ho=e({keyCode:144,hex:"0x90",code:c.NUM_LOCK,key:c.NUM_LOCK},d),Bo=e({keyCode:[145,125],keyCodeDefinitions:[{os:"windows",browser:"ie",code:145,hex:"0x91"},{os:"windows",browser:"chrome",code:145,hex:"0x91"},{os:"mac",browser:"chrome",code:125,hex:"0x7D"},{os:"linux",browser:"chromium",code:145,hex:"0x91"},{os:"mac",browser:"safari",code:125,hex:"0x7D"},{os:"windows",browser:"gecko",code:145,hex:"0x91"},{os:"mac",browser:"gecko",code:145,hex:"0x91"},{os:"linux",browser:"gecko",code:145,hex:"0x91"}],hex:["0x91","0x7D"],code:c.SCROLL_LOCK,key:c.SCROLL_LOCK},d),go=e({keyCode:[45,47,6],keyCodeDefinitions:[{os:"windows",browser:"ie",code:null,hex:null},{os:"windows",browser:"chrome",code:null,hex:null},{os:"mac",browser:"chrome",code:45,hex:"0x2D"},{os:"linux",browser:"chromium",code:47,hex:"0x2F"},{os:"mac",browser:"safari",code:45,hex:"0x2D"},{os:"windows",browser:"gecko",code:null,hex:null},{os:"mac",browser:"gecko",code:45,hex:"0x2D"},{os:"linux",browser:"gecko",code:6,hex:"0x06"}],hex:["0x06","0x2D","0x2F"],code:c.HELP,key:c.HELP},d),po=e({keyCode:[19,126],keyCodeDefinitions:[{os:"windows",browser:"ie",code:19,hex:"0x13"},{os:"windows",browser:"chrome",code:19,hex:"0x13"},{os:"mac",browser:"chrome",code:126,hex:"0x7E"},{os:"linux",browser:"chromium",code:19,hex:"0x13"},{os:"mac",browser:"safari",code:126,hex:"0x7E"},{os:"windows",browser:"gecko",code:19,hex:"0x13"},{os:"mac",browser:"gecko",code:19,hex:"0x13"},{os:"linux",browser:"gecko",code:19,hex:"0x13"}],hex:["0x13","0x7E"],code:c.SCROLL_LOCK,key:c.SCROLL_LOCK},d),Go=e(e({keyCode:49,code:"".concat(c.DIGIT,"1"),key:"!"},d),{isShiftKey:!0}),Wo=e(e({keyCode:222,code:"".concat(c.QUOTE),key:'"'},d),{isShiftKey:!0}),vo=e(e({keyCode:51,code:"".concat(c.DIGIT,"3"),key:"#"},d),{isShiftKey:!0}),Yo=e(e({keyCode:52,code:"".concat(c.DIGIT,"4"),key:"$"},d),{isShiftKey:!0}),jo=e(e({keyCode:53,code:"".concat(c.DIGIT,"5"),key:"%"},d),{isShiftKey:!0}),Qo=e(e({keyCode:55,code:"".concat(c.DIGIT,"7"),key:"&"},d),{isShiftKey:!0}),Vo=e({keyCode:222,code:"".concat(c.QUOTE),key:"'"},d),zo=e(e({keyCode:57,code:"".concat(c.DIGIT,"9"),key:"("},d),{isShiftKey:!0}),Xo=e(e({keyCode:48,code:"".concat(c.DIGIT,"0"),key:")"},d),{isShiftKey:!0}),Zo=e(e({keyCode:56,code:"".concat(c.DIGIT,"8"),key:"*"},d),{isShiftKey:!0}),Jo=e(e({keyCode:187,code:"".concat(c.EQUAL),key:"+"},d),{isShiftKey:!0}),qo=e({keyCode:188,code:"".concat(c.COMMA),key:","},d),$o=e({keyCode:189,code:"".concat(c.MINUS),key:"-"},d),ec=e({keyCode:190,code:"".concat(c.PERIOD),key:"."},d),oc=e({keyCode:191,code:"".concat(c.SLASH),key:"/"},d),cc=e(e({keyCode:186,code:"".concat(c.SEMICOLON),key:":"},d),{isShiftKey:!0}),dc=e({keyCode:186,code:"".concat(c.SEMICOLON),key:";"},d),yc=e({keyCode:220,code:"Intl".concat(c.BACKSLASH),key:"<"},d),kc=e({keyCode:187,code:"".concat(c.EQUAL),key:"="},d),xc=e(e({keyCode:220,code:"Intl".concat(c.BACKSLASH),key:">"},d),{isShiftKey:!0}),Cc=e(e({keyCode:191,code:"".concat(c.SLASH),key:"?"},d),{isShiftKey:!0}),tc=e(e({keyCode:50,code:"".concat(c.DIGIT,"2"),key:"@"},d),{isShiftKey:!0}),nc=e({keyCode:219,code:"".concat(c.BRACKET_LEFT),key:"["},d),rc=e({keyCode:220,code:"".concat(c.BACKSLASH),key:"\\"},d),sc=e({keyCode:221,code:"".concat(c.BRACKET_RIGHT),key:"]"},d),ic=e(e({keyCode:54,code:"".concat(c.DIGIT,"6"),key:"^"},d),{isShiftKey:!0}),ac=e(e({keyCode:189,code:"".concat(c.SLASH),key:"_"},d),{isShiftKey:!0}),hc=e({keyCode:192,code:"".concat(c.BACKQUOTE),key:"`"},d),Ec=e(e({keyCode:219,code:"".concat(c.BRACKET_LEFT),key:"{"},d),{isShiftKey:!0}),Ac=e(e({keyCode:220,code:"".concat(c.BACKSLASH),key:"|"},d),{isShiftKey:!0}),Tc=e(e({keyCode:221,code:"".concat(c.BRACKET_RIGHT),key:"}"},d),{isShiftKey:!0}),Oc=e(e({keyCode:192,code:"".concat(c.BACKQUOTE),key:"~"},d),{isShiftKey:!0}),Sc=Object.freeze({__proto__:null,Numpad:je,LowerCase:u,UpperCase:ne,ZERO:Qe,ONE:Ve,TWO:ze,THREE:Xe,FOUR:Ze,FIVE:Je,SIX:qe,SEVEN:$e,EIGHT:eo,NINE:oo,F1:co,F2:yo,F3:ko,F4:xo,F5:Co,F6:to,F7:no,F8:ro,F9:so,F10:io,F11:ao,F12:ho,TAB:Eo,ENTER:Ao,SHIFT_LEFT:To,SHIFT_RIGHT:Oo,CTRL_LEFT:So,CTRL_RIGHT:lo,ALT_LEFT:No,ALT_RIGHT:Ro,CAPS_LOCK:Ko,ESC:Io,SPACE:_o,PAGE_UP:Lo,PAGE_DOWN:wo,END:Uo,HOME:Do,ARROW_LEFT:uo,ARROW_UP:fo,ARROW_RIGHT:Po,ARROW_DOWN:bo,PRINT_SCREEN:Fo,INSERT:Mo,DELETE:mo,NUM_LOCK:Ho,SCROLL_LOCK:Bo,HELP:go,PAUSE:po,EXCLAMATION_MARK:Go,QUOTATION_MARK:Wo,HASH:vo,DOLLAR_SIGN:Yo,PERCENT:jo,AMPERSAND:Qo,APOSTROPHE:Vo,OPEN_PARENTHESIS:zo,CLOSE_PARENTHESIS:Xo,ASTERISK:Zo,PLUS:Jo,COMMA:qo,DASH:$o,DOT:ec,SLASH:oc,COLON:cc,SEMICOLON:dc,LESS_THAN_BRACKET:yc,EQUAL:kc,GREATER_THAN_BRACKET:xc,QUESTION_MARK:Cc,AMPERSAT:tc,OPEN_BRACKET:nc,BACKSLASH:rc,CLOSE_BRACKET:sc,CARET:ic,UNDERSCORE:ac,BACKQUOTE:hc,OPEN_BRACE:Ec,VERTICAL_BAR:Ac,CLOSE_BRACE:Tc,TILDA:Oc}),lc=e(e({},Sc),Ae),Nc={keyCode:222,code:c.QUOTE,key:"ä"},Rc={keyCode:192,code:c.SEMICOLON,key:"ö"},Kc={keyCode:186,code:c.BRACKET_LEFT,key:"ü"},Ic=Nc,_c=Rc,Lc=Kc,wc=Object.freeze({__proto__:null,"Ä":Nc,"Ö":Rc,"Ü":Kc,UMLAUT_A:Ic,UMLAUT_U:Lc,UMLAUT_O:_c,A:y,B:k,C:x,D:C,E:t,F:n,G:r,H:s,I:i,J:a,K:h,L:E,M:A,N:T,O:O,P:S,Q:l,R:N,S:R,T:K,U:I,V:_,W:L,X:w,Y:U,Z:D}),Uc=e(e({},Nc),{key:"Ä"}),Dc=e(e({},Rc),{key:"Ö"}),uc=e(e({},Kc),{key:"Ü"}),fc=Uc,Pc=Dc,bc=uc,Fc=Object.freeze({__proto__:null,"Ä":Uc,"Ö":Dc,"Ü":uc,UMLAUT_A:fc,UMLAUT_U:bc,UMLAUT_O:Pc,A:H,B:B,C:g,D:p,E:G,F:W,G:v,H:Y,I:j,J:Q,K:V,L:z,M:X,N:Z,O:J,P:q,Q:$,R:ee,S:oe,T:ce,U:de,V:ye,W:ke,X:xe,Y:Ce,Z:te}),Mc={keyCode:63,code:c.MINUS,key:"ß"},mc=Mc,Hc=Object.freeze({__proto__:null,LowerCase:wc,UpperCase:Fc,"ß":Mc,UMLAUT_S:mc}),Bc=e({keyCode:191,code:"".concat(c.BACKSLASH),key:"#"},d),gc=e(e({keyCode:192,code:"".concat(c.BACKQUOTE),key:"°"},d),{isShiftKey:!0}),pc=Object.freeze({__proto__:null,HASH:Bc,BACKTICK:gc}),Gc=e(e(e({},Sc),Hc),pc);function Wc(e){if(!e)return!1;var c=o(o(o(o([],Object.values(u),!0),Object.values(ne),!0),Object.values(m),!0),Object.values(Ee),!0);return e instanceof Object?!!(e.code&&e.key&&e.keyCode)&&!!c.find((function(o){var c,d;return e.key.toUpperCase()===(null===(c=o.key)||void 0===c?void 0:c.toUpperCase())||e.code.toUpperCase()===(null===(d=o.code)||void 0===d?void 0:d.toUpperCase())||e.keyCode===o.keyCode})):"string"==typeof e?!!c.find((function(o){var c,d;return(null===(c=o.key)||void 0===c?void 0:c.toUpperCase())===e.toUpperCase()||(null===(d=o.code)||void 0===d?void 0:d.toUpperCase())===e.toUpperCase()})):"number"==typeof e&&!!c.find((function(o){return o.keyCode===e}))}function vc(e){return(null==e?void 0:e.keyCode)&&(null==e?void 0:e.code)&&(null==e?void 0:e.key)||(null==e?void 0:e.isAltKey)||(null==e?void 0:e.isMetaKey)||(null==e?void 0:e.isShiftKey)}var Yc=[c.SHIFT,c.ALT,c.CONTROL];function jc(e,o){if(!e||!o)return!1;if(d=e,["altKey","ctrlKey","code","key","location","metaKey","repeat","shiftKey","isComposing"].every((function(e){return void 0!==(null==d?void 0:d[e])}))){if(vc(o))return c=null==e?void 0:e.key,(!(null==Yc?void 0:Yc.includes(c))||(null==e?void 0:e.code)===(null==o?void 0:o.code))&&(null==e?void 0:e.key)===(null==o?void 0:o.key);if(Array.isArray(o))return o.some((function(o){return!!vc(o)&&o.key===(null==e?void 0:e.key)}))}var c,d;return!1}export{No as ALT_LEFT,Ro as ALT_RIGHT,Qo as AMPERSAND,tc as AMPERSAT,Vo as APOSTROPHE,bo as ARROW_DOWN,uo as ARROW_LEFT,Po as ARROW_RIGHT,fo as ARROW_UP,Zo as ASTERISK,hc as BACKQUOTE,rc as BACKSLASH,Ko as CAPS_LOCK,ic as CARET,Tc as CLOSE_BRACE,sc as CLOSE_BRACKET,Xo as CLOSE_PARENTHESIS,cc as COLON,qo as COMMA,So as CTRL_LEFT,lo as CTRL_RIGHT,$o as DASH,mo as DELETE,Yo as DOLLAR_SIGN,ec as DOT,eo as EIGHT,Uo as END,Ao as ENTER,kc as EQUAL,Io as ESC,Go as EXCLAMATION_MARK,co as F1,io as F10,ao as F11,ho as F12,yo as F2,ko as F3,xo as F4,Co as F5,to as F6,no as F7,ro as F8,so as F9,Je as FIVE,Ze as FOUR,xc as GREATER_THAN_BRACKET,vo as HASH,go as HELP,Do as HOME,Mo as INSERT,yc as LESS_THAN_BRACKET,lc as Layout_CRO,Gc as Layout_DE,u as LowerCase,oo as NINE,Ho as NUM_LOCK,je as Numpad,Ve as ONE,Ec as OPEN_BRACE,nc as OPEN_BRACKET,zo as OPEN_PARENTHESIS,wo as PAGE_DOWN,Lo as PAGE_UP,po as PAUSE,jo as PERCENT,Jo as PLUS,Fo as PRINT_SCREEN,Cc as QUESTION_MARK,Wo as QUOTATION_MARK,Bo as SCROLL_LOCK,dc as SEMICOLON,$e as SEVEN,To as SHIFT_LEFT,Oo as SHIFT_RIGHT,qe as SIX,oc as SLASH,_o as SPACE,Eo as TAB,Xe as THREE,Oc as TILDA,ze as TWO,ac as UNDERSCORE,ne as UpperCase,Ac as VERTICAL_BAR,Qe as ZERO,jc as compare,Wc as isCharacter}; |
{ | ||
"name": "key-definitions", | ||
"version": "2.0.1", | ||
"version": "2.0.2-rc1", | ||
"description": "get a keyboard key definition from event", | ||
"module": "dist/bundle.js", | ||
"types": "dist/src/bundle.d.ts", | ||
"types": "dist/bundle.d.ts", | ||
"files": [ | ||
@@ -8,0 +8,0 @@ "dist" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57340
815
2