From ceeeab6161d7d8bf970ecf98affa4f4966df6f01 Mon Sep 17 00:00:00 2001 From: John Reck Date: Mon, 6 Feb 2012 09:00:44 -0800 Subject: Initial support for keyboard navigation Bug: 6019693 Change-Id: I7b4f6d83e8913e647e8ac7340afd01d609c4343b --- Source/WebKit/android/nav/WebView.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Source/WebKit/android/nav/WebView.cpp') diff --git a/Source/WebKit/android/nav/WebView.cpp b/Source/WebKit/android/nav/WebView.cpp index 5d01e49..61fdb4e 100644 --- a/Source/WebKit/android/nav/WebView.cpp +++ b/Source/WebKit/android/nav/WebView.cpp @@ -1666,6 +1666,7 @@ static const CachedInput* getInputCandidate(JNIEnv *env, jobject obj) static jboolean nativePageShouldHandleShiftAndArrows(JNIEnv *env, jobject obj) { +#if ENABLE(ANDROID_NAVCACHE) const CachedNode* focus = getFocusNode(env, obj); if (!focus) return false; // Plugins handle shift and arrows whether or not they have focus. @@ -1675,6 +1676,9 @@ static jboolean nativePageShouldHandleShiftAndArrows(JNIEnv *env, jobject obj) // both the cursor and the focus. return cursor && cursor->nodePointer() == focus->nodePointer() && cursor->isContentEditable(); +#else + return true; +#endif } static jobject nativeCursorNodeBounds(JNIEnv *env, jobject obj) -- cgit v1.1