Package io.flutter.embedding.android
Class KeyboardMap
java.lang.Object
io.flutter.embedding.android.KeyboardMap
Static information used by
KeyEmbedderResponder
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A physicalKey-logicalKey pair used to define mappings.static class
An immutable configuration item that defines how to synchronize pressing modifiers (such as Shift or Ctrl), so that theKeyEmbedderResponder
must synthesize events until the combined pressing state ofKeyboardMap.PressingGoal.keys
matches the true meta state masked byKeyboardMap.PressingGoal.mask
.static class
A configuration item that defines how to synchronize toggling modifiers (such as CapsLock), so that theKeyEmbedderResponder
must synthesize events until the enabling state of the key matches the true meta state masked byKeyboardMap.TogglingGoal.mask
. -
Field Summary
Modifier and TypeFieldDescriptionstatic final long
Maps from Android key codesKeyEvent.getKeyCode()
to Flutter logical keys.static final long
static final long
static final KeyboardMap.PressingGoal[]
Maps from Android scan codesKeyEvent.getScanCode()
to Flutter physical keys. -
Constructor Summary
-
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.TogglingGoal
is mutable.
-