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

feat: disable the tab key with an option #82

Merged
merged 1 commit into from
Sep 18, 2018

Conversation

marcysutton
Copy link

@marcysutton marcysutton commented Aug 3, 2018

I added an option to disable the logic in handleTab, as it was creating a keyboard trap. I left it enabled by default, but perhaps it would be better to default to a better keyboard accessibility experience (handleTabs: false)? I didn't want it to be a breaking change and require a major release.

WIP tests – I wasn't sure how to assert this behavior. WebdriverIO indicates you can trigger keystrokes when inputting content with setValue, but a series of characters including a tab sequence didn't produce the same result as a user typing. I wasn't sure how to use browser.sendKeys in this context either...so I'll take any suggestions on how to test this change.

Closes #81

WIP tests. Need to find a way to assert this behavior

Closes kazzkiq#81
@kazzkiq kazzkiq merged commit 23d83ef into kazzkiq:master Sep 18, 2018
@kazzkiq
Copy link
Owner

kazzkiq commented Sep 18, 2018

Sorry for the delay, and thanks for the PR!

It worked almost flawlessly (tested manually), but I'm also not sure how to make it testable via WebdriverIO.

@marcysutton
Copy link
Author

I came back to report the bug you already fixed in #82, so nice work :)

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.

2 participants