Skip to content

Commit

Permalink
Avoid sel tags when performing select/deselect all on transcriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
octimot committed Feb 21, 2024
1 parent 00d3648 commit 185759a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions storytoolkitai/ui/toolkit_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -8535,6 +8535,10 @@ def segment_actions(self, event=None, text_element=None, window_id=None,

# CMD+A key (select/deselect all)
if event.keysym == 'a' and special_key == 'cmd' and transcript_focused:

# remove any 'sel' tag to avoid confusion
text_element.tag_remove('sel', '1.0', 'end')

return self.button_select_deselect_all(window_id, text_element)

# Shift+A key (select between current and last active segment)
Expand Down

0 comments on commit 185759a

Please sign in to comment.