Flutter Engine
The Flutter Engine
|
#import <FlutterChannelKeyResponder.h>
Instance Methods | |
(nonnull instancetype) | - initWithChannel: |
(nonnull instancetype) | - initWithChannel: |
(void) | - handlePress:callback: [implementation] |
(void) | - updatePressedModifiers: [implementation] |
(NSInteger) | - adjustModifiers: [implementation] |
(void) | - checkModifierFlag:forEventFlags:keyCode:timestamp: [implementation] |
(void) | - syncModifiersIfNeeded:timestamp: [implementation] |
(void) | - handleEvent:callback: [implementation] |
Instance Methods inherited from <FlutterKeyPrimaryResponder> | |
(void) | - handlePress:callback: |
(void) | - handleEvent:callback: |
(void) | - syncModifiersIfNeeded:timestamp: |
Properties | |
FlutterBasicMessageChannel * | channel [implementation] |
kKeyboardModifier | pressedModifiers [implementation] |
uint64_t | previouslyPressedFlags [implementation] |
Properties inherited from <FlutterKeyPrimaryResponder> | |
NSMutableDictionary< NSNumber *, NSNumber * > * | layoutMap |
A primary responder of |FlutterKeyboardManager| that handles events by sending the raw information through a method channel.
This class corresponds to the RawKeyboard API in the framework.
A primary responder of |FlutterKeyboardManager| that handles events by sending the raw information through the method channel.
This class communicates with the RawKeyboard API in the framework.
Definition at line 20 of file FlutterChannelKeyResponder.h.
|
implementation |
Definition at line 89 of file FlutterChannelKeyResponder.mm.
|
implementation |
Checks single modifier flag from event flags and sends appropriate key event if it is different from the previous state.
Definition at line 26 of file FlutterChannelKeyResponder.mm.
|
implementation |
Definition at line 26 of file FlutterChannelKeyResponder.mm.
|
implementation |
Process the event.
The |callback| should be called with a value that indicates whether the responder has handled the given press event. The |callback| must be called exactly once, and can be called before the return of this method, or after.
Reimplemented from <FlutterKeyPrimaryResponder>.
Definition at line 89 of file FlutterChannelKeyResponder.mm.
- (nonnull instancetype) initWithChannel: | (nonnull FlutterBasicMessageChannel*) | channel |
Create an instance by specifying the method channel to use.
Definition at line 89 of file FlutterChannelKeyResponder.mm.
- (nonnull instancetype) initWithChannel: | (nonnull FlutterBasicMessageChannel *) | channel |
Create an instance by specifying the method channel to use.
|
implementation |
Synchronize the modifier flags if necessary. The new modifier flag would usually come from mouse event and may be out of sync with current keyboard state if the modifier flags have changed while window was not key.
Reimplemented from <FlutterKeyPrimaryResponder>.
Definition at line 26 of file FlutterChannelKeyResponder.mm.
|
implementation |
Definition at line 89 of file FlutterChannelKeyResponder.mm.
|
readwritenonatomicassignimplementation |
The channel used to communicate with Flutter.
Definition at line 84 of file FlutterChannelKeyResponder.mm.
|
readwritenonatomicassignimplementation |
Definition at line 89 of file FlutterChannelKeyResponder.mm.
|
readwritenonatomicassignimplementation |
The |NSEvent.modifierFlags| of the last event received.
Used to determine whether a FlagsChanged event should count as a keydown or a keyup event.
Definition at line 26 of file FlutterChannelKeyResponder.mm.