I can't figure out how to make the keyboard enter key press the ok button or run a function. When I display a prompt dialog, the enter key hides the keyboard on ios and/or makes another line on android. It should press the ok button instead.
Any help appreciated
Thanks Jacklin
var dialogsModule = require("ui/dialogs");
dialogsModule.prompt({
message: "Add new activity:",
cancelButtonText: "Cancel",
okButtonText: "Add"
})