harmony 鸿蒙Global Shortcut Key Error Codes

  • 2025-06-12
  • 浏览 (5)

Global Shortcut Key Error Codes

NOTE

This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.

4200002 Shortcut Key Already Registered by a System Application

Error Message

The hotkey has been used by the system.

Description

This error code is reported if the shortcut key has been registered by a system application.

Possible Cause

  1. The shortcut key has been registered by a system application.

Solution

  1. You can call getAllSystemHotkeys to query all system shortcut keys.

4200003 Shortcut Key Already Registered by a Third-party Application

Error Message

The hotkey has been subscribed to by another.

Description

This error code is generated when the shortcut key is registered by a third-party application.

Possible Cause

  1. The shortcut key has been registered by a third-party application.

Solution

  1. In the cmd window, run hidumper -s 3101 -a -s to query all registered shortcut keys and use any available shortcut keys.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Input Kit

harmony 鸿蒙Input_DeviceListener

harmony 鸿蒙Input_InterceptorEventCallback

harmony 鸿蒙Input_AxisEvent

harmony 鸿蒙Input_DeviceInfo

harmony 鸿蒙Input_DeviceListener

harmony 鸿蒙Input_Hotkey

harmony 鸿蒙Input_InterceptorEventCallback

harmony 鸿蒙Input_InterceptorOptions

harmony 鸿蒙Input_KeyEvent

0  赞