From 911d706dbfdcbf324aa320f606432efe56d54d5b Mon Sep 17 00:00:00 2001 From: Ieuan Walker Date: Tue, 11 Apr 2023 09:29:24 +0100 Subject: [PATCH] simipler android impl --- Scr/Platform/CustomContentViewGroup.Android.cs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/Scr/Platform/CustomContentViewGroup.Android.cs b/Scr/Platform/CustomContentViewGroup.Android.cs index 8b624ae..ff8d65a 100644 --- a/Scr/Platform/CustomContentViewGroup.Android.cs +++ b/Scr/Platform/CustomContentViewGroup.Android.cs @@ -1,5 +1,4 @@ using Android.Content; -using Android.Runtime; using Android.Views; using Java.Lang; using Microsoft.Maui.Platform; @@ -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); - } } \ No newline at end of file