shellDBus: Add AcceleratorDeactivated D-Bus signal

Add this signal to complement AcceleratorActivated, meant to happen
on the release action of shortcuts, e.g. on push-to-talk.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3598>
This commit is contained in:
Carlos Garnacho 2025-01-16 01:51:45 +01:00 committed by Marge Bot
parent e2de46e9ac
commit e53f69f9d3
2 changed files with 8 additions and 0 deletions

View File

@ -40,6 +40,10 @@
<arg name="action" type="u"/>
<arg name="parameters" type="a{sv}"/>
</signal>
<signal name="AcceleratorDeactivated">
<arg name="action" type="u"/>
<arg name="parameters" type="a{sv}"/>
</signal>
<property name="Mode" type="s" access="read"/>
<property name="OverviewActive" type="b" access="readwrite"/>
<property name="ShellVersion" type="s" access="read"/>

View File

@ -37,6 +37,10 @@ export class GnomeShell {
(display, action, device, timestamp) => {
this._emitAcceleratorActivated(action, device, timestamp);
});
global.display.connect('accelerator-deactivated',
(display, action, device, timestamp) => {
this._emitAcceleratorDeactivated(action, device, timestamp);
});
this._cachedOverviewVisible = false;
Main.overview.connect('showing',