Bug 125570 - cmd+v and "Edit > Paste" don't behave in the same way
Summary: cmd+v and "Edit > Paste" don't behave in the same way
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: iOS Editor (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: Other iOS
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-29 08:53 UTC by Nicolas Christener
Modified: 2020-05-12 06:23 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Christener 2019-05-29 08:53:58 UTC
Description:
cmd+v and "Edit > Paste" don't behace in the same way in the iOS app.

It seems that "Edit > Paste" is capable of pasting rich/text, while cmd+v only pasts plain/text.

This most probably confuses users and if possible, both options should work like "Edit > Paste".

Steps to Reproduce:
1. Copy some formated text e.g. from a webpage in the iOS browser
2. Paste to a document using "Edit > Paste"
3. Paste to a document using "cmd+v"

Actual Results:
Only pasting using "Edit > Paste" will keep the original formatting, pasting using "cmd+v" will result in plain/text.

Expected Results:
Both solutions should keep the original formatting.


Reproducible: Always


User Profile Reset: No



Additional Info:
From an e-mail from Tor:

It is the system that handles the Cmd+V, it generates a ‘paste’ event in the JavaScript that contains only text. But maybe we could when we get that ‘paste’ event not just simply post in the text that it contains, but have our event handler ask the native code to do the paste, which would then do the same as the Edit > Paste menu entry. Will look into that.
Comment 1 Xisco Faulí 2019-05-30 10:42:15 UTC
Moving to NEW as agreed in the ESC meeting
Comment 2 Nicolas Christener 2020-04-14 14:59:17 UTC
Tested again in 4.2.4 (50); it's fixed and now works as expected.

I believe, this issue can be closed!

Thanks a lot to the Collabora team ans especially Tor for taking care of this (through the ongoing development of the iOS app).
Comment 3 Aron Budea 2020-05-12 06:23:51 UTC
Let's close as WORKSFORME, thanks for retesting, Nicolas!