Browse Source

Rename to mouse-leave for consistency with drag-leave

Kevin Sawicki 7 years ago
parent
commit
2406d6c279
2 changed files with 2 additions and 2 deletions
  1. 1 1
      atom/browser/api/atom_api_tray.cc
  2. 1 1
      docs/api/tray.md

+ 1 - 1
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() {

+ 1 - 1
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.