Show find file and permalink shortcut in tooltip
What does this MR do and why?
Shows these keyboard shortcuts a tooltip in the project repository:
- “Go to find file” keyboard shortcut
t
for the “Find file” button - “Go to permalink” keyboard shortcut
y
for the “Permalink” button
Follow the same approach as !141119 (merged), using aria-keyshortcuts
(unsupported in Firefox), and combining aria-label
and aria-hidden
to ensure proper label announcement.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Location | Before | After |
---|---|---|
Folder | No tooltip | CleanShot 20240122140054.mp4 |
File | No tooltip | CleanShot 20240122140754.mp4 |
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Open the project repository view, or a specific folder or file in the repository
- Hover or focus the “Find file” button at the top
- Open a file in the repository
- Hover or focus the “Permalink” button at the top
Edited by Pedro Moreira da Silva