AppFlowyKeyboardService class abstract

AppFlowyKeyboardService is responsible for processing shortcut keys, like command, shift, control keys.

Usually, this service can be obtained by the following code.

final keyboardService = editorState.service.keyboardService;

/** Simulates shortcut key input*/
keyboardService?.onKey(...);

/** Enables or disables this service */
keyboardService?.enable();
keyboardService?.disable();
Implementers

Constructors

AppFlowyKeyboardService()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

closeKeyboard() → void
Closes the keyboard
disable({bool showCursor = false, UnfocusDisposition disposition = UnfocusDisposition.scope}) → void
Disables IME shortcuts service.
disableShortcuts() → void
Disable the keyboard shortcuts
enable() → void
Enables IME shortcuts service.
enableKeyBoard(Selection selection) → void
Enable the keyboard in mobile
enableShortcuts() → void
Enable the keyboard shortcuts
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerInterceptor(AppFlowyKeyboardServiceInterceptor interceptor) → void
Register interceptor
toString() → String
A string representation of this object.
inherited
unregisterInterceptor(AppFlowyKeyboardServiceInterceptor interceptor) → void
Unregister interceptor

Operators

operator ==(Object other) → bool
The equality operator.
inherited