Package io.flutter.embedding.android
Class KeyboardMap
java.lang.Object
io.flutter.embedding.android.KeyboardMap
Static information used by
KeyEmbedderResponder.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA physicalKey-logicalKey pair used to define mappings.static classAn immutable configuration item that defines how to synchronize pressing modifiers (such as Shift or Ctrl), so that theKeyEmbedderRespondermust synthesize events until the combined pressing state ofKeyboardMap.PressingGoal.keysmatches the true meta state masked byKeyboardMap.PressingGoal.mask.static classA configuration item that defines how to synchronize toggling modifiers (such as CapsLock), so that theKeyEmbedderRespondermust synthesize events until the enabling state of the key matches the true meta state masked byKeyboardMap.TogglingGoal.mask. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longMaps from Android key codesKeyEvent.getKeyCode()to Flutter logical keys.static final longstatic final longstatic final KeyboardMap.PressingGoal[]Maps from Android scan codesKeyEvent.getScanCode()to Flutter physical keys. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic KeyboardMap.TogglingGoal[]A list of toggling modifiers that must be synchronized on each key event.
-
Field Details
-
scanCodeToPhysical
Maps from Android scan codesKeyEvent.getScanCode()to Flutter physical keys. -
keyCodeToLogical
Maps from Android key codesKeyEvent.getKeyCode()to Flutter logical keys. -
pressingGoals
-
kValueMask
public static final long kValueMask- See Also:
-
kUnicodePlane
public static final long kUnicodePlane- See Also:
-
kAndroidPlane
public static final long kAndroidPlane- See Also:
-
-
Constructor Details
-
KeyboardMap
public KeyboardMap()
-
-
Method Details
-
getTogglingGoals
A list of toggling modifiers that must be synchronized on each key event.The list is not a static variable but constructed by a function, because
KeyboardMap.TogglingGoalis mutable.
-