bool? ScrollLockEnabled (bool?)

Gets or sets scroll lock key state

Security

Trust Level Required: Low Trust

Parameters

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

Return

True if the key is enabled

Examples


let inputs = document.getElementsByTagName('input')

window.addEventListener('keydown', checkInputs)

function checkInputs(e) {
  if(e.code == 'ScrollLock'){
        for(let input of inputs){
            if(KioUtils.ScrollLockEnabled()) input.value = 'SCROLL LOCK ENABLED'
            else input.value = ''
        }
    }
}

Requirements

KioWare for Windows version 8.3 or greater.