mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-09-24 13:03:30 +08:00
增加读写剪贴板的接口
This commit is contained in:
12
src/plugins/monaco/types/quickcommand.api.d.ts
vendored
12
src/plugins/monaco/types/quickcommand.api.d.ts
vendored
@@ -352,6 +352,18 @@ interface quickcommandApi {
|
||||
*/
|
||||
simulatePaste();
|
||||
|
||||
/**
|
||||
* 读取剪贴板
|
||||
*/
|
||||
readClipboard(): text<string>;
|
||||
|
||||
/**
|
||||
* 写入剪贴板
|
||||
*
|
||||
* @param text 要写入的文本
|
||||
*/
|
||||
writeClipboard(text: string);
|
||||
|
||||
/**
|
||||
* 唤醒 uTools
|
||||
*
|
||||
|
Reference in New Issue
Block a user