OSDN Git Service

focus / unfocus search box when Ctrl+F
authorikemo <ikemo@56b19765-1e22-0410-a548-a0f45d66c51a>
Wed, 14 Jul 2004 14:31:28 +0000 (14:31 +0000)
committerikemo <ikemo@56b19765-1e22-0410-a548-a0f45d66c51a>
Wed, 14 Jul 2004 14:31:28 +0000 (14:31 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/kita/kita/trunk@1241 56b19765-1e22-0410-a548-a0f45d66c51a

kita/src/part/kitathreadview.cpp

index b2cc67c..f0d16c5 100644 (file)
@@ -374,7 +374,11 @@ void KitaThreadView::slotBookmarkButtonClicked( bool on )
 
 void KitaThreadView::focusSearchCombo()
 {
-    SearchCombo->setFocus();
+    if ( ! SearchCombo->hasFocus() ) {
+        SearchCombo->setFocus();
+    } else {
+        m_threadPart->view()->setFocus();
+    }
 }
 
 namespace Kita