Skip to content

Commit

Permalink
simipler android impl
Browse files Browse the repository at this point in the history
  • Loading branch information
IeuanWalker committed Apr 11, 2023
1 parent 31d3332 commit 911d706
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions Scr/Platform/CustomContentViewGroup.Android.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Android.Content;
using Android.Runtime;
using Android.Views;
using Java.Lang;
using Microsoft.Maui.Platform;
Expand Down Expand Up @@ -61,15 +60,4 @@ public CustomContentViewGroup(Context context, IBorderView virtualView) : base(c
}

public override ICharSequence? AccessibilityClassNameFormatted => new String("android.widget.Button");

public override bool OnKeyUp([GeneratedEnum] Keycode keyCode, KeyEvent? e)
{
if (keyCode == Keycode.Space || keyCode == Keycode.Enter)
{
_stateButton.InvokeClicked();
return true;
}

return base.OnKeyUp(keyCode, e);
}
}

0 comments on commit 911d706

Please sign in to comment.