From 60a1ddb0fbe53f5970a07cfcf4f0f63e8cd67b21 Mon Sep 17 00:00:00 2001 From: Eitan Isaacson Date: Wed, 28 Mar 2012 22:11:55 +0200 Subject: [PATCH] Bug 738741 - Map Android's KEYCODE_DPAD_CENTER to DOM_VK_ENTER. r=mbrubeck --- widget/android/nsWindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/widget/android/nsWindow.cpp b/widget/android/nsWindow.cpp index 8259c1e2fe1..c6cc66e0153 100644 --- a/widget/android/nsWindow.cpp +++ b/widget/android/nsWindow.cpp @@ -1698,6 +1698,8 @@ nsWindow::InitKeyEvent(nsKeyEvent& event, AndroidGeckoEvent& key) case AndroidKeyEvent::KEYCODE_ENVELOPE: break; case AndroidKeyEvent::KEYCODE_DPAD_CENTER: + event.keyCode = NS_VK_ENTER; + break; case AndroidKeyEvent::KEYCODE_ENTER: event.keyCode = NS_VK_RETURN; break;