[COMPASS-6503] Create a keyboard shortcut hook and component Created: 08/Feb/23  Updated: 06/Jul/23  Resolved: 06/Jul/23

Status: Closed
Project: Compass
Component/s: None
Affects Version/s: None
Fix Version/s: No version

Type: Task Priority: Major - P3
Reporter: Basit Chonka Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
causes COMPASS-6504 Use keyboard shortcut hook in Compass Needs Triage
Documentation Changes: Not Needed

 Description   

Going forward we will be adding keyboard shortcuts in Compass.

  1. Create `useKeyboardShortcut` hook to listen for `keypress` event and trigger the corresponding action for a key combination.
  2. Create a KeyboardShort component that will render corresponding shortcut.

Both of these components will handle Cmd (macOS) or Ctrl (Windows)



 Comments   
Comment by Sergey Petushkov [ 06/Jul/23 ]

As Rhys mentioned, this is already implemented in compass-components

Generated at Wed Feb 07 22:43:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.