UNPKG

@angular/cdk

Version:

Angular Material Component Development Kit

300 lines (295 loc) 7.32 kB
/** * @fileoverview added by tsickle * Generated from: src/cdk/keycodes/keycodes.ts * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** @type {?} */ const MAC_ENTER = 3; /** @type {?} */ const BACKSPACE = 8; /** @type {?} */ const TAB = 9; /** @type {?} */ const NUM_CENTER = 12; /** @type {?} */ const ENTER = 13; /** @type {?} */ const SHIFT = 16; /** @type {?} */ const CONTROL = 17; /** @type {?} */ const ALT = 18; /** @type {?} */ const PAUSE = 19; /** @type {?} */ const CAPS_LOCK = 20; /** @type {?} */ const ESCAPE = 27; /** @type {?} */ const SPACE = 32; /** @type {?} */ const PAGE_UP = 33; /** @type {?} */ const PAGE_DOWN = 34; /** @type {?} */ const END = 35; /** @type {?} */ const HOME = 36; /** @type {?} */ const LEFT_ARROW = 37; /** @type {?} */ const UP_ARROW = 38; /** @type {?} */ const RIGHT_ARROW = 39; /** @type {?} */ const DOWN_ARROW = 40; /** @type {?} */ const PLUS_SIGN = 43; /** @type {?} */ const PRINT_SCREEN = 44; /** @type {?} */ const INSERT = 45; /** @type {?} */ const DELETE = 46; /** @type {?} */ const ZERO = 48; /** @type {?} */ const ONE = 49; /** @type {?} */ const TWO = 50; /** @type {?} */ const THREE = 51; /** @type {?} */ const FOUR = 52; /** @type {?} */ const FIVE = 53; /** @type {?} */ const SIX = 54; /** @type {?} */ const SEVEN = 55; /** @type {?} */ const EIGHT = 56; /** @type {?} */ const NINE = 57; /** @type {?} */ const FF_SEMICOLON = 59; // Firefox (Gecko) fires this for semicolon instead of 186 /** @type {?} */ const FF_EQUALS = 61; // Firefox (Gecko) fires this for equals instead of 187 /** @type {?} */ const QUESTION_MARK = 63; /** @type {?} */ const AT_SIGN = 64; /** @type {?} */ const A = 65; /** @type {?} */ const B = 66; /** @type {?} */ const C = 67; /** @type {?} */ const D = 68; /** @type {?} */ const E = 69; /** @type {?} */ const F = 70; /** @type {?} */ const G = 71; /** @type {?} */ const H = 72; /** @type {?} */ const I = 73; /** @type {?} */ const J = 74; /** @type {?} */ const K = 75; /** @type {?} */ const L = 76; /** @type {?} */ const M = 77; /** @type {?} */ const N = 78; /** @type {?} */ const O = 79; /** @type {?} */ const P = 80; /** @type {?} */ const Q = 81; /** @type {?} */ const R = 82; /** @type {?} */ const S = 83; /** @type {?} */ const T = 84; /** @type {?} */ const U = 85; /** @type {?} */ const V = 86; /** @type {?} */ const W = 87; /** @type {?} */ const X = 88; /** @type {?} */ const Y = 89; /** @type {?} */ const Z = 90; /** @type {?} */ const META = 91; // WIN_KEY_LEFT /** @type {?} */ const MAC_WK_CMD_LEFT = 91; /** @type {?} */ const MAC_WK_CMD_RIGHT = 93; /** @type {?} */ const CONTEXT_MENU = 93; /** @type {?} */ const NUMPAD_ZERO = 96; /** @type {?} */ const NUMPAD_ONE = 97; /** @type {?} */ const NUMPAD_TWO = 98; /** @type {?} */ const NUMPAD_THREE = 99; /** @type {?} */ const NUMPAD_FOUR = 100; /** @type {?} */ const NUMPAD_FIVE = 101; /** @type {?} */ const NUMPAD_SIX = 102; /** @type {?} */ const NUMPAD_SEVEN = 103; /** @type {?} */ const NUMPAD_EIGHT = 104; /** @type {?} */ const NUMPAD_NINE = 105; /** @type {?} */ const NUMPAD_MULTIPLY = 106; /** @type {?} */ const NUMPAD_PLUS = 107; /** @type {?} */ const NUMPAD_MINUS = 109; /** @type {?} */ const NUMPAD_PERIOD = 110; /** @type {?} */ const NUMPAD_DIVIDE = 111; /** @type {?} */ const F1 = 112; /** @type {?} */ const F2 = 113; /** @type {?} */ const F3 = 114; /** @type {?} */ const F4 = 115; /** @type {?} */ const F5 = 116; /** @type {?} */ const F6 = 117; /** @type {?} */ const F7 = 118; /** @type {?} */ const F8 = 119; /** @type {?} */ const F9 = 120; /** @type {?} */ const F10 = 121; /** @type {?} */ const F11 = 122; /** @type {?} */ const F12 = 123; /** @type {?} */ const NUM_LOCK = 144; /** @type {?} */ const SCROLL_LOCK = 145; /** @type {?} */ const FIRST_MEDIA = 166; /** @type {?} */ const FF_MINUS = 173; /** @type {?} */ const MUTE = 173; // Firefox (Gecko) fires 181 for MUTE /** @type {?} */ const VOLUME_DOWN = 174; // Firefox (Gecko) fires 182 for VOLUME_DOWN /** @type {?} */ const VOLUME_UP = 175; // Firefox (Gecko) fires 183 for VOLUME_UP /** @type {?} */ const FF_MUTE = 181; /** @type {?} */ const FF_VOLUME_DOWN = 182; /** @type {?} */ const LAST_MEDIA = 183; /** @type {?} */ const FF_VOLUME_UP = 183; /** @type {?} */ const SEMICOLON = 186; // Firefox (Gecko) fires 59 for SEMICOLON /** @type {?} */ const EQUALS = 187; // Firefox (Gecko) fires 61 for EQUALS /** @type {?} */ const COMMA = 188; /** @type {?} */ const DASH = 189; // Firefox (Gecko) fires 173 for DASH/MINUS /** @type {?} */ const SLASH = 191; /** @type {?} */ const APOSTROPHE = 192; /** @type {?} */ const TILDE = 192; /** @type {?} */ const OPEN_SQUARE_BRACKET = 219; /** @type {?} */ const BACKSLASH = 220; /** @type {?} */ const CLOSE_SQUARE_BRACKET = 221; /** @type {?} */ const SINGLE_QUOTE = 222; /** @type {?} */ const MAC_META = 224; /** * @fileoverview added by tsickle * Generated from: src/cdk/keycodes/modifiers.ts * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Checks whether a modifier key is pressed. * @param {?} event Event to be checked. * @param {...?} modifiers * @return {?} */ function hasModifierKey(event, ...modifiers) { if (modifiers.length) { return modifiers.some((/** * @param {?} modifier * @return {?} */ modifier => event[modifier])); } return event.altKey || event.shiftKey || event.ctrlKey || event.metaKey; } /** * @fileoverview added by tsickle * Generated from: src/cdk/keycodes/public-api.ts * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ /** * Generated bundle index. Do not edit. */ export { A, ALT, APOSTROPHE, AT_SIGN, B, BACKSLASH, BACKSPACE, C, CAPS_LOCK, CLOSE_SQUARE_BRACKET, COMMA, CONTEXT_MENU, CONTROL, D, DASH, DELETE, DOWN_ARROW, E, EIGHT, END, ENTER, EQUALS, ESCAPE, F, F1, F10, F11, F12, F2, F3, F4, F5, F6, F7, F8, F9, FF_EQUALS, FF_MINUS, FF_MUTE, FF_SEMICOLON, FF_VOLUME_DOWN, FF_VOLUME_UP, FIRST_MEDIA, FIVE, FOUR, G, H, HOME, I, INSERT, J, K, L, LAST_MEDIA, LEFT_ARROW, M, MAC_ENTER, MAC_META, MAC_WK_CMD_LEFT, MAC_WK_CMD_RIGHT, META, MUTE, N, NINE, NUMPAD_DIVIDE, NUMPAD_EIGHT, NUMPAD_FIVE, NUMPAD_FOUR, NUMPAD_MINUS, NUMPAD_MULTIPLY, NUMPAD_NINE, NUMPAD_ONE, NUMPAD_PERIOD, NUMPAD_PLUS, NUMPAD_SEVEN, NUMPAD_SIX, NUMPAD_THREE, NUMPAD_TWO, NUMPAD_ZERO, NUM_CENTER, NUM_LOCK, O, ONE, OPEN_SQUARE_BRACKET, P, PAGE_DOWN, PAGE_UP, PAUSE, PLUS_SIGN, PRINT_SCREEN, Q, QUESTION_MARK, R, RIGHT_ARROW, S, SCROLL_LOCK, SEMICOLON, SEVEN, SHIFT, SINGLE_QUOTE, SIX, SLASH, SPACE, T, TAB, THREE, TILDE, TWO, U, UP_ARROW, V, VOLUME_DOWN, VOLUME_UP, W, X, Y, Z, ZERO, hasModifierKey }; //# sourceMappingURL=keycodes.js.map