mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-09 15:04:06 +08:00
修复macos输出到活动窗口的bug
This commit is contained in:
parent
e8fe5b8c44
commit
c03e980293
@ -1,4 +1,4 @@
|
|||||||
# 快捷命令 V1.5.0
|
# 快捷命令 V1.5.1
|
||||||
|
|
||||||
## 简介
|
## 简介
|
||||||
|
|
||||||
@ -6,6 +6,10 @@
|
|||||||
|
|
||||||
### 更新
|
### 更新
|
||||||
|
|
||||||
|
#### v1.5.1
|
||||||
|
- 修复macOS下新增命令界面排版错误的问题
|
||||||
|
- 修复macOS下使用shell脚本且发送输出结果到活动窗口时结果不正确的问题
|
||||||
|
|
||||||
#### v1.5.0
|
#### v1.5.0
|
||||||
|
|
||||||
##### 功能更新
|
##### 功能更新
|
||||||
|
@ -98,7 +98,9 @@ function runCmd(cmd, option, codec, output) {
|
|||||||
var historyData = storeClip();
|
var historyData = storeClip();
|
||||||
copyTo(stdout);
|
copyTo(stdout);
|
||||||
paste();
|
paste();
|
||||||
|
setTimeout(() => {
|
||||||
restoreClip(historyData);
|
restoreClip(historyData);
|
||||||
|
}, 500);
|
||||||
break;
|
break;
|
||||||
case "notice":
|
case "notice":
|
||||||
// 发送系统通知
|
// 发送系统通知
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"main": "index.html",
|
"main": "index.html",
|
||||||
"homepage": "https://github.com/fofolee/uTools-QuickerCommand",
|
"homepage": "https://github.com/fofolee/uTools-QuickerCommand",
|
||||||
"publishPage": "https://yuanliao.info/d/424",
|
"publishPage": "https://yuanliao.info/d/424",
|
||||||
"version": "1.5.0",
|
"version": "1.5.1",
|
||||||
"author": "云之轩",
|
"author": "云之轩",
|
||||||
"logo": "logo.png",
|
"logo": "logo.png",
|
||||||
"platform": [ "win32", "darwin", "linux" ],
|
"platform": [ "win32", "darwin", "linux" ],
|
||||||
|
@ -115,7 +115,9 @@ getSelectText = () => {
|
|||||||
clipboard.writeText('');
|
clipboard.writeText('');
|
||||||
copy();
|
copy();
|
||||||
var selectText = clipboard.readText()
|
var selectText = clipboard.readText()
|
||||||
|
setTimeout(() => {
|
||||||
restoreClip(historyData)
|
restoreClip(historyData)
|
||||||
|
}, 500);
|
||||||
return selectText
|
return selectText
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user