-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Managing focus #744
Comments
@hworld I'm also getting same issue, did you find any solution? |
@tneotia I also tried to manage the focus but it's not working I think issue is with inappwebview plugin |
@pichillilorenzo do you have any input on this? I'd really like to know if what @hworld said is possible. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue. |
Environment
Flutter version: 2.0.2
Plugin version: 5.2.0
Android version: 9.0
iOS version: 14
Description
What you'd like to happen:
I'm using flutter_inappwebview to load in our text editor on Android and iOS. We need a way to manage the focus state of the text box within the webview. I've tried focusing/blurring within javascript and it's not actually doing anything. I've looked through all the code for the word "focus" and there doesn't seem to be a way to focus the actual window, or an element within it. There is a function to get the text selection and to clear the focus, as well as callbacks to check window focus, but it seems that we can't actually modify that focus state.
I'm not sure what to do, if there's any hacks that can be done to manage the focus state (autofocusing when the webview first renders). I might also be missing something.
The text was updated successfully, but these errors were encountered: