提交 96351459 编写于 作者: M ma-shaoyin

Signed-off-by: ma-shaoyin <mashaoyin1@huawei.com>

 Changes to be committed:
上级 a19ca4d6
...@@ -508,8 +508,8 @@ createPanel(ctx: BaseContext, info: PanelInfo, callback: AsyncCallback\<Panel>): ...@@ -508,8 +508,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) => {
...@@ -556,8 +556,8 @@ createPanel(ctx: BaseContext, info: PanelInfo): Promise\<Panel> ...@@ -556,8 +556,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.');
...@@ -585,8 +585,8 @@ destroyPanel(panel: Panel, callback: AsyncCallback\<void>): void; ...@@ -585,8 +585,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) => {
...@@ -637,8 +637,8 @@ destroyPanel(panel: Panel): Promise\<void>; ...@@ -637,8 +637,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.
先完成此消息的编辑!
想要评论请 注册