From: Jan Michel Date: Wed, 31 Jul 2013 11:28:57 +0000 (+0200) Subject: added shortcuts to enter input fields X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=98059f97879121b349ad2b6faa5ac00ae1c4d715;p=daqtools.git added shortcuts to enter input fields --- diff --git a/web/htdocs/thresh/threshold.htm b/web/htdocs/thresh/threshold.htm index 8a4ebdc..17724cc 100644 --- a/web/htdocs/thresh/threshold.htm +++ b/web/htdocs/thresh/threshold.htm @@ -11,12 +11,13 @@

Threshold Settings

-
Configuration
Board +
Configuration +
Board
DAC-Chain
Channel
Board Type -
Update Interval (ms) -
Reference (mV) +
Update Interval (ms) +
Reference (mV)
Last read
Last set
@@ -47,6 +48,7 @@
  • PageUp/PageDown: Increase/Decrease by 256
  • Shift + PageUp/PageDown: Increase/Decrease by 2048
  • a/A: Increase / Decrease board address +
  • B/U/R: Select input field
  • r: Refresh values, read-back values from Padiwa @@ -66,6 +68,9 @@ var updateTask = 0; var total = 0; var wasRead = 0; +function catchEnter(e) { + if(e.keyCode == 13) document.activeElement.blur(); + } function update(bar,scale) { value[bar-1] = Math.round(document.getElementById("bar"+bar).scrollLeft/scale); @@ -130,6 +135,7 @@ function setValues() { chan = document.getElementById("form_channel").value; type = document.getElementById("form_type").value; reference = document.getElementById("form_ref").value; + document.activeElement.blur(); if(type == 8) { cmdstring = "../commands/spiexec.pl?"+board+"-d400-"+(((chan << 16)).toString(16))+"-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-"+(1<