Skip to content

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

Open
raffaelj wants to merge 2 commits intoagentejo:nextfrom
raffaelj:tab-scroll-fixed-footer
Open

auto scroll with tab key if element is behind fixed actionbar, fixes #1005#1264
raffaelj wants to merge 2 commits intoagentejo:nextfrom
raffaelj:tab-scroll-fixed-footer

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