Adds macOS raw keyboard mapping (#29231)
This commit is contained in:
committed by
GitHub
parent
75c50da5f6
commit
c163ed9618
@@ -38,3 +38,15 @@ const Map<int, LogicalKeyboardKey> kFuchsiaToLogicalKey = <int, LogicalKeyboardK
|
||||
const Map<int, PhysicalKeyboardKey> kFuchsiaToPhysicalKey = <int, PhysicalKeyboardKey>{
|
||||
@@@FUCHSIA_SCAN_CODE_MAP@@@
|
||||
};
|
||||
|
||||
/// Maps macOS-specific key code values representing [PhysicalKeyboardKey].
|
||||
const Map<int, PhysicalKeyboardKey> kMacOsToPhysicalKey = <int, PhysicalKeyboardKey>{
|
||||
@@@MACOS_SCAN_CODE_MAP@@@
|
||||
};
|
||||
|
||||
/// 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.
|
||||
const Map<int, LogicalKeyboardKey> kMacOsNumPadMap = <int, LogicalKeyboardKey>{
|
||||
@@@MACOS_NUMPAD_MAP@@@
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user