Skip to content

Embeds: Detect focus on embed sandbox#4011

Merged
aduth merged 1 commit intomasterfrom
update/sandbox-focus
Jan 4, 2018
Merged

Embeds: Detect focus on embed sandbox#4011
aduth merged 1 commit intomasterfrom
update/sandbox-focus

Conversation

@aduth
Copy link
Copy Markdown
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