Flutter Engine
The Flutter Engine
Classes | Static Public Member Functions | Static Public Attributes | List of all members
io.flutter.embedding.android.KeyboardMap Class Reference

Classes

class  KeyPair
 
class  PressingGoal
 
class  TogglingGoal
 

Static Public Member Functions

static TogglingGoal[] getTogglingGoals ()
 

Static Public Attributes

static final HashMap< Long, Long > scanCodeToPhysical
 
static final HashMap< Long, Long > keyCodeToLogical
 
static final PressingGoal[] pressingGoals
 
static final long kValueMask = 0x000ffffffffL
 
static final long kUnicodePlane = 0x00000000000L
 
static final long kAndroidPlane = 0x01100000000L
 

Detailed Description

Static information used by KeyEmbedderResponder.

Definition at line 18 of file KeyboardMap.java.

Member Function Documentation

◆ getTogglingGoals()

static TogglingGoal[] io.flutter.embedding.android.KeyboardMap.getTogglingGoals ( )
inlinestatic

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 TogglingGoal is mutable.

Definition at line 609 of file KeyboardMap.java.

609 {
610 return new TogglingGoal[] {
611 new TogglingGoal(KeyEvent.META_CAPS_LOCK_ON, 0x00070039L, 0x0100000104L),
612 };
613 }

Member Data Documentation

◆ kAndroidPlane

final long io.flutter.embedding.android.KeyboardMap.kAndroidPlane = 0x01100000000L
static

Definition at line 617 of file KeyboardMap.java.

◆ keyCodeToLogical

final HashMap<Long, Long> io.flutter.embedding.android.KeyboardMap.keyCodeToLogical
static

Maps from Android key codes KeyEvent#getKeyCode() to Flutter logical keys.

Definition at line 313 of file KeyboardMap.java.

◆ kUnicodePlane

final long io.flutter.embedding.android.KeyboardMap.kUnicodePlane = 0x00000000000L
static

Definition at line 616 of file KeyboardMap.java.

◆ kValueMask

final long io.flutter.embedding.android.KeyboardMap.kValueMask = 0x000ffffffffL
static

Definition at line 615 of file KeyboardMap.java.

◆ pressingGoals

final PressingGoal [] io.flutter.embedding.android.KeyboardMap.pressingGoals
static
Initial value:
=
new PressingGoal[] {
new PressingGoal(
KeyEvent.META_CTRL_ON,
new KeyPair[] {
new KeyPair(0x000700e0L, 0x0200000100L),
new KeyPair(0x000700e4L, 0x0200000101L),
}),
new PressingGoal(
KeyEvent.META_SHIFT_ON,
new KeyPair[] {
new KeyPair(0x000700e1L, 0x0200000102L),
new KeyPair(0x000700e5L, 0x0200000103L),
}),
new PressingGoal(
KeyEvent.META_ALT_ON,
new KeyPair[] {
new KeyPair(0x000700e2L, 0x0200000104L),
new KeyPair(0x000700e6L, 0x0200000105L),
}),
}

Definition at line 581 of file KeyboardMap.java.

◆ scanCodeToPhysical

final HashMap<Long, Long> io.flutter.embedding.android.KeyboardMap.scanCodeToPhysical
static

Maps from Android scan codes KeyEvent#getScanCode() to Flutter physical keys.

Definition at line 72 of file KeyboardMap.java.


The documentation for this class was generated from the following file: