Changed shortcuts to standards
This commit is contained in:
parent
2825e9a003
commit
0d017c6d14
@ -50,8 +50,8 @@ class AlpacaApplication(Adw.Application):
|
|||||||
def __init__(self, version):
|
def __init__(self, version):
|
||||||
super().__init__(application_id='com.jeffser.Alpaca',
|
super().__init__(application_id='com.jeffser.Alpaca',
|
||||||
flags=Gio.ApplicationFlags.DEFAULT_FLAGS)
|
flags=Gio.ApplicationFlags.DEFAULT_FLAGS)
|
||||||
self.create_action('quit', lambda *_: self.quit(), ['<primary>q'])
|
self.create_action('quit', lambda *_: self.quit(), ['<primary>w'])
|
||||||
self.create_action('preferences', lambda *_: AlpacaWindow.show_preferences_dialog(self.props.active_window), ['<primary>p'])
|
self.create_action('preferences', lambda *_: AlpacaWindow.show_preferences_dialog(self.props.active_window), ['<primary>comma'])
|
||||||
self.create_action('about', self.on_about_action)
|
self.create_action('about', self.on_about_action)
|
||||||
self.version = version
|
self.version = version
|
||||||
|
|
||||||
|
@ -68,6 +68,7 @@ class AlpacaWindow(Adw.ApplicationWindow):
|
|||||||
override_HIP_VISIBLE_DEVICES = Gtk.Template.Child()
|
override_HIP_VISIBLE_DEVICES = Gtk.Template.Child()
|
||||||
|
|
||||||
#Elements
|
#Elements
|
||||||
|
split_view_overlay = Gtk.Template.Child()
|
||||||
regenerate_button : Gtk.Button = None
|
regenerate_button : Gtk.Button = None
|
||||||
create_model_base = Gtk.Template.Child()
|
create_model_base = Gtk.Template.Child()
|
||||||
create_model_name = Gtk.Template.Child()
|
create_model_name = Gtk.Template.Child()
|
||||||
@ -1622,6 +1623,7 @@ Generate a title following these rules:
|
|||||||
self.get_application().create_action('rename_current_chat', self.current_chat_actions)
|
self.get_application().create_action('rename_current_chat', self.current_chat_actions)
|
||||||
self.get_application().create_action('export_chat', self.chat_actions)
|
self.get_application().create_action('export_chat', self.chat_actions)
|
||||||
self.get_application().create_action('export_current_chat', self.current_chat_actions)
|
self.get_application().create_action('export_current_chat', self.current_chat_actions)
|
||||||
|
self.get_application().create_action('toggle_sidebar', lambda *_: self.split_view_overlay.set_show_sidebar(not self.split_view_overlay.get_show_sidebar()), ['F9'])
|
||||||
self.message_text_view.connect("paste-clipboard", self.on_clipboard_paste)
|
self.message_text_view.connect("paste-clipboard", self.on_clipboard_paste)
|
||||||
self.file_preview_remove_button.connect('clicked', lambda button : dialogs.remove_attached_file(self, button.get_name()))
|
self.file_preview_remove_button.connect('clicked', lambda button : dialogs.remove_attached_file(self, button.get_name()))
|
||||||
self.add_chat_button.connect("clicked", lambda button : self.new_chat())
|
self.add_chat_button.connect("clicked", lambda button : self.new_chat())
|
||||||
|
@ -1135,7 +1135,7 @@ By downloading any model you accept their license agreement available on the mod
|
|||||||
<property name="title" translatable="yes">General</property>
|
<property name="title" translatable="yes">General</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkShortcutsShortcut">
|
<object class="GtkShortcutsShortcut">
|
||||||
<property name="accelerator"><ctrl>Q</property>
|
<property name="accelerator"><ctrl>W</property>
|
||||||
<property name="title" translatable="yes">Close application</property>
|
<property name="title" translatable="yes">Close application</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
@ -1153,7 +1153,7 @@ By downloading any model you accept their license agreement available on the mod
|
|||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkShortcutsShortcut">
|
<object class="GtkShortcutsShortcut">
|
||||||
<property name="accelerator"><ctrl>P</property>
|
<property name="accelerator"><ctrl>comma</property>
|
||||||
<property name="title" translatable="yes">Preferences</property>
|
<property name="title" translatable="yes">Preferences</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
@ -1169,6 +1169,12 @@ By downloading any model you accept their license agreement available on the mod
|
|||||||
<property name="title" translatable="yes">Show shortcuts window</property>
|
<property name="title" translatable="yes">Show shortcuts window</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkShortcutsShortcut">
|
||||||
|
<property name="accelerator">F9</property>
|
||||||
|
<property name="title" translatable="yes">Toggle sidebar</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user