Hi,
I have a problem with enter button for text.Here is a scenario like, I enter a text and press enter button, the coursor is not focus into that text area. But for second press it is focusing. It is happening simultaneously.
Please find below snippet.
{
view: "form",
scroll: false,
height: 65,
css: "itemview-footer comments",
cols: [{
view: "text",
id: "commentArea",
css: "single-column",
placeholder: "Write a comment",
label: "Comments",
focus: true,
labelPosition: "top",
labelWidth: 200
}, {
view: "button",
value: "Share",
id: "Share",
hotkey: "enter",
css: "save share"
}]
}
$$('Share').attachEvent("onItemClick", function() {
var commentMsg = $$("commentArea").getValue().toLowerCase();
$$("comments").parse(typedComments);
$$("commentArea").$setValue("");
$$("commentArea").focus();
});
Thanks in advance.