browserui/browser/BrowserAppSrc/BrowserGotoPane.cpp
changeset 18 4530440261a8
parent 15 e45c3f40ea5f
child 31 868cceedabd3
equal deleted inserted replaced
15:e45c3f40ea5f 18:4530440261a8
    17 *
    17 *
    18 */
    18 */
    19 
    19 
    20 
    20 
    21 // INCLUDE FILES
    21 // INCLUDE FILES
       
    22 #include <Browser_Platform_Variant.hrh>
    22 #include <eikmenub.h>
    23 #include <eikmenub.h>
    23 #include <eikdef.h>
    24 #include <eikdef.h>
    24 #include <akninfrm.h>
    25 #include <akninfrm.h>
    25 #include <eikon.rsg>
    26 #include <eikon.rsg>
    26 #include <eikenv.h>
    27 #include <eikenv.h>
   536                     {
   537                     {
   537                     resp = EKeyWasConsumed;
   538                     resp = EKeyWasConsumed;
   538                     if ( iSearchPaneActive )
   539                     if ( iSearchPaneActive )
   539                         {
   540                         {
   540                         SetGotoPaneActiveL();
   541                         SetGotoPaneActiveL();
       
   542 
       
   543 #if defined(BRDO_SEARCH_INTEGRATION_FF)
   541                         iEditor->RemoveFlagFromUserFlags( CEikEdwin::EAvkonDisableVKB );
   544                         iEditor->RemoveFlagFromUserFlags( CEikEdwin::EAvkonDisableVKB );
       
   545 #endif
       
   546 
   542                         }
   547                         }
   543                     }
   548                     }
   544                 if ( aKeyEvent.iCode == EKeyDownArrow )
   549                 if ( aKeyEvent.iCode == EKeyDownArrow )
   545                     {
   550                     {
   546                     resp = EKeyWasConsumed;
   551                     resp = EKeyWasConsumed;
   547                     if ( iGotoPaneActive )
   552                     if ( iGotoPaneActive )
   548                         {
   553                         {
   549                         SetSearchPaneActiveL();
   554                         SetSearchPaneActiveL();
       
   555 
       
   556 #if defined(BRDO_SEARCH_INTEGRATION_FF)
   550                         iSearchEditor->RemoveFlagFromUserFlags( CEikEdwin::EAvkonDisableVKB );
   557                         iSearchEditor->RemoveFlagFromUserFlags( CEikEdwin::EAvkonDisableVKB );
       
   558 #endif
       
   559 
   551                         }
   560                         }
   552                     }
   561                     }
   553                 }
   562                 }
   554             }
   563             }
       
   564 
   555         }
   565         }
   556 
   566 
   557     return resp;
   567     return resp;
   558 
   568 
   559     }
   569     }
   571 
   581 
   572     // ponter is in goto pane
   582     // ponter is in goto pane
   573     if (Rect().Contains(aPointerEvent.iPosition))
   583     if (Rect().Contains(aPointerEvent.iPosition))
   574         {
   584         {
   575         iGotoKeyHandled->EnableL(ETrue);
   585         iGotoKeyHandled->EnableL(ETrue);
       
   586 
   576         // If search feature exists, check and route to appropriate editor //
   587         // If search feature exists, check and route to appropriate editor //
   577         if ( iSearchEditor  )
   588         if ( iSearchEditor  )
   578             {
   589             {
   579             if ( iSearchInputFrame->Rect().Contains(aPointerEvent.iPosition))
   590             if ( iSearchInputFrame->Rect().Contains(aPointerEvent.iPosition))
   580                 {
   591                 {
   584                     }
   595                     }
   585                 else
   596                 else
   586                     {
   597                     {
   587                     SetSearchPaneActiveL();
   598                     SetSearchPaneActiveL();
   588                     }
   599                     }
       
   600 #if defined(BRDO_SEARCH_INTEGRATION_FF)
   589                 iSearchEditor->RemoveFlagFromUserFlags( CEikEdwin::EAvkonDisableVKB);
   601                 iSearchEditor->RemoveFlagFromUserFlags( CEikEdwin::EAvkonDisableVKB);
       
   602 #endif
   590                 }
   603                 }
   591             else
   604             else
   592                 {
   605                 {
   593                 if ( iGotoPaneActive )
   606                 if ( iGotoPaneActive )
   594                     {
   607                     {
   596                     }
   609                     }
   597                 else
   610                 else
   598                     {
   611                     {
   599                     SetGotoPaneActiveL();
   612                     SetGotoPaneActiveL();
   600                     }
   613                     }
       
   614 #if defined(BRDO_SEARCH_INTEGRATION_FF)
   601                 iEditor->RemoveFlagFromUserFlags( CEikEdwin::EAvkonDisableVKB);
   615                 iEditor->RemoveFlagFromUserFlags( CEikEdwin::EAvkonDisableVKB);
       
   616 #endif
   602                 }
   617                 }
   603             }
   618             }
   604         else
   619         else
   605             {
   620             {
   606             iEditor->HandlePointerEventL(aPointerEvent);
   621             iEditor->HandlePointerEventL(aPointerEvent);
  1209     iGotoPaneActive = ETrue;
  1224     iGotoPaneActive = ETrue;
  1210     iSearchPaneActive = EFalse;
  1225     iSearchPaneActive = EFalse;
  1211 
  1226 
  1212     if ( iSearchEditor )
  1227     if ( iSearchEditor )
  1213         {
  1228         {
       
  1229 #if defined(BRDO_SEARCH_INTEGRATION_FF)
  1214         iEditor->AddFlagToUserFlags( CEikEdwin::EAvkonDisableVKB );
  1230         iEditor->AddFlagToUserFlags( CEikEdwin::EAvkonDisableVKB );
       
  1231 #endif
  1215         // if searchpane is empty add default text
  1232         // if searchpane is empty add default text
  1216         if ( !SearchTextLength() )
  1233         if ( !SearchTextLength() )
  1217             {
  1234             {
  1218             SetSearchTextL( *iDefaultSearchText );
  1235             SetSearchTextL( *iDefaultSearchText );
  1219             }
  1236             }
  1240 void CBrowserGotoPane::SetSearchPaneActiveL()
  1257 void CBrowserGotoPane::SetSearchPaneActiveL()
  1241     {
  1258     {
  1242 
  1259 
  1243     if ( iSearchEditor )
  1260     if ( iSearchEditor )
  1244         {
  1261         {
       
  1262 #if defined(BRDO_SEARCH_INTEGRATION_FF)
  1245         iSearchEditor->AddFlagToUserFlags( CEikEdwin::EAvkonDisableVKB );
  1263         iSearchEditor->AddFlagToUserFlags( CEikEdwin::EAvkonDisableVKB );
       
  1264 #endif
  1246         // if gotopane is empty add default text
  1265         // if gotopane is empty add default text
  1247         if ( !TextLength() )
  1266         if ( !TextLength() )
  1248             {
  1267             {
  1249             SetTextL( KWWWString );
  1268             SetTextL( KWWWString );
  1250             }
  1269             }