From d528cad67897dd2c3b98ec15a82868ac2764e2c7 Mon Sep 17 00:00:00 2001 From: Nicolai Tellefsen Date: Mon, 21 Mar 2016 20:26:58 +0100 Subject: NMS: Tweak search highlight and hotkeys --- web/nms.gathering.org/js/nms.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'web/nms.gathering.org/js/nms.js') diff --git a/web/nms.gathering.org/js/nms.js b/web/nms.gathering.org/js/nms.js index fd445d1..411fd1c 100644 --- a/web/nms.gathering.org/js/nms.js +++ b/web/nms.gathering.org/js/nms.js @@ -486,6 +486,7 @@ function initNMS() { detectHandler(); nms.playback.play(); setupKeyhandler(); + setupSearchKeyHandler(); } function detectHandler() { @@ -613,6 +614,13 @@ function setupKeyhandler() }); } +function setupSearchKeyHandler() +{ + $("#searchbox").keyup(function(e) { + nmsInfoBox._searchKeyListener(e); + }); +} + function getCookie(cname) { var name = cname + "="; -- cgit v1.2.3