frontend
frontend copied to clipboard
Add keyboard shortcut for creating new items
Proposed change
Add a new single key shortcut (N) to add new items on a data table with a fab. Add the same shortcut to the non-table pages for integrations and zones. This way a user can reach the "add new item" dialogs quicker with their keyboards.
Type of change
- [ ] Dependency upgrade
- [ ] Bugfix (non-breaking change which fixes an issue)
- [x] New feature (thank you!)
- [ ] Breaking change (fix/feature causing existing functionality to break)
- [ ] Code quality improvements to existing code or addition of tests
Example configuration
Additional information
- This PR fixes or closes issue: fixes #
- This PR is related to issue or discussion:
- Link to documentation pull request:
Checklist
- [x] The code change is tested and works locally.
- [x] There is no commented out code in this PR.
- [ ] Tests have been added to verify that the new code works.
If user exposed functionality or configuration variables are added/changed:
- [ ] Documentation added/updated for www.home-assistant.io
Should this be ctrl/cmd + N?
I believe this is called the meta key in the lib we use?
Should this be ctrl/cmd + N?
That would conflict with (at least) Chrome on macOS, they use cmd + N for a new tab.