Skip to content

Fixed #16521 -- Added keyboard shortcuts to admin #19579

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

khanxmetu
Copy link
Contributor

@khanxmetu khanxmetu commented Jun 19, 2025

ticket-16521
Forum discussion

Description

This branch is a Proof-of-Concept implementation to bring keyboard shortcuts to admin in Django core.

Proposed Shortcuts

Description Shortcut Scope Status
Show shortcuts help dialog ? Global Done
Go to the site index g i Global Done
Save and go to change list Alt+s Change Form Done
Save and add another Alt+a Change Form Done
Save and continue editing Alt+c Change Form Done
Delete Alt+d Change Form Done
Confirm deletion Alt+y Delete Confirmation Done
Cancel deletion Alt+n Delete Confirmation Done
Go to a change list page g l Global TBD
Go to the model instance page g c Global TBD
Focus search bar / Change List TBD
Select previous row for action k Change List TBD
Select next row for action j Change List TBD
Toggle row selection x Change List TBD
Focus actions dropdown a Change List TBD

Notes

  • Key events are handled manually, no external javascript library used for shortcuts.
  • Shortcut keys are mostly hardcoded in javascript (limited flexibility).
  • Key sequences are limited to two characters only.

- Show keyboard shortcuts dialog
- Save, Save and add another, Save and continue editing
- Delete
- Confirm deletion
- Cancel deletion
- Go to admin index
@knyghty knyghty requested a review from a team June 20, 2025 06:10
@khanxmetu khanxmetu force-pushed the admin-keyboard-shortcuts branch from 1ce6f8a to 1ba2d51 Compare June 20, 2025 09:47
@khanxmetu khanxmetu force-pushed the admin-keyboard-shortcuts branch from fe9ff27 to 534e543 Compare June 26, 2025 13:21
@knyghty knyghty added selenium Apply to have Selenium tests run on a PR screenshots 🖼️ labels Jun 27, 2025
@khanxmetu khanxmetu force-pushed the admin-keyboard-shortcuts branch from 0148740 to dbfc0d0 Compare June 27, 2025 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
screenshots 🖼️ selenium Apply to have Selenium tests run on a PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants