-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Logic for dead keys handling added. See #24249 (comment) See #24249 (comment)
- Loading branch information
1 parent
9cb34ae
commit 5011334
Showing
27 changed files
with
1,592 additions
and
218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
131 changes: 131 additions & 0 deletions
131
packages/playwright-core/src/server/keyboards/layouts/00000406.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
/** | ||
* Copyright (c) Microsoft Corporation. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
// This file is generated by generate_keyboard_layouts.js, do not edit manually. | ||
|
||
import type { KeyboardLayout } from '../types'; | ||
|
||
// KLID 00000406 - Danish | ||
const keyboardLayout: KeyboardLayout = { | ||
Escape: { key: 'Escape', keyCode: 27 }, | ||
F1: { key: 'F1', keyCode: 112 }, | ||
F2: { key: 'F2', keyCode: 113 }, | ||
F3: { key: 'F3', keyCode: 114 }, | ||
F4: { key: 'F4', keyCode: 115 }, | ||
F5: { key: 'F5', keyCode: 116 }, | ||
F6: { key: 'F6', keyCode: 117 }, | ||
F7: { key: 'F7', keyCode: 118 }, | ||
F8: { key: 'F8', keyCode: 119 }, | ||
F9: { key: 'F9', keyCode: 120 }, | ||
F10: { key: 'F10', keyCode: 121 }, | ||
F11: { key: 'F11', keyCode: 122 }, | ||
F12: { key: 'F12', keyCode: 123 }, | ||
Backquote: { key: '½', keyCode: 220, shiftKey: '§' }, | ||
Digit1: { key: '1', keyCode: 49, shiftKey: '!' }, | ||
Digit2: { key: '2', keyCode: 50, shiftKey: '"' }, | ||
Digit3: { key: '3', keyCode: 51, shiftKey: '#' }, | ||
Digit4: { key: '4', keyCode: 52, shiftKey: '¤' }, | ||
Digit5: { key: '5', keyCode: 53, shiftKey: '%' }, | ||
Digit6: { key: '6', keyCode: 54, shiftKey: '&' }, | ||
Digit7: { key: '7', keyCode: 55, shiftKey: '/' }, | ||
Digit8: { key: '8', keyCode: 56, shiftKey: '(' }, | ||
Digit9: { key: '9', keyCode: 57, shiftKey: ')' }, | ||
Digit0: { key: '0', keyCode: 48, shiftKey: '=' }, | ||
Minus: { key: '+', keyCode: 187, shiftKey: '?' }, | ||
Equal: { key: '´', keyCode: 219, shiftKey: '`', deadKeyMappings: { 'a': 'á', 'e': 'é', 'i': 'í', 'o': 'ó', 'u': 'ú', 'y': 'ý', 'A': 'Á', 'E': 'É', 'I': 'Í', 'O': 'Ó', 'U': 'Ú', 'Y': 'Ý', ' ': '´' }, shiftDeadKeyMappings: { 'a': 'à', 'e': 'è', 'i': 'ì', 'o': 'ò', 'u': 'ù', 'A': 'À', 'E': 'È', 'I': 'Ì', 'O': 'Ò', 'U': 'Ù', ' ': '`' } }, | ||
Backspace: { key: 'Backspace', keyCode: 8 }, | ||
Tab: { key: 'Tab', keyCode: 9 }, | ||
KeyQ: { key: 'q', keyCode: 81, shiftKey: 'Q' }, | ||
KeyW: { key: 'w', keyCode: 87, shiftKey: 'W' }, | ||
KeyE: { key: 'e', keyCode: 69, shiftKey: 'E' }, | ||
KeyR: { key: 'r', keyCode: 82, shiftKey: 'R' }, | ||
KeyT: { key: 't', keyCode: 84, shiftKey: 'T' }, | ||
KeyY: { key: 'y', keyCode: 89, shiftKey: 'Y' }, | ||
KeyU: { key: 'u', keyCode: 85, shiftKey: 'U' }, | ||
KeyI: { key: 'i', keyCode: 73, shiftKey: 'I' }, | ||
KeyO: { key: 'o', keyCode: 79, shiftKey: 'O' }, | ||
KeyP: { key: 'p', keyCode: 80, shiftKey: 'P' }, | ||
BracketLeft: { key: 'å', keyCode: 221, shiftKey: 'Å' }, | ||
BracketRight: { key: '¨', keyCode: 186, shiftKey: '^', deadKeyMappings: { 'a': 'ä', 'e': 'ë', 'i': 'ï', 'o': 'ö', 'u': 'ü', 'y': 'ÿ', 'A': 'Ä', 'E': 'Ë', 'I': 'Ï', 'O': 'Ö', 'U': 'Ü', ' ': '¨' }, shiftDeadKeyMappings: { 'a': 'â', 'e': 'ê', 'i': 'î', 'o': 'ô', 'u': 'û', 'A': 'Â', 'E': 'Ê', 'I': 'Î', 'O': 'Ô', 'U': 'Û', ' ': '^' } }, | ||
Enter: { key: 'Enter', keyCode: 13, text: '\r' }, | ||
CapsLock: { key: 'CapsLock', keyCode: 20 }, | ||
KeyA: { key: 'a', keyCode: 65, shiftKey: 'A' }, | ||
KeyS: { key: 's', keyCode: 83, shiftKey: 'S' }, | ||
KeyD: { key: 'd', keyCode: 68, shiftKey: 'D' }, | ||
KeyF: { key: 'f', keyCode: 70, shiftKey: 'F' }, | ||
KeyG: { key: 'g', keyCode: 71, shiftKey: 'G' }, | ||
KeyH: { key: 'h', keyCode: 72, shiftKey: 'H' }, | ||
KeyJ: { key: 'j', keyCode: 74, shiftKey: 'J' }, | ||
KeyK: { key: 'k', keyCode: 75, shiftKey: 'K' }, | ||
KeyL: { key: 'l', keyCode: 76, shiftKey: 'L' }, | ||
Semicolon: { key: 'æ', keyCode: 192, shiftKey: 'Æ' }, | ||
Quote: { key: 'ø', keyCode: 222, shiftKey: 'Ø' }, | ||
Backslash: { key: '\'', keyCode: 191, shiftKey: '*' }, | ||
ShiftLeft: { key: 'Shift', keyCode: 160, keyCodeWithoutLocation: 16, location: 1 }, | ||
IntlBackslash: { key: '<', keyCode: 226, shiftKey: '>' }, | ||
KeyZ: { key: 'z', keyCode: 90, shiftKey: 'Z' }, | ||
KeyX: { key: 'x', keyCode: 88, shiftKey: 'X' }, | ||
KeyC: { key: 'c', keyCode: 67, shiftKey: 'C' }, | ||
KeyV: { key: 'v', keyCode: 86, shiftKey: 'V' }, | ||
KeyB: { key: 'b', keyCode: 66, shiftKey: 'B' }, | ||
KeyN: { key: 'n', keyCode: 78, shiftKey: 'N' }, | ||
KeyM: { key: 'm', keyCode: 77, shiftKey: 'M' }, | ||
Comma: { key: ',', keyCode: 188, shiftKey: ';' }, | ||
Period: { key: '.', keyCode: 190, shiftKey: ':' }, | ||
Slash: { key: '-', keyCode: 189, shiftKey: '_' }, | ||
ShiftRight: { key: 'Shift', keyCode: 161, keyCodeWithoutLocation: 16, location: 2 }, | ||
ControlLeft: { key: 'Control', keyCode: 162, keyCodeWithoutLocation: 17, location: 1 }, | ||
MetaLeft: { key: 'Meta', keyCode: 91, location: 1 }, | ||
AltLeft: { key: 'Alt', keyCode: 164, keyCodeWithoutLocation: 18, location: 1 }, | ||
Space: { key: ' ', keyCode: 32 }, | ||
AltRight: { key: 'Alt', keyCode: 165, keyCodeWithoutLocation: 18, location: 2 }, | ||
AltGraph: { key: 'AltGraph', keyCode: 225 }, | ||
MetaRight: { key: 'Meta', keyCode: 92, location: 2 }, | ||
ContextMenu: { key: 'ContextMenu', keyCode: 93 }, | ||
ControlRight: { key: 'Control', keyCode: 163, keyCodeWithoutLocation: 17, location: 2 }, | ||
PrintScreen: { key: 'PrintScreen', keyCode: 44 }, | ||
ScrollLock: { key: 'ScrollLock', keyCode: 145 }, | ||
Pause: { key: 'Pause', keyCode: 19 }, | ||
PageUp: { key: 'PageUp', keyCode: 33 }, | ||
PageDown: { key: 'PageDown', keyCode: 34 }, | ||
Insert: { key: 'Insert', keyCode: 45 }, | ||
Delete: { key: 'Delete', keyCode: 46 }, | ||
Home: { key: 'Home', keyCode: 36 }, | ||
End: { key: 'End', keyCode: 35 }, | ||
ArrowLeft: { key: 'ArrowLeft', keyCode: 37 }, | ||
ArrowUp: { key: 'ArrowUp', keyCode: 38 }, | ||
ArrowRight: { key: 'ArrowRight', keyCode: 39 }, | ||
ArrowDown: { key: 'ArrowDown', keyCode: 40 }, | ||
NumLock: { key: 'NumLock', keyCode: 144 }, | ||
NumpadDivide: { key: '/', keyCode: 111, location: 3 }, | ||
NumpadMultiply: { key: '*', keyCode: 106, location: 3 }, | ||
NumpadSubtract: { key: '-', keyCode: 109, location: 3 }, | ||
Numpad7: { key: 'Home', keyCode: 36, shiftKey: '7', shiftKeyCode: 103, location: 3 }, | ||
Numpad8: { key: 'ArrowUp', keyCode: 38, shiftKey: '8', shiftKeyCode: 104, location: 3 }, | ||
Numpad9: { key: 'PageUp', keyCode: 33, shiftKey: '9', shiftKeyCode: 105, location: 3 }, | ||
Numpad4: { key: 'ArrowLeft', keyCode: 37, shiftKey: '4', shiftKeyCode: 100, location: 3 }, | ||
Numpad5: { key: 'Clear', keyCode: 12, shiftKey: '5', shiftKeyCode: 101, location: 3 }, | ||
Numpad6: { key: 'ArrowRight', keyCode: 39, shiftKey: '6', shiftKeyCode: 102, location: 3 }, | ||
NumpadAdd: { key: '+', keyCode: 107, location: 3 }, | ||
Numpad1: { key: 'End', keyCode: 35, shiftKey: '1', shiftKeyCode: 97, location: 3 }, | ||
Numpad2: { key: 'ArrowDown', keyCode: 40, shiftKey: '2', shiftKeyCode: 98, location: 3 }, | ||
Numpad3: { key: 'PageDown', keyCode: 34, shiftKey: '3', shiftKeyCode: 99, location: 3 }, | ||
Numpad0: { key: 'Insert', keyCode: 45, shiftKey: '0', shiftKeyCode: 96, location: 3 }, | ||
NumpadDecimal: { key: '\u0000', keyCode: 46, shiftKey: '.', shiftKeyCode: 110, location: 3 }, | ||
NumpadEnter: { key: 'Enter', keyCode: 13, text: '\r', location: 3 }, | ||
}; | ||
|
||
export default keyboardLayout; |
Oops, something went wrong.