@@ -178,6 +178,8 @@ def connect_signals(self):
178178 self .menubar .set_start_action .triggered .connect (self .audio_looper .set_loop_start )
179179 self .menubar .set_end_action .triggered .connect (self .audio_looper .set_loop_end )
180180 self .menubar .toggle_loop_action .triggered .connect (self .audio_looper .toggle_loop )
181+ self .menubar .return_to_start_action .triggered .connect (self .audio_looper .return_to_start )
182+ self .menubar .clear_loop_action .triggered .connect (self .audio_looper .clear_loop )
181183 self .close_button .clicked .connect (self .OnClose )
182184 self .volume_slider .valueChanged .connect (self .update_volume )
183185 self .time_slider .valueChanged .connect (self .update_time )
@@ -210,7 +212,7 @@ def setup_shortcuts(self, disable=False,):
210212 self .menubar .play_pause_action : ["Space" , "K" ],
211213 self .menubar .forward_action : ["Right" , "L" ],
212214 self .menubar .rewind_action : ["Left" , "J" ],
213- self .menubar .replay_action : ["Home" ], # Wrapped in a list for consistency
215+ self .menubar .replay_action : ["Home" ],
214216 self .menubar .up_volume_action : ["Up" ],
215217 self .menubar .down_volume_action : ["Down" ],
216218 self .menubar .previous_surah_action : ["Alt+Left" ],
@@ -220,9 +222,11 @@ def setup_shortcuts(self, disable=False,):
220222 self .menubar .stop_action : ["S" , "Ctrl+Space" ],
221223 self .menubar .close_window_action : ["Ctrl+W" , "Ctrl+F4" ],
222224 self .menubar .close_program_action : ["Ctrl+X" ],
223- self .menubar .set_start_action : ["[" ],
224- self .menubar .set_end_action : ["]" ],
225+ self .menubar .set_start_action : ["[" , "ج" ],
226+ self .menubar .set_end_action : ["]" , "د" ],
225227 self .menubar .toggle_loop_action : ["Ctrl+R" ],
228+ self .menubar .return_to_start_action : ["Shift+R" ],
229+ self .menubar .clear_loop_action : ["Ctrl+shift+R" ],
226230 }
227231
228232
0 commit comments