Skip to content

GH-4044 Implemented copy screenshots to the clipboard#4300

Merged
peterix merged 3 commits intoMultiMC:developfrom
ghosty141:feature/screenshot_copy
Jan 30, 2022
Merged

GH-4044 Implemented copy screenshots to the clipboard#4300
peterix merged 3 commits intoMultiMC:developfrom
ghosty141:feature/screenshot_copy

Conversation

@ghosty141
Copy link
Copy Markdown
Contributor

  • Added context-menu entry
  • Ctrl+C keybind works as well
  • If multiple screenshots are selected, only the first one gets copied

One "issue" I noticed, should the switch-case that checks for the pressed key be rewritten to if-else since the check for Ctrl+C cannot be done using the switch?

- Added context-menu entry
- Ctrl+C keybind works as well
- If multiple screenshots are selected, only the first one gets copied
@peterix
Copy link
Copy Markdown
Member

peterix commented Dec 3, 2021

I'd call this 'copy image data', and only allow it with single selection.

With both multiple selection and single selection, there should be a 'copy' that operates on the file level, not image data level.

@phit
Copy link
Copy Markdown
Contributor

phit commented Dec 3, 2021

related issue #4044

- Ctrl+C now copies the file instead of the image data
- Renamed Copy to Copy Image
@ghosty141 ghosty141 changed the title NOISSUE Implemented copy screenshots to the clipboard GH-4044 Implemented copy screenshots to the clipboard Dec 3, 2021
@ghosty141
Copy link
Copy Markdown
Contributor Author

I'd call this 'copy image data', and only allow it with single selection.

With both multiple selection and single selection, there should be a 'copy' that operates on the file level, not image data level.

Implemented in a97d0a3 and e9c52ec . What I noticed, the widebard still contains the item, can this also be changed based on the selection?

@peterix
Copy link
Copy Markdown
Member

peterix commented Jan 30, 2022

It should be possible?

Sorry to keep you waiting, but I just got distracted and forgot.

In any case, let's merge this and see what the dev build users think.

@peterix peterix merged commit 2cf04d0 into MultiMC:develop Jan 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants