Skip to content

Commit

Permalink
added Y to select year view shortcut (#412)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhass authored Oct 15, 2023
1 parent 9b60606 commit 928f7ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions timetagger/app/dialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -3690,6 +3690,7 @@ def open(self, callback=None):
"D": "Select today",
"W": "Select this week",
"M": "Select this month",
"Y": "Select this year",
"↑/PageUp": "Step back in time",
"↓/PageDown": "Step forward in time",
"→": "Zoom in",
Expand Down
2 changes: 2 additions & 0 deletions timetagger/app/front.py
Original file line number Diff line number Diff line change
Expand Up @@ -1449,6 +1449,8 @@ def _on_key(self, e):
self._handle_button_press("nav_snap_now1W")
elif e.key.lower() == "m":
self._handle_button_press("nav_snap_now1M")
elif e.key.lower() == "y":
self._handle_button_press("nav_snap_now1Y")
elif e.key.lower() == "t":
self._handle_button_press("nav_menu")
#
Expand Down

0 comments on commit 928f7ea

Please sign in to comment.