I would like to remove some of the functionality of a Textfield
.
When the enter or return keys are pressed, the field becomes empty. I would like the value entered to stay within the field.
I have tried overriding the submit method but this hasn't done the job:
widthTopField = new Textfield(controlP5, "widthField"){
@ Override public Textfield submit(){
return this;
}
};