Skip to content

Commit

Permalink
add Shift-F<x> shortcuts for relays >8 (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
jziolkowski authored Sep 16, 2024
1 parent 6a48bc2 commit 0790ab9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tdmgr/GUI/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ def create_actions(self):
act = QAction(QIcon(px), f'Relay {a} TOGGLE')
if a <= 8:
act.setShortcut(f"F{a}")
else:
act.setShortcut(f"Shift+F{a}")
self.agRelays.addAction(act)

self.agRelays.triggered.connect(self.toggle_power)
Expand Down

0 comments on commit 0790ab9

Please sign in to comment.