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

Managing focus #744

Closed
hworld opened this issue Mar 23, 2021 · 3 comments
Closed

Managing focus #744

hworld opened this issue Mar 23, 2021 · 3 comments

Comments

@hworld
Copy link

hworld commented Mar 23, 2021

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.

@hworld hworld closed this as completed Mar 24, 2021
@mohit-chauhan-mi
Copy link

@hworld I'm also getting same issue, did you find any solution?

@mohit-chauhan-mi
Copy link

mohit-chauhan-mi commented May 24, 2021

@tneotia I also tried to manage the focus but it's not working I think issue is with inappwebview plugin

@tneotia
Copy link
Contributor

tneotia commented Jun 12, 2021

@pichillilorenzo do you have any input on this? I'd really like to know if what @hworld said is possible.

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

3 participants