Skip to content
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

Remove duplicate sending of copy and cut commands. #10562

Merged
merged 2 commits into from
Nov 22, 2024

Conversation

gokaysatir
Copy link
Contributor

_doCopyCut function is already sending the relevant command.

Also saw that _sendCommandAndWaitForCompletion returns a promise that is not needed anymore (after Skyler's refactorings).

So we can remove that and use a boolean value for pursuing the state of cut/copy commands.

This fixes (Calc):

  • Cut text.
  • Paste it.
  • It pastes empty text - because of double issuing of cut command, second time it cuts empty text.

Change-Id: I0d4a2b0637892234a7dab68638f26cacadd8bb11

  • Resolves: #
  • Target version: master

Summary

TODO

  • ...

Checklist

  • I have run make prettier-write and formatted the code.
  • All commits have Change-Id
  • I have run tests with make check
  • I have issued make run and manually verified that everything looks okay
  • Documentation (manuals or wiki) has been updated or is not required

browser/src/map/Clipboard.js Outdated Show resolved Hide resolved
browser/src/map/Clipboard.js Show resolved Hide resolved
browser/src/map/Clipboard.js Outdated Show resolved Hide resolved
@gokaysatir
Copy link
Contributor Author

There is a duplicate call to cut command.

There is also a tricky part for handling the command response. I will fix also that tricky code path.

Thanks for checking.

…false.

Or we duplicate the command.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Iefbb7c00a4806a3fd09b0ad4a8fa62e069ff9c80
Or it falls into catch block and disables the navigatorClipboardWrite.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I9617ad2f28401f197ed7c32f4c0eeb1822d632ad
Copy link
Member

@Minion3665 Minion3665 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this breaks mobile copy/paste again, but we should have time to fix mobile copy/paste before the next release... and it certainly makes the desktop side better. Don't backport this to 24.04-mobile.

@gokaysatir gokaysatir merged commit d09dee6 into master Nov 22, 2024
13 checks passed
@gokaysatir gokaysatir deleted the private/gokay/cut-paste branch November 22, 2024 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants