Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS: Added workaround for entering text that starts with newline #261

Merged
merged 1 commit into from
Feb 6, 2024

Conversation

pentamassiv
Copy link
Collaborator

Fixes #260

I am not sure if there is an issue with the rust bindings or the underlying system API, but there is an issue entering strings on macOS that start with a newline character. The workaround will check if the string starts with a newline and will instead simulate the return key. I hope it does not cause any unexpected side effects

@pentamassiv pentamassiv force-pushed the fix_start_newline_macos branch 2 times, most recently from 1d0aa0c to 3f780a2 Compare February 6, 2024 00:46
@pentamassiv pentamassiv force-pushed the fix_start_newline_macos branch from 3f780a2 to b460af2 Compare February 6, 2024 00:49
@pentamassiv pentamassiv merged commit b543814 into enigo-rs:main Feb 6, 2024
9 checks passed
@pentamassiv pentamassiv deleted the fix_start_newline_macos branch February 6, 2024 00:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

text seems to miss certain characters, consistently
1 participant