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:
L-Sun
2025-04-13 09:59:24 +00:00
parent 076c5ba044
commit e1cb8198f1
5 changed files with 43 additions and 33 deletions

View File

@@ -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;
}