equal
deleted
inserted
replaced
185 return; |
185 return; |
186 } |
186 } |
187 |
187 |
188 DeActivateOptionsMenu(); |
188 DeActivateOptionsMenu(); |
189 |
189 |
190 TBrCtlDefs::TBrCtlElementType elementtype = |
190 TBool editing = IsEditMode(); |
191 iWindowManager.ActiveWindow()->Engine()->FocusedElementType(); |
|
192 |
|
193 TBool editing = (elementtype == TBrCtlDefs::EElementActivatedInputBox) || |
|
194 (elementtype == TBrCtlDefs::EElementActivatedObjectBox); |
|
195 |
191 |
196 switch( aCommand ) |
192 switch( aCommand ) |
197 { |
193 { |
198 case EAknCmdExit: |
194 case EAknCmdExit: |
199 case EEikCmdExit: // Options->Exit |
195 case EEikCmdExit: // Options->Exit |
339 if (visible && StatusPane()->CurrentLayoutResId() != R_AVKON_STATUS_PANE_LAYOUT_USUAL_FLAT) |
335 if (visible && StatusPane()->CurrentLayoutResId() != R_AVKON_STATUS_PANE_LAYOUT_USUAL_FLAT) |
340 { |
336 { |
341 StatusPane()->SwitchLayoutL(R_AVKON_STATUS_PANE_LAYOUT_USUAL_FLAT); |
337 StatusPane()->SwitchLayoutL(R_AVKON_STATUS_PANE_LAYOUT_USUAL_FLAT); |
342 StatusPane()->ApplyCurrentSettingsL(); |
338 StatusPane()->ApplyCurrentSettingsL(); |
343 } |
339 } |
|
340 |
|
341 // update softkeys display to match status pane visibility |
|
342 if( iWindowManager.ActiveWindow() ) |
|
343 { |
|
344 iWindowManager.ActiveWindow()->MakeSoftkeysVisible(visible,ETrue); |
|
345 } |
|
346 |
344 } |
347 } |
345 |
348 |
346 // --------------------------------------------------------- |
349 // --------------------------------------------------------- |
347 // CWidgetUiWindowView::Redraw |
350 // CWidgetUiWindowView::Redraw |
348 // redraw/relayout when application returns from background |
351 // redraw/relayout when application returns from background |
376 iRepository->Set( KBrowserNGScriptLog, aValue ); |
379 iRepository->Set( KBrowserNGScriptLog, aValue ); |
377 } |
380 } |
378 delete iRepository; |
381 delete iRepository; |
379 iRepository = NULL; |
382 iRepository = NULL; |
380 } |
383 } |
|
384 case TBrCtlDefs::EStateFullscreenBrowsing: |
|
385 { |
|
386 if (!iPenEnabled && IsEditMode()) |
|
387 { |
|
388 UpdateStatusPane(!aValue); |
|
389 } |
|
390 break; |
|
391 } |
381 default: |
392 default: |
382 break; |
393 break; |
383 } |
394 } |
384 } |
395 } |
385 |
396 |
413 AppUi()->CurrentFixedToolbar()->SetToolbarVisibility(ETrue); |
424 AppUi()->CurrentFixedToolbar()->SetToolbarVisibility(ETrue); |
414 else |
425 else |
415 AppUi()->CurrentFixedToolbar()->SetToolbarVisibility(EFalse); |
426 AppUi()->CurrentFixedToolbar()->SetToolbarVisibility(EFalse); |
416 #endif |
427 #endif |
417 } |
428 } |
|
429 |
|
430 // ----------------------------------------------------------------------------- |
|
431 // CWidgetUiWindowView::IsEditMode |
|
432 // ----------------------------------------------------------------------------- |
|
433 TBool CWidgetUiWindowView::IsEditMode() |
|
434 { |
|
435 TBrCtlDefs::TBrCtlElementType focusedElementType = |
|
436 iWindowManager.ActiveWindow()->Engine()->FocusedElementType(); |
|
437 |
|
438 TBool retVal = ((focusedElementType == TBrCtlDefs:: EElementActivatedInputBox) || |
|
439 (focusedElementType == TBrCtlDefs:: EElementInputBox) || |
|
440 (focusedElementType == TBrCtlDefs:: EElementTextAreaBox)); |
|
441 return (retVal); |
|
442 } |
418 // End of File |
443 // End of File |