Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tab characters in text input #160

Closed
psvenk opened this issue Mar 4, 2021 · 3 comments
Closed

Tab characters in text input #160

psvenk opened this issue Mar 4, 2021 · 3 comments
Labels
easy Relatively easy/quick to do (at least one checkbox item)

Comments

@psvenk
Copy link
Contributor

psvenk commented Mar 4, 2021

Currently, pressing <TAB> in a text box cycles to another control on the page. It would be useful to have this insert a literal tab character, or alternatively 4 spaces, when writing pseudocode.

@edemaine
Copy link
Owner

edemaine commented Mar 9, 2021

That makes sense, though I worry about overriding the tab key for those navigating by keyboard. That said, Cocreate isn't very usable via keyboard, so perhaps it's fine...? Perhaps a reasonable alternative is that Tab inserts a tab key if this is not the first keyboard interaction with the textarea (e.g. characters have been typed, or arrow keys have been pressed); but it cycles otherwise. One can use Escape to get back to cycle mode.

@edemaine edemaine added the easy Relatively easy/quick to do (at least one checkbox item) label Mar 9, 2021
@edemaine
Copy link
Owner

Implemented. Will be deployed in a little while.

@psvenk
Copy link
Contributor Author

psvenk commented Mar 17, 2021

@edemaine Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy Relatively easy/quick to do (at least one checkbox item)
Projects
None yet
Development

No branches or pull requests

2 participants