From 70b27723819eff2a11ab1e3d0658dd376143b4f5 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 25 Sep 2006 00:43:40 +0000 Subject: [PATCH] Fixes #284, Hitting Tab in a tag field causes the field to remain open until the next load Adds tab handling to tags interface, which also addresses beta tester requests for a quicker way to enter multiple tags This is getting pretty messy, but it's still probably better than repeating all the itemPane.js in tagsbox.xml. One known issue is that, since it resorts the list of tags after a change, if you change an existing tag to a name that alters its current position and then tab away, you don't necessarily end up in the field you expect. --- .../content/scholar/bindings/tagsbox.xml | 16 +- .../chromeFiles/content/scholar/itemPane.js | 219 +++++++++++++----- .../content/scholar/xpcom/data_access.js | 10 +- 3 files changed, 184 insertions(+), 61 deletions(-) diff --git a/chrome/chromeFiles/content/scholar/bindings/tagsbox.xml b/chrome/chromeFiles/content/scholar/bindings/tagsbox.xml index 0e3a1d6bd..2a400d2c9 100644 --- a/chrome/chromeFiles/content/scholar/bindings/tagsbox.xml +++ b/chrome/chromeFiles/content/scholar/bindings/tagsbox.xml @@ -56,7 +56,7 @@ { for(var i = 0; i < tags.length; i++) { - this.addDynamicRow(tags[i], i); + this.addDynamicRow(tags[i], i+1); } this.updateCount(tags.length); @@ -77,7 +77,18 @@