From 668fb0e6a215bfcdf50eb3ffb47a75f676a95456 Mon Sep 17 00:00:00 2001 From: Cary Clark Date: Thu, 6 Jan 2011 13:43:34 -0500 Subject: [PATCH] add iframes to the types that want key events This is a companion change to frameworks/base, to route the enter key to a webkit click only if the cursor node does not want the key event. bug:3325093 Change-Id: I78ebcec42cc413f645c080dff7f38e75e7f09c7f --- WebKit/android/nav/CachedNode.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/WebKit/android/nav/CachedNode.h b/WebKit/android/nav/CachedNode.h index db48a6617..961018b7d 100644 --- a/WebKit/android/nav/CachedNode.h +++ b/WebKit/android/nav/CachedNode.h @@ -178,7 +178,8 @@ public: const CachedNode* traverseNextNode() const { return mLast ? NULL : &this[1]; } bool useBounds() const { return mUseBounds; } bool useHitBounds() const { return mUseHitBounds; } - bool wantsKeyEvents() const { return isTextInput() || isPlugin() || isContentEditable(); } + bool wantsKeyEvents() const { return isTextInput() || isPlugin() + || isContentEditable() || isFrame(); } private: friend class CacheBuilder; WTF::String mExport; -- 2.11.0