View the DQSD CVS repository here:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/

Update of /cvsroot/dqsd/dqsd
In directory usw-pr-cvs1:/tmp/cvs-serv1342

Modified Files:
        ChangeLog.txt history.js search.css search.htm 
Log Message:
Modified Shift-F8 and Shift-Ctrl-B to search forward through the history instead of 
searching for a prefix

Index: ChangeLog.txt
===================================================================
RCS file: /cvsroot/dqsd/dqsd/ChangeLog.txt,v
retrieving revision 1.57
retrieving revision 1.58
diff -C2 -d -r1.57 -r1.58
*** ChangeLog.txt       26 Jul 2002 21:40:56 -0000      1.57
--- ChangeLog.txt       26 Jul 2002 21:42:47 -0000      1.58
***************
*** 21,24 ****
--- 21,26 ----
  * added empty localprefs.js and localsearch.css to install, instead of 
    requiring user to create them if they don't exist.
+ * Shift-F8 and Shift-Ctrl-B now search forward through the history
+   instead of searching for a prefix
  
  Bug Fixes

Index: history.js
===================================================================
RCS file: /cvsroot/dqsd/dqsd/history.js,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** history.js  27 Jun 2002 22:30:33 -0000      1.15
--- history.js  26 Jul 2002 21:42:47 -0000      1.16
***************
*** 138,142 ****
    try
    {
!     re = new RegExp( (shift ? "^" : "") + escapedString, "i" );
    }
    catch(e)
--- 138,142 ----
    try
    {
!     re = new RegExp( escapedString, "i" );
    }
    catch(e)
***************
*** 145,165 ****
      return;
    }
!   for ( var i = histcurr - 1; i >= 0; i-- )
    {
!     if ( histarray[i].match( re ) )
      {
!       histcurr = i;
!       document.deff.q.value = currhistedit();
!       return;
      }
-   }
  
!   for ( var i = histarray.length - 1; i >= histcurr; i-- )
    {
!     if ( histarray[i].match( re ) )
      {
!       histcurr = i;
!       document.deff.q.value = currhistedit();
!       return;
      }
    }
--- 145,191 ----
      return;
    }
!   
!   if (!shift) // Search back through history
    {
!     for ( var i = histcurr - 1; i >= 0; i-- )
      {
!       if ( histarray[i].match( re ) )
!       {
!         histcurr = i;
!         document.deff.q.value = currhistedit();
!         return;
!       }
      }
  
!     for ( var i = histarray.length - 1; i >= histcurr; i-- )
!     {
!       if ( histarray[i].match( re ) )
!       {
!         histcurr = i;
!         document.deff.q.value = currhistedit();
!         return;
!       }
!     }
!   }
!   else // Search forward through history
    {
!     for ( var i = histcurr + 1; i < histarray.length; i++ )
      {
!       if ( histarray[i].match( re ) )
!       {
!         histcurr = i;
!         document.deff.q.value = currhistedit();
!         return;
!       }
!     }
! 
!     for ( var i = 0; i <= histcurr; i++ )
!     {
!       if ( histarray[i].match( re ) )
!       {
!         histcurr = i;
!         document.deff.q.value = currhistedit();
!         return;
!       }
      }
    }

Index: search.css
===================================================================
RCS file: /cvsroot/dqsd/dqsd/search.css,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** search.css  27 Jun 2002 14:39:52 -0000      1.16
--- search.css  26 Jul 2002 21:42:47 -0000      1.17
***************
*** 328,337 ****
    vertical-align: top;
    border: 1px inset;
!   padding: 2px 2px 2px 5px;
  }
  
  TABLE#keybindings TD.keyname
  {
-   font-weight: bold;
    white-space: nowrap;
  }
--- 328,336 ----
    vertical-align: top;
    border: 1px inset;
!   padding: 2px 2px 2px 2px;
  }
  
  TABLE#keybindings TD.keyname
  {
    white-space: nowrap;
  }

Index: search.htm
===================================================================
RCS file: /cvsroot/dqsd/dqsd/search.htm,v
retrieving revision 1.154
retrieving revision 1.155
diff -C2 -d -r1.154 -r1.155
*** search.htm  24 Jul 2002 12:46:07 -0000      1.154
--- search.htm  26 Jul 2002 21:42:47 -0000      1.155
***************
*** 67,71 ****
  </ul>
  <p>
! Finally, the following are default key bindings.  Some of these can be customized in 
localprefs.js:
  <table id='keybindings' cellspacing="0">
  <tr><th>Key(s)</th><th>Description</th></tr>
--- 67,71 ----
  </ul>
  <p>
! Finally, the following are default key bindings.  Some of these can be customized in 
<a href="view-source:localprefs.js">localprefs.js</a>:
  <table id='keybindings' cellspacing="0">
  <tr><th>Key(s)</th><th>Description</th></tr>
***************
*** 76,88 ****
  <tr><td class='keyname'>Shift-Enter</td><td class='desc'>Always opens a new window 
for the search regardless of the reuseWindowMode setting.  This works only when IE is 
the default browser.</td></tr>
  
! <tr><td class='keyname'>Ctrl-B<br/>F8</td><td class='desc'>Search the search history 
for the current text</td></tr>
  
! <tr><td class='keyname'>Shift-Ctrl-B<br/>Shift-F8</td><td class='desc'>Search the 
history for the current text as a prefix</td></tr>
  
  <tr><td class='keyname'>Win-S</td><td class='desc'>Make the search bar active (i.e., 
make it have the current focus)</td></tr>
  
! <tr><td class='keyname'>Ctrl-P<br/>Up</td><td class='desc'>Display previous 
search</td></tr>
  
! <tr><td class='keyname'>Ctrl-N<br/>Down</td><td class='desc'>Display next 
search</td></tr>
  </table>
  
--- 76,88 ----
  <tr><td class='keyname'>Shift-Enter</td><td class='desc'>Always opens a new window 
for the search regardless of the reuseWindowMode setting.  This works only when IE is 
the default browser.</td></tr>
  
! <tr><td class='keyname'>Ctrl-B, F8</td><td class='desc'>Search back through the 
search history for the current text</td></tr>
  
! <tr><td class='keyname'>Shift-Ctrl-B, Shift-F8</td><td class='desc'>Search forward 
through the history for the current text</td></tr>
  
  <tr><td class='keyname'>Win-S</td><td class='desc'>Make the search bar active (i.e., 
make it have the current focus)</td></tr>
  
! <tr><td class='keyname'>Ctrl-P, Up</td><td class='desc'>Display previous 
search</td></tr>
  
! <tr><td class='keyname'>Ctrl-N, Down</td><td class='desc'>Display next 
search</td></tr>
  </table>
  
***************
*** 881,885 ****
  
  //   keyboardHook.ShutdownBar();
!     
      if ( refreshIconsAtStartup )
        refreshIcons();
--- 881,885 ----
  
  //   keyboardHook.ShutdownBar();
! 
      if ( refreshIconsAtStartup )
        refreshIcons();




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
DQSD-CVS mailing list
https://lists.sourceforge.net/lists/listinfo/dqsd-cvs
DQSD CVS repository:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/

Reply via email to