Skip to content

Commit

Permalink
Add shortcut key for mesh annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
pshriwise committed Jul 26, 2024
1 parent 658483c commit c5503d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion openmc_plotter/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions openmc_plotter/overlays.py
Original file line number Diff line number Diff line change
Expand Up @@ -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", "?")],
Expand Down

0 comments on commit c5503d9

Please sign in to comment.