CTRL-Q support
I implemented small patch to allow PasswordSafe to be ended by pressing CTRL-Q
diff --git a/data/shortcuts_overview.ui b/data/shortcuts_overview.ui
index 446dbe8..add5075 100644
--- a/data/shortcuts_overview.ui
+++ b/data/shortcuts_overview.ui
@@ -33,6 +33,13 @@
<property name="accelerator"><Primary>P</property>
</object>
</child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">True</property>
+ <property name="title" translatable="yes" context="Shortcut window description">Quit</property>
+ <property name="accelerator"><Primary>Q</property>
+ </object>
+ </child>
</object>
</child>
<child>
diff --git a/passwordsafe/application.py b/passwordsafe/application.py
index ef0f343..7a8b2b8 100644
--- a/passwordsafe/application.py
+++ b/passwordsafe/application.py
@@ -117,6 +117,7 @@ class Application(Gtk.Application):
self.set_accels_for_action("app.settings", ["<Control>p"])
self.set_accels_for_action("app.open", ["<Control>o"])
self.set_accels_for_action("app.new", ["<Control>n"])
+ self.set_accels_for_action("app.quit", ["<Control>q"])
self.set_accels_for_action("app.db.save", ["<Control>s"])
self.set_accels_for_action("app.db.lock", ["<Control>l"])
self.set_accels_for_action("app.db.add_entry", ["<Control>e"])
but sadly it works only in first menu, later it causes freeze, I guess because of hooks for closing window. I'll try investigate and implement properly, but if someone has idea how to fixit quicker.. ;-)