Filter bar input is now type "search" which looks sexy on mac.
authorRobert Konigsberg <konigsberg@google.com>
Sun, 8 Jan 2012 03:36:22 +0000 (22:36 -0500)
committerRobert Konigsberg <konigsberg@google.com>
Sun, 8 Jan 2012 03:36:22 +0000 (22:36 -0500)
experimental/palette/palette.js

index 598a163..5a2891c 100644 (file)
@@ -97,9 +97,11 @@ Palette.prototype.create = function(document, parentElement) {
 
   Palette.createChild("span", row).innerText = "Filter:";
   this.filterBar = Palette.createChild("input", Palette.createChild("span", row));
+  this.filterBar.type = "search";
   this.filterBar.onkeyup = function() {
     palette.filter(palette.filterBar.value)
   };
+  this.filterBar.onclick = this.filterBar.onkeyup;
   var go = document.createElement("button");
   Palette.createChild("span", row).appendChild(go);
   go.innerText = "Redraw"