AvaloniaUI / AvaloniaEdit

Avalonia-based text editor (port of AvalonEdit)
MIT License
774 stars 149 forks source link

Added AcceptsTab option to TextEditor #467

Closed danipen closed 1 week ago

danipen commented 1 week ago

This PR introduces a new option, AcceptsTab, similar to Avalonia's TextBox.AcceptsTab property.

When disabled, this option allows the TextEditor to avoid consuming the Tab and Shift+Tab keys. This is particularly useful when TextEditor is used within a form, as users often expect the Tab key to navigate between fields.

By default, AcceptsTab is set to true.