@@ -219,6 +219,9 @@ def setup_shortcuts(self, disable=False,):
219219 self .menubar .stop_action : ["S" , "Ctrl+Space" ],
220220 self .menubar .close_window_action : ["Ctrl+W" , "Ctrl+F4" ],
221221 self .menubar .close_program_action : ["Ctrl+X" ],
222+ self .menubar .set_start_action : ["[" ],
223+ self .menubar .set_end_action : ["]" ],
224+ self .menubar .toggle_loop_action : ["Ctrl+R" ],
222225 }
223226
224227
@@ -227,24 +230,6 @@ def setup_shortcuts(self, disable=False,):
227230 widget .setShortcuts ([QKeySequence (key ) for key in key_sequence ])
228231
229232
230- # # Forward Shortcuts
231- # shift_forward_shortcut = QShortcut(QKeySequence("Shift+Right"), self)
232- # shift_forward_shortcut.activated.connect(lambda: self.forward(10))
233- # ctrl_forward_shortcut = QShortcut(QKeySequence("Ctrl+Right"), self)
234- # ctrl_forward_shortcut.activated.connect(lambda: self.forward(20))
235- # shift_ctrl_forward_shortcut = QShortcut(QKeySequence("Ctrl+Shift+Right"), self)
236- # shift_ctrl_forward_shortcut.activated.connect(lambda: self.forward(60))
237-
238- # # Rewind Shortcuts
239- # shift_rewind_shortcut = QShortcut(QKeySequence("Shift+Left"), self)
240- # shift_rewind_shortcut.activated.connect(lambda: self.rewind(10))
241- # ctrl_rewind_shortcut = QShortcut(QKeySequence("Ctrl+Left"), self)
242- # ctrl_rewind_shortcut.activated.connect(lambda: self.rewind(20))
243- # shift_ctrl_rewind_shortcut = QShortcut(QKeySequence("Ctrl+Shift+Left"), self)
244- # shift_ctrl_rewind_shortcut.activated.connect(lambda: self.rewind(60))
245-
246-
247-
248233 def update_current_reciter (self ):
249234 reciter_id = self .reciter_combo .currentData ()
250235 reciter_data = self .reciters .get_reciter (reciter_id )
0 commit comments