Add keyboard shortcuts

This commit is contained in:
Dean Herbert 2020-09-11 19:55:41 +09:00
parent 7d7401123c
commit de3d8e83e1
1 changed files with 12 additions and 0 deletions

View File

@ -292,6 +292,18 @@ public bool OnPressed(PlatformAction action)
{ {
switch (action.ActionType) switch (action.ActionType)
{ {
case PlatformActionType.Cut:
Cut();
return true;
case PlatformActionType.Copy:
Copy();
return true;
case PlatformActionType.Paste:
Paste();
return true;
case PlatformActionType.Undo: case PlatformActionType.Undo:
Undo(); Undo();
return true; return true;