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

auto scroll with tab key if element is behind fixed actionbar, fixes #1005 #1264

Open
wants to merge 2 commits into
base: next
Choose a base branch
from

Conversation

raffaelj
Copy link
Contributor

@raffaelj raffaelj commented Feb 26, 2020

This PR adds event listeners to the conntetedCallback of the cp-actionbar for keyup and keydown to check, if a user pressed tab key to set the focus to the next element. If so and the focused element is behind the fixed footer, it scrolls down to move the focused element in the visible viewport.

It doesn't seem to work with wysiwyg fields.
I wasn't able to leave the markdown field with tab key.

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.

1 participant