@andy.ian/dsh-homing 2.1.6 → 2.1.7
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/vendor/vnc.bundle.js +12 -0
- package/lib/vnc-app.js +12 -0
- package/lib/vnc-boot.js +1 -1
- package/package.json +1 -1
package/lib/vendor/vnc.bundle.js
CHANGED
|
@@ -14472,6 +14472,18 @@ function setupToolbar() {
|
|
|
14472
14472
|
autoBtn,
|
|
14473
14473
|
button("\u5173\u95ED\u7A97\u53E3", () => pickWindowAction("close")),
|
|
14474
14474
|
button("\u9000\u51FA\u7A0B\u5E8F", () => pickWindowAction("kill")),
|
|
14475
|
+
button("Ctrl+Alt+Del", () => {
|
|
14476
|
+
try {
|
|
14477
|
+
if (rfb && typeof rfb.sendCtrlAltDel === "function") {
|
|
14478
|
+
rfb.sendCtrlAltDel();
|
|
14479
|
+
setStatus("\u5DF2\u53D1\u9001 Ctrl+Alt+Del\uFF0C\u8BF7\u5728\u9501\u5C4F\u8F93\u5165 PIN", "ok");
|
|
14480
|
+
} else {
|
|
14481
|
+
setStatus("\u5F53\u524D\u8FDE\u63A5\u4E0D\u652F\u6301\u53D1\u9001 Ctrl+Alt+Del", "bad");
|
|
14482
|
+
}
|
|
14483
|
+
} catch (error) {
|
|
14484
|
+
setStatus("\u53D1\u9001\u5931\u8D25\uFF1A" + (error?.message ?? error), "bad");
|
|
14485
|
+
}
|
|
14486
|
+
}),
|
|
14475
14487
|
button("Alt+F4", () => sendCombo("alt", "f4")),
|
|
14476
14488
|
button("\u5207\u6362\u7A97\u53E3", () => sendCombo("alt", "tab")),
|
|
14477
14489
|
button("\u7535\u8111\u7AD6\u5C4F", () => rotateDesktop("portrait")),
|
package/lib/vnc-app.js
CHANGED
|
@@ -444,6 +444,18 @@ function setupToolbar() {
|
|
|
444
444
|
autoBtn,
|
|
445
445
|
button('关闭窗口', () => pickWindowAction('close')),
|
|
446
446
|
button('退出程序', () => pickWindowAction('kill')),
|
|
447
|
+
button('Ctrl+Alt+Del', () => {
|
|
448
|
+
try {
|
|
449
|
+
if (rfb && typeof rfb.sendCtrlAltDel === 'function') {
|
|
450
|
+
rfb.sendCtrlAltDel()
|
|
451
|
+
setStatus('已发送 Ctrl+Alt+Del,请在锁屏输入 PIN', 'ok')
|
|
452
|
+
} else {
|
|
453
|
+
setStatus('当前连接不支持发送 Ctrl+Alt+Del', 'bad')
|
|
454
|
+
}
|
|
455
|
+
} catch (error) {
|
|
456
|
+
setStatus('发送失败:' + (error?.message ?? error), 'bad')
|
|
457
|
+
}
|
|
458
|
+
}),
|
|
447
459
|
button('Alt+F4', () => sendCombo('alt', 'f4')),
|
|
448
460
|
button('切换窗口', () => sendCombo('alt', 'tab')),
|
|
449
461
|
button('电脑竖屏', () => rotateDesktop('portrait')),
|
package/lib/vnc-boot.js
CHANGED