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

WinForms - Add Shift+Tab to IsInputKey (used when MultiThreadedMessageLoop is disabled) #2814

Conversation

eklavyamirani
Copy link
Contributor

@eklavyamirani eklavyamirani commented Jun 19, 2019

Summary:

  • When MultiThreaded message loop is disabled, we use the winform message loop. We want to ensure that Shift+Tab (cycle selection back) is recognized as a valid input by the browser control otherwise it breaks keyboard accessibility.

Changes:

  • I have added Shift + Tab to the list of inputs recognized by the browser.

How Has This Been Tested?

I changed the winforms example and set MultiThreadedMessageLoop = false. Then I opened the webpage and tried shift + tab. The selection didn't cycle through the HTML content, instead it cycled through the WinForm controls.
Then, I added my change and redid the same steps as above. Shift + tab works fine.

Note: I was looking at the original change to the code that I am modifying but couldn't find any automated tests that were written for it. I'd be happy to write tests if someone can point me to the right direction.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Updated documentation

Checklist:

  • Tested the code(if applicable)
  • Commented my code
  • Changed the documentation(if applicable)
  • New files have a license disclaimer
  • The formatting is consistent with the project (project supports .editorconfig)

…disabled.

When MultiThreaded message loop is disabled, we use the winform message loop. We want to ensure that Shift+Tab (cycle selection back) is recognized as a valid input in this case or it breaks keyboard accessibility.
@AppVeyorBot
Copy link

Build CefSharp 74.1.130-CI3157 completed (commit 9d897db854 by @)

@amaitland amaitland added this to the 75.0.0 milestone Jun 19, 2019
@amaitland
Copy link
Member

Thanks, looks fine. Will merge after I've had a chance to test.

Don't worry about providing a screenshot.

@eklavyamirani
Copy link
Contributor Author

eklavyamirani commented Jun 19, 2019 via email

@eklavyamirani eklavyamirani marked this pull request as ready for review June 20, 2019 02:08
@amaitland amaitland changed the title Add Shift+Tab as inputs to browser when MultiThreadedMessageLoop is disabled WinForms - Add Shift+Tab to IsInputKey (used when MultiThreadedMessageLoop is disabled) Jun 20, 2019
@amaitland amaitland merged commit df680ae into cefsharp:master Jul 7, 2019
@amaitland
Copy link
Member

Are there any E2E tests that I can add it to?

Currently no, the plan is to write some tests with WinAppDriver, contributions in this area would be welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants