Bug 137742

Summary: Focus the field for global status message when opening it
Product: [Applications] kopete Reporter: Philipp W <bugzilla>
Component: Main ApplicationAssignee: Kopete Developers <kopete-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: 0.12.3   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: gives focus to the lineedit when the menu is created
gives focus to the lineedit when the menu is created

Description Philipp W 2006-11-22 22:24:50 UTC
Version:           0.12.3 (using KDE 3.5.5, Kubuntu (edgy) 4:3.5.5-0ubuntu3)
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.17-10-386

When I click on global status message in the down left corner, the new menĂ¼ with the status messages opens. But the textfield should be focused. 
Then I can start writing without clicking once more.

And there is no other focus lost due to this.

Its easy and will improve handling even more.
Comment 1 adrian 2007-05-24 01:05:03 UTC
Created attachment 20682 [details]
gives focus to the lineedit when the menu is created

This patch aplies to Kopete from trunk.
It gives keyboard focus to the qlineedit in the global status message menu.
Comment 2 adrian 2007-05-24 01:12:53 UTC
Created attachment 20683 [details]
gives focus to the lineedit when the menu is created

This corrects a disfuncionality introduced that keystrokes to reach other
menuitems behaved weird(excuse bad explanation).
Comment 3 Matt Rogers 2007-06-09 03:36:13 UTC
SVN commit 673113 by mattr:

Apply patch from bug 137742 to fix bug of the same number.
Focus the global status message when editing status messages

FEATURE: 137742


 M  +2 -2      kopetewindow.cpp  


--- branches/work/kopete/break-the-contactlist/kopete/kopetewindow.cpp #673112:673113
@@ -1040,8 +1040,8 @@
 	}
 	//connect( m_globalStatusMessageMenu, SIGNAL( aboutToHide() ), m_globalStatusMessageMenu, SLOT( deleteLater() ) );
 
-	//m_newMessageEdit->setFocus();
-
+	d->newMessageEdit->setFocus(Qt::OtherFocusReason);
+	d->globalStatusMessageMenu->setActiveAction(newMessageAction);
 	//messageMenu->popup( e->globalPos(), 1 );
 }