adium 2894:9ddd18d9f12d: Forward text events from the user list ...

commits at adium.im commits at adium.im
Sun Nov 8 01:25:14 UTC 2009


details:	http://hg.adium.im/adium/rev/9ddd18d9f12d
revision:	2894:9ddd18d9f12d
author:		Zachary West <zacw at adium.im>
date:		Sat Nov 07 20:23:39 2009 -0500

Forward text events from the user list to the text entry view. Prevents the user list from becoming a tab-and-other-typing-eating machine.
(transplanted from e1b6b2576cb81cbe6869188231d997a0393b761b)

diffs (25 lines):

diff -r 26a7d5ed152c -r 9ddd18d9f12d Plugins/Dual Window Interface/AIMessageViewController.m
--- a/Plugins/Dual Window Interface/AIMessageViewController.m	Sat Nov 07 20:13:39 2009 -0500
+++ b/Plugins/Dual Window Interface/AIMessageViewController.m	Sat Nov 07 20:23:39 2009 -0500
@@ -1278,6 +1278,21 @@
 	}
 }
 
+/*!
+ * @brief Capture all text input
+ *
+ * Capture all text input in our user list and forward it to the text entry view.
+ * This prevents the user list from becoming a black hole if it's clicked on.
+ */
+- (BOOL)forwardKeyEventToFindPanel:(NSEvent *)theEvent
+{
+	[self makeTextEntryViewFirstResponder];
+	
+	[self.textEntryView keyDown:theEvent];
+	
+	return YES;
+}
+
 /* 
  * @brief Update the width of our user list view
  *




More information about the commits mailing list