mirror of
https://gitee.com/openharmony/inputmethod_imf
synced 2024-12-18 04:10:21 +00:00
修改选择输入法弹窗的窗口类型。
Signed-off-by: Hollokin <taoyuxin2@huawei.com>
This commit is contained in:
parent
98c69b6f64
commit
780c122372
@ -37,7 +37,7 @@ export default class ServiceExtAbility extends ServiceExtensionAbility {
|
||||
height: 300,
|
||||
}
|
||||
this.getInputMethods().then(() => {
|
||||
this.createWindow("inputmethod Dialog:" + startId, window.WindowType.TYPE_DIALOG, dialogRect)
|
||||
this.createWindow("inputmethod Dialog:" + startId, window.WindowType.TYPE_FLOAT, dialogRect)
|
||||
})
|
||||
}).catch((err) => {
|
||||
console.log(TAG + "getDefaultDisplay err: " + JSON.stringify(err));
|
||||
|
@ -27,6 +27,9 @@
|
||||
"requestPermissions": [
|
||||
{
|
||||
"name": "ohos.permission.CONNECT_IME_ABILITY"
|
||||
},
|
||||
{
|
||||
"name": "ohos.permission.SYSTEM_FLOAT_WINDOW"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user