mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
extensions-app: Add quit action
It's good practice to support the standard <ctrl>-q shortcut, so add a corresponding action and set its accel accordingly. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3335
This commit is contained in:
parent
a9a54ba2a3
commit
8d43deaad5
1 changed files with 6 additions and 0 deletions
|
|
@ -67,6 +67,12 @@ class Application extends Gtk.Application {
|
|||
provider,
|
||||
Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
|
||||
|
||||
const action = new Gio.SimpleAction({ name: 'quit' });
|
||||
action.connect('activate', () => this._window.close());
|
||||
this.add_action(action);
|
||||
|
||||
this.set_accels_for_action('app.quit', ['<Primary>q']);
|
||||
|
||||
this._shellProxy = new GnomeShellProxy(Gio.DBus.session,
|
||||
'org.gnome.Shell.Extensions', '/org/gnome/Shell/Extensions');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue