/
magnusroot
/
flutter
Обзор
Документация
Войти
/
magnusroot
/
flutter
Код
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
dev/tools/gen_keycodes/lib/data.dart
30 строк
1010 B
Tong Mu
[Keyboard, iOS] Generate iOS's special key mapping (#106909)
14 июл 2022, 01:40
Не верифицирован
14 июл 2022, 01:40
d87faf9
Код
Авторство
О чём код?
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /// Maps iOS's special key labels to logical key names. /// /// See https://developer.apple.com/documentation/uikit/uikeycommand/input_strings_for_special_keys?language=objc const Map<String, String> kIosSpecialKeyMapping = <String, String>{ 'UIKeyInputEscape': 'Escape', 'UIKeyInputF1': 'F1', 'UIKeyInputF2': 'F2', 'UIKeyInputF3': 'F3', 'UIKeyInputF4': 'F4', 'UIKeyInputF5': 'F5', 'UIKeyInputF6': 'F6', 'UIKeyInputF7': 'F7', 'UIKeyInputF8': 'F8', 'UIKeyInputF9': 'F9', 'UIKeyInputF10': 'F10', 'UIKeyInputF11': 'F11', 'UIKeyInputF12': 'F12', 'UIKeyInputUpArrow': 'ArrowUp', 'UIKeyInputDownArrow': 'ArrowDown', 'UIKeyInputLeftArrow': 'ArrowLeft', 'UIKeyInputRightArrow': 'ArrowRight', 'UIKeyInputHome': 'Home', 'UIKeyInputEnd': 'Enter', 'UIKeyInputPageUp': 'PageUp', 'UIKeyInputPageDown': 'PageDown', };