From 418ab5876c0a278ed0e2b86d5215739f95bc6add Mon Sep 17 00:00:00 2001 From: Bibiko Date: Wed, 15 Dec 2010 21:14:41 +0000 Subject: =?UTF-8?q?=E2=80=A2=20fixed=20issue=20to=20be=20able=20to=20cance?= =?UTF-8?q?l=20via=20ESC=20the=20in-cell=20editing=20of=20the=20tablesList?= =?UTF-8?q?View=20(and=20avoiding=20to=20call=20completion=20for=20Query?= =?UTF-8?q?=20Editor)=20and=20Bundle=20Editor's=20outlineView;=20in=20addi?= =?UTF-8?q?tion=20the=20focus=20remains=20at=20the=20view?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPBundleEditorController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/SPBundleEditorController.m') diff --git a/Source/SPBundleEditorController.m b/Source/SPBundleEditorController.m index dffcb20c..32f5b581 100644 --- a/Source/SPBundleEditorController.m +++ b/Source/SPBundleEditorController.m @@ -1257,7 +1257,7 @@ */ - (BOOL)control:(NSControl *)control textView:(NSTextView *)textView doCommandBySelector:(SEL)command { - if ( [[control window] methodForSelector:command] == [[control window] methodForSelector:@selector(_cancelKey:)] || + if ( [[control window] methodForSelector:command] == [[control window] methodForSelector:@selector(cancelOperation:)] || [textView methodForSelector:command] == [textView methodForSelector:@selector(complete:)] ) { //abort editing -- cgit v1.2.3