问题
Changing the return key type of TextViews/TextFields is pretty straight forward, however, since prompts don't use any html there's no obvious way to change the return key type. the NativeScript docs don't indicate there being any way to change it either.
回答1:
Unfortunately you can not do that. As of today {N} do not expose the underlaying native view for dialogs so it's not possible to override natively.
You will have to build the complete custom dialog yourself to achieve what you are looking for.
来源:https://stackoverflow.com/questions/59888508/how-do-i-change-the-return-key-type-of-a-text-from-a-prompt-in-nativescript