Click here to Skip to main content
15,883,827 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI, Is there any possible way to implement OnKeyDown event in Xamarin Forms portable class library, I am able to implement this in xamarin android but I need it in Xamarin Forms. Please suggest me some one. Thanks in advance

What I have tried:

protected override bool OnKeyDown(Keycode keyCode, KeyEvent e)
{
Console.WriteLine("A key was pressed");
return base.OnKeyDown(keyCode, e);
}

this code works in android but I need in Xamarin Forms portable class library
Posted
Updated 15-Jun-16 2:22am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900