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

Fix clipboard paste modes #159

Merged
merged 2 commits into from Jun 28, 2018

Conversation

luziferius
Copy link
Collaborator

I refactored the keyboard/mouse pasting modes.
This fixes the following issues:

Note: Pasting using the mouse selection is SLOW. It takes my system about a whole second to process the events. The code waits a second before restoring the previous clipboard, but this might not be enough. It needs further investigation.

Additionally: Don’t cram multiple statements in a line.
Both pasting modes (clipboard and mouse) now work on both GUIs and properly restore the previous clipboard content.
Added some type hints to the interface module.
The platform differences between GTK and Qt are factored out into a Clipboard class that adopts to the currently used GUI,
providing a unified interface to both.
@luziferius luziferius merged commit 6d4b17c into autokey:master Jun 28, 2018
@luziferius luziferius deleted the fix_clipboard_paste_modes branch June 28, 2018 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant