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

Comment actions Permalink

i think you are looking for an action map: (scroll down a little).

Here is what you need to do (roughly):

  1. On your editor aspect, add a new "Cell Action Map" (right click on the aspect -> New -> Cell Action Map)
  2. give it a name
  3. applicable concept: Car (I guess that is your concept for the "cars" children)
  4. add an action for INSERT
  5. can execute:press enter to add a function and return "false"
  6. go to your Editor where you want to use this action map to prevent the enter key from firing
  7. select the "cars" reference in the editor
  8. in the inspector, add your new action map to the "action map" row




Comment actions Permalink

Thanks Robert! That helped.

Comment actions Permalink

Will that prevent ctrl+c / ctrl+v as well?


Please sign in to leave a comment.