Skip to content

Commit

Permalink
Implement the clipboard.
Browse files Browse the repository at this point in the history
There's no need to implement the copy/paste behavior.
  • Loading branch information
andy840119 committed Jul 25, 2022
1 parent 339b6e0 commit 463cce0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions osu.Game.Rulesets.Karaoke/Edit/Lyrics/LyricEditorClipboard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ private bool performCut()
throw new ArgumentOutOfRangeException();
}

case LyricEditorMode.Reference:
return false;

case LyricEditorMode.Language:
languageChangeHandler.SetLanguage(null);
return true;
Expand Down Expand Up @@ -227,6 +230,9 @@ private bool performCopy(Lyric lyric)
throw new ArgumentOutOfRangeException();
}

case LyricEditorMode.Reference:
return false;

case LyricEditorMode.Language:
saveObjectToTheClipboardContent(lyric.Language);
copyObjectToClipboard(lyric.Language);
Expand Down Expand Up @@ -299,6 +305,9 @@ private bool performPaste(Lyric lyric)
throw new ArgumentOutOfRangeException();
}

case LyricEditorMode.Reference:
return false;

case LyricEditorMode.Language:
var pasteLanguage = getObjectFromClipboardContent<CultureInfo>();
if (pasteLanguage == null)
Expand Down

0 comments on commit 463cce0

Please sign in to comment.