--- a/browserui/browser/BrowserAppSrc/BrowserContentViewContainer.cpp Fri May 08 08:18:43 2009 +0300
+++ b/browserui/browser/BrowserAppSrc/BrowserContentViewContainer.cpp Fri Jul 03 15:46:41 2009 +0100
@@ -203,10 +203,14 @@
}
TKeyEvent keyEvent( aKeyEvent );
+ TBrCtlDefs::TBrCtlElementType elementtype =
+ iApiProvider.BrCtlInterface().FocusedElementType();
// Don't allow virtual keyboard backspace key event to close the window
+ // And don't close window if editing in an input box
if ( !AknLayoutUtils::PenEnabled() && aType == EEventKey
- && keyEvent.iCode == EKeyBackspace )
+ && keyEvent.iCode == EKeyBackspace
+ && elementtype != TBrCtlDefs::EElementActivatedInputBox )
{
if ( iApiProvider.Preferences().UiLocalFeatureSupported(
KBrowserMultipleWindows ) )
@@ -275,8 +279,7 @@
{
if ( keyEvent.iRepeats && iSelectionKeyPressed )
{
- TBrCtlDefs::TBrCtlElementType elementtype =
- iApiProvider.BrCtlInterface().FocusedElementType();
+
TInt command( KErrNotFound );
switch( elementtype )
{