diff --git a/src/window.py b/src/window.py index 0712e66..f33c580 100644 --- a/src/window.py +++ b/src/window.py @@ -862,6 +862,7 @@ class AlpacaWindow(Adw.ApplicationWindow): GtkSource.init() self.set_help_overlay(self.shortcut_window) self.get_application().set_accels_for_action("win.show-help-overlay", ['slash']) + self.get_application().create_action('new_chat', lambda *_: self.new_chat(), ['n']) self.get_application().create_action('clear', lambda *_: dialogs.clear_chat(self), ['e']) self.get_application().create_action('send', lambda *_: self.send_message(self), ['Return']) self.add_chat_button.connect("clicked", lambda button : self.new_chat()) diff --git a/src/window.ui b/src/window.ui index 7619a78..26feb6a 100644 --- a/src/window.ui +++ b/src/window.ui @@ -605,6 +605,12 @@ Preferences + + + <ctrl>N + New Chat + + <ctrl>slash