diff --git a/atom/browser/api/atom_api_tray.cc b/atom/browser/api/atom_api_tray.cc index bc903da72534..8d0ab829182e 100644 --- a/atom/browser/api/atom_api_tray.cc +++ b/atom/browser/api/atom_api_tray.cc @@ -127,7 +127,7 @@ void Tray::OnMouseEntered() { } void Tray::OnMouseExited() { - Emit("mouse-exited"); + Emit("mouse-leave"); } void Tray::OnDragEntered() { diff --git a/docs/api/tray.md b/docs/api/tray.md index 1f530170f287..e39ab6136af8 100644 --- a/docs/api/tray.md +++ b/docs/api/tray.md @@ -148,7 +148,7 @@ Emitted when a drag operation ends on the tray or ends at another location. Emitted when the mouse enters the tray icon. -#### Event: 'mouse-exit' _macOS_ +#### Event: 'mouse-leave' _macOS_ Emitted when the mouse exits the tray icon.