Make Ctrl + W a separate action
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user