I was trying to find a solution online but couldn't find a proper answer. Does anyone know how to 'catch'/'recognise' that user pressed return key on the soft keyboard (iOS)? And how to check if the input equals to e.g. correct answer?
Thanks a lot.
My code:
nt = new NativeText(1);
this.nt = nt;
this.nt.returnKeyLabel = ReturnKeyLabel.DONE;
this.nt.autoCorrect = true;
this.nt.fontSize = 40;
this.nt.borderThickness = 1;
this.nt.fontFamily = "Arial";
this.nt.text = "pica";
this.nt.color = 0xFFFFFF;
this.nt.borderColor = 0xFFFFFF;
this.nt.width = 500;
this.nt.x = 70;
this.nt.y = 70;
LEVEL_02_STAGE.addChild(this.nt);