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

Computer unresponsive after accidentally pasting a huge clipboard #4

Closed
karlhorky opened this issue Nov 29, 2017 · 1 comment
Closed

Comments

@karlhorky
Copy link
Contributor

I recently copied a huge piece of JSON into my clipboard (12k characters) and then must have accidentally clicked on the icon in the dock with my touchpad. My computer was unresponsive for 20 minutes as it entered all of this text, not to mention doing weird things like changing settings in programs and such when I tried to hit some keys like ⌘ to try to stop it.

I don't know what the answer is here. Maybe to prevent pasting over a certain number of characters? I guess I could make my own version of the script that does that, but I wanted to ask for feedback on this to see if there's a better solution.

@karlhorky karlhorky changed the title Stopping input after accidentally pasting a huge clipboard Computer unresponsive after accidentally pasting a huge clipboard Nov 29, 2017
karlhorky added a commit to karlhorky/Force-Paste that referenced this issue Nov 29, 2017
To prevent hanging the host for too long.

Closes EugeneDae#4
karlhorky added a commit to karlhorky/Force-Paste that referenced this issue Nov 29, 2017
To prevent hanging the host for too long.

Closes EugeneDae#4
karlhorky added a commit to karlhorky/Force-Paste that referenced this issue Nov 29, 2017
To prevent hanging the host for too long.

Closes EugeneDae#4
@karlhorky
Copy link
Contributor Author

I took a shot at limiting the string length to 250 in #5.

Not 100% happy with this solution though 😒 Any better solutions much appreciated.

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

No branches or pull requests

1 participant