From c1245d53cd4be5d37e7b874fb63563e16aec33ff Mon Sep 17 00:00:00 2001 From: hallgren Date: Tue, 6 Jul 2010 13:36:42 +0000 Subject: Access keys for input fields in minibar and feedback form --- src/runtime/javascript/minibar/minibar.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/runtime/javascript/minibar/minibar.js') diff --git a/src/runtime/javascript/minibar/minibar.js b/src/runtime/javascript/minibar/minibar.js index 8e7ab8172..2a0c20931 100644 --- a/src/runtime/javascript/minibar/minibar.js +++ b/src/runtime/javascript/minibar/minibar.js @@ -71,7 +71,8 @@ var server = { /* --- Initialisation ------------------------------------------------------- */ -function start_minibar(opts) { // typically called when the HTML document is loaded +function start_minibar(opts) { + // Typically called when the HTML document is loaded if(opts) for(var o in opts) options[o]=opts[o]; var surface=div_id("surface"); var extra=div_id("extra"); @@ -209,7 +210,7 @@ function add_typed_input(surface) { inp=surface.typed; else { var inp=empty("input","type","text"); - //inp.setAttribute("onclick","return false;"); // Don't propagate click to surface + inp.setAttribute("accesskey","t"); inp.setAttribute("onkeyup","complete_typed(this)"); inp.setAttribute("onchange","finish_typed(this)"); surface.appendChild(inp); -- cgit v1.2.3