Package io.flutter.embedding.android
Class KeyboardMap
- java.lang.Object
-
- io.flutter.embedding.android.KeyboardMap
-
public class KeyboardMap extends Object
Static information used byKeyEmbedderResponder.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKeyboardMap.KeyPairA physicalKey-logicalKey pair used to define mappings.static classKeyboardMap.PressingGoalAn 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 classKeyboardMap.TogglingGoalA 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
Fields Modifier and Type Field Description static longkAndroidPlanestatic HashMap<Long,Long>keyCodeToLogicalMaps from Android key codesKeyEvent.getKeyCode()to Flutter logical keys.static longkUnicodePlanestatic longkValueMaskstatic KeyboardMap.PressingGoal[]pressingGoalsstatic HashMap<Long,Long>scanCodeToPhysicalMaps from Android scan codesKeyEvent.getScanCode()to Flutter physical keys.
-
Constructor Summary
Constructors Constructor Description KeyboardMap()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KeyboardMap.TogglingGoal[]getTogglingGoals()A list of toggling modifiers that must be synchronized on each key event.
-
-
-
Field Detail
-
scanCodeToPhysical
public static final HashMap<Long,Long> scanCodeToPhysical
Maps from Android scan codesKeyEvent.getScanCode()to Flutter physical keys.
-
keyCodeToLogical
public static final HashMap<Long,Long> keyCodeToLogical
Maps from Android key codesKeyEvent.getKeyCode()to Flutter logical keys.
-
pressingGoals
public static final KeyboardMap.PressingGoal[] pressingGoals
-
kValueMask
public static final long kValueMask
- See Also:
- Constant Field Values
-
kUnicodePlane
public static final long kUnicodePlane
- See Also:
- Constant Field Values
-
kAndroidPlane
public static final long kAndroidPlane
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTogglingGoals
public static KeyboardMap.TogglingGoal[] 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.
-
-