leocb / MaterialSkin

Theming .NET WinForms, C# or VB.Net, to Google's Material Design Principles.
MIT License
438 stars 132 forks source link

Add LeaveOnEnterKey property to textboxes. #267

Closed valimaties closed 2 years ago

valimaties commented 2 years ago

Implement LeaveOnEnterKey property on all textboxes controls. On every application I encountered or I use, Enter key will validate and will select the next control which have TabStop property on true. By default, it is false, to preserve current approach of Material TextBox controls. But who wants to leave the control (textbox) can set this property to true, without writing its KeyUp KeyDown event.

On MultiLine controls to add Carriage Return (Enter key) to text, user must press CTRL+Enter, if this property is set to True.