dist/layouts.js
function keyboardCapsLockLayout(layout, caps) {
    return layout.map(function (row) {
        return row.map(function (key) {
            return isSpecial(key) ? key : (caps ? key.toUpperCase() : key.toLowerCase());
        });
    });
}
function keyboardCapsLockLayout(layout, caps) {
    return layout.map(function (row) {
        return row.map(function (key) {
            return isSpecial(key) ? key : (caps ? key.toUpperCase() : key.toLowerCase());
        });
    });
}
function keyboardCapsLockLayout ( layout , caps ) { return layout . map ( function ( row ) { return row . map ( function ( key ) { return isSpecial ( key ) ? key : ( caps ? key . toUpperCase ( ) : key . toLowerCase ( ) ) ; } ) ; } ) ; }
Function to change specified layout to CapsLock layout.

@param {KeyboardLayout}  layout
@param {boolean}         caps
@returns {KeyboardLayout}
Function to change specified layout to CapsLock layout .