Browse Source

The UIWebView consumes all key events as they are handled by Input events instead

Josh Engebretson 10 years ago
parent
commit
d8905a6ca1
1 changed files with 5 additions and 2 deletions
  1. 5 2
      Source/AtomicWebView/UIWebView.cpp

+ 5 - 2
Source/AtomicWebView/UIWebView.cpp

@@ -253,8 +253,11 @@ bool UIWebView::OnEvent(const TBWidgetEvent &ev)
             return true;
         }
         */
-
-
+    }
+    else if (ev.type == EVENT_TYPE_KEY_DOWN || ev.type == EVENT_TYPE_KEY_UP)
+    {
+        // We consume all key events as they are handled by the UI event system directly
+        return true;
     }
 
     return UIWidget::OnEvent(ev);