支持新API:getCopyFiles simulateKeyboardTap

This commit is contained in:
muwoo
2023-08-16 17:57:25 +08:00
parent c2a23f0c6c
commit 2008b62a45
4 changed files with 34 additions and 2 deletions

View File

@@ -162,8 +162,16 @@ window.rubick = {
shellBeep: () => {
ipcSend('shellBeep');
},
getFileIcon: (path) => {
return ipcSendSync('getFileIcon', { path });
},
getCopyedFiles: () => {
return ipcSendSync('getCopyFiles');
},
simulateKeyboardTap: (key, ...modifier) => {
ipcSend('simulateKeyboardTap', { key, modifier });
},
};