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

refactor: change all onKeyPress uses to use onKeyDown instead #927

Merged

Conversation

derekhassan
Copy link
Contributor

Description

This changes all uses of onKeyPress to onKeyDown in ButtonCard, clickable, and TextInputWithBadges. I have also renamed a few functions that contain key press in the name to key down for consistency as well as replaced references of onKeyPress to be onKeyDown.

Which issue(s) does this PR relate to?

#915

Testing

Storybook and run tests

Checklist

  • This PR is associated with a JIRA and it is mentioned in the commit message footer ("Closes …")
  • Significant changes have been tested downstream to avoid breaking changes
  • This PR contains breaking changes and states in the commit message body ("BREAKING CHANGE: …")
  • I have reviewed the changes and provided detail to the sections above

@derekhassan derekhassan requested a review from a team as a code owner February 8, 2023 22:58
@github-actions
Copy link

github-actions bot commented Feb 8, 2023

Uffizzi Preview Environment

☁️ https://app.uffizzi.com//github.com/d2iq/ui-kit/pull/927

⚙️ Updating now by workflow run 4129180998.

What is Uffizzi? Learn more

Copy link
Contributor

@mstruebing mstruebing left a comment

Choose a reason for hiding this comment

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

That looks good to me, I can not find any other occurrence of keypress 🥇

Copy link
Collaborator

@nataliepina nataliepina left a comment

Choose a reason for hiding this comment

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

Great job! I appreciate how thorough you were to update the documentation and tests too.

@nataliepina nataliepina merged commit d65b947 into d2iq:main Feb 9, 2023
@github-actions
Copy link

🎉 This PR is included in version 12.4.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

None yet

3 participants