CommandDash / commanddash

AI assist to integrate APIs and SDKs without reading docs.

Home Page:https://commanddash.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Fix]: Use KeyboardEvent.key or KeyboardEvent.code instead of deprecated keyCode

superiorsd10 opened this issue · comments

Description

The project currently uses the deprecated KeyboardEvent.keyCode property in several places (e.g. searchPebblePanel.html and main.js) This property is no longer recommended for use in new code and might be removed from browsers in the future.

Proposed Solution

We should update the code to use either of the recommended properties:

  • KeyboardEvent.key: Provides a consistent string representation of the pressed key (e.g., "Enter", "Space", "ArrowUp").
  • KeyboardEvent.code: Provides a physical key identifier (e.g., "KeyA", "KeyF1", "Digit5").

Relevant Links

Link to the Docs mentioning the deprecation of keyCode

Hello @yatendra2001 👋
I want to work on this issue, so please consider assigning it to me.

Sure @superiorsd10 go ahead, make sure the changes made are robust and welltested.

closed by #150