Skip to content

Commit ae0a88d

Browse files
committed
Delay typing-out on macOS for 250ms, hopefully fixing 'avocado' on CI
1 parent 8874330 commit ae0a88d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

efck/output.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,11 @@ def _type_macos(text):
119119
tell application "System Events"
120120
keystroke "v" using command down
121121
key code 124 -- right arrow clears the selection
122-
delay 0.15
123122
end tell
124123
set the clipboard to prev_contents
125124
'''
126125
text = text.replace('"', '\\"')
127-
proc = subprocess.run(['sh', '-c', f"sleep .2 && nohup osascript -e '{_OSASCRIPT.format(text)}' & disown"])
126+
proc = subprocess.run(['sh', '-c', f"sleep .25 && nohup osascript -e '{_OSASCRIPT.format(text)}' & disown"])
128127
return proc.returncode
129128

130129

0 commit comments

Comments
 (0)