mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 08:15:30 +03:00
fully dynamic aux channel UI
This commit is contained in:
parent
1e40dae3dc
commit
75bac26c67
3 changed files with 60 additions and 65 deletions
2
main.js
2
main.js
|
@ -174,7 +174,7 @@ $(document).ready(function() {
|
|||
$("#content").on('keydown', 'input[type="number"]', function(e) {
|
||||
// whitelist all that we need for numeric control
|
||||
if ((e.keyCode >= 96 && e.keyCode <= 105) || (e.keyCode >= 48 && e.keyCode <= 57)) { // allow numpad and standard number keypad
|
||||
} else if(e.keyCode == 109 || e.keyCode == 189) { // minus on numpad and in standard keyboard
|
||||
} else if (e.keyCode == 109 || e.keyCode == 189) { // minus on numpad and in standard keyboard
|
||||
} else if (e.keyCode == 8 || e.keyCode == 46) { // backspace and delete
|
||||
} else if (e.keyCode == 190 || e.keyCode == 110) { // allow and decimal point
|
||||
} else if ((e.keyCode >= 37 && e.keyCode <= 40) || e.keyCode == 13) { // allow arrows, enter
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue