BotFramework-WebChat
BotFramework-WebChat copied to clipboard
Focus goes to the Button
I am having a hero card added in web chat control. The focus is automatically set to the first CardAction in button. This is annoying as the user cannot press enter for subsequent chat . The enter opens skype for business instead.
No auto focus should be set on button in Web Chat Control
heroCard = new HeroCard
{
Title = srchMatUser.DisplayText,
Subtitle = srchMatUser.EntityData.Title + " , " + srchMatUser.EntityData.Department,
Text = srchMatUser.EntityData.MobilePhone,
Images = new List<CardImage> { new CardImage(userImageUrl) },
Buttons =
new List<CardAction>
{
new CardAction(ActionTypes.OpenUrl, "Contact On Skype",
value: "sip:<" + srchMatUser.EntityData.Email + ">")
}
};
message.Attachments.Add(heroCard.ToAttachment());
Hi @punjabimundaaa we have work going on in #630 related to focus. If possible, can you test a local clone of this PR?
@punjabimundaaa can you check if the master is working now?
Closed due to inactivity.