summaryrefslogtreecommitdiff
path: root/src/runtime/javascript/minibar/minibar.js
diff options
context:
space:
mode:
authorhallgren <hallgren@chalmers.se>2010-07-06 13:36:42 +0000
committerhallgren <hallgren@chalmers.se>2010-07-06 13:36:42 +0000
commitc1245d53cd4be5d37e7b874fb63563e16aec33ff (patch)
tree09a6bce50c80084e0ff3e0545b916536ec3f6d1f /src/runtime/javascript/minibar/minibar.js
parent710b8f1bf741e013e8227e966dc47e764738d407 (diff)
Access keys for input fields in minibar and feedback form
Diffstat (limited to 'src/runtime/javascript/minibar/minibar.js')
-rw-r--r--src/runtime/javascript/minibar/minibar.js5
1 files changed, 3 insertions, 2 deletions
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);