508 lines
9.2 KiB
Markdown
508 lines
9.2 KiB
Markdown
|
## API Report File for "@fluentui/keyboard-key"
|
||
|
|
||
|
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
||
|
|
||
|
```ts
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const AmpersandKey: 55;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const ArrowDownKey: 40;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const ArrowLeftKey: 37;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const ArrowRightKey: 39;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const ArrowUpKey: 38;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const AtSignKey: 50;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const BackSlashKey: 220;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const CaretKey: 54;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const ColonKey: 186;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const CommaKey: 188;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const DecimalKey: 190;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const Digit0Key: 48;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const Digit1Key: 49;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const Digit2Key: 50;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const Digit3Key: 51;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const Digit4Key: 52;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const Digit5Key: 53;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const Digit6Key: 54;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const Digit7Key: 55;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const Digit8Key: 56;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const Digit9Key: 57;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const DivisionSignKey: 191;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const DoubleQuoteKey: 222;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const EndKey: 35;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const EnterKey: 13;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const EqualsSignKey: 187;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const ExclamationPointKey: 49;
|
||
|
|
||
|
// @public
|
||
|
export function getCode(eventOrKey: Partial<KeyboardEventLike> | string): number | undefined;
|
||
|
|
||
|
// @public
|
||
|
export function getKey(eventOrCode: Partial<KeyboardEventLike> | number): string | undefined;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const GraveAccentKey: 192;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const HomeKey: 36;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export type KeyboardEventLike = Pick<KeyboardEvent, 'key' | 'keyCode' | 'which' | 'shiftKey'>;
|
||
|
|
||
|
// @public
|
||
|
export const keyboardKey: KeyNames;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export interface KeyNames {
|
||
|
// (undocumented)
|
||
|
' ': 32;
|
||
|
// (undocumented)
|
||
|
'!': 49;
|
||
|
// (undocumented)
|
||
|
'#': 51;
|
||
|
// (undocumented)
|
||
|
'%': 53;
|
||
|
// (undocumented)
|
||
|
'&': 55;
|
||
|
// (undocumented)
|
||
|
"'": 222;
|
||
|
// (undocumented)
|
||
|
'(': 57;
|
||
|
// (undocumented)
|
||
|
')': 48;
|
||
|
// (undocumented)
|
||
|
'*': 56;
|
||
|
// (undocumented)
|
||
|
'+': 187;
|
||
|
// (undocumented)
|
||
|
',': 188;
|
||
|
// (undocumented)
|
||
|
'-': 189;
|
||
|
// (undocumented)
|
||
|
'.': 190;
|
||
|
// (undocumented)
|
||
|
'/': 191;
|
||
|
// (undocumented)
|
||
|
0: 48;
|
||
|
// (undocumented)
|
||
|
1: 49;
|
||
|
// (undocumented)
|
||
|
2: 50;
|
||
|
// (undocumented)
|
||
|
3: 51;
|
||
|
// (undocumented)
|
||
|
4: 52;
|
||
|
// (undocumented)
|
||
|
5: 53;
|
||
|
// (undocumented)
|
||
|
6: 54;
|
||
|
// (undocumented)
|
||
|
7: 55;
|
||
|
// (undocumented)
|
||
|
8: 56;
|
||
|
// (undocumented)
|
||
|
9: 57;
|
||
|
// (undocumented)
|
||
|
':': 186;
|
||
|
// (undocumented)
|
||
|
';': 186;
|
||
|
// (undocumented)
|
||
|
'<': 188;
|
||
|
// (undocumented)
|
||
|
'=': 187;
|
||
|
// (undocumented)
|
||
|
'>': 190;
|
||
|
// (undocumented)
|
||
|
'?': 191;
|
||
|
// (undocumented)
|
||
|
'@': 50;
|
||
|
// (undocumented)
|
||
|
'[': 219;
|
||
|
// (undocumented)
|
||
|
'"': 222;
|
||
|
// (undocumented)
|
||
|
'\\': 220;
|
||
|
// (undocumented)
|
||
|
']': 221;
|
||
|
// (undocumented)
|
||
|
'^': 54;
|
||
|
// (undocumented)
|
||
|
'`': 192;
|
||
|
// (undocumented)
|
||
|
'{': 219;
|
||
|
// (undocumented)
|
||
|
'|': 220;
|
||
|
// (undocumented)
|
||
|
'}': 221;
|
||
|
// (undocumented)
|
||
|
'~': 192;
|
||
|
// (undocumented)
|
||
|
$: 52;
|
||
|
// (undocumented)
|
||
|
_: 189;
|
||
|
// (undocumented)
|
||
|
A: 65;
|
||
|
// (undocumented)
|
||
|
a: 65;
|
||
|
// (undocumented)
|
||
|
Accept: 30;
|
||
|
// (undocumented)
|
||
|
Alt: 18;
|
||
|
// (undocumented)
|
||
|
AltGraph: 225;
|
||
|
// (undocumented)
|
||
|
ArrowDown: 40;
|
||
|
// (undocumented)
|
||
|
ArrowLeft: 37;
|
||
|
// (undocumented)
|
||
|
ArrowRight: 39;
|
||
|
// (undocumented)
|
||
|
ArrowUp: 38;
|
||
|
// (undocumented)
|
||
|
Attn: 246;
|
||
|
// (undocumented)
|
||
|
B: 66;
|
||
|
// (undocumented)
|
||
|
b: 66;
|
||
|
// (undocumented)
|
||
|
Backspace: 8;
|
||
|
// (undocumented)
|
||
|
C: 67;
|
||
|
// (undocumented)
|
||
|
c: 67;
|
||
|
// (undocumented)
|
||
|
Cancel: 3;
|
||
|
// (undocumented)
|
||
|
CapsLock: 20;
|
||
|
// (undocumented)
|
||
|
Clear: 12;
|
||
|
// (undocumented)
|
||
|
ContextMenu: 93;
|
||
|
// (undocumented)
|
||
|
Control: 17;
|
||
|
// (undocumented)
|
||
|
Convert: 28;
|
||
|
// (undocumented)
|
||
|
CrSel: 247;
|
||
|
// (undocumented)
|
||
|
D: 68;
|
||
|
// (undocumented)
|
||
|
d: 68;
|
||
|
// (undocumented)
|
||
|
Delete: 46;
|
||
|
// (undocumented)
|
||
|
E: 69;
|
||
|
// (undocumented)
|
||
|
e: 69;
|
||
|
// (undocumented)
|
||
|
End: 35;
|
||
|
// (undocumented)
|
||
|
Enter: 13;
|
||
|
// (undocumented)
|
||
|
EraseEof: 249;
|
||
|
// (undocumented)
|
||
|
Escape: 27;
|
||
|
// (undocumented)
|
||
|
Execute: 43;
|
||
|
// (undocumented)
|
||
|
ExSel: 248;
|
||
|
// (undocumented)
|
||
|
F: 70;
|
||
|
// (undocumented)
|
||
|
f: 70;
|
||
|
// (undocumented)
|
||
|
F1: 112;
|
||
|
// (undocumented)
|
||
|
F10: 121;
|
||
|
// (undocumented)
|
||
|
F11: 122;
|
||
|
// (undocumented)
|
||
|
F12: 123;
|
||
|
// (undocumented)
|
||
|
F13: 124;
|
||
|
// (undocumented)
|
||
|
F14: 125;
|
||
|
// (undocumented)
|
||
|
F15: 126;
|
||
|
// (undocumented)
|
||
|
F16: 127;
|
||
|
// (undocumented)
|
||
|
F17: 128;
|
||
|
// (undocumented)
|
||
|
F18: 129;
|
||
|
// (undocumented)
|
||
|
F19: 130;
|
||
|
// (undocumented)
|
||
|
F2: 113;
|
||
|
// (undocumented)
|
||
|
F20: 131;
|
||
|
// (undocumented)
|
||
|
F21: 132;
|
||
|
// (undocumented)
|
||
|
F22: 133;
|
||
|
// (undocumented)
|
||
|
F23: 134;
|
||
|
// (undocumented)
|
||
|
F24: 135;
|
||
|
// (undocumented)
|
||
|
F3: 114;
|
||
|
// (undocumented)
|
||
|
F4: 115;
|
||
|
// (undocumented)
|
||
|
F5: 116;
|
||
|
// (undocumented)
|
||
|
F6: 117;
|
||
|
// (undocumented)
|
||
|
F7: 118;
|
||
|
// (undocumented)
|
||
|
F8: 119;
|
||
|
// (undocumented)
|
||
|
F9: 120;
|
||
|
// (undocumented)
|
||
|
G: 71;
|
||
|
// (undocumented)
|
||
|
g: 71;
|
||
|
// (undocumented)
|
||
|
H: 72;
|
||
|
// (undocumented)
|
||
|
h: 72;
|
||
|
// (undocumented)
|
||
|
Help: 6;
|
||
|
// (undocumented)
|
||
|
Home: 36;
|
||
|
// (undocumented)
|
||
|
I: 73;
|
||
|
// (undocumented)
|
||
|
i: 73;
|
||
|
// (undocumented)
|
||
|
Insert: 45;
|
||
|
// (undocumented)
|
||
|
J: 74;
|
||
|
// (undocumented)
|
||
|
j: 74;
|
||
|
// (undocumented)
|
||
|
K: 75;
|
||
|
// (undocumented)
|
||
|
k: 75;
|
||
|
// (undocumented)
|
||
|
L: 76;
|
||
|
// (undocumented)
|
||
|
l: 76;
|
||
|
// (undocumented)
|
||
|
M: 77;
|
||
|
// (undocumented)
|
||
|
m: 77;
|
||
|
// (undocumented)
|
||
|
Meta: 224;
|
||
|
// (undocumented)
|
||
|
ModeChange: 31;
|
||
|
// (undocumented)
|
||
|
N: 78;
|
||
|
// (undocumented)
|
||
|
n: 78;
|
||
|
// (undocumented)
|
||
|
NonConvert: 29;
|
||
|
// (undocumented)
|
||
|
NumLock: 144;
|
||
|
// (undocumented)
|
||
|
O: 79;
|
||
|
// (undocumented)
|
||
|
o: 79;
|
||
|
// (undocumented)
|
||
|
OS: 91;
|
||
|
// (undocumented)
|
||
|
P: 80;
|
||
|
// (undocumented)
|
||
|
p: 80;
|
||
|
// (undocumented)
|
||
|
PageDown: 34;
|
||
|
// (undocumented)
|
||
|
PageUp: 33;
|
||
|
// (undocumented)
|
||
|
Pause: 19;
|
||
|
// (undocumented)
|
||
|
Play: 250;
|
||
|
// (undocumented)
|
||
|
Print: 42;
|
||
|
// (undocumented)
|
||
|
PrintScreen: 44;
|
||
|
// (undocumented)
|
||
|
Q: 81;
|
||
|
// (undocumented)
|
||
|
q: 81;
|
||
|
// (undocumented)
|
||
|
R: 82;
|
||
|
// (undocumented)
|
||
|
r: 82;
|
||
|
// (undocumented)
|
||
|
S: 83;
|
||
|
// (undocumented)
|
||
|
s: 83;
|
||
|
// (undocumented)
|
||
|
ScrollLock: 145;
|
||
|
// (undocumented)
|
||
|
Select: 41;
|
||
|
// (undocumented)
|
||
|
Shift: 16;
|
||
|
// (undocumented)
|
||
|
T: 84;
|
||
|
// (undocumented)
|
||
|
t: 84;
|
||
|
// (undocumented)
|
||
|
Tab: 9;
|
||
|
// (undocumented)
|
||
|
U: 85;
|
||
|
// (undocumented)
|
||
|
u: 85;
|
||
|
// (undocumented)
|
||
|
V: 86;
|
||
|
// (undocumented)
|
||
|
v: 86;
|
||
|
// (undocumented)
|
||
|
VolumeDown: 182;
|
||
|
// (undocumented)
|
||
|
VolumeMute: 181;
|
||
|
// (undocumented)
|
||
|
VolumeUp: 183;
|
||
|
// (undocumented)
|
||
|
W: 87;
|
||
|
// (undocumented)
|
||
|
w: 87;
|
||
|
// (undocumented)
|
||
|
X: 88;
|
||
|
// (undocumented)
|
||
|
x: 88;
|
||
|
// (undocumented)
|
||
|
Y: 89;
|
||
|
// (undocumented)
|
||
|
y: 89;
|
||
|
// (undocumented)
|
||
|
Z: 90;
|
||
|
// (undocumented)
|
||
|
z: 90;
|
||
|
// (undocumented)
|
||
|
ZoomOut: 251;
|
||
|
}
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const LeftAngleBracketKey: 188;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const LeftCurlyBraceKey: 219;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const LeftParenthesisKey: 57;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const LeftSquareBracketKey: 219;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const MinusSignKey: 189;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const MultiplicationSignKey: 56;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const PageDownKey: 34;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const PageUpKey: 33;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const PercentSignKey: 53;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const PipeKey: 220;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const PlusSignKey: 187;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const PoundSignKey: 51;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const QuestionMarkKey: 191;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const RightAngleBracketKey: 190;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const RightCurlyBraceKey: 221;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const RightParenthesisKey: 48;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const RightSquareBracketKey: 221;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const SemicolonKey: 186;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const SingleQuoteKey: 222;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const SpacebarKey: 32;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const TabKey: 9;
|
||
|
|
||
|
// @public (undocumented)
|
||
|
export const TildeKey: 192;
|
||
|
|
||
|
|
||
|
// (No @packageDocumentation comment for this package)
|
||
|
|
||
|
```
|