Keybindings: Replace mod+h as help shortcut with ? (#85449)

HelpModal: Remove cmd+h as help shortcut
This commit is contained in:
Tobias Skarhed 2024-04-02 11:41:46 +02:00 committed by GitHub
parent 5a416731f4
commit c75bc5a6cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -62,7 +62,7 @@ The following image and descriptions highlight all dashboard features.
## Keyboard shortcuts
Grafana has a number of keyboard shortcuts available. Press `?` or `Ctrl+h` on your keyboard to display all keyboard shortcuts available in your version of Grafana.
Grafana has a number of keyboard shortcuts available. Press `?` on your keyboard to display all keyboard shortcuts available in your version of Grafana.
- `Ctrl+S`: Saves the current dashboard.
- `f`: Opens the dashboard finder / search.

View File

@ -27,7 +27,7 @@ const getShortcuts = (modKey: string) => {
description: t('help-modal.shortcuts-description.exit-edit/setting-views', 'Exit edit/setting views'),
},
{
keys: [`${modKey} + h`],
keys: ['?'],
description: t('help-modal.shortcuts-description.show-all-shortcuts', 'Show all keyboard shortcuts'),
},
{ keys: ['c', 't'], description: t('help-modal.shortcuts-description.change-theme', 'Change theme') },

View File

@ -40,7 +40,7 @@ export class KeybindingSrv {
// Chromeless pages like login and signup page don't get any global bindings
if (!route.chromeless) {
this.bind(['?', 'mod+h'], this.showHelpModal);
this.bind('?', this.showHelpModal);
this.bind('g h', this.goToHome);
this.bind('g d', this.goToDashboards);
this.bind('g e', this.goToExplore);