[Psi-Devel] ESC Key brings search Textedit

ephraim at thefungamer.de ephraim at thefungamer.de
Wed Jan 2 04:50:35 PST 2008


Hey,

here on Windows and on my Mac at home pressing ESC with Contact List
focused, brings up the search textedit. This is IMHO not the wished
behave,
rather than it should hide/close Psi. The Problem is, that ESC is not
an empty Text
Key but a "small arrow to the right" sign. Thats why the
text->isEmpty() isn't
working as expected.

The following patch just ignores ESC Keypress events so the MainWin
KeyPress
handler recognizes the ESC and not the ContactView.

Ciao Ephraim

[PATCH]
Index: src/contactview.cpp
===================================================================
--- src/contactview.cpp (Revision 898)
+++ src/contactview.cpp (Arbeitskopie)
@@ -2157,6 +2157,8 @@

		//d->typeAhead = QString::null;
		Q3ListView::keyPressEvent(e);
+	} else if (key == Qt::Key_Escape) {
+		e->ignore();
	} else {
		QString text = e->text().lower();
		if ( text.isEmpty() ) {
[/PATCH]


More information about the Psi-Devel mailing list