From 76d1d9d7fe2046bcf9281f95c5a7b541d49e6a0b Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Tue, 24 Apr 2012 00:05:50 +0000 Subject: - Rework edit sheet find/replace handling; instead of altering the main window's firstResponder, which only worked under certain NSTextView focus conditions, allow the field edit sheet to become the main window. This fixes issues with the Find/Replace dialog not fully working correctly in the edit sheet. --- Source/SPEditSheetTextView.m | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'Source/SPEditSheetTextView.m') diff --git a/Source/SPEditSheetTextView.m b/Source/SPEditSheetTextView.m index b028c177..a5d110a6 100644 --- a/Source/SPEditSheetTextView.m +++ b/Source/SPEditSheetTextView.m @@ -343,21 +343,4 @@ [self saveChangedFontInUserDefaults]; } -/** - * Needed to allow Find Panel inside the textView if it runs in a sheet - */ -- (BOOL)becomeFirstResponder -{ - return YES; -} - -/** - * Needed to allow Find Panel inside the textView if it runs in a sheet - */ -- (BOOL)resignFirstResponder -{ - return YES; -} - - @end -- cgit v1.2.3