mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-07-04 07:02:50 +08:00
发送文本默认使用hideMainWindowPasteText以保持更好的兼容性
This commit is contained in:
parent
9bcea1e575
commit
dc674c06a1
@ -28,7 +28,7 @@ const shortCodes = {
|
|||||||
electron.clipboard.writeText(text);
|
electron.clipboard.writeText(text);
|
||||||
},
|
},
|
||||||
send: (text) => {
|
send: (text) => {
|
||||||
window.utools.hideMainWindowTypeString(text);
|
window.utools.hideMainWindowPasteText(text);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -138,7 +138,7 @@ export default {
|
|||||||
quickcommand.showMessageBox("已复制到剪贴板");
|
quickcommand.showMessageBox("已复制到剪贴板");
|
||||||
},
|
},
|
||||||
sendResult() {
|
sendResult() {
|
||||||
window.utools.hideMainWindowTypeString(
|
window.utools.hideMainWindowPasteText(
|
||||||
this.selectText || this.getFormattedContent()
|
this.selectText || this.getFormattedContent()
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
@ -48,7 +48,7 @@ const outputTypes = {
|
|||||||
label: "发送到活动窗口",
|
label: "发送到活动窗口",
|
||||||
icon: "web_asset",
|
icon: "web_asset",
|
||||||
outPlugin: true,
|
outPlugin: true,
|
||||||
action: result => window.utools.hideMainWindowTypeString(result)
|
action: result => window.utools.hideMainWindowPasteText(result)
|
||||||
},
|
},
|
||||||
notice: {
|
notice: {
|
||||||
name: "notice",
|
name: "notice",
|
||||||
|
2
src/plugins/monaco/types/shortcode.api.d.ts
vendored
2
src/plugins/monaco/types/shortcode.api.d.ts
vendored
@ -73,7 +73,7 @@ declare function copyTo(text: string): void;
|
|||||||
*
|
*
|
||||||
* ```js
|
* ```js
|
||||||
* // 等同于
|
* // 等同于
|
||||||
* utools.hideMainWindowTypeString(text)
|
* utools.hideMainWindowPasteText(text)
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
declare function send(text: string): void;
|
declare function send(text: string): void;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user