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

Capture key events for time entry deletion #433

Merged
merged 2 commits into from
May 12, 2022
Merged

Capture key events for time entry deletion #433

merged 2 commits into from
May 12, 2022

Conversation

jonandernovella
Copy link
Contributor

Related issue(s) and PR(s)

This PR closes #432

Type of change

  • Bug fix (non-breaking change which fixes an issue)

List of changes made

The onChange listener does not detect ESC and delete key events upon first change. Therefore we use a onKey listener to figure out whether a time entry needs to be deleted.

Testing

  • Follow the instructions of the bug report written by @HenrikeW

Definition of Done checklist

  • I have made an effort making the commit history understandable
  • I have performed a self-review of my own code and commented any hard-to-understand areas
  • Tests and lint/format validations are passing
  • My changes generate no new warnings

onChange does not detect the backspace and delete keys so we need an onKey listener for detecting time entry deletion events.
@jonandernovella jonandernovella requested review from HenrikeW, a user, airenzp and kusalananda May 12, 2022 08:04
Copy link
Contributor

@HenrikeW HenrikeW left a comment

Choose a reason for hiding this comment

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

Works!

@HenrikeW HenrikeW merged commit cea717a into develop May 12, 2022
@HenrikeW HenrikeW deleted the fix/ondelete branch May 12, 2022 08:41
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.

Removing a number in a cell does not remove the time entry
2 participants