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

add focus for contenteditable elements on context-menu-layer right click #486

Merged
merged 1 commit into from
Dec 15, 2016
Merged

add focus for contenteditable elements on context-menu-layer right click #486

merged 1 commit into from
Dec 15, 2016

Conversation

robfenlon
Copy link

When we have the context menu open and the context-menu-layer is being shown, subsequent right clicks on contenteditable elements won't focus the cursor on them. This PR will check if the target element of a right click is a contenteditable element, and if so, use window.getSelection() to focus it.

@bbrala bbrala merged commit 7876093 into swisnl:master Dec 15, 2016
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

Successfully merging this pull request may close these issues.

3 participants