<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -87,33 +87,35 @@ if (typeof jQuery == 'undefined') {
 function respond_to_key(e) 
 {
 	var unicode = e.keyCode? e.keyCode : e.charCode;
-	switch (unicode) {
-		case 83: case 115: 			// s keypress
-    	$('#qunit-overlay').show();
-	    break;
-	  case 72: case 104: 			// h keypress
-	  	if($(&quot;#qunit-results&quot;).height() &gt; 0)
-				$(&quot;#qunit-results&quot;).animate({ height: &quot;0px&quot;}, 500 );
-			$('#qunit-overlay').hide();
-	    break;
-	 	case 191: case 47: 			// ? keypress
-	  	$('#qunit-overlay').show();
-			$('#qunit-menu').toggle();
-	    break;
-		case 65: case 97: 			// a keypress
-			$(&quot;#qunit-all-tests&quot;).click();
-	    break;
-		case 82: case 114: 			// r keypress
-			if($(&quot;#qunit-results&quot;).height() &gt; 0) {
-				$(&quot;#qunit-results&quot;).animate({ height: &quot;0px&quot;}, 500 );
-			} else {
-				$('#qunit-overlay').show();
-				$(&quot;#qunit-results&quot;).animate({ height: &quot;400px&quot;}, 500 );
-			}
-			break;
-	  default:
-    	break;
-  }				    
+	if(document.activeElement['nodeName'] != &quot;INPUT&quot;) {
+		switch (unicode) {
+			case 83: case 115: 			// s keypress
+	    	$('#qunit-overlay').show();
+		    break;
+		  case 72: case 104: 			// h keypress
+		  	if($(&quot;#qunit-results&quot;).height() &gt; 0)
+					$(&quot;#qunit-results&quot;).animate({ height: &quot;0px&quot;}, 500 );
+				$('#qunit-overlay').hide();
+		    break;
+		 	case 191: case 47: 			// ? keypress
+		  	$('#qunit-overlay').show();
+				$('#qunit-menu').toggle();
+		    break;
+			case 65: case 97: 			// a keypress
+				$(&quot;#qunit-all-tests&quot;).click();
+		    break;
+			case 82: case 114: 			// r keypress
+				if($(&quot;#qunit-results&quot;).height() &gt; 0) {
+					$(&quot;#qunit-results&quot;).animate({ height: &quot;0px&quot;}, 500 );
+				} else {
+					$('#qunit-overlay').show();
+					$(&quot;#qunit-results&quot;).animate({ height: &quot;400px&quot;}, 500 );
+				}
+				break;
+		  default:
+	    	break;
+	  }
+	}
 }
 
 function load_js_file(filename)</diff>
      <filename>public/javascripts/qunit_for_rails.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f73dbec23cf764dbc042fc1d97983eacf5e221a9</id>
    </parent>
  </parents>
  <author>
    <name>Michael Krisher</name>
    <email>mike@mikekrisher.com</email>
  </author>
  <url>http://github.com/mkrisher/qunit_for_rails/commit/6085f45356e989f593f2e8603fddfd77879d15b6</url>
  <id>6085f45356e989f593f2e8603fddfd77879d15b6</id>
  <committed-date>2009-10-26T14:31:46-07:00</committed-date>
  <authored-date>2009-10-26T14:31:46-07:00</authored-date>
  <message>ignoring keypresses when focus element is an input field</message>
  <tree>89816ada8700d2d5e81c8a98efc38d2c2b8ee81c</tree>
  <committer>
    <name>Michael Krisher</name>
    <email>mike@mikekrisher.com</email>
  </committer>
</commit>
