Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Changing focus to other TextBox by using Focus() method does not work until clicking to control by actual mouse #197

Open
KichangKim opened this issue Dec 22, 2024 · 0 comments

Comments

@KichangKim
Copy link

Hi. I used CefGlue WebView on my Avalonia UI project. And trying to implement Ctrl+F (search feature)

My UI has WebView control and TextBox (for search) control. And I handle keypress event by using KeyboardHandler.

When Ctrl+F is invoked, I change focus from WebView to TextBox by using TextBox.Focus() method. But TextBox does not receive any key event (but its visual is changed) until clicking TextBox by mouse.

It seems that TextBox.Focus() does not change focus from WebView, and WebView has still focus (textbox on webpage still has cursor and receive keyboard input).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant