未验证 提交 16e1ab3b 编写于 作者: O openharmony_ci 提交者: Gitee

!22423 【inputmethod】更正panelinfo

Merge pull request !22423 from mashaoyin/master
...@@ -504,8 +504,8 @@ createPanel(ctx: BaseContext, info: PanelInfo, callback: AsyncCallback\<Panel>): ...@@ -504,8 +504,8 @@ createPanel(ctx: BaseContext, info: PanelInfo, callback: AsyncCallback\<Panel>):
```js ```js
let panelInfo: inputMethodEngine.PanelInfo = { let panelInfo: inputMethodEngine.PanelInfo = {
panelType: inputMethodEngine.PanelType.SOFT_KEYBOARD, type: inputMethodEngine.PanelType.SOFT_KEYBOARD,
panelFlag: inputMethodEngine.PanelFlag.FLG_FIXED flag: inputMethodEngine.PanelFlag.FLG_FIXED
} }
try { try {
inputMethodEngine.getInputMethodAbility().createPanel(this.context, panelInfo, (err, panel) => { inputMethodEngine.getInputMethodAbility().createPanel(this.context, panelInfo, (err, panel) => {
...@@ -550,8 +550,8 @@ createPanel(ctx: BaseContext, info: PanelInfo): Promise\<Panel> ...@@ -550,8 +550,8 @@ createPanel(ctx: BaseContext, info: PanelInfo): Promise\<Panel>
```js ```js
let panelInfo: inputMethodEngine.PanelInfo = { let panelInfo: inputMethodEngine.PanelInfo = {
panelType: inputMethodEngine.PanelType.SOFT_KEYBOARD, type: inputMethodEngine.PanelType.SOFT_KEYBOARD,
panelFlag: inputMethodEngine.PanelFlag.FLG_FIXED flag: inputMethodEngine.PanelFlag.FLG_FIXED
} }
inputMethodEngine.getInputMethodAbility().createPanel(this.context, panelInfo).then((panel) => { inputMethodEngine.getInputMethodAbility().createPanel(this.context, panelInfo).then((panel) => {
console.log('Succeed in creating panel.'); console.log('Succeed in creating panel.');
...@@ -579,8 +579,8 @@ destroyPanel(panel: Panel, callback: AsyncCallback\<void>): void; ...@@ -579,8 +579,8 @@ destroyPanel(panel: Panel, callback: AsyncCallback\<void>): void;
```js ```js
let panelInfo: inputMethodEngine.PanelInfo = { let panelInfo: inputMethodEngine.PanelInfo = {
panelType: inputMethodEngine.PanelType.SOFT_KEYBOARD, type: inputMethodEngine.PanelType.SOFT_KEYBOARD,
panelFlag: inputMethodEngine.PanelFlag.FLG_FIXED flag: inputMethodEngine.PanelFlag.FLG_FIXED
} }
try { try {
inputMethodEngine.getInputMethodAbility().createPanel(this.context, panelInfo, (err, panel) => { inputMethodEngine.getInputMethodAbility().createPanel(this.context, panelInfo, (err, panel) => {
...@@ -631,8 +631,8 @@ destroyPanel(panel: Panel): Promise\<void>; ...@@ -631,8 +631,8 @@ destroyPanel(panel: Panel): Promise\<void>;
```js ```js
let panelInfo: inputMethodEngine.PanelInfo = { let panelInfo: inputMethodEngine.PanelInfo = {
panelType: inputMethodEngine.PanelType.SOFT_KEYBOARD, type: inputMethodEngine.PanelType.SOFT_KEYBOARD,
panelFlag: inputMethodEngine.PanelFlag.FLG_FIXED flag: inputMethodEngine.PanelFlag.FLG_FIXED
} }
try { try {
inputMethodEngine.getInputMethodAbility().createPanel(this.context, panelInfo, (err, panel) => { inputMethodEngine.getInputMethodAbility().createPanel(this.context, panelInfo, (err, panel) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册