summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--awesomplete.js2
-rw-r--r--index.html5
2 files changed, 7 insertions, 0 deletions
diff --git a/awesomplete.js b/awesomplete.js
index d8a09c1..bb93afa 100644
--- a/awesomplete.js
+++ b/awesomplete.js
@@ -176,6 +176,8 @@ _.prototype = {
lis[i].setAttribute("aria-selected", "true");
this.status.textContent = lis[i].textContent;
}
+
+ $.fire(this.input, "awesomplete-highlight");
},
select: function (selected) {
diff --git a/index.html b/index.html
index 9059604..0710845 100644
--- a/index.html
+++ b/index.html
@@ -271,6 +271,11 @@ awesomplete.list = ["Ada", "Java", "JavaScript", "Brainfuck", "LOLCODE", "Node.j
<td>The popup just closed.</td>
<td>No</td>
</tr>
+ <tr>
+ <td><code>awesomplete-highlight</code></td>
+ <td>The highlighted item just changed (in response to pressing an arrow key or via an API call).</td>
+ <td>No</td>
+ </tr>
</tbody>
</table>
</section>