Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/darwin.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ module.exports = class DarwinPointer {
const window = view.window
const point = view.convertPointToView(x, y, null)

AppKitApplication.postEvent(this._event(TYPE.LEFT_MOUSE_DOWN, window, point))
AppKitApplication.postEvent(this._event(TYPE.LEFT_MOUSE_UP, window, point))
// Ahead of anything already queued that could take the window off key, as
// the first press in a window that is not key only makes it key.
AppKitApplication.postEvent(this._event(TYPE.LEFT_MOUSE_UP, window, point), true)
AppKitApplication.postEvent(this._event(TYPE.LEFT_MOUSE_DOWN, window, point), true)
}

pending(view) {
Expand Down
Loading