-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[vscode] webview active state is bogus if iframe is focused #5521
Comments
Not sure how approach is properly. It would be nice to fix in the shell, right now webviews with focused iframe are not highlighted as active, the same for the mini browser. It seems to be a generic shell issue. |
Open an issue in phosphorjs phosphorjs/phosphor#394 to learn their opinion. |
The only reliable way to get whether iframe is focused, it actually listens for it inside iframe and then forward events to the host window. After that we will need to have a custom shell focus tracker which is aware of these events as well. cc @svenefftinge @spoenemann @kittaakos Maybe other ideas? |
Seems unfeasible.
We could ignore the |
I've tried it does not work, there is not |
Otherwise the webview is not detected as active and title actions are not available. Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
…in iframe Otherwise the webview is not detected as active and title actions are not available. Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
…in iframe Otherwise the webview is not detected as active and title actions are not available. Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
…in iframe Otherwise the webview is not detected as active and title actions are not available. Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
…in iframe Otherwise the webview is not detected as active and title actions are not available. Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
…in iframe Otherwise the webview is not detected as active and title actions are not available. Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
…in iframe Otherwise the webview is not detected as active and title actions are not available. Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
…in iframe Otherwise the webview is not detected as active and title actions are not available. Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
…in iframe Otherwise the webview is not detected as active and title actions are not available. Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
…in iframe Otherwise the webview is not detected as active and title actions are not available. Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
…g is focused in iframe Otherwise the webview is not detected as active and title actions are not available. Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
…g is focused in iframe Otherwise the webview is not detected as active and title actions are not available. Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
…in iframe Otherwise the webview is not detected as active and title actions are not available. Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
…in iframe Otherwise the webview is not detected as active and title actions are not available. Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
…in iframe Otherwise the webview is not detected as active and title actions are not available. Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
…in iframe Otherwise the webview is not detected as active and title actions are not available. Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
…in iframe Otherwise the webview is not detected as active and title actions are not available. Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
…in iframe Otherwise the webview is not detected as active and title actions are not available. Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
…in iframe Otherwise the webview is not detected as active and title actions are not available. Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
…in iframe Otherwise the webview is not detected as active and title actions are not available. Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
…in iframe Otherwise the webview is not detected as active and title actions are not available. Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
…in iframe Otherwise the webview is not detected as active and title actions are not available. Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
…in iframe Otherwise the webview is not detected as active and title actions are not available. Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
…in iframe Otherwise the webview is not detected as active and title actions are not available. Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
…in iframe Otherwise the webview is not detected as active and title actions are not available. Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
…g is focused in iframe Otherwise the webview is not detected as active and title actions are not available. Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
The shell cannot detect that the webview widget is active then webview iframe is selected. The check should be based on
document.activeElement
to produce reliable results.The text was updated successfully, but these errors were encountered: