[haiku-webkit-commits] r227 - webkit/trunk/WebKit/haiku/API

  • From: webkit@xxxxxxxxxxxxxxx
  • To: haiku-webkit-commits@xxxxxxxxxxxxx
  • Date: Fri, 26 Feb 2010 17:04:48 +0000

Author: mmlr
Date: Fri Feb 26 17:04:47 2010
New Revision: 227
URL: http://mmlr.dyndns.org/changeset/227

Log:
For keyboard events we might not want the main but the focused frame. Fixes
keyboard input inside frames.

Modified:
   webkit/trunk/WebKit/haiku/API/WebPage.cpp

Modified: webkit/trunk/WebKit/haiku/API/WebPage.cpp
==============================================================================
--- webkit/trunk/WebKit/haiku/API/WebPage.cpp   Fri Feb 26 08:55:29 2010        
(r226)
+++ webkit/trunk/WebKit/haiku/API/WebPage.cpp   Fri Feb 26 17:04:47 2010        
(r227)
@@ -853,7 +853,7 @@
 
 void BWebPage::handleKeyEvent(BMessage* message)
 {
-    WebCore::Frame* frame = m_mainFrame->Frame();
+    WebCore::Frame* frame = m_page->focusController()->focusedOrMainFrame();
     if (!frame->view() || !frame->document())
         return;
 

Other related posts:

  • » [haiku-webkit-commits] r227 - webkit/trunk/WebKit/haiku/API - webkit