#import <FlutterKeyPrimaryResponder.h>
Instance Methods | |
(void) | - handleEvent:callback: |
(void) | - syncModifiersIfNeeded:timestamp: |
Properties | |
NSMutableDictionary< NSNumber *, NSNumber * > * | layoutMap |
An interface for a responder that can process a key event and decides whether to handle an event asynchronously.
To use this class, add it to a |FlutterKeyboardManager| with |addPrimaryResponder|.
Definition at line 18 of file FlutterKeyPrimaryResponder.h.
|
required |
Process the event.
The |callback| should be called with a value that indicates whether the responder has handled the given event. The |callback| must be called exactly once, and can be called before the return of this method, or after.
Referenced by flutter::testing::TEST(), and flutter::testing::TEST_F().
|
required |
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 in FlutterEmbedderKeyResponder.
Referenced by FlutterKeyboardManager::syncModifiersIfNeeded:timestamp:.
|
readwriterequirednonatomicstrong |
Definition at line 46 of file FlutterKeyPrimaryResponder.h.
Referenced by FlutterKeyboardManager::initWithViewDelegate:, and flutter::testing::TEST_F().