Exemplo n.º 1
0
 public override bool DispatchKeyEvent(KeyEvent e)
 {
     //_webView.
     if (e.Action == KeyEventActions.Down && e.KeyCode == Keycode.DpadDown)
     {
         if (_isBrowserShown)
         {
             SmoothScrollBrowser(true);
         }
         else
         {
             _webViewClient.SendButtonToClient(BeatOnWebViewClient.ButtonType.Down, _lastX, _lastY);
         }
         return(true);
     }
     else if (e.Action == KeyEventActions.Down && e.KeyCode == Keycode.DpadUp)
     {
         if (_isBrowserShown)
         {
             SmoothScrollBrowser(false);
         }
         else
         {
             _webViewClient.SendButtonToClient(BeatOnWebViewClient.ButtonType.Up, _lastX, _lastY);
         }
         return(true);
     }
     else
     {
         return(base.DispatchKeyEvent(e));
     }
 }