From 2406d6c279c23793d1ddd57bccd28a74df2558d3 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 28 Jun 2017 11:40:21 -0700 Subject: [PATCH] Rename to mouse-leave for consistency with drag-leave --- atom/browser/api/atom_api_tray.cc | 2 +- docs/api/tray.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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.