Skip to content

when listen onkeydown then get input.value input 'hello world' but get 'hello worl' #41

Open
@Magic-zhu

Description

@Magic-zhu
var input = new CanvasInput({
        canvas: document.getElementById('canvas')
    });
    input.value('xxx')
    input.onkeydown(()=>{
        console.log(input.value())
    })

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions