kyle-n / HighlightedTextEditor

A SwiftUI view for dynamically highlighting user input
MIT License
719 stars 68 forks source link

Support for suppressing tabs and using them to navigate control focus instead #78

Open bastiaanterhorst opened 5 months ago

bastiaanterhorst commented 5 months ago

DO NOT DELETE THIS TEMPLATE

If you do not fill out this template, your issue will be automatically closed.

Is your feature request related to a problem? Please describe. I'd like to use the TAB key to cycle through my controls, the HighlightedTextEditor being one of them. However, this is not possible since the editor 'eats' my tabs and prints them in the text I'm editing. I'd like to prevent this. To be sure: I can tab into the HighlightedTextEditor just fine, but once I'm in there, I can't get out using the keyboard, and I'd like to be able to do that.

Describe the solution you'd like I'd like to use TAB and Shift-TAB to cycle from the editor to the next/previous control, giving it focus.

Describe alternatives you've considered The alternative is using the mouse to select the next/previous control. Works, but keyboard nav would be neat.

Additional context NA Thanks for reading!