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

Fix #5008 InputNumber: Cleanup KeyDown #5418

Merged
merged 1 commit into from
Mar 15, 2024

Conversation

melloware
Copy link
Member

Fix #5008

@tugcekucukoglu this cleans up the InputNumber keydown to match PrimeReact.

  1. Removed console.log
  2. Moved all short circuits to the top of the method that return
  3. Removed unreachable check for altKey

Copy link

vercel bot commented Mar 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
primevue ⬜️ Ignored (Inspect) Visit Preview Mar 14, 2024 7:27pm

if (event.altKey) {
event.preventDefault();
}

Copy link
Member Author

@melloware melloware Mar 14, 2024

Choose a reason for hiding this comment

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

This event.altKey was unreachable based on the short circuit above on line 379

@tugcekucukoglu tugcekucukoglu merged commit 4bdc2cc into primefaces:master Mar 15, 2024
2 of 3 checks passed
@melloware melloware deleted the patch-1 branch March 15, 2024 11:19
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.

InputNumber: Bug deprecated KeyCode Usage
2 participants