Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

windows: Focus indicators missing with multi-threaded-message-loop #3510

Open
EricPRHC opened this issue May 20, 2023 · 1 comment
Open

windows: Focus indicators missing with multi-threaded-message-loop #3510

EricPRHC opened this issue May 20, 2023 · 1 comment
Labels
bug Bug report windows Windows platform

Comments

@EricPRHC
Copy link

[copied content from https://github.com/cefsharp/CefSharp/issues/4146]

Problem description:

When visiting some sites, An application built with CefSharp WPF does not visually indicate that a text input is focused (no text caret, no focused input border).-

This can be reproduced in the latest "CefSharp MinimalExample WPF", v102 and earlier versions such as v97.-

With "CefSharp MinimalExample WinForms" visual indicators are provided correctly, so this problem seems to exist only for the WPF version.

To Reproduce
Please note that switching to another Windows application will prevent the bug from happening, see workaround.
[from amaitland in referenced issue]

Interesting it does if you navigate directly to https://www.google.com/doodles or if you hide then show the window.
Looks like the browser doesn't correctly think it's got focus when clicking via the mouse.
Works via tabbing around, so keyboard focus appears to behave differently

Result: the code text input does not show visual focus indication such as caret and text input border, however it is possible to write into the text box.

Expected result: the text input should show a text caret and a highlight border, like it does in regular Chrome and also in "CefSharp MinimalExample WinForms"

This also occurs on other non public sites.

It appears that workarounds is available:
Switch focus to another app and back again to make it work, or focus the address bar in CefSharp.MinimalExample and back again to make the focus indicating work again

Environment:
OS: Windows 10 x64
CefSharp version 102
.NET 4 and core

It occurs on prior version but is reproducible with CefSharp.MinimalExample v102 from github.

Information from debug log:
No relevant information found in debug log

Reproducible in CEF Sample Application:
No, only for CefSharp WPF

@EricPRHC EricPRHC added the bug Bug report label May 20, 2023
@magreenblatt magreenblatt changed the title WPF - fails to provide visual focus indicators (text caret, text input border) at some sites windows: Focus indicators missing with multi-threaded-message-loop May 23, 2023
@magreenblatt magreenblatt added the windows Windows platform label May 23, 2023
@magreenblatt
Copy link
Collaborator

Possibly related to issue #3436

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Bug report windows Windows platform
Projects
None yet
Development

No branches or pull requests

2 participants