feat: add middle click event to tray #39926
Merged
Electron Archaeologist / Artifact Comparison
completed
Sep 27, 2023 in 54s
Changes Detected
Looks like the electron.d.ts
file changed.
--- a/electron.old.d.ts
+++ b/electron.new.d.ts
@@ -10467,6 +10467,36 @@ declare namespace Electron {
* the dropped text string.
*/
text: string) => void): this;
+ /**
+ * Emitted when the tray icon is middle clicked.
+ *
+ * @platform win32
+ */
+ on(event: 'middle-click', listener: (event: KeyboardEvent,
+ /**
+ * The bounds of tray icon.
+ */
+ bounds: Rectangle) => void): this;
+ off(event: 'middle-click', listener: (event: KeyboardEvent,
+ /**
+ * The bounds of tray icon.
+ */
+ bounds: Rectangle) => void): this;
+ once(event: 'middle-click', listener: (event: KeyboardEvent,
+ /**
+ * The bounds of tray icon.
+ */
+ bounds: Rectangle) => void): this;
+ addListener(event: 'middle-click', listener: (event: KeyboardEvent,
+ /**
+ * The bounds of tray icon.
+ */
+ bounds: Rectangle) => void): this;
+ removeListener(event: 'middle-click', listener: (event: KeyboardEvent,
+ /**
+ * The bounds of tray icon.
+ */
+ bounds: Rectangle) => void): this;
/**
* Emitted when the mouse clicks the tray icon.
*