Make Ctrl + W a separate action

This commit is contained in:
kramo
2023-05-22 16:58:14 +02:00
parent 1597d783f0
commit 5c8e290fd4

View File

@@ -67,7 +67,8 @@ class CartridgesApplication(Adw.Application):
# Create actions
self.create_actions(
{
("quit", ("<primary>q", "<primary>w")),
("quit", ("<primary>q",)),
("close_window", ("<primary>w",)),
("about",),
("preferences", ("<primary>comma",)),
("launch_game",),
@@ -200,6 +201,9 @@ class CartridgesApplication(Adw.Application):
def on_hltb_search_action(self, *_args):
self.search("https://howlongtobeat.com/?q=")
def on_close_window_action(self, *_args):
self.win.close()
def on_quit_action(self, *_args):
self.quit()