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
[SuperEditor] Task indentation implementation is missing #1895
Comments
@alterhuman Could you please describe what you mean when you say, "Unable to indent checkboxes using tab key, similar to ordered and unordered lists."? What's the expected and the actual behaviour you're encountering here? Please share any demos or reproducible example, makes things easier to understand for reviewers. Also, if there are multiple issues you're encountering, please file a separate issue for each unless they're directly related to each other and fixing one could fix the other. Keeping a single issue scoped to a specific thing makes it easy to make decisions around it. |
@rutvik110 this is the expected behaviour (shown using bear app): IndentationScreen.Recording.2024-03-19.at.12.12.00.AM.movActual behaviour is that nothing happens on pressing shift. I will file a separate issue for the second one. |
Thanx a lot for the info. I think I understand the issue more clearly now. I just checked that the numbered and bullet lists in Super Editor support this where items are moved to a sub-list as part of the primary list item on shift press and reverted back on tab + shift press. This will be nice to have addition for checkbox list. |
@miguelcmedeiros @brian-superlist - Can you two let us know if this is a desirable default behavior? It seems like a fine thing to support, but we don't want to make it the default if you don't want it. |
@matthew-carroll any starting point on this would help, I will try to implement this myself. |
@alterhuman we still haven't heard back if this is desirable behavior. Therefore, if you implement it, at least for now, it needs to be opt-in behavior. That said, if you want a hardware keyboard key to do something, the first thing you typically want to do is to create a key handler which implements the desired behavior. When you create a If you want users to be able to press tab on a software keyboard then you'll need to look at where we handle IME messages. That's where we handle all text input on mobile, and some things from desktop, too. You said that list items already handle indentation the way you want. Therefore, you can probably track down where list item indentation is handled to figure out what to do for tasks. I'm guessing that Once you implement hardware key input, IME input, and visual indentation rendering, you should have a completed feature. Please be sure to add appropriate tests, too. |
@matthew-carroll thanks will refer to list component & implement this. |
Nope, we'd need to implement this one ourselves since we have custom TaskComponents and functionality. |
Got it. So adding this in the SuperEditor won't be an issue since you guys are using your own task component. |
Exactly -- it wouldn't be an issue for us if it's added, but we wouldn't fund the development in this case. |
Unable to indent checkboxes using tab key, similar to ordered and unordered lists.
Similar Issue
Pressing enter on an empty checkbox does not make it disappear,. This also works correctly in case of ordered and unordered lists.
The text was updated successfully, but these errors were encountered: