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

[grid] Add ability to use Enter key to confirm #11178

Merged

Conversation

mhnaeem
Copy link
Contributor

@mhnaeem mhnaeem commented Oct 26, 2022

Description

This change adds a onKeyDown handler for the input field, the handler listens for Enter key press and calls the onConfirm callback, this change allows the user confirm the dialog using the Enter key instead of pressing the Confirm button

Motivation and Context

Fixes #11177

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)

Checklist

  • I have read the contributing document.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

This change adds a onKeyDown handler for the input field, the handler listens for Enter
key press and calls the onConfirm callback, this change allows the user confirm the dialog
using the Enter key instead of pressing the Confirm button

Fixes SeleniumHQ#11177
@codecov-commenter
Copy link

codecov-commenter commented Oct 31, 2022

Codecov Report

Base: 52.67% // Head: 52.67% // No change to project coverage 👍

Coverage data is based on head (a0dc378) compared to base (f569d7f).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##            trunk   #11178   +/-   ##
=======================================
  Coverage   52.67%   52.67%           
=======================================
  Files          82       82           
  Lines        5542     5542           
  Branches      198      198           
=======================================
  Hits         2919     2919           
  Misses       2425     2425           
  Partials      198      198           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Member

@diemol diemol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @mhnaeem!

@diemol diemol merged commit b4ad08c into SeleniumHQ:trunk Oct 31, 2022
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

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.

[🚀 Feature]: Add ability to confirm PasswordDialog in Grid UI by pressing Enter key
4 participants