]> khamidou — GitHub mirrors - electron.git/commitdiff
docs: modifiers removed
authorCheng Zhao <zcbenz@gmail.com>
Wed, 29 Jul 2015 06:27:32 +0000 (14:27 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Wed, 29 Jul 2015 06:27:32 +0000 (14:27 +0800)
docs/api/tray.md

index 935430b7feaaf05855eeecf70163dbecff4a2e90..5c8c88018f71b93276a7ec0db871e7f40b471928 100644 (file)
@@ -47,13 +47,15 @@ Creates a new tray icon associated with the `image`.
 
 ### Event: 'clicked'
 
-* `event`
+* `event` Event
+  * `altKey` Boolean
+  * `shiftKey` Boolean
+  * `ctrlKey` Boolean
 * `bounds` Object - the bounds of tray icon
   * `x` Integer
   * `y` Integer
   * `width` Integer
   * `height` Integer
-* [`modifiers`][modifiers] Integer - bitsum of keyboard modifiers and mouse keys
 
 Emitted when the tray icon is clicked.
 
@@ -61,13 +63,15 @@ __Note:__ The `bounds` payload is only implemented on OS X and Windows 7 or newe
 
 ### Event: 'right-clicked'
 
-* `event`
+* `event` Event
+  * `altKey` Boolean
+  * `shiftKey` Boolean
+  * `ctrlKey` Boolean
 * `bounds` Object - the bounds of tray icon
   * `x` Integer
   * `y` Integer
   * `width` Integer
   * `height` Integer
-* [`modifiers`][modifiers] Integer - bitsum of keyboard modifiers and mouse keys
 
 Emitted when the tray icon is right clicked.
 
@@ -75,13 +79,15 @@ __Note:__ This is only implemented on OS X and Windows.
 
 ### Event: 'double-clicked'
 
-* `event`
+* `event` Event
+  * `altKey` Boolean
+  * `shiftKey` Boolean
+  * `ctrlKey` Boolean
 * `bounds` Object - the bounds of tray icon
   * `x` Integer
   * `y` Integer
   * `width` Integer
   * `height` Integer
-* [`modifiers`][modifiers] Integer - bitsum of keyboard modifiers and mouse keys
 
 Emitted when the tray icon is double clicked.
 
@@ -181,4 +187,3 @@ __Note:__ This is only implemented on OS X and Windows.
 Sets the context menu for this icon.
 
 [event-emitter]: http://nodejs.org/api/events.html#events_class_events_eventemitter
-[modifiers]: https://code.google.com/p/chromium/codesearch#chromium/src/ui/events/event_constants.h&l=77