@breakside/jskit 2023.18.0 → 2023.18.2
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/Frameworks/DOM.jsframework/Info.json +2 -2
- package/Frameworks/DOM.jsframework/io.breakside.JSKit.DOM-bundle.js +2 -2
- package/Frameworks/FontKit.jsframework/Info.json +2 -2
- package/Frameworks/FontKit.jsframework/io.breakside.JSKit.FontKit-bundle.js +2 -2
- package/Frameworks/Foundation.jsframework/Info.json +2 -2
- package/Frameworks/Foundation.jsframework/JS/JSFileManager+HTML.js +0 -1
- package/Frameworks/Foundation.jsframework/JS/JSLog.js +1 -1
- package/Frameworks/Foundation.jsframework/io.breakside.JSKit.Foundation-bundle.js +2 -2
- package/Frameworks/SecurityKit.jsframework/Info.json +2 -2
- package/Frameworks/SecurityKit.jsframework/io.breakside.JSKit.SecurityKit-bundle.js +2 -2
- package/Info.json +2 -2
- package/Node/io.breakside.jskit-bundle.js +2 -2
- package/Root/Frameworks/APIKit/Info.yaml +1 -1
- package/Root/Frameworks/APIKitTesting/Info.yaml +1 -1
- package/Root/Frameworks/AuthKit/Info.yaml +1 -1
- package/Root/Frameworks/CSSOM/Info.yaml +1 -1
- package/Root/Frameworks/ChartKit/Info.yaml +1 -1
- package/Root/Frameworks/ConferenceKit/Info.yaml +1 -1
- package/Root/Frameworks/DBKit/Info.yaml +1 -1
- package/Root/Frameworks/DOM/Info.yaml +1 -1
- package/Root/Frameworks/Dispatch/Info.yaml +1 -1
- package/Root/Frameworks/FontKit/Info.yaml +1 -1
- package/Root/Frameworks/Foundation/Info.yaml +1 -1
- package/Root/Frameworks/Foundation/JSFileManager+HTML.js +0 -1
- package/Root/Frameworks/Foundation/JSLog.js +1 -1
- package/Root/Frameworks/ImageKit/Info.yaml +1 -1
- package/Root/Frameworks/MediaKit/Info.yaml +1 -1
- package/Root/Frameworks/MediaKitUI/Info.yaml +1 -1
- package/Root/Frameworks/NotificationKit/Info.yaml +1 -1
- package/Root/Frameworks/PDFKit/Info.yaml +1 -1
- package/Root/Frameworks/QRKit/Info.yaml +1 -1
- package/Root/Frameworks/SearchKit/Info.yaml +1 -1
- package/Root/Frameworks/SecurityKit/Info.yaml +1 -1
- package/Root/Frameworks/ServerKit/Info.yaml +1 -1
- package/Root/Frameworks/ServerKitTesting/Info.yaml +1 -1
- package/Root/Frameworks/TestKit/Info.yaml +1 -1
- package/Root/Frameworks/UIKit/Info.yaml +1 -1
- package/Root/Frameworks/UIKit/UIHTMLWindowServer.js +6 -0
- package/Root/Frameworks/UIKit/UIVisualEffect.js +3 -3
- package/Root/Frameworks/UIKit/UIWindow.js +16 -14
- package/Root/Frameworks/UIKit/UIWindowServer.js +13 -2
- package/Root/Frameworks/UIKitTesting/Info.yaml +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"JSBundleType": "framework",
|
|
3
3
|
"JSBundleIdentifier": "io.breakside.JSKit.DOM",
|
|
4
|
-
"JSBundleVersion": "2023.18.
|
|
4
|
+
"JSBundleVersion": "2023.18.2",
|
|
5
5
|
"JSDevelopmentLanguage": "en",
|
|
6
6
|
"JSCopyright": "Copyright © 2020 Breakside Inc.",
|
|
7
7
|
"JSBundleEnvironments": {
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
"node": "DOM+Node.js"
|
|
10
10
|
},
|
|
11
11
|
"JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
|
|
12
|
-
"GitRevision": "
|
|
12
|
+
"GitRevision": "2b512aa4d908e7d7cde779e5898e1620aa6c8d35"
|
|
13
13
|
}
|
|
@@ -3,7 +3,7 @@ JSBundle.bundles['io.breakside.JSKit.DOM'] = {
|
|
|
3
3
|
"Info": {
|
|
4
4
|
"JSBundleType": "framework",
|
|
5
5
|
"JSBundleIdentifier": "io.breakside.JSKit.DOM",
|
|
6
|
-
"JSBundleVersion": "2023.18.
|
|
6
|
+
"JSBundleVersion": "2023.18.2",
|
|
7
7
|
"JSDevelopmentLanguage": "en",
|
|
8
8
|
"JSCopyright": "Copyright © 2020 Breakside Inc.",
|
|
9
9
|
"JSBundleEnvironments": {
|
|
@@ -11,7 +11,7 @@ JSBundle.bundles['io.breakside.JSKit.DOM'] = {
|
|
|
11
11
|
"node": "DOM+Node.js"
|
|
12
12
|
},
|
|
13
13
|
"JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
|
|
14
|
-
"GitRevision": "
|
|
14
|
+
"GitRevision": "2b512aa4d908e7d7cde779e5898e1620aa6c8d35"
|
|
15
15
|
},
|
|
16
16
|
"Resources": [],
|
|
17
17
|
"ResourceLookup": {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"JSBundleType": "framework",
|
|
3
3
|
"JSBundleIdentifier": "io.breakside.JSKit.FontKit",
|
|
4
|
-
"JSBundleVersion": "2023.18.
|
|
4
|
+
"JSBundleVersion": "2023.18.2",
|
|
5
5
|
"JSDevelopmentLanguage": "en",
|
|
6
6
|
"JSCopyright": "Copyright © 2020 Breakside Inc.",
|
|
7
7
|
"JSBundleEnvironments": {
|
|
8
8
|
"html": "FontKit+HTML.js"
|
|
9
9
|
},
|
|
10
10
|
"JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
|
|
11
|
-
"GitRevision": "
|
|
11
|
+
"GitRevision": "2b512aa4d908e7d7cde779e5898e1620aa6c8d35"
|
|
12
12
|
}
|
|
@@ -3,14 +3,14 @@ JSBundle.bundles['io.breakside.JSKit.FontKit'] = {
|
|
|
3
3
|
"Info": {
|
|
4
4
|
"JSBundleType": "framework",
|
|
5
5
|
"JSBundleIdentifier": "io.breakside.JSKit.FontKit",
|
|
6
|
-
"JSBundleVersion": "2023.18.
|
|
6
|
+
"JSBundleVersion": "2023.18.2",
|
|
7
7
|
"JSDevelopmentLanguage": "en",
|
|
8
8
|
"JSCopyright": "Copyright © 2020 Breakside Inc.",
|
|
9
9
|
"JSBundleEnvironments": {
|
|
10
10
|
"html": "FontKit+HTML.js"
|
|
11
11
|
},
|
|
12
12
|
"JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
|
|
13
|
-
"GitRevision": "
|
|
13
|
+
"GitRevision": "2b512aa4d908e7d7cde779e5898e1620aa6c8d35"
|
|
14
14
|
},
|
|
15
15
|
"Resources": [],
|
|
16
16
|
"ResourceLookup": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"JSBundleType": "framework",
|
|
3
3
|
"JSBundleIdentifier": "io.breakside.JSKit.Foundation",
|
|
4
|
-
"JSBundleVersion": "2023.18.
|
|
4
|
+
"JSBundleVersion": "2023.18.2",
|
|
5
5
|
"JSDevelopmentLanguage": "en",
|
|
6
6
|
"JSCopyright": "Copyright © 2020 Breakside Inc.",
|
|
7
7
|
"JSBundleEnvironments": {
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
"node": "Foundation+Node.js"
|
|
10
10
|
},
|
|
11
11
|
"JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
|
|
12
|
-
"GitRevision": "
|
|
12
|
+
"GitRevision": "2b512aa4d908e7d7cde779e5898e1620aa6c8d35"
|
|
13
13
|
}
|
|
@@ -237,7 +237,7 @@ var jslog_formatter = {
|
|
|
237
237
|
error: function(e, options){
|
|
238
238
|
// var frames = e.frames;
|
|
239
239
|
// return e.toString() + ' \u2014 ' + frames[0].method + ' \u2014 ' + frames[0].filename + ':' + frames[0].lineno;
|
|
240
|
-
return e
|
|
240
|
+
return String(e);
|
|
241
241
|
},
|
|
242
242
|
|
|
243
243
|
public: String.printf_formatter.s
|
|
@@ -3,7 +3,7 @@ JSBundle.bundles['io.breakside.JSKit.Foundation'] = {
|
|
|
3
3
|
"Info": {
|
|
4
4
|
"JSBundleType": "framework",
|
|
5
5
|
"JSBundleIdentifier": "io.breakside.JSKit.Foundation",
|
|
6
|
-
"JSBundleVersion": "2023.18.
|
|
6
|
+
"JSBundleVersion": "2023.18.2",
|
|
7
7
|
"JSDevelopmentLanguage": "en",
|
|
8
8
|
"JSCopyright": "Copyright © 2020 Breakside Inc.",
|
|
9
9
|
"JSBundleEnvironments": {
|
|
@@ -11,7 +11,7 @@ JSBundle.bundles['io.breakside.JSKit.Foundation'] = {
|
|
|
11
11
|
"node": "Foundation+Node.js"
|
|
12
12
|
},
|
|
13
13
|
"JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
|
|
14
|
-
"GitRevision": "
|
|
14
|
+
"GitRevision": "2b512aa4d908e7d7cde779e5898e1620aa6c8d35"
|
|
15
15
|
},
|
|
16
16
|
"Resources": [
|
|
17
17
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"JSBundleType": "framework",
|
|
3
3
|
"JSBundleIdentifier": "io.breakside.JSKit.SecurityKit",
|
|
4
|
-
"JSBundleVersion": "2023.18.
|
|
4
|
+
"JSBundleVersion": "2023.18.2",
|
|
5
5
|
"JSDevelopmentLanguage": "en",
|
|
6
6
|
"JSCopyright": "Copyright © 2020 Breakside Inc.",
|
|
7
7
|
"JSBundleEnvironments": {
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
"node": "SecurityKit+Node.js"
|
|
10
10
|
},
|
|
11
11
|
"JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
|
|
12
|
-
"GitRevision": "
|
|
12
|
+
"GitRevision": "2b512aa4d908e7d7cde779e5898e1620aa6c8d35"
|
|
13
13
|
}
|
|
@@ -3,7 +3,7 @@ JSBundle.bundles['io.breakside.JSKit.SecurityKit'] = {
|
|
|
3
3
|
"Info": {
|
|
4
4
|
"JSBundleType": "framework",
|
|
5
5
|
"JSBundleIdentifier": "io.breakside.JSKit.SecurityKit",
|
|
6
|
-
"JSBundleVersion": "2023.18.
|
|
6
|
+
"JSBundleVersion": "2023.18.2",
|
|
7
7
|
"JSDevelopmentLanguage": "en",
|
|
8
8
|
"JSCopyright": "Copyright © 2020 Breakside Inc.",
|
|
9
9
|
"JSBundleEnvironments": {
|
|
@@ -11,7 +11,7 @@ JSBundle.bundles['io.breakside.JSKit.SecurityKit'] = {
|
|
|
11
11
|
"node": "SecurityKit+Node.js"
|
|
12
12
|
},
|
|
13
13
|
"JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
|
|
14
|
-
"GitRevision": "
|
|
14
|
+
"GitRevision": "2b512aa4d908e7d7cde779e5898e1620aa6c8d35"
|
|
15
15
|
},
|
|
16
16
|
"Resources": [],
|
|
17
17
|
"ResourceLookup": {
|
package/Info.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"JSBundleType": "node",
|
|
3
3
|
"JSBundleIdentifier": "io.breakside.jskit",
|
|
4
|
-
"JSBundleVersion": "2023.18.
|
|
4
|
+
"JSBundleVersion": "2023.18.2",
|
|
5
5
|
"JSExecutableName": "jskit",
|
|
6
6
|
"NPMOrganization": "breakside",
|
|
7
7
|
"JSResources": [
|
|
8
8
|
"Tests/HTMLTestRunner.js",
|
|
9
9
|
"Tests/NodeTestRunner.js"
|
|
10
10
|
],
|
|
11
|
-
"GitRevision": "
|
|
11
|
+
"GitRevision": "2b512aa4d908e7d7cde779e5898e1620aa6c8d35"
|
|
12
12
|
}
|
|
@@ -3,14 +3,14 @@ JSBundle.bundles['io.breakside.jskit'] = {
|
|
|
3
3
|
"Info": {
|
|
4
4
|
"JSBundleType": "node",
|
|
5
5
|
"JSBundleIdentifier": "io.breakside.jskit",
|
|
6
|
-
"JSBundleVersion": "2023.18.
|
|
6
|
+
"JSBundleVersion": "2023.18.2",
|
|
7
7
|
"JSExecutableName": "jskit",
|
|
8
8
|
"NPMOrganization": "breakside",
|
|
9
9
|
"JSResources": [
|
|
10
10
|
"Tests/HTMLTestRunner.js",
|
|
11
11
|
"Tests/NodeTestRunner.js"
|
|
12
12
|
],
|
|
13
|
-
"GitRevision": "
|
|
13
|
+
"GitRevision": "2b512aa4d908e7d7cde779e5898e1620aa6c8d35"
|
|
14
14
|
},
|
|
15
15
|
"Resources": [
|
|
16
16
|
{
|
|
@@ -237,7 +237,7 @@ var jslog_formatter = {
|
|
|
237
237
|
error: function(e, options){
|
|
238
238
|
// var frames = e.frames;
|
|
239
239
|
// return e.toString() + ' \u2014 ' + frames[0].method + ' \u2014 ' + frames[0].filename + ':' + frames[0].lineno;
|
|
240
|
-
return e
|
|
240
|
+
return String(e);
|
|
241
241
|
},
|
|
242
242
|
|
|
243
243
|
public: String.printf_formatter.s
|
|
@@ -340,6 +340,8 @@ JSClass("UIHTMLWindowServer", UIWindowServer, {
|
|
|
340
340
|
// prevent the default wheel behavior so we can do our own
|
|
341
341
|
e.preventDefault();
|
|
342
342
|
this._createScrollEventFromDOMEvent(e, UIEvent.Type.scrollWheel);
|
|
343
|
+
var modifiers = this._modifiersFromDOMEvent(e);
|
|
344
|
+
this.mouseDidMove(e.timeStamp / 1000.0, modifiers);
|
|
343
345
|
},
|
|
344
346
|
|
|
345
347
|
_createMouseEventFromDOMEvent: function(e, type){
|
|
@@ -464,6 +466,10 @@ JSClass("UIHTMLWindowServer", UIWindowServer, {
|
|
|
464
466
|
}
|
|
465
467
|
},
|
|
466
468
|
|
|
469
|
+
shouldCancelDragOnEscape: function(){
|
|
470
|
+
return !this._dragingSessionStartedOutsideBrowser;
|
|
471
|
+
},
|
|
472
|
+
|
|
467
473
|
_correctedEventKey: function(key){
|
|
468
474
|
if (key === 'Left'){
|
|
469
475
|
return 'ArrowLeft';
|
|
@@ -129,18 +129,18 @@ JSClass("UIDarkenEffect", UIVisualEffect, {
|
|
|
129
129
|
},
|
|
130
130
|
|
|
131
131
|
initWithSpec: function(spec){
|
|
132
|
-
|
|
132
|
+
UIDarkenEffect.$super.initWithSpec.call(this, spec);
|
|
133
133
|
if (spec.containsKey("percentage")){
|
|
134
134
|
this.percentage = spec.valueForKey("percentage", Number);
|
|
135
135
|
}
|
|
136
136
|
},
|
|
137
137
|
|
|
138
138
|
animationInterpolation: function(from, to, progress){
|
|
139
|
-
return
|
|
139
|
+
return UIDarkenEffect.initWithPercentage(from.percentage + (to.percentage - from.percentage) * progress);
|
|
140
140
|
},
|
|
141
141
|
|
|
142
142
|
defaultAnimationValue: function(){
|
|
143
|
-
return
|
|
143
|
+
return UIDarkenEffect.initWithPercentage(0);
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
});
|
|
@@ -859,8 +859,8 @@ JSClass('UIWindow', UIView, {
|
|
|
859
859
|
if (moves.length > 0){
|
|
860
860
|
event = UIEvent.initMouseEventWithType(UIEvent.Type.mouseMoved, timestamp, this, locationInWindow, modifiers, 0);
|
|
861
861
|
for (areaIndex = 0, areaCount = moves.length; areaIndex < areaCount; ++areaIndex){
|
|
862
|
+
area = moves[areaIndex];
|
|
862
863
|
if ((area.trackingType & UIMouseTrackingArea.TrackingType.move) !== 0){
|
|
863
|
-
area = moves[areaIndex];
|
|
864
864
|
area.mouseMoved(event);
|
|
865
865
|
}
|
|
866
866
|
}
|
|
@@ -1082,19 +1082,21 @@ JSClass('UIWindow', UIView, {
|
|
|
1082
1082
|
for (var id in touchesByView){
|
|
1083
1083
|
touches = touchesByView[id];
|
|
1084
1084
|
view = touches[0].view;
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1085
|
+
if (view.window === this){
|
|
1086
|
+
switch (event.type){
|
|
1087
|
+
case UIEvent.Type.touchesBegan:
|
|
1088
|
+
view.touchesBegan(touches, event);
|
|
1089
|
+
break;
|
|
1090
|
+
case UIEvent.Type.touchesMoved:
|
|
1091
|
+
view.touchesMoved(touches, event);
|
|
1092
|
+
break;
|
|
1093
|
+
case UIEvent.Type.touchesCanceled:
|
|
1094
|
+
view.touchesCanceled(touches, event);
|
|
1095
|
+
break;
|
|
1096
|
+
case UIEvent.Type.touchesEnded:
|
|
1097
|
+
view.touchesEnded(touches, event);
|
|
1098
|
+
break;
|
|
1099
|
+
}
|
|
1098
1100
|
}
|
|
1099
1101
|
}
|
|
1100
1102
|
},
|
|
@@ -724,12 +724,17 @@ JSClass("UIWindowServer", JSObject, {
|
|
|
724
724
|
var windowIndex;
|
|
725
725
|
var location;
|
|
726
726
|
var event;
|
|
727
|
+
var hasWindowReceivingAllEvents = false;
|
|
727
728
|
for (windowIndex = this.windowStack.length - 1; windowIndex >= 0 && window === null; --windowIndex){
|
|
728
729
|
location = this.windowStack[windowIndex].convertPointFromScreen(this.mouseLocation);
|
|
729
|
-
|
|
730
|
+
hasWindowReceivingAllEvents = hasWindowReceivingAllEvents || this.windowStack[windowIndex].receivesAllEvents;
|
|
731
|
+
if (this.windowStack[windowIndex].userInteractionEnabled && this.windowStack[windowIndex].containsPoint(location)){
|
|
730
732
|
window = this.windowStack[windowIndex];
|
|
731
733
|
}
|
|
732
734
|
}
|
|
735
|
+
if (hasWindowReceivingAllEvents && window !== null && !window.receivesAllEvents){
|
|
736
|
+
window = null;
|
|
737
|
+
}
|
|
733
738
|
if (this._mouseTrackingWindow !== null){
|
|
734
739
|
if (window !== this._mouseTrackingWindow){
|
|
735
740
|
this._mouseTrackingWindow.sendMouseTrackingEvents(this._mouseTrackingWindow.convertPointFromScreen(this.mouseLocation), timestamp, modifiers, true);
|
|
@@ -809,6 +814,10 @@ JSClass("UIWindowServer", JSObject, {
|
|
|
809
814
|
return this._draggingSession !== null;
|
|
810
815
|
},
|
|
811
816
|
|
|
817
|
+
shouldCancelDragOnEscape: function(){
|
|
818
|
+
return true;
|
|
819
|
+
},
|
|
820
|
+
|
|
812
821
|
handleDraggingKeyEvent: function(event){
|
|
813
822
|
switch (event.type){
|
|
814
823
|
case UIEvent.Type.keyDown:
|
|
@@ -817,7 +826,9 @@ JSClass("UIWindowServer", JSObject, {
|
|
|
817
826
|
// Resetting the entire mouse state. If we only stopped the drag
|
|
818
827
|
// session, mouse move events would be directed to the view that
|
|
819
828
|
// started the drag, and it likely will just start another drag
|
|
820
|
-
this.
|
|
829
|
+
if (this.shouldCancelDragOnEscape()){
|
|
830
|
+
this.resetMouseState();
|
|
831
|
+
}
|
|
821
832
|
break;
|
|
822
833
|
case UIEvent.Key.option:
|
|
823
834
|
// prefer copy
|