| Flutter iOS Embedder |

Variables
KeyCodeMap.g.mm File Reference
`#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

## Variable Documentation

## ◆ functionKeyCodes

const std::set<uint32_t> functionKeyCodes

Initial value:
= {
0x0000003a,
0x0000003b,
0x0000003c,
0x0000003d,
0x0000003e,
0x0000003f,
0x00000040,
0x00000041,
0x00000042,
0x00000043,
0x00000044,
0x00000045,
0x00000068,
0x00000069,
0x0000006a,
0x0000006b,
0x0000006c,
0x0000006d,
0x0000006e,
0x0000006f,
0x00000070,
0x00000071,
0x00000072,
0x00000073,
}

A set of keycodes corresponding to function keys.

Definition at line 304 of file KeyCodeMap.g.mm.

## ◆ keyCodeToLogicalKey

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.

## ◆ keyCodeToModifierFlag

const std::map<uint32_t, ModifierFlag> keyCodeToModifierFlag

Initial value:
= {
{0x000000e1, kModifierFlagShiftLeft},
{0x000000e5, kModifierFlagShiftRight},
{0x000000e0, kModifierFlagControlLeft},
{0x000000e4, kModifierFlagControlRight},
{0x000000e2, kModifierFlagAltLeft},
{0x000000e6, kModifierFlagAltRight},
{0x000000e3, kModifierFlagMetaLeft},
{0x000000e7, kModifierFlagMetaRight},
}

Map |UIKey.keyCode| to the matching sided modifier in UIEventModifierFlags.

Definition at line 279 of file KeyCodeMap.g.mm.

## ◆ keyCodeToPhysicalKey

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.

## ◆ kIosPlane

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.

## ◆ kUnicodePlane

const uint64_t kUnicodePlane = 0x00000000000

The plane value for keys which have a Unicode representation.

Definition at line 27 of file KeyCodeMap.g.mm.

## ◆ kValueMask

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.

## ◆ modifierFlagToKeyCode

const std::map<ModifierFlag, uint32_t> modifierFlagToKeyCode

Initial value:
= {
{kModifierFlagShiftLeft, 0x000000e1},
{kModifierFlagShiftRight, 0x000000e5},
{kModifierFlagControlLeft, 0x000000e0},
{kModifierFlagControlRight, 0x000000e4},
{kModifierFlagAltLeft, 0x000000e2},
{kModifierFlagAltRight, 0x000000e6},
{kModifierFlagMetaLeft, 0x000000e3},
{kModifierFlagMetaRight, 0x000000e7},
}

Map a bit of bitmask of sided modifiers in UIEventModifierFlags to their corresponding |UIKey.keyCode|.

Definition at line 291 of file KeyCodeMap.g.mm.

kModifierFlagShiftRight
@ kModifierFlagShiftRight
Definition: KeyCodeMap_Internal.h:64
kModifierFlagControlRight
@ kModifierFlagControlRight
Definition: KeyCodeMap_Internal.h:69
kModifierFlagShiftLeft
@ kModifierFlagShiftLeft
Definition: KeyCodeMap_Internal.h:63
kModifierFlagAltRight
@ kModifierFlagAltRight
Definition: KeyCodeMap_Internal.h:68
kModifierFlagMetaLeft
@ kModifierFlagMetaLeft
Definition: KeyCodeMap_Internal.h:65
kModifierFlagMetaRight
@ kModifierFlagMetaRight
Definition: KeyCodeMap_Internal.h:66
kModifierFlagAltLeft
@ kModifierFlagAltLeft
Definition: KeyCodeMap_Internal.h:67
kModifierFlagControlLeft
@ kModifierFlagControlLeft
Definition: KeyCodeMap_Internal.h:62