修复macos输出到活动窗口的bug

This commit is contained in:
fofolee 2020-04-18 19:27:26 +08:00
parent e8fe5b8c44
commit c03e980293
4 changed files with 12 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# 快捷命令 V1.5.0
# 快捷命令 V1.5.1
## 简介
@ -6,6 +6,10 @@
### 更新
#### v1.5.1
- 修复macOS下新增命令界面排版错误的问题
- 修复macOS下使用shell脚本且发送输出结果到活动窗口时结果不正确的问题
#### v1.5.0
##### 功能更新

View File

@ -98,7 +98,9 @@ function runCmd(cmd, option, codec, output) {
var historyData = storeClip();
copyTo(stdout);
paste();
restoreClip(historyData);
setTimeout(() => {
restoreClip(historyData);
}, 500);
break;
case "notice":
// 发送系统通知

View File

@ -4,7 +4,7 @@
"main": "index.html",
"homepage": "https://github.com/fofolee/uTools-QuickerCommand",
"publishPage": "https://yuanliao.info/d/424",
"version": "1.5.0",
"version": "1.5.1",
"author": "云之轩",
"logo": "logo.png",
"platform": [ "win32", "darwin", "linux" ],

View File

@ -115,7 +115,9 @@ getSelectText = () => {
clipboard.writeText('');
copy();
var selectText = clipboard.readText()
restoreClip(historyData)
setTimeout(() => {
restoreClip(historyData)
}, 500);
return selectText
}