From 55250440e2ceba9ed8773ec431a0169b1a117ef8 Mon Sep 17 00:00:00 2001 From: wanghao1717 Date: Thu, 3 Jul 2025 14:05:57 +0800 Subject: [PATCH] fix key Signed-off-by: wanghao1717 --- .../reference/apis-input-kit/js-apis-inputconsumer.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zh-cn/application-dev/reference/apis-input-kit/js-apis-inputconsumer.md b/zh-cn/application-dev/reference/apis-input-kit/js-apis-inputconsumer.md index 294c1bd0083..144d4145aea 100644 --- a/zh-cn/application-dev/reference/apis-input-kit/js-apis-inputconsumer.md +++ b/zh-cn/application-dev/reference/apis-input-kit/js-apis-inputconsumer.md @@ -36,7 +36,7 @@ import { inputConsumer, KeyEvent } from '@kit.InputKit'; | 名称 | 类型 | 只读 | 可选 | 说明 | | --------- | ------ | ------- | ------- | ------- | -| key | number | 否 | 否 | 按键键值。
当前仅支持[KEYCODE_VOLUME_UP](js-apis-keycode.md#keycode)键和[KEYCODE_VOLUME_DOWN](js-apis-keycode.md#keycode)键。 | +| key | number | 否 | 否 | 按键键值。该属性仅在手机和平板设备上生效。
当前仅支持[KEYCODE_VOLUME_UP](js-apis-keycode.md#keycode)键和[KEYCODE_VOLUME_DOWN](js-apis-keycode.md#keycode)键。 | | action | number | 否 | 否 | 按键事件类型。当前仅支持取值为1,表示按键按下。 | | isRepeat | boolean | 否 | 否 | 是否上报重复的按键事件。true表示上报,false表示不上报,默认值为true。 | -- Gitee