-
-
Notifications
You must be signed in to change notification settings - Fork 473
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
Copy (Cmd+C) and Paste (Cmd+V) do not work in text controls on Mac. Bug: paste is executed twice. #161
Comments
Marshall responed on the CEF Forum:
Original comment by |
The copy and paste can be done by adding script to the cefpython client handler The client handler is in : OnKeyEvent handler. The windows and linux somehow able to use Ctrl-C and Ctrl-v, but the Mac dev need to add some code like this
the get_platform() and PLATFORM_MAC are variable. The mainBrowser is the instance returned by the cefpython.CreateBrowserSync() call. I don't know if this ability need to be part of the cefpython or must be implemented independently by the developer, but sure is the windows and Linux can do copy-paste without additional coding. |
Fixed in commit c23bc2d. v56 release coming soon. Copy/paste commands are now handled by default. You can still overwrite this behavior by implementing OnKeyEvent and returning True. CEF Python checks for return value and if True it won't handle these commands. |
There seems a bug was introduced with the default implementation for Copy/Paste. These commands are executed twice in one of user's app. Here is the code:
There should be a check: Additionally support for more shortcuts should be added:
|
Is this issue fixed? I'm still having the issue of pasting twice on High Sierra. |
@studiodoth You can fix this in your app by implementing OnKeyEvent and using code from my previous comment. |
Handle: copy, paste, cut, undo, redo, select all.
Fix double paste and handle more keyboard shortcuts on Mac in rev 8a20fdb. |
Copy (Cmd+C) and Paste (Cmd+V) do not work in text controls on Mac. Created topic on the CEF Forum: http://www.magpcss.org/ceforum/viewtopic.php?f=6&t=12561
Original issue reported on code.google.com by
czarek.t...@gmail.com
on 11 Jan 2015 at 6:46The text was updated successfully, but these errors were encountered: