Changeset 24853 in webkit


Ignore:
Timestamp:
Aug 3, 2007 2:21:03 PM (17 years ago)
Author:
spadma
Message:

yadavall, reviewed by <sachin.padma@nokia.com>

DESC: Center key press must be sent to Engine
http://bugs.webkit.org/show_bug.cgi?id=14593

  • BrowserView/src/KeyEventHandler.cpp: (CKeyEventHandler::HandleOfferKeyEventL):
Location:
S60/trunk/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • S60/trunk/WebKit/BrowserView/src/KeyEventHandler.cpp

    r21382 r24853  
    188188                    if (iWebKitView->TabbedNavigation() && !iWebKitView->WebKitControl().InPageViewMode() && focused)
    189189                        {
    190                         // send keyevent to the webcore
    191                         focused->WebKitBridge().WebCoreBridge().KeyEvent(iLastEventKey,EFalse);
     190                        // send keyevent to the webcore & if webcore has consumed the event then there is no need to
     191                        // apply our navigation mechanism, hence return
     192                        if (focused->WebKitBridge().WebCoreBridge().KeyEvent(iLastEventKey,EFalse))
     193                            {
     194                            return EKeyWasConsumed;
     195                            }
    192196                        }
    193197                    keyResponse = HandleArrowKeysL(aKeyEvent);
     
    204208                    */
    205209                    if( iElType == TBrCtlDefs::EElementNone
     210                        && !iWebKitView->TabbedNavigation()
    206211                        && iWebKitView->FocusedElementType() == TBrCtlDefs::EElementNone
    207212                        && aKeyEvent.iRepeats
     
    209214                        && iWebKitView->WebKitControl().BrCtl().Capabilities() & TBrCtlDefs::ECapabilityToolBar
    210215                        && !iJoystickTimer->IsActive()
    211                         && !iWebKitView->WebKitControl().InPageViewMode()                       
     216                        && !iWebKitView->WebKitControl().InPageViewMode()
    212217                        )
    213218                        {
     
    232237                        f->WebKitBridge().WebCoreBridge().PointerEvent(event);
    233238                        return EKeyWasConsumed;
     239                        }
     240
     241                    CWebKitFrame* focused = iWebKitView->MainFrame().FocusedFrame();
     242                    if (iWebKitView->TabbedNavigation() && !iWebKitView->WebKitControl().InPageViewMode() && focused)
     243                        {
     244                        // send keyevent to the webcore & if webcore has consumed the event then set keyResponse
     245                        if (focused->WebKitBridge().WebCoreBridge().KeyEvent(iLastEventKey,EFalse))
     246                            {
     247                            return EKeyWasConsumed;
     248                            }
    234249                        }
    235250                    // fake key event down
  • S60/trunk/WebKit/ChangeLog

    r24852 r24853  
     1yadavall, reviewed by <sachin.padma@nokia.com>
     2 DESC: Center key press must be sent to Engine
     3 http://bugs.webkit.org/show_bug.cgi?id=14593
     4
     5        * BrowserView/src/KeyEventHandler.cpp:
     6        (CKeyEventHandler::HandleOfferKeyEventL):
     7
    18lebril, reviewed by Sachin
    29 DESC: ELFN-7535HR: Operator manu: Both time stamps in Link-1 and Link-2 are same when opening link is in Expires Date header 1A iteam
Note: See TracChangeset for help on using the changeset viewer.