-
Notifications
You must be signed in to change notification settings - Fork 52
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
BACKSPACE and DELETE in multiline text does not behave as expected if text is empty #839
Comments
Keymaps also seem to be ignored .... |
In your mentioned case:
We would need to see some other use cases if deleting the node always makes sense if the text is empty. Otherwise, we could add a style item that can influence the behavior. |
Thanks, I understand why it behaves like it does, but I wonder how one is supposed to delete a multiline text field with the keyboard? |
Yes, I agree. |
I don't quite understand the implementation for DELETE and BACKSPACE in the multiline runtime EditorCell_Word.executeTextAction() . If the caret is at the beginning (BACKSPACE) or at the end (DELETE), the action is "transfered" to the next label cell, if one exists.
I guess it makes sense for the cases where the text itself is not empty AND the next cell it trasnfers to is editable.
However, I have a case where a multiline text cell is surrounded by read-only constant cells and if the text is empty, both BACKSPACE and DELETE should allow the user to delete the containing node, or at least allow me as the language author to define what should happen.
Unfortunately, adding a action map to the multiline cell is ignored by the multiline runtime :(
The text was updated successfully, but these errors were encountered: