userguide/src/HelpKeywordView.cpp
changeset 23 99b096216bc8
parent 18 375271912456
child 33 1038206aa0cb
--- a/userguide/src/HelpKeywordView.cpp	Fri May 14 15:42:52 2010 +0300
+++ b/userguide/src/HelpKeywordView.cpp	Fri Jun 11 13:29:58 2010 +0300
@@ -63,7 +63,7 @@
 	initVirtualKeyboard();
 	initEmptyLabel();
     
-    connect(mainWindow(), SIGNAL(currentViewChanged(HbView*)), this, SLOT(onCurrentViewChanged(HbView*)));
+    connect(mainWindow(), SIGNAL(viewReady()), this, SLOT(onViewReady()));
 }
 
 void HelpKeywordView::initDocMl()
@@ -143,6 +143,7 @@
             if(lineEdit != NULL)
             {
                 lineEdit->setText("");
+				lineEdit->setFocus();
                 break;
             }
         }
@@ -152,11 +153,10 @@
 ////////////////////////////////////////////////////////////////////////////////////////////
 // handle system event
 
-void HelpKeywordView::onCurrentViewChanged(HbView *view)
+void HelpKeywordView::onViewReady()
 {
-	 if(this == view)
-    {
-		setVisible(true);
+	if(isVisible())
+	{
 		setNavigationAction(mSoftKeyAction);  
 	}
 }