adium-1.4 2760:e1b6b2576cb8: Forward text events from the user l...
commits at adium.im
commits at adium.im
Sun Nov 8 01:24:23 UTC 2009
details: http://hg.adium.im/adium-1.4/rev/e1b6b2576cb8
revision: 2760:e1b6b2576cb8
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.
diffs (25 lines):
diff -r 52855fdca5c0 -r e1b6b2576cb8 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