kMacOsNumPadMap top-level constant

const kMacOsNumPadMap = <int, LogicalKeyboardKey>{75 : LogicalKeyboardKey.numpadDivide, 67 : LogicalKeyboardKey.numpadMultiply, 78 : LogicalKeyboardKey.numpadSubtract, 69 : LogicalKeyboardKey.numpadAdd, 83 : LogicalKeyboardKey.numpad1, 84 : LogicalKeyboardKey.numpad2, 85 : LogicalKeyboardKey.numpad3, 86 : LogicalKeyboardKey.numpad4, 87 : LogicalKeyboardKey.numpad5, 88 : LogicalKeyboardKey.numpad6, 89 : LogicalKeyboardKey.numpad7, 91 : LogicalKeyboardKey.numpad8, 92 : LogicalKeyboardKey.numpad9, 82 : LogicalKeyboardKey.numpad0, 65 : LogicalKeyboardKey.numpadDecimal, 81 : LogicalKeyboardKey.numpadEqual, 95 : LogicalKeyboardKey.numpadComma}

A map of macOS key codes which have printable representations, but appear on the number pad. Used to provide different key objects for keys like KEY_EQUALS and NUMPAD_EQUALS.

Implementation

const Map<int, LogicalKeyboardKey> kMacOsNumPadMap = <int, LogicalKeyboardKey>{
  0x0000004b: LogicalKeyboardKey.numpadDivide,
  0x00000043: LogicalKeyboardKey.numpadMultiply,
  0x0000004e: LogicalKeyboardKey.numpadSubtract,
  0x00000045: LogicalKeyboardKey.numpadAdd,
  0x00000053: LogicalKeyboardKey.numpad1,
  0x00000054: LogicalKeyboardKey.numpad2,
  0x00000055: LogicalKeyboardKey.numpad3,
  0x00000056: LogicalKeyboardKey.numpad4,
  0x00000057: LogicalKeyboardKey.numpad5,
  0x00000058: LogicalKeyboardKey.numpad6,
  0x00000059: LogicalKeyboardKey.numpad7,
  0x0000005b: LogicalKeyboardKey.numpad8,
  0x0000005c: LogicalKeyboardKey.numpad9,
  0x00000052: LogicalKeyboardKey.numpad0,
  0x00000041: LogicalKeyboardKey.numpadDecimal,
  0x00000051: LogicalKeyboardKey.numpadEqual,
  0x0000005f: LogicalKeyboardKey.numpadComma,
}