Pdf widget textfield in a pdf document

Can we restrict the cursor from moving out of the Pdf widget textfield in a pdf document. While updating the textfield user can tap enter or tab buttons to move the cursor out of the textfield.

Is this an expected behavior of Pdf widget textfield or is there a way to prevent this?