prevent enter key from creating a new child
Hey forum!
I have a very basic question. I have a child list [0..n] of cars, separated by a comma. Now if the user hits enter, it always creates a new child. Instead I only want that behavior for a comma input.
How can I accomplish this?
Regards msch95
Please sign in to leave a comment.
i think you are looking for an action map: https://confluence.jetbrains.com/display/MPSD34/Editor+cookbook#Editorcookbook-Commoneditorpatterns (scroll down a little).
Here is what you need to do (roughly):
Best,
Robert
Thanks Robert! That helped.
Will that prevent ctrl+c / ctrl+v as well?