src/gtkstatusbox.c

changeset 13805
58441e81b8f6
parent 13804
d2bb799e133a
child 13832
2719e29e6e9e
--- a/src/gtkstatusbox.c	Sun Jun 04 08:14:25 2006 +0000
+++ b/src/gtkstatusbox.c	Sun Jun 04 08:19:51 2006 +0000
@@ -738,6 +738,16 @@
 	}
 	if (!status_box->typing != 0)
 		return FALSE;
+
+	/* Reset the status if Escape was pressed */
+	if (event->keyval == GDK_Escape)
+	{
+		g_source_remove(status_box->typing);
+		status_box->typing = 0;
+		status_menu_refresh_iter(status_box);
+		return TRUE;
+	}
+	
 	gtk_gaim_status_box_pulse_typing(status_box);
 	g_source_remove(status_box->typing);
 	status_box->typing = g_timeout_add(TYPING_TIMEOUT, (GSourceFunc)remove_typing_cb, status_box);

mercurial