--- a/webengine/osswebengine/WebCore/platform/symbian/WidgetSymbian.cpp Thu Sep 24 12:53:48 2009 +0300
+++ b/webengine/osswebengine/WebCore/platform/symbian/WidgetSymbian.cpp Mon Oct 26 08:28:45 2009 +0200
@@ -24,9 +24,12 @@
#include "IntRect.h"
#include "IntPoint.h"
#include "Cursor.h"
+#include "Event.h"
+#include "EventNames.h"
+#include "KeyboardEvent.h"
namespace WebCore {
-
+using namespace EventNames;
static bool deferFirstResponderChanges;
static Widget *deferredFirstResponder;
@@ -239,4 +242,18 @@
return getView()->isFocusable();
return false;
}
+
+void Widget::handleEvent(Event* event)
+{
+ if (event->type() == keydownEvent && event->isKeyboardEvent()) {
+ KeyboardEvent* kevt = static_cast<KeyboardEvent*>(event);
+ if (kevt->keyIdentifier() == "Enter") {
+ MWebCoreWidget* view = getView();
+ if(view && view->isObjectView()) {
+ view->activate();
+ }
+ }
+ }
}
+
+}