]> khamidou — GitHub mirrors - electron.git/commitdiff
:memo: 'right-clicked' doc.
authorHaojian Wu <hokein.wu@gmail.com>
Wed, 15 Jul 2015 12:13:59 +0000 (20:13 +0800)
committerHaojian Wu <hokein.wu@gmail.com>
Wed, 15 Jul 2015 12:13:59 +0000 (20:13 +0800)
docs/api/tray.md

index 25c9cb451b1dccff4948cf0511546d6d5f9e5cef..6d1bbb75ec6c24f8fefa70186c90983b3892c437 100644 (file)
@@ -25,7 +25,6 @@ app.on('ready', function(){
 
 __Platform limitations:__
 
-* On OS X `clicked` event will be ignored if the tray icon has context menu.
 * On Linux app indicator will be used if it is supported, otherwise
   `GtkStatusIcon` will be used instead.
 * App indicator will only be showed when it has context menu.
@@ -57,6 +56,20 @@ Emitted when the tray icon is clicked.
 
 __Note:__ The `bounds` payload is only implemented on OS X and Windows 7 or newer.
 
+### Event: 'right-clicked'
+
+* `event`
+* `bounds` Object - the bounds of tray icon
+  * `x` Integer
+  * `y` Integer
+  * `width` Integer
+  * `height` Integer
+
+Emitted when the tray icon is right clicked.
+
+__Note:__ This is only implemented on OS X and Windows. On Windows, this event
+will be emitted if the tray icon has context menu.
+
 ### Event: 'double-clicked'
 
 Emitted when the tray icon is double clicked.