cronvel / terminal-kit

Terminal utilities for node.js
MIT License
3.08k stars 198 forks source link

Form control event and validation #231

Open hemendpatel opened 1 year ago

hemendpatel commented 1 year ago

Hi,

I'm trying to create terminal application using terminal-kit library. This library has all require controls and way ahead of other library in terms of performance. I'm going through each control and checking properties and event require for my application.

  1. I'm using form control to create an object of user input. I'm getting few issues to control event, validate value and set focus to individual fields of form control. How can I add event i.e., keypress or focus event to individual input control of form. Do we have an option to add validator to input control of form?. Anybody try to use the form control like web form control to add validation or events?

  2. Enter key is configure to focus next control in hierarchy. do we have option override key behavior? I'm new to this library so it might have many feature which I have not explored