Revision: 7590
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7590&view=rev
Author:   hofman
Date:     2011-12-21 14:00:08 +0000 (Wed, 21 Dec 2011)
Log Message:
-----------
pass escape key action in find bar field to Done button

Modified Paths:
--------------
    trunk/FindBar.xib
    trunk/SKFindController.m

Modified: trunk/FindBar.xib
===================================================================
--- trunk/FindBar.xib   2011-12-20 13:30:26 UTC (rev 7589)
+++ trunk/FindBar.xib   2011-12-21 14:00:08 UTC (rev 7590)
@@ -345,6 +345,14 @@
                                        </object>
                                        <int key="connectionID">35</int>
                                </object>
+                               <object class="IBConnectionRecord">
+                                       <object class="IBOutletConnection" 
key="connection">
+                                               <string 
key="label">delegate</string>
+                                               <reference key="source" 
ref="930853778"/>
+                                               <reference key="destination" 
ref="1001"/>
+                                       </object>
+                                       <int key="connectionID">36</int>
+                               </object>
                        </object>
                        <object class="IBMutableOrderedSet" key="objectRecords">
                                <object class="NSArray" key="orderedObjects">
@@ -513,7 +521,7 @@
                                </object>
                        </object>
                        <nil key="sourceID"/>
-                       <int key="maxID">35</int>
+                       <int key="maxID">36</int>
                </object>
                <object class="IBClassDescriber" key="IBDocument.Classes">
                        <object class="NSMutableArray" 
key="referencedPartialClassDescriptions">

Modified: trunk/SKFindController.m
===================================================================
--- trunk/SKFindController.m    2011-12-20 13:30:26 UTC (rev 7589)
+++ trunk/SKFindController.m    2011-12-21 14:00:08 UTC (rev 7590)
@@ -245,4 +245,12 @@
     return YES;
 }
 
+- (BOOL)control:(NSControl *)control textView:(NSTextView *)textView 
doCommandBySelector:(SEL)command {
+    if (command == @selector(cancelOperation:)) {
+        [doneButton performClick:nil];
+        return YES;
+    }
+    return NO;
+}
+
 @end

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to