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

Script crashes if used with non-text data on the clipboard #2

Open
acotis opened this issue Nov 7, 2021 · 0 comments
Open

Script crashes if used with non-text data on the clipboard #2

acotis opened this issue Nov 7, 2021 · 0 comments

Comments

@acotis
Copy link
Collaborator

acotis commented Nov 7, 2021

Kanakey crashes if you try to use it while your clipboard contains non-text data (such as image data). This is because the way it outputs the pretty Toaq text is that it copies the data to the clipboard and then simulates a "shift+insert" keypress in order to paste it. To avoid losing clipboard data, it first grabs whatever's on the clipboard, and then restores it afterwards (see the write_text() method in main.py). But it does so in a way that crashes if the data isn't text data. This might turn out to be an issue with the underlying Python library (clipboard).

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