BotFramework-WebChat icon indicating copy to clipboard operation
BotFramework-WebChat copied to clipboard

Focus goes to the Button

Open techakki81 opened this issue 9 years ago • 3 comments

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());

techakki81 avatar Aug 07 '17 15:08 techakki81

Hi @punjabimundaaa we have work going on in #630 related to focus. If possible, can you test a local clone of this PR?

danmarshall avatar Sep 14 '17 01:09 danmarshall

@punjabimundaaa can you check if the master is working now?

compulim avatar Sep 24 '17 01:09 compulim

Closed due to inactivity.

compulim avatar Jun 15 '18 08:06 compulim