From c30bef26648d7969585ca77fd19f2778627b24a1 Mon Sep 17 00:00:00 2001 From: shaoziyun Date: Wed, 13 Apr 2022 04:31:38 +0000 Subject: [PATCH 1/3] commit msg Signed-off-by: shaoziyun --- api/@ohos.multimodalInput.inputDevice.d.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) mode change 100644 => 100755 api/@ohos.multimodalInput.inputDevice.d.ts diff --git a/api/@ohos.multimodalInput.inputDevice.d.ts b/api/@ohos.multimodalInput.inputDevice.d.ts old mode 100644 new mode 100755 index 8823d8574e..99ee5ea52a --- a/api/@ohos.multimodalInput.inputDevice.d.ts +++ b/api/@ohos.multimodalInput.inputDevice.d.ts @@ -28,6 +28,8 @@ declare namespace inputDevice { type AxisType = 'NULL'; + type KeyboardType = 'alphabetic_keyboard' | 'digital_keyboard' | 'handwriting_pen' | 'no_keyboard' | 'unknown_device'; + /** * Defines axis information about events that can be reported by an input device. * For example, a touchscreen may report information such as x, y, and pressure, @@ -80,6 +82,17 @@ declare namespace inputDevice { */ function getDevice(deviceId: number, callback: AsyncCallback): void; function getDevice(deviceId: number): Promise; + + /** + * 获取键盘类型 + * + * @since 8 + * @syscap SystemCapability.MultimodalInput.Input.InputDevice + * @param deviceId 输入设备ID。 + * @return 返回键盘类型。 + */ + function getKeyboardType(deviceId: number, callback: Callback): void; + function getKeyboardType(deviceId: number): Promise; } export default inputDevice; \ No newline at end of file -- Gitee From b2e388541a606734d590c853e38003d8a5091d59 Mon Sep 17 00:00:00 2001 From: shaoziyun Date: Wed, 13 Apr 2022 04:44:03 +0000 Subject: [PATCH 2/3] commit msg Signed-off-by: shaoziyun --- api/@ohos.multimodalInput.inputDevice.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/@ohos.multimodalInput.inputDevice.d.ts b/api/@ohos.multimodalInput.inputDevice.d.ts index 99ee5ea52a..10c3284030 100755 --- a/api/@ohos.multimodalInput.inputDevice.d.ts +++ b/api/@ohos.multimodalInput.inputDevice.d.ts @@ -84,14 +84,14 @@ declare namespace inputDevice { function getDevice(deviceId: number): Promise; /** - * 获取键盘类型 + * 获取指定设备id的键盘类型 * * @since 8 * @syscap SystemCapability.MultimodalInput.Input.InputDevice - * @param deviceId 输入设备ID。 + * @param 指定的设备id。 * @return 返回键盘类型。 */ - function getKeyboardType(deviceId: number, callback: Callback): void; + function getKeyboardType(deviceId: number, callback: Callback): void; function getKeyboardType(deviceId: number): Promise; } -- Gitee From 4bf36c17eeebff6b52e99594340cc83efa02e575 Mon Sep 17 00:00:00 2001 From: shaoziyun Date: Wed, 13 Apr 2022 05:16:48 +0000 Subject: [PATCH 3/3] commit msg Signed-off-by: shaoziyun --- api/@ohos.multimodalInput.inputDevice.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/@ohos.multimodalInput.inputDevice.d.ts b/api/@ohos.multimodalInput.inputDevice.d.ts index 10c3284030..77647b79f7 100755 --- a/api/@ohos.multimodalInput.inputDevice.d.ts +++ b/api/@ohos.multimodalInput.inputDevice.d.ts @@ -28,7 +28,7 @@ declare namespace inputDevice { type AxisType = 'NULL'; - type KeyboardType = 'alphabetic_keyboard' | 'digital_keyboard' | 'handwriting_pen' | 'no_keyboard' | 'unknown_device'; + type KeyboardType = 'alphabetic_keyboard' | 'digital_keyboard' | 'handwriting_pen' | 'remote_control' | 'no_keyboard' | 'unknown_device'; /** * Defines axis information about events that can be reported by an input device. -- Gitee