From 94eb02a62d2c256de7730495098e7a879a4b3c8d Mon Sep 17 00:00:00 2001 From: "mathias.chouet" <mathias.chouet@irstea.fr> Date: Tue, 10 Mar 2020 11:49:31 +0100 Subject: [PATCH] New keyboard shortcut: Alt+G to show modules diagram --- docs/en/general/raccourcis_clavier.md | 1 + docs/fr/general/raccourcis_clavier.md | 1 + src/app/app.component.ts | 1 + 3 files changed, 3 insertions(+) diff --git a/docs/en/general/raccourcis_clavier.md b/docs/en/general/raccourcis_clavier.md index df887d74a..35794159e 100644 --- a/docs/en/general/raccourcis_clavier.md +++ b/docs/en/general/raccourcis_clavier.md @@ -9,6 +9,7 @@ To use keyboard shortcuts, the feature must be enabled in [application parameter - Alt + ↵: Triggers calculation of the current module - Alt + D: Duplicates the current module - Alt + W: Closes the current module +- Alt + G: Shows modules diagram - Alt + 1: Positions the page on the "Input" section of the current module - Alt + 2: Positions the page on the "Results" section of the current module - Alt + 3: Positions the page on the "Charts" section of the current module diff --git a/docs/fr/general/raccourcis_clavier.md b/docs/fr/general/raccourcis_clavier.md index ff4566606..e8cc64c7f 100644 --- a/docs/fr/general/raccourcis_clavier.md +++ b/docs/fr/general/raccourcis_clavier.md @@ -9,6 +9,7 @@ Pour utiliser les raccourcis clavier, il faut activer l'option dans [les paramè - Alt + ↵ : Lance le calcul du module en cours - Alt + D : Duplique le module en cours - Alt + W : Ferme le module en cours +- Alt + G : Montre le diagramme des modules - Alt + 1 : Positionne la page sur la section "Données" du module en cours - Alt + 2 : Positionne la page sur la section "Résultats" du module en cours - Alt + 3 : Positionne la page sur la section "Graphique" du module en cours diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 8715bba4e..a8e5dff53 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -136,6 +136,7 @@ export class AppComponent implements OnInit, OnDestroy, Observer { this.hotkeysService.add(new Hotkey("alt+o", AppComponent.onHotkey(this.loadSession, this))); this.hotkeysService.add(new Hotkey("alt+q", AppComponent.onHotkey(this.emptySession, this))); this.hotkeysService.add(new Hotkey("alt+n", AppComponent.onHotkey(this.toList, this))); + this.hotkeysService.add(new Hotkey("alt+g", AppComponent.onHotkey(this.toDiagram, this))); } /** -- GitLab