mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-12-23 02:33:26 +08:00
bug fix
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
const { clipboard } = require('electron');
|
||||
const { exec } = require('child_process');
|
||||
const robot = require('./robotjs')
|
||||
const robot = utools.robot
|
||||
|
||||
//-------checkUpdate------
|
||||
const fs = require('fs');
|
||||
@@ -62,6 +62,11 @@ copyTo = text => {
|
||||
clipboard.writeText(text)
|
||||
}
|
||||
|
||||
copy = () => {
|
||||
var ctlKey = isWin ? 'control' : 'command';
|
||||
robot.keyTap('c', ctlKey);
|
||||
}
|
||||
|
||||
paste = () => {
|
||||
var ctlKey = isWin ? 'control' : 'command';
|
||||
robot.keyTap('v', ctlKey);
|
||||
|
||||
Reference in New Issue
Block a user