Do not capture copy events where user selection exists
@@ -1008,6 +1008,10 @@ public final class YaFormEditor extends SimpleEditor implements FormChangeListen
// don't interfere with copy/pasting input
return false;
}
+ if ($wnd.getSelection && $wnd.getSelection() && $wnd.getSelection().toString() != '') {
+ // user is copying some other selection on the page
+ return false;
+ }
if (!editor.@com.google.appinventor.client.editor.FileEditor::isActiveEditor()()) {
// don't copy/paste in non-active editor
return false;
