-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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/Cut broken on safari on iPadOS #109635
Comments
@kieferrm my guess is you are selecting text through trackpad, right? I didn't reproduce this with selection through arrow keys, but if I use trackpad to select text, even though we do see the selection, it's actually an iOS native selection other than our virtual selection, then the Copy/Cut doesn't work as the editor is not even selected. It's a more severe problem with how selections are being handled now. I'm not seeing this issue with https://microsoft.github.io/monaco-editor/ so might not be a regression from our side recently. Will dig into a bit more why that happens. |
With a second try I can't reproduce the issue anymore and reloading the window and tried the third time and ran into it again. When this happens, clicking into the editor doesn't put focus into the editor text. update my 100% reproduce steps are
|
Previously with iOS/iPadOS 13, Our current logic on iOS:
However there is potentially an iOS 14 bug with Considering that webkit doesn't fully support
|
Testing #109422.
Cmd+C and Cmd+X are broken on safari on iPadOS in the Monaco editor and the terminal. It seems to me that this is related to the detection of the selection. When having a selection, the iPad toolbar does not show the copy action not do the key bindings work.
However, sometimes I can make it show up: Copy text from the omnibar, then paste into the editor using the key bindings or the iPad toolbar. In most cases the selection you make right after causes the copy action to be enabled.
The text was updated successfully, but these errors were encountered: