gui: hook up ctrl+q for app.quit

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2019-08-26 13:10:06 +10:00
parent c71076ca1d
commit e6ea60d6c1
1 changed files with 3 additions and 0 deletions

View File

@ -52,6 +52,9 @@ class Application(Gtk.Application):
GLib.OptionFlags.NONE, GLib.OptionFlags.NONE,
GLib.OptionArg.NONE, GLib.OptionArg.NONE,
'download first drawing only but do not remove it from the device') 'download first drawing only but do not remove it from the device')
self.set_accels_for_action('app.quit', ['<Ctrl>Q'])
self._tuhi = None self._tuhi = None
def do_startup(self): def do_startup(self):