提交 b9f67eb9 编写于 作者: M mayunteng_1

文档修改

Signed-off-by: Nmayunteng_1 <mayunteng@huawei.com>
Change-Id: I75cfb33aa86c92f40e689a2da2c61600ff538ab0
上级 08c89fa7
......@@ -40,7 +40,7 @@ try {
// 1.获取设备列表,判断是否有物理键盘连接
inputDevice.getDeviceList().then(data => {
for (let i = 0; i < data.length; ++i) {
inputDevice.getKeyboardType(data[i]).then(res => {
inputDevice.getKeyboardType(data[i]).then(type => {
if (type == inputDevice.KeyboardType.ALPHABETIC_KEYBOARD) {
// 物理键盘已连接
isPhysicalKeyboardExist = true;
......
......@@ -7,7 +7,7 @@
## 导入模块
```js
import inputDevice from '@ohos.multimodalInput.pointer';
import pointer from '@ohos.multimodalInput.pointer';
```
## 接口说明
......
......@@ -9,7 +9,7 @@
## 导入模块
```js
import {Action,Button,Axis,AxisValue,MouseEvent} from '@ohos.multimodalInput.mouseEvent';
import { Action, Button, Axis, AxisValue, MouseEvent } from '@ohos.multimodalInput.mouseEvent';
```
## Action
......
......@@ -276,7 +276,7 @@ import window from '@ohos.window';
window.getTopWindow((error, win) => {
win.getProperties((error, properties) => {
var windowId = properties.id;
let windowId = properties.id;
if (windowId < 0) {
console.log(`Invalid windowId`);
return;
......@@ -319,7 +319,7 @@ import window from '@ohos.window';
window.getTopWindow((error, win) => {
win.getProperties((error, properties) => {
var windowId = properties.id;
let windowId = properties.id;
if (windowId < 0) {
console.log(`Invalid windowId`);
return;
......@@ -358,7 +358,7 @@ import window from '@ohos.window';
window.getTopWindow((error, win) => {
win.getProperties((error, properties) => {
var windowId = properties.id;
let windowId = properties.id;
if (windowId < 0) {
console.log(`Invalid windowId`);
return;
......@@ -396,7 +396,7 @@ import window from '@ohos.window';
window.getTopWindow((error, win) => {
win.getProperties((error, properties) => {
var windowId = properties.id;
let windowId = properties.id;
if (windowId < 0) {
console.log(`Invalid windowId`);
return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册