Commit 33ffce0d authored by Wen Wei Li's avatar Wen Wei Li

disable shift button

parent f4ad973c
......@@ -10,7 +10,7 @@ let myKeyboard = new Keyboard({
"1 2 3",
"4 5 6",
"7 8 9",
"{shift} 0 {bksp}"
" 0 {bksp}"
],
}
});
......@@ -27,6 +27,7 @@ function onChange(input) {
function onKeyPress(button) {
console.log("index : ", index);
if( String(button) != ""){
if ( String(button) == "{bksp}" && index > 1 ){
index= index - 1;
n = "slot-" + index;
......@@ -42,7 +43,9 @@ function onKeyPress(button) {
}else{
console.log("index over 6");
}
}else{
console.log("press space button");
}
document.querySelector('input[id="'+n+'"]').focus();
console.log("Button pressed", button);
......
......@@ -41,7 +41,7 @@
{% endfor %}
</div>
<div class="col-2 inline">
<button type="submit" class="btn btn-primary" id="conn" style="height:50px">Connect</button>
<button type="submit" class="btn btn-primary" id="setup" style="height:50px">Confirm</button>
</div>
</div>
<div class="row align-items-center">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment