From 9c4773eb6968c822cc19bdfdc837a7980510104f Mon Sep 17 00:00:00 2001 From: Jan Michel Date: Wed, 31 Jul 2013 12:50:19 +0200 Subject: [PATCH] added shortcut to change board address --- web/htdocs/thresh/threshold.htm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/htdocs/thresh/threshold.htm b/web/htdocs/thresh/threshold.htm index d566de5..8a4ebdc 100644 --- a/web/htdocs/thresh/threshold.htm +++ b/web/htdocs/thresh/threshold.htm @@ -46,6 +46,7 @@
  • Shift + Up/Down: Increase/Decrease by 16
  • PageUp/PageDown: Increase/Decrease by 256
  • Shift + PageUp/PageDown: Increase/Decrease by 2048 +
  • a/A: Increase / Decrease board address
  • r: Refresh values, read-back values from Padiwa @@ -139,6 +140,9 @@ function setValues() { } } +Mousetrap.bind('a', function() { board = (parseInt(board,16)+1).toString(16); document.getElementById("form_board").value = board; setValues(); }); +Mousetrap.bind('A', function() { board = (parseInt(board,16)-1).toString(16); document.getElementById("form_board").value = board; setValues(); }); + Mousetrap.bind('c', function() { ++chan; chan %= 16; document.getElementById("form_channel").value = chan; setValues(); }); Mousetrap.bind('d', function() { ++chain; chain %= 16; document.getElementById("form_chain").value = chain; setValues(); }); Mousetrap.bind(['C','v'], function() { --chan; chan%=16; if (chan<0) chan=15; document.getElementById("form_channel").value = chan; setValues(); }); -- 2.43.0