Make Ctrl + W a separate action
This commit is contained in:
@@ -67,7 +67,8 @@ class CartridgesApplication(Adw.Application):
|
|||||||
# Create actions
|
# Create actions
|
||||||
self.create_actions(
|
self.create_actions(
|
||||||
{
|
{
|
||||||
("quit", ("<primary>q", "<primary>w")),
|
("quit", ("<primary>q",)),
|
||||||
|
("close_window", ("<primary>w",)),
|
||||||
("about",),
|
("about",),
|
||||||
("preferences", ("<primary>comma",)),
|
("preferences", ("<primary>comma",)),
|
||||||
("launch_game",),
|
("launch_game",),
|
||||||
@@ -200,6 +201,9 @@ class CartridgesApplication(Adw.Application):
|
|||||||
def on_hltb_search_action(self, *_args):
|
def on_hltb_search_action(self, *_args):
|
||||||
self.search("https://howlongtobeat.com/?q=")
|
self.search("https://howlongtobeat.com/?q=")
|
||||||
|
|
||||||
|
def on_close_window_action(self, *_args):
|
||||||
|
self.win.close()
|
||||||
|
|
||||||
def on_quit_action(self, *_args):
|
def on_quit_action(self, *_args):
|
||||||
self.quit()
|
self.quit()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user