From c5503d9353143271bf68af6d6a1ef38084bd72fd Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Thu, 25 Jul 2024 23:29:18 -0500 Subject: [PATCH] Add shortcut key for mesh annotation --- openmc_plotter/main_window.py | 2 +- openmc_plotter/overlays.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/openmc_plotter/main_window.py b/openmc_plotter/main_window.py index 374de1f..52b4eed 100755 --- a/openmc_plotter/main_window.py +++ b/openmc_plotter/main_window.py @@ -386,7 +386,7 @@ def createMenuBar(self): self.tallyDockAction.triggered.connect(self.toggleTallyDockView) self.meshAnnotationDockAction = QAction('Mesh &Annotation Dock', self) - # self.meshAnnotationDockAction.setShortcut("Ctrl+T") + self.meshAnnotationDockAction.setShortcut("Ctrl+E") self.meshAnnotationDockAction.setToolTip('Toggle mesh annotation dock visibility') self.meshAnnotationDockAction.setStatusTip('Toggle mesh annotation dock visibility') self.meshAnnotationDockAction.triggered.connect(self.toggleMeshAnnotationDockView) diff --git a/openmc_plotter/overlays.py b/openmc_plotter/overlays.py index 2f4bb33..9c7d1d2 100644 --- a/openmc_plotter/overlays.py +++ b/openmc_plotter/overlays.py @@ -40,6 +40,7 @@ class ShortcutsOverlay(QWidget): ("Horizontal Scroll", "Alt+Scroll")], "Menus": [("Hide/Show Geometry Dock", c_key + "+D"), ("Hide/Show Tally Dock", c_key + "+T"), + ("Hide/Show Mesh Annotation Dock", c_key + "+E"), ("Reload Model", "Shift+" + c_key + "+R"), ("Quit", c_key + "+Q"), ("Display Shortcuts", "?")],