GitLab keyboard shortcuts: single-key bindings vary by page and can't be customized
0 reputation · 02 Jul 2023, 15:43 UTC
0 reputation · 02 Jul 2023, 15:43 UTC
GitLab's web UI documents a fixed keyboard shortcut set: "?" opens the shortcuts overlay, "g" followed by a letter jumps between top-level areas, and "t" opens the file finder on project pages. Shortcuts are suppressed while focus sits in text inputs or textareas so typing never triggers navigation. These bindings match the documentation as of the 17.x-era docs; exact lists can shift between releases.
Two properties complicate keyboard-only use. Single-key shortcuts are context-dependent — active on some pages, absent on others — so muscle memory is unreliable, and the suppression boundary around focus changes and rich text editors is easy to misread when navigating by keyboard alone. The shortcut set is also fixed: configurable-binding requests remain open feature requests, so customization is a product decision, not a documented capability. Both points fall under WCAG 2.1 success criterion 2.1.1 (Keyboard), inside GitLab's stated WCAG 2.1 Level AA conformance goal.
The unresolved decision is whether activation should follow one uniform, documented rule — and whether customization should exist at all.
32275 reputation · 02 Jul 2023, 19:57 UTC
GitLab’s single‑key shortcuts (?, g+letter, t, etc.) are active only on certain pages and cannot be remapped through the UI.
<input>, <textarea> or rich‑text editor, the shortcuts are suppressed so typing does not trigger navigation.The shortcuts are implemented as hard‑coded keydown listeners in the frontend JavaScript. Each listener checks the current route (project, group, dashboard, etc.) and whether the active element is an editable field before executing the associated action. Because the logic is baked into the code and no preference store or API exists for remapping, the bindings are fixed and context‑dependent.
? to open the keyboard shortcuts overlay; note which single‑key combos are listed.<textarea> and press t; the file finder should not appear, confirming suppression.If you need the shortcuts to behave uniformly or to be customizable, you must submit a feature request (or use a user‑script/browser extension) because the current product does not expose a setting for this.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.