Skip to content

FE 029: Add employer keyboard shortcuts - #500

Open
Deepanshugarg11 wants to merge 1 commit into
mainfrom
feature/FE029-keyboard-shortcuts
Open

FE 029: Add employer keyboard shortcuts#500
Deepanshugarg11 wants to merge 1 commit into
mainfrom
feature/FE029-keyboard-shortcuts

Conversation

@Deepanshugarg11

Copy link
Copy Markdown
Collaborator

Here is a short, concise version of the PR description:


PR: Add Keyboard Shortcuts for Employer Panel (FE 029)

Summary

Adds global keyboard shortcuts and a shortcut help modal to the Employer Panel.

⌨️ Shortcuts Added

Shortcut Action
Ctrl/Cmd + Shift + S Open Shifts (/manage-shift)
Ctrl/Cmd + Shift + G Open Guards (/guard-profiles)
Ctrl/Cmd + Shift + P Open Payroll (/payroll)
N Create New Shift (/create-shift)
R Refresh Page
? Open Keyboard Shortcuts Modal
Esc Close Shortcuts Modal

Key Highlights

  • Form Field Bypassing: Shortcuts automatically ignore input when typing in <input>, <textarea>, <select>, or editable fields.
  • OS & Browser Safe: Supports both Windows/Linux (Ctrl) and Mac (Cmd). Normal browser shortcuts (e.g. Ctrl+C, Ctrl+V, Ctrl+R) are not affected.
  • Zero Dependencies: Pure React & Vanilla CSS matching SecureShift branding.

🧪 Testing

  • Unit Tests: All 27 tests passed (npm test).
  • Linting: 0 errors/warnings on new files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant