mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 17:32:17 +00:00
Fixed autotype on Yosemite (issue #230)
This commit is contained in:
@@ -38,6 +38,7 @@
|
|||||||
[controller stashObjects];
|
[controller stashObjects];
|
||||||
[controller copyObjectsWithoutTimeout:@[self.pasteData]];
|
[controller copyObjectsWithoutTimeout:@[self.pasteData]];
|
||||||
[self sendPasteKeyCode];
|
[self sendPasteKeyCode];
|
||||||
|
usleep(0.1 * NSEC_PER_MSEC); // on 10.10 we need to wait a bit before restoring the pasteboard contents
|
||||||
[controller restoreObjects];
|
[controller restoreObjects];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user