Bug 137742 - Focus the field for global status message when opening it
Summary: Focus the field for global status message when opening it
Status: RESOLVED FIXED
Alias: None
Product: kopete
Classification: Applications
Component: Main Application (show other bugs)
Version: 0.12.3
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-22 22:24 UTC by Philipp W
Modified: 2007-06-09 03:36 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
gives focus to the lineedit when the menu is created (470 bytes, patch)
2007-05-24 01:05 UTC, adrian
Details
gives focus to the lineedit when the menu is created (537 bytes, patch)
2007-05-24 01:12 UTC, adrian
Details

Note You need to log in before you can comment on or make changes to this bug.
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 );
 }