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

Embeds: Detect focus on embed sandbox #4011

Merged
merged 1 commit into from
Jan 4, 2018
Merged

Embeds: Detect focus on embed sandbox #4011

merged 1 commit into from
Jan 4, 2018

Conversation

aduth
Copy link
Member

@aduth aduth commented Dec 14, 2017

This pull request seeks to improve the behavior of focusing embed blocks, allowing block selection by clicking on the embed.

Implementation notes:

Detecting click events on iframe is not normally possible, but this uses a technique to detect blur from the host window and whether at the point of blur the active element is the iframe, inferring that this implies that the iframe has received focus.

Testing instructions:

Verify that clicking an embed block selects it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Blocks Overall functionality of blocks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant