1 | (function (global, factory) {
|
---|
2 | typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
---|
3 | typeof define === 'function' && define.amd ? define('@angular/cdk/keycodes', ['exports'], factory) :
|
---|
4 | (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.ng = global.ng || {}, global.ng.cdk = global.ng.cdk || {}, global.ng.cdk.keycodes = {})));
|
---|
5 | }(this, (function (exports) { 'use strict';
|
---|
6 |
|
---|
7 | /**
|
---|
8 | * @license
|
---|
9 | * Copyright Google LLC All Rights Reserved.
|
---|
10 | *
|
---|
11 | * Use of this source code is governed by an MIT-style license that can be
|
---|
12 | * found in the LICENSE file at https://angular.io/license
|
---|
13 | */
|
---|
14 | var MAC_ENTER = 3;
|
---|
15 | var BACKSPACE = 8;
|
---|
16 | var TAB = 9;
|
---|
17 | var NUM_CENTER = 12;
|
---|
18 | var ENTER = 13;
|
---|
19 | var SHIFT = 16;
|
---|
20 | var CONTROL = 17;
|
---|
21 | var ALT = 18;
|
---|
22 | var PAUSE = 19;
|
---|
23 | var CAPS_LOCK = 20;
|
---|
24 | var ESCAPE = 27;
|
---|
25 | var SPACE = 32;
|
---|
26 | var PAGE_UP = 33;
|
---|
27 | var PAGE_DOWN = 34;
|
---|
28 | var END = 35;
|
---|
29 | var HOME = 36;
|
---|
30 | var LEFT_ARROW = 37;
|
---|
31 | var UP_ARROW = 38;
|
---|
32 | var RIGHT_ARROW = 39;
|
---|
33 | var DOWN_ARROW = 40;
|
---|
34 | var PLUS_SIGN = 43;
|
---|
35 | var PRINT_SCREEN = 44;
|
---|
36 | var INSERT = 45;
|
---|
37 | var DELETE = 46;
|
---|
38 | var ZERO = 48;
|
---|
39 | var ONE = 49;
|
---|
40 | var TWO = 50;
|
---|
41 | var THREE = 51;
|
---|
42 | var FOUR = 52;
|
---|
43 | var FIVE = 53;
|
---|
44 | var SIX = 54;
|
---|
45 | var SEVEN = 55;
|
---|
46 | var EIGHT = 56;
|
---|
47 | var NINE = 57;
|
---|
48 | var FF_SEMICOLON = 59; // Firefox (Gecko) fires this for semicolon instead of 186
|
---|
49 | var FF_EQUALS = 61; // Firefox (Gecko) fires this for equals instead of 187
|
---|
50 | var QUESTION_MARK = 63;
|
---|
51 | var AT_SIGN = 64;
|
---|
52 | var A = 65;
|
---|
53 | var B = 66;
|
---|
54 | var C = 67;
|
---|
55 | var D = 68;
|
---|
56 | var E = 69;
|
---|
57 | var F = 70;
|
---|
58 | var G = 71;
|
---|
59 | var H = 72;
|
---|
60 | var I = 73;
|
---|
61 | var J = 74;
|
---|
62 | var K = 75;
|
---|
63 | var L = 76;
|
---|
64 | var M = 77;
|
---|
65 | var N = 78;
|
---|
66 | var O = 79;
|
---|
67 | var P = 80;
|
---|
68 | var Q = 81;
|
---|
69 | var R = 82;
|
---|
70 | var S = 83;
|
---|
71 | var T = 84;
|
---|
72 | var U = 85;
|
---|
73 | var V = 86;
|
---|
74 | var W = 87;
|
---|
75 | var X = 88;
|
---|
76 | var Y = 89;
|
---|
77 | var Z = 90;
|
---|
78 | var META = 91; // WIN_KEY_LEFT
|
---|
79 | var MAC_WK_CMD_LEFT = 91;
|
---|
80 | var MAC_WK_CMD_RIGHT = 93;
|
---|
81 | var CONTEXT_MENU = 93;
|
---|
82 | var NUMPAD_ZERO = 96;
|
---|
83 | var NUMPAD_ONE = 97;
|
---|
84 | var NUMPAD_TWO = 98;
|
---|
85 | var NUMPAD_THREE = 99;
|
---|
86 | var NUMPAD_FOUR = 100;
|
---|
87 | var NUMPAD_FIVE = 101;
|
---|
88 | var NUMPAD_SIX = 102;
|
---|
89 | var NUMPAD_SEVEN = 103;
|
---|
90 | var NUMPAD_EIGHT = 104;
|
---|
91 | var NUMPAD_NINE = 105;
|
---|
92 | var NUMPAD_MULTIPLY = 106;
|
---|
93 | var NUMPAD_PLUS = 107;
|
---|
94 | var NUMPAD_MINUS = 109;
|
---|
95 | var NUMPAD_PERIOD = 110;
|
---|
96 | var NUMPAD_DIVIDE = 111;
|
---|
97 | var F1 = 112;
|
---|
98 | var F2 = 113;
|
---|
99 | var F3 = 114;
|
---|
100 | var F4 = 115;
|
---|
101 | var F5 = 116;
|
---|
102 | var F6 = 117;
|
---|
103 | var F7 = 118;
|
---|
104 | var F8 = 119;
|
---|
105 | var F9 = 120;
|
---|
106 | var F10 = 121;
|
---|
107 | var F11 = 122;
|
---|
108 | var F12 = 123;
|
---|
109 | var NUM_LOCK = 144;
|
---|
110 | var SCROLL_LOCK = 145;
|
---|
111 | var FIRST_MEDIA = 166;
|
---|
112 | var FF_MINUS = 173;
|
---|
113 | var MUTE = 173; // Firefox (Gecko) fires 181 for MUTE
|
---|
114 | var VOLUME_DOWN = 174; // Firefox (Gecko) fires 182 for VOLUME_DOWN
|
---|
115 | var VOLUME_UP = 175; // Firefox (Gecko) fires 183 for VOLUME_UP
|
---|
116 | var FF_MUTE = 181;
|
---|
117 | var FF_VOLUME_DOWN = 182;
|
---|
118 | var LAST_MEDIA = 183;
|
---|
119 | var FF_VOLUME_UP = 183;
|
---|
120 | var SEMICOLON = 186; // Firefox (Gecko) fires 59 for SEMICOLON
|
---|
121 | var EQUALS = 187; // Firefox (Gecko) fires 61 for EQUALS
|
---|
122 | var COMMA = 188;
|
---|
123 | var DASH = 189; // Firefox (Gecko) fires 173 for DASH/MINUS
|
---|
124 | var PERIOD = 190;
|
---|
125 | var SLASH = 191;
|
---|
126 | var APOSTROPHE = 192;
|
---|
127 | var TILDE = 192;
|
---|
128 | var OPEN_SQUARE_BRACKET = 219;
|
---|
129 | var BACKSLASH = 220;
|
---|
130 | var CLOSE_SQUARE_BRACKET = 221;
|
---|
131 | var SINGLE_QUOTE = 222;
|
---|
132 | var MAC_META = 224;
|
---|
133 |
|
---|
134 | /**
|
---|
135 | * @license
|
---|
136 | * Copyright Google LLC All Rights Reserved.
|
---|
137 | *
|
---|
138 | * Use of this source code is governed by an MIT-style license that can be
|
---|
139 | * found in the LICENSE file at https://angular.io/license
|
---|
140 | */
|
---|
141 | /**
|
---|
142 | * Checks whether a modifier key is pressed.
|
---|
143 | * @param event Event to be checked.
|
---|
144 | */
|
---|
145 | function hasModifierKey(event) {
|
---|
146 | var modifiers = [];
|
---|
147 | for (var _i = 1; _i < arguments.length; _i++) {
|
---|
148 | modifiers[_i - 1] = arguments[_i];
|
---|
149 | }
|
---|
150 | if (modifiers.length) {
|
---|
151 | return modifiers.some(function (modifier) { return event[modifier]; });
|
---|
152 | }
|
---|
153 | return event.altKey || event.shiftKey || event.ctrlKey || event.metaKey;
|
---|
154 | }
|
---|
155 |
|
---|
156 | /**
|
---|
157 | * @license
|
---|
158 | * Copyright Google LLC All Rights Reserved.
|
---|
159 | *
|
---|
160 | * Use of this source code is governed by an MIT-style license that can be
|
---|
161 | * found in the LICENSE file at https://angular.io/license
|
---|
162 | */
|
---|
163 |
|
---|
164 | /**
|
---|
165 | * Generated bundle index. Do not edit.
|
---|
166 | */
|
---|
167 |
|
---|
168 | exports.A = A;
|
---|
169 | exports.ALT = ALT;
|
---|
170 | exports.APOSTROPHE = APOSTROPHE;
|
---|
171 | exports.AT_SIGN = AT_SIGN;
|
---|
172 | exports.B = B;
|
---|
173 | exports.BACKSLASH = BACKSLASH;
|
---|
174 | exports.BACKSPACE = BACKSPACE;
|
---|
175 | exports.C = C;
|
---|
176 | exports.CAPS_LOCK = CAPS_LOCK;
|
---|
177 | exports.CLOSE_SQUARE_BRACKET = CLOSE_SQUARE_BRACKET;
|
---|
178 | exports.COMMA = COMMA;
|
---|
179 | exports.CONTEXT_MENU = CONTEXT_MENU;
|
---|
180 | exports.CONTROL = CONTROL;
|
---|
181 | exports.D = D;
|
---|
182 | exports.DASH = DASH;
|
---|
183 | exports.DELETE = DELETE;
|
---|
184 | exports.DOWN_ARROW = DOWN_ARROW;
|
---|
185 | exports.E = E;
|
---|
186 | exports.EIGHT = EIGHT;
|
---|
187 | exports.END = END;
|
---|
188 | exports.ENTER = ENTER;
|
---|
189 | exports.EQUALS = EQUALS;
|
---|
190 | exports.ESCAPE = ESCAPE;
|
---|
191 | exports.F = F;
|
---|
192 | exports.F1 = F1;
|
---|
193 | exports.F10 = F10;
|
---|
194 | exports.F11 = F11;
|
---|
195 | exports.F12 = F12;
|
---|
196 | exports.F2 = F2;
|
---|
197 | exports.F3 = F3;
|
---|
198 | exports.F4 = F4;
|
---|
199 | exports.F5 = F5;
|
---|
200 | exports.F6 = F6;
|
---|
201 | exports.F7 = F7;
|
---|
202 | exports.F8 = F8;
|
---|
203 | exports.F9 = F9;
|
---|
204 | exports.FF_EQUALS = FF_EQUALS;
|
---|
205 | exports.FF_MINUS = FF_MINUS;
|
---|
206 | exports.FF_MUTE = FF_MUTE;
|
---|
207 | exports.FF_SEMICOLON = FF_SEMICOLON;
|
---|
208 | exports.FF_VOLUME_DOWN = FF_VOLUME_DOWN;
|
---|
209 | exports.FF_VOLUME_UP = FF_VOLUME_UP;
|
---|
210 | exports.FIRST_MEDIA = FIRST_MEDIA;
|
---|
211 | exports.FIVE = FIVE;
|
---|
212 | exports.FOUR = FOUR;
|
---|
213 | exports.G = G;
|
---|
214 | exports.H = H;
|
---|
215 | exports.HOME = HOME;
|
---|
216 | exports.I = I;
|
---|
217 | exports.INSERT = INSERT;
|
---|
218 | exports.J = J;
|
---|
219 | exports.K = K;
|
---|
220 | exports.L = L;
|
---|
221 | exports.LAST_MEDIA = LAST_MEDIA;
|
---|
222 | exports.LEFT_ARROW = LEFT_ARROW;
|
---|
223 | exports.M = M;
|
---|
224 | exports.MAC_ENTER = MAC_ENTER;
|
---|
225 | exports.MAC_META = MAC_META;
|
---|
226 | exports.MAC_WK_CMD_LEFT = MAC_WK_CMD_LEFT;
|
---|
227 | exports.MAC_WK_CMD_RIGHT = MAC_WK_CMD_RIGHT;
|
---|
228 | exports.META = META;
|
---|
229 | exports.MUTE = MUTE;
|
---|
230 | exports.N = N;
|
---|
231 | exports.NINE = NINE;
|
---|
232 | exports.NUMPAD_DIVIDE = NUMPAD_DIVIDE;
|
---|
233 | exports.NUMPAD_EIGHT = NUMPAD_EIGHT;
|
---|
234 | exports.NUMPAD_FIVE = NUMPAD_FIVE;
|
---|
235 | exports.NUMPAD_FOUR = NUMPAD_FOUR;
|
---|
236 | exports.NUMPAD_MINUS = NUMPAD_MINUS;
|
---|
237 | exports.NUMPAD_MULTIPLY = NUMPAD_MULTIPLY;
|
---|
238 | exports.NUMPAD_NINE = NUMPAD_NINE;
|
---|
239 | exports.NUMPAD_ONE = NUMPAD_ONE;
|
---|
240 | exports.NUMPAD_PERIOD = NUMPAD_PERIOD;
|
---|
241 | exports.NUMPAD_PLUS = NUMPAD_PLUS;
|
---|
242 | exports.NUMPAD_SEVEN = NUMPAD_SEVEN;
|
---|
243 | exports.NUMPAD_SIX = NUMPAD_SIX;
|
---|
244 | exports.NUMPAD_THREE = NUMPAD_THREE;
|
---|
245 | exports.NUMPAD_TWO = NUMPAD_TWO;
|
---|
246 | exports.NUMPAD_ZERO = NUMPAD_ZERO;
|
---|
247 | exports.NUM_CENTER = NUM_CENTER;
|
---|
248 | exports.NUM_LOCK = NUM_LOCK;
|
---|
249 | exports.O = O;
|
---|
250 | exports.ONE = ONE;
|
---|
251 | exports.OPEN_SQUARE_BRACKET = OPEN_SQUARE_BRACKET;
|
---|
252 | exports.P = P;
|
---|
253 | exports.PAGE_DOWN = PAGE_DOWN;
|
---|
254 | exports.PAGE_UP = PAGE_UP;
|
---|
255 | exports.PAUSE = PAUSE;
|
---|
256 | exports.PERIOD = PERIOD;
|
---|
257 | exports.PLUS_SIGN = PLUS_SIGN;
|
---|
258 | exports.PRINT_SCREEN = PRINT_SCREEN;
|
---|
259 | exports.Q = Q;
|
---|
260 | exports.QUESTION_MARK = QUESTION_MARK;
|
---|
261 | exports.R = R;
|
---|
262 | exports.RIGHT_ARROW = RIGHT_ARROW;
|
---|
263 | exports.S = S;
|
---|
264 | exports.SCROLL_LOCK = SCROLL_LOCK;
|
---|
265 | exports.SEMICOLON = SEMICOLON;
|
---|
266 | exports.SEVEN = SEVEN;
|
---|
267 | exports.SHIFT = SHIFT;
|
---|
268 | exports.SINGLE_QUOTE = SINGLE_QUOTE;
|
---|
269 | exports.SIX = SIX;
|
---|
270 | exports.SLASH = SLASH;
|
---|
271 | exports.SPACE = SPACE;
|
---|
272 | exports.T = T;
|
---|
273 | exports.TAB = TAB;
|
---|
274 | exports.THREE = THREE;
|
---|
275 | exports.TILDE = TILDE;
|
---|
276 | exports.TWO = TWO;
|
---|
277 | exports.U = U;
|
---|
278 | exports.UP_ARROW = UP_ARROW;
|
---|
279 | exports.V = V;
|
---|
280 | exports.VOLUME_DOWN = VOLUME_DOWN;
|
---|
281 | exports.VOLUME_UP = VOLUME_UP;
|
---|
282 | exports.W = W;
|
---|
283 | exports.X = X;
|
---|
284 | exports.Y = Y;
|
---|
285 | exports.Z = Z;
|
---|
286 | exports.ZERO = ZERO;
|
---|
287 | exports.hasModifierKey = hasModifierKey;
|
---|
288 |
|
---|
289 | Object.defineProperty(exports, '__esModule', { value: true });
|
---|
290 |
|
---|
291 | })));
|
---|
292 | //# sourceMappingURL=cdk-keycodes.umd.js.map
|
---|