mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Merge pull request #13962 from ekrctb/platform-action
Adapt to framework `PlatformAction` type change
This commit is contained in:
@ -230,9 +230,9 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
|
||||
public bool OnPressed(PlatformAction action)
|
||||
{
|
||||
switch (action.ActionType)
|
||||
switch (action)
|
||||
{
|
||||
case PlatformActionType.SelectAll:
|
||||
case PlatformAction.SelectAll:
|
||||
SelectAll();
|
||||
return true;
|
||||
}
|
||||
|
@ -139,9 +139,9 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
|
||||
public bool OnPressed(PlatformAction action)
|
||||
{
|
||||
switch (action.ActionMethod)
|
||||
switch (action)
|
||||
{
|
||||
case PlatformActionMethod.Delete:
|
||||
case PlatformAction.Delete:
|
||||
DeleteSelected();
|
||||
return true;
|
||||
}
|
||||
|
@ -80,7 +80,7 @@ namespace osu.Game.Screens.Edit.Compose
|
||||
|
||||
public bool OnPressed(PlatformAction action)
|
||||
{
|
||||
if (action.ActionType == PlatformActionType.Copy)
|
||||
if (action == PlatformAction.Copy)
|
||||
host.GetClipboard().SetText(formatSelectionAsString());
|
||||
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user