@salesforce/ui-bundle 1.117.3 → 1.117.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/dist/package.json.js
CHANGED
|
@@ -317,6 +317,39 @@
|
|
|
317
317
|
},
|
|
318
318
|
true,
|
|
319
319
|
);
|
|
320
|
+
|
|
321
|
+
// W-21747416: Forward keyboard events with modifier keys to the parent
|
|
322
|
+
// webview so VS Code can handle shortcuts (Cmd+Shift+P, Cmd+P, etc.)
|
|
323
|
+
// that the iframe would otherwise swallow.
|
|
324
|
+
// Exclude copy (Cmd+C / Ctrl+C) since it is already handled by the copy
|
|
325
|
+
// listener above — forwarding it would cause the copy action to fire twice.
|
|
326
|
+
document.addEventListener(
|
|
327
|
+
"keydown",
|
|
328
|
+
function (e) {
|
|
329
|
+
if (
|
|
330
|
+
(e.metaKey || e.ctrlKey || e.altKey) &&
|
|
331
|
+
!((e.metaKey || e.ctrlKey) && (e.key === "c" || e.key === "C"))
|
|
332
|
+
) {
|
|
333
|
+
try {
|
|
334
|
+
window.parent.postMessage(
|
|
335
|
+
{
|
|
336
|
+
command: "forwardKeydown",
|
|
337
|
+
_source: "webapps-proxy-injected-script",
|
|
338
|
+
key: e.key,
|
|
339
|
+
code: e.code,
|
|
340
|
+
metaKey: e.metaKey,
|
|
341
|
+
ctrlKey: e.ctrlKey,
|
|
342
|
+
shiftKey: e.shiftKey,
|
|
343
|
+
altKey: e.altKey,
|
|
344
|
+
repeat: e.repeat,
|
|
345
|
+
},
|
|
346
|
+
"*",
|
|
347
|
+
);
|
|
348
|
+
} catch (err) {}
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
true,
|
|
352
|
+
);
|
|
320
353
|
}
|
|
321
354
|
|
|
322
355
|
if (window.parent && window.parent !== window) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/ui-bundle",
|
|
3
3
|
"description": "Core package for Salesforce UI Bundles",
|
|
4
|
-
"version": "1.117.
|
|
4
|
+
"version": "1.117.5",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@salesforce/core": "^8.23.4",
|
|
47
|
-
"@salesforce/sdk-data": "^1.117.
|
|
47
|
+
"@salesforce/sdk-data": "^1.117.5",
|
|
48
48
|
"axios": "^1.7.7",
|
|
49
49
|
"micromatch": "^4.0.8",
|
|
50
50
|
"path-to-regexp": "^8.3.0"
|