Skip to content
This repository was archived by the owner on Sep 10, 2022. It is now read-only.

Commit dc3a6b1

Browse files
committed
Fix Mac keystroke functions.
1 parent 6185223 commit dc3a6b1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/mac/screenscraper.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,10 @@ bool send_keystroke(int keyCode) {
115115
return true;
116116
}
117117

118-
bool send_keystroke_b() { send_keystroke(11); }
119-
bool send_keystroke_t() { send_keystroke(17); }
120-
bool send_keystroke_w() { send_keystroke(13); }
121-
bool send_keystroke_z() { send_keystroke(6); }
118+
bool send_keystroke_b() { return send_keystroke(11); }
119+
bool send_keystroke_t() { return send_keystroke(17); }
120+
bool send_keystroke_w() { return send_keystroke(13); }
121+
bool send_keystroke_z() { return send_keystroke(6); }
122122

123123
bool send_scroll_down(x, y) {
124124
CGFloat devicePixelRatio =

0 commit comments

Comments
 (0)