From 73686e242319b897bd63d2814f737ee7f095553c Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 26 Apr 2014 02:08:50 -0400 Subject: [PATCH] Update field/tag textbox as autocomplete lines are selected The main effect of this is that Tab now accepts the selected autocomplete entry. Closes #341 and #417 --- chrome/content/zotero/bindings/itembox.xml | 1 + chrome/content/zotero/bindings/tagsbox.xml | 1 + 2 files changed, 2 insertions(+) diff --git a/chrome/content/zotero/bindings/itembox.xml b/chrome/content/zotero/bindings/itembox.xml index e5dd2980f..285203fa4 100644 --- a/chrome/content/zotero/bindings/itembox.xml +++ b/chrome/content/zotero/bindings/itembox.xml @@ -1453,6 +1453,7 @@ t.setAttribute( 'autocompletesearchparam', JSON.stringify(params) ); + t.setAttribute('completeselectedindex', true); } } var box = elem.parentNode; diff --git a/chrome/content/zotero/bindings/tagsbox.xml b/chrome/content/zotero/bindings/tagsbox.xml index bd4bf15c6..d55c5781a 100644 --- a/chrome/content/zotero/bindings/tagsbox.xml +++ b/chrome/content/zotero/bindings/tagsbox.xml @@ -445,6 +445,7 @@ t.setAttribute( 'autocompletesearchparam', JSON.stringify(params) ); + t.setAttribute('completeselectedindex', true); } var box = elem.parentNode;