Skip to content

Commit

Permalink
Quit app when hitting ESC on script_error_dialog
Browse files Browse the repository at this point in the history
Fix #144
  • Loading branch information
Setsugennoao committed May 15, 2024
1 parent 1ba339d commit ebf4aa3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vspreview/main/dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ def setup_shortcuts(self) -> None:
if self.main.reload_enabled:
self.add_shortcut(QKeyCombination(Qt.Modifier.CTRL, Qt.Key.Key_R).toCombined(), self.reload_button.click)

self.add_shortcut(Qt.Key.Key_Escape, self.exit_button.click)

def on_reload_clicked(self, clicked: bool | None = None) -> None:
self.hide()
self.main.reload_script()
Expand Down

0 comments on commit ebf4aa3

Please sign in to comment.