feat: add tray.focus() (#19548)
This commit is contained in:
parent
ed3b69ffb1
commit
03debb4ef9
7 changed files with 28 additions and 0 deletions
|
@ -240,6 +240,13 @@ Displays a tray balloon.
|
|||
|
||||
Removes a tray balloon.
|
||||
|
||||
#### `tray.focus()` _Windows_
|
||||
|
||||
Returns focus to the taskbar notification area.
|
||||
Notification area icons should use this message when they have completed their UI operation.
|
||||
For example, if the icon displays a shortcut menu, but the user presses ESC to cancel it,
|
||||
use `tray.focus()` to return focus to the notification area.
|
||||
|
||||
#### `tray.popUpContextMenu([menu, position])` _macOS_ _Windows_
|
||||
|
||||
* `menu` Menu (optional)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue