source/colors.js
// Only allow digits in the input textbox

Only allow digits in the input textbox
Only allow digits in the input textbox
function onValueKeypress(e) {
    if (e.key < "0" || e.key > "9") {
      e.preventDefault()
      return false
    }
    else {
      return true
    }
  }
function onValueKeypress ( e ) { if ( e . key < "0" || e . key > "9" ) { e . preventDefault ( ) return false } else { return true } }
Only allow digits in the input textbox
Only allow digits in the input textbox