bool? NumLockEnabled(bool?)

Gets or sets num lock key state

Security

Trust Level Required: Low Trust

Parameters

Name Description
enable (Optional) bool?
Enables or disables the num lock key if specified. Defaults to null.

Return

True if caps lock is enabled

Examples


let inputs = document.getElementsByTagName('input')

window.addEventListener('keydown', checkInputs)

function checkInputs(e) {
  if(e.code == 'NumLock'){
        for(let input of inputs){
            if(KioUtils.NumLockEnabled()) input.value = 'NUM LOCK ENABLED'
            else input.value = ''
        }
    }
}

Requirements

KioWare for Windows version 8.3 or greater.