Elius94 / console-gui-tools

A simple library to draw option menu or other popup inputs and layout on Node.js console.
MIT License
106 stars 17 forks source link

Add keyboard key to push button #57

Closed Elius94 closed 1 year ago

Elius94 commented 1 year ago

Add "key" parameter to button to push it with keyboard key example:

const button = new Button("btnClickMe", "Click Me!", 11, 3, 10, 10, style1)
button.setKey("x", ctrl=true, alt=false, shift=false)