mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
add mouse-move event and click event position for tray
This commit is contained in:
committed by
Cheng Zhao
parent
ee519b7552
commit
0b205019b6
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user