add mouse-move event and click event position for tray
This commit is contained in:
parent
ee519b7552
commit
0b205019b6
7 changed files with 41 additions and 9 deletions
|
@ -76,6 +76,7 @@ The `Tray` module emits the following events:
|
|||
* `ctrlKey` Boolean
|
||||
* `metaKey` Boolean
|
||||
* `bounds` [Rectangle](structures/rectangle.md) - The bounds of tray icon
|
||||
* `position` [Point](structures/point.md) - The position of the event
|
||||
|
||||
Emitted when the tray icon is clicked.
|
||||
|
||||
|
@ -166,6 +167,17 @@ Emitted when the mouse enters the tray icon.
|
|||
|
||||
Emitted when the mouse exits the tray icon.
|
||||
|
||||
#### Event: 'mouse-move' _macOS_
|
||||
|
||||
* `event` Event
|
||||
* `altKey` Boolean
|
||||
* `shiftKey` Boolean
|
||||
* `ctrlKey` Boolean
|
||||
* `metaKey` Boolean
|
||||
* `position` [Point](structures/point.md) - The position of the event
|
||||
|
||||
Emitted when the mouse moves in the tray icon.
|
||||
|
||||
### Instance Methods
|
||||
|
||||
The `Tray` class has the following methods:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue