scoop:scoop.window:0.1.0
src/input/key_names.scoop
Selected production source · src/input/key_names.scoop
1
package scoop.window3
internal fun physicalKeyName(key: KeyCode): String =4
when (key) {5
case KeyA -> "KeyA"6
case KeyB -> "KeyB"7
case KeyC -> "KeyC"8
case KeyD -> "KeyD"9
case KeyE -> "KeyE"10
case KeyF -> "KeyF"11
case KeyG -> "KeyG"12
case KeyH -> "KeyH"13
case KeyI -> "KeyI"14
case KeyJ -> "KeyJ"15
case KeyK -> "KeyK"16
case KeyL -> "KeyL"17
case KeyM -> "KeyM"18
case KeyN -> "KeyN"19
case KeyO -> "KeyO"20
case KeyP -> "KeyP"21
case KeyQ -> "KeyQ"22
case KeyR -> "KeyR"23
case KeyS -> "KeyS"24
case KeyT -> "KeyT"25
case KeyU -> "KeyU"26
case KeyV -> "KeyV"27
case KeyW -> "KeyW"28
case KeyX -> "KeyX"29
case KeyY -> "KeyY"30
case KeyZ -> "KeyZ"31
case Digit0 -> "Digit0"32
case Digit1 -> "Digit1"33
case Digit2 -> "Digit2"34
case Digit3 -> "Digit3"35
case Digit4 -> "Digit4"36
case Digit5 -> "Digit5"37
case Digit6 -> "Digit6"38
case Digit7 -> "Digit7"39
case Digit8 -> "Digit8"40
case Digit9 -> "Digit9"41
case Backquote -> "Backquote"42
case Backslash -> "Backslash"43
case BracketLeft -> "BracketLeft"44
case BracketRight -> "BracketRight"45
case Comma -> "Comma"46
case Equal -> "Equal"47
case Minus -> "Minus"48
case Period -> "Period"49
case Quote -> "Quote"50
case Semicolon -> "Semicolon"51
case Slash -> "Slash"52
case IntlBackslash -> "IntlBackslash"53
case IntlYen -> "IntlYen"54
case IntlRo -> "IntlRo"55
case Lang1 -> "Lang1"56
case Lang2 -> "Lang2"57
case Enter -> "Enter"58
case Tab -> "Tab"59
case Space -> "Space"60
case Backspace -> "Backspace"61
case Escape -> "Escape"62
case CapsLock -> "CapsLock"63
case NumLock -> "NumLock"64
case ScrollLock -> "ScrollLock"65
case Insert -> "Insert"66
case PrintScreen -> "PrintScreen"67
case Pause -> "Pause"68
case Fn -> "Fn"69
case SuperLeft -> "SuperLeft"70
case SuperRight -> "SuperRight"71
case ShiftLeft -> "ShiftLeft"72
case ShiftRight -> "ShiftRight"73
case ControlLeft -> "ControlLeft"74
case ControlRight -> "ControlRight"75
case AltLeft -> "AltLeft"76
case AltRight -> "AltRight"77
case ArrowLeft -> "ArrowLeft"78
case ArrowRight -> "ArrowRight"79
case ArrowUp -> "ArrowUp"80
case ArrowDown -> "ArrowDown"81
case Delete -> "Delete"82
case Home -> "Home"83
case End -> "End"84
case PageUp -> "PageUp"85
case PageDown -> "PageDown"86
case Help -> "Help"87
case ContextMenu -> "ContextMenu"88
case F1 -> "F1"89
case F2 -> "F2"90
case F3 -> "F3"91
case F4 -> "F4"92
case F5 -> "F5"93
case F6 -> "F6"94
case F7 -> "F7"95
case F8 -> "F8"96
case F9 -> "F9"97
case F10 -> "F10"98
case F11 -> "F11"99
case F12 -> "F12"100
case F13 -> "F13"101
case F14 -> "F14"102
case F15 -> "F15"103
case F16 -> "F16"104
case F17 -> "F17"105
case F18 -> "F18"106
case F19 -> "F19"107
case F20 -> "F20"108
case AudioVolumeUp -> "AudioVolumeUp"109
case AudioVolumeDown -> "AudioVolumeDown"110
case AudioVolumeMute -> "AudioVolumeMute"111
case Numpad0 -> "Numpad0"112
case Numpad1 -> "Numpad1"113
case Numpad2 -> "Numpad2"114
case Numpad3 -> "Numpad3"115
case Numpad4 -> "Numpad4"116
case Numpad5 -> "Numpad5"117
case Numpad6 -> "Numpad6"118
case Numpad7 -> "Numpad7"119
case Numpad8 -> "Numpad8"120
case Numpad9 -> "Numpad9"121
case NumpadAdd -> "NumpadAdd"122
case NumpadSubtract -> "NumpadSubtract"123
case NumpadMultiply -> "NumpadMultiply"124
case NumpadDivide -> "NumpadDivide"125
case NumpadDecimal -> "NumpadDecimal"126
case NumpadEqual -> "NumpadEqual"127
case NumpadEnter -> "NumpadEnter"128
case NumpadClear -> "NumpadClear"129
case NumpadComma -> "NumpadComma"130
}