Flutter Engine
The Flutter Engine
|
#include <map>
#include <set>
#include "flutter/shell/platform/darwin/ios/framework/Source/KeyCodeMap_Internal.h"
Go to the source code of this file.
Variables | |
const uint64_t | kValueMask = 0x000ffffffff |
const uint64_t | kUnicodePlane = 0x00000000000 |
const uint64_t | kIosPlane = 0x01300000000 |
const std::map< uint32_t, uint64_t > | keyCodeToPhysicalKey |
const std::map< uint32_t, uint64_t > | keyCodeToLogicalKey |
const std::map< uint32_t, ModifierFlag > | keyCodeToModifierFlag |
const std::map< ModifierFlag, uint32_t > | modifierFlagToKeyCode |
const std::set< uint32_t > | functionKeyCodes |
NSDictionary< NSString *, NSNumber * > * | specialKeyMapping |
const uint64_t | kCapsLockPhysicalKey = 0x00070039 |
const uint64_t | kCapsLockLogicalKey = 0x100000104 |
const std::set<uint32_t> functionKeyCodes |
A set of keycodes corresponding to function keys.
Definition at line 304 of file KeyCodeMap.g.mm.
const uint64_t kCapsLockLogicalKey = 0x100000104 |
The logical key for CapsLock, which needs special handling.
Definition at line 357 of file KeyCodeMap.g.mm.
const uint64_t kCapsLockPhysicalKey = 0x00070039 |
The physical key for CapsLock, which needs special handling.
Definition at line 356 of file KeyCodeMap.g.mm.
const std::map<uint32_t, uint64_t> keyCodeToLogicalKey |
A map from iOS key codes to Flutter's logical key values.
This is used to derive logical keys that can't or shouldn't be derived from |charactersIgnoringModifiers|.
Definition at line 201 of file KeyCodeMap.g.mm.
const std::map<uint32_t, ModifierFlag> keyCodeToModifierFlag |
Map |UIKey.keyCode| to the matching sided modifier in UIEventModifierFlags.
Definition at line 279 of file KeyCodeMap.g.mm.
const std::map<uint32_t, uint64_t> keyCodeToPhysicalKey |
Maps iOS-specific key code values representing |PhysicalKeyboardKey|.
MacOS doesn't provide a scan code, but a virtual keycode to represent a physical key.
Definition at line 37 of file KeyCodeMap.g.mm.
const uint64_t kIosPlane = 0x01300000000 |
The plane value for the private keys defined by the iOS embedding.
Definition at line 32 of file KeyCodeMap.g.mm.
const uint64_t kUnicodePlane = 0x00000000000 |
The plane value for keys which have a Unicode representation.
Definition at line 27 of file KeyCodeMap.g.mm.
const uint64_t kValueMask = 0x000ffffffff |
Mask for the 32-bit value portion of the key code.
Definition at line 22 of file KeyCodeMap.g.mm.
const std::map<ModifierFlag, uint32_t> modifierFlagToKeyCode |
Map a bit of bitmask of sided modifiers in UIEventModifierFlags to their corresponding |UIKey.keyCode|.
Definition at line 291 of file KeyCodeMap.g.mm.
NSDictionary<NSString*, NSNumber*>* specialKeyMapping |
Maps iOS specific string values of nonvisible keys to logical keys.
TODO(dkwingsmt): Change this getter function to a global variable. I tried to do this but the unit test on CI threw errors saying "message sent to deallocated instance" on the NSDictionary.
Definition at line 332 of file KeyCodeMap.g.mm.