File tree 3 files changed +13
-10
lines changed
renderer/src/pages/settings
3 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ export const execute = async (executeParams: ExecuteParams) => {
94
94
logger . info ( `[execute] [Position] (${ startX } , ${ startY } )` ) ;
95
95
96
96
// execute configs
97
- mouse . config . mouseSpeed = 1500 ;
97
+ mouse . config . mouseSpeed = 2000 ;
98
98
99
99
// if (startBoxStr) {
100
100
// const region = await nutScreen.highlight(
@@ -181,9 +181,12 @@ export const execute = async (executeParams: ExecuteParams) => {
181
181
if ( env . isWindows ) {
182
182
const originalClipboard = clipboard . readText ( ) ;
183
183
clipboard . writeText ( stripContent ) ;
184
- await keyboard . pressKey ( Key . LeftControl , Key . V ) ;
184
+ await keyboard . pressKey ( Key . LeftControl ) ;
185
+ await sleep ( 50 ) ;
186
+ await keyboard . pressKey ( Key . V ) ;
187
+ await sleep ( 50 ) ;
185
188
await keyboard . releaseKey ( Key . LeftControl , Key . V ) ;
186
- await sleep ( 500 ) ;
189
+ await sleep ( 100 ) ;
187
190
clipboard . writeText ( originalClipboard ) ;
188
191
} else {
189
192
await keyboard . type ( stripContent ) ;
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ export function createSettingsWindow(
94
94
console . log ( 'mainWindowBounds' , mainWindowBounds ) ;
95
95
96
96
const width = 480 ;
97
- const height = 760 ;
97
+ const height = 700 ;
98
98
99
99
let x , y ;
100
100
if ( mainWindowBounds ) {
Original file line number Diff line number Diff line change @@ -57,12 +57,12 @@ const Settings = () => {
57
57
duration : 1500 ,
58
58
isClosable : true ,
59
59
variant : 'ui-tars-success' ,
60
- onCloseComplete : ( ) => {
61
- dispatch ( {
62
- type : 'CLOSE_SETTINGS_WINDOW' ,
63
- payload : null ,
64
- } ) ;
65
- } ,
60
+ // onCloseComplete: () => {
61
+ // dispatch({
62
+ // type: 'CLOSE_SETTINGS_WINDOW',
63
+ // payload: null,
64
+ // });
65
+ // },
66
66
} ) ;
67
67
} ;
68
68
You can’t perform that action at this time.
0 commit comments