Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-6503

Create a keyboard shortcut hook and component

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • No version
    • None
    • None
    • None
    • 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)

      Attachments

        Activity

          People

            Unassigned Unassigned
            basit.chonka@mongodb.com Basit Chonka
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: