mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-17 06:16:59 +08:00
fix(editor): android bs keyboard provider error (#11647)
### What Changes - fixed keyboard service can not be initialized since a anonymous `BSKeyboardWithActionService` class was provider to di - fixed tool panel was not closed when focus on other pragraph by clicking - optimized code structure of fallback `show` and `hide` of keyboard
This commit is contained in:
@@ -15,3 +15,9 @@ export interface VirtualKeyboardProviderWithAction
|
||||
export const VirtualKeyboardProvider = createIdentifier<
|
||||
VirtualKeyboardProvider | VirtualKeyboardProviderWithAction
|
||||
>('VirtualKeyboardProvider');
|
||||
|
||||
export function isVirtualKeyboardProviderWithAction(
|
||||
provider: VirtualKeyboardProvider
|
||||
): provider is VirtualKeyboardProviderWithAction {
|
||||
return 'show' in provider && 'hide' in provider;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user