Revision: 10971
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=10971&view=rev
Author:   hofman
Date:     2007-08-23 05:31:51 -0700 (Thu, 23 Aug 2007)

Log Message:
-----------
Allow typing non-control and non-alphanumeric characters for type-select, just 
not as the initial character.

Modified Paths:
--------------
    trunk/bibdesk/BDSKMainTableView.m

Modified: trunk/bibdesk/BDSKMainTableView.m
===================================================================
--- trunk/bibdesk/BDSKMainTableView.m   2007-08-22 23:44:29 UTC (rev 10970)
+++ trunk/bibdesk/BDSKMainTableView.m   2007-08-23 12:31:51 UTC (rev 10971)
@@ -115,7 +115,6 @@
     if ([[event characters] length] == 0)
         return;
     unichar c = [[event characters] characterAtIndex:0];
-    NSCharacterSet *alnum = [NSCharacterSet alphanumericCharacterSet];
     unsigned int flags = ([event modifierFlags] & 
NSDeviceIndependentModifierFlagsMask & ~NSAlphaShiftKeyMask);
     if (c == 0x0020){ // spacebar to page down in the lower pane of the 
BibDocument splitview, shift-space to page up
         if(flags & NSShiftKeyMask)
@@ -147,9 +146,9 @@
         [self selectRowIndexes:[NSIndexSet indexSetWithIndex:row] 
byExtendingSelection:([event modifierFlags] | NSShiftKeyMask)];
         [self scrollRowToVisible:row];
     // pass it on the typeahead selector
-    }else if ([alnum characterIsMember:c] && flags == 0) {
+    }else if(([[NSCharacterSet alphanumericCharacterSet] characterIsMember:c] 
|| ([typeSelectHelper isProcessing] && NO == [[NSCharacterSet 
controlCharacterSet] characterIsMember:c])) && flags == 0){
         [typeSelectHelper processKeyDownCharacter:c];
-    }else if (c == '/' && flags == 0) {
+    }else if(c == '/' && flags == 0){
         [typeSelectHelper repeatSearch];
     }else{
         [super keyDown:event];


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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to