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

Fix pressing Ctrl-C in composer not copying timestamp to system clipboard with empty selection #24171

Merged
merged 1 commit into from
Jul 10, 2023

Conversation

bdach
Copy link
Collaborator

@bdach bdach commented Jul 9, 2023

As noted on discord.

As noted in the following discussion there, it's a weird one. UX-wise the copy item in editor menu shouldn't be unblocked while there is nothing selected (every single other editor does this), which is what CanCopy was responsible for (and was why this was broken for no selection despite the underlying method supporting this). I think the timestamp copy thing ideally would be a separate action but can't be due to mapper muscle memory so I'm just making work in a very hidden way for those that are used to it already.

This also nukes the Cut / PerformCut et al. structure because while you technically could fix it just by overriding Copy(), having both Copy() and PerformCopy() overridden is......... not good.

No tests here because headless hosts don't have a clipboard to set, so it is currently untestable.

@peppy peppy merged commit 8b222dc into ppy:master Jul 10, 2023
@bdach bdach deleted the editor-timestamp-copy-without-selection branch July 10, 2023 17:06
@Susko3
Copy link
Member

Susko3 commented Jul 13, 2023

No tests here because headless hosts don't have a clipboard to set, so it is currently untestable.

Tests could be added for this now that ppy/osu-framework#5919 is in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants