bare-pointer 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/darwin.js +4 -2
- package/package.json +1 -1
package/lib/darwin.js
CHANGED
|
@@ -65,8 +65,10 @@ module.exports = class DarwinPointer {
|
|
|
65
65
|
const window = view.window
|
|
66
66
|
const point = view.convertPointToView(x, y, null)
|
|
67
67
|
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
// Ahead of anything already queued that could take the window off key, as
|
|
69
|
+
// the first press in a window that is not key only makes it key.
|
|
70
|
+
AppKitApplication.postEvent(this._event(TYPE.LEFT_MOUSE_UP, window, point), true)
|
|
71
|
+
AppKitApplication.postEvent(this._event(TYPE.LEFT_MOUSE_DOWN, window, point), true)
|
|
70
72
|
}
|
|
71
73
|
|
|
72
74
|
pending(view) {
|