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

Annotation shortcut #935

Merged
merged 6 commits into from
Oct 7, 2024
Merged

Annotation shortcut #935

merged 6 commits into from
Oct 7, 2024

Conversation

dbrembilla
Copy link
Contributor

This PR resolves issue #475 ; adds a shortcut with Enter when using the ruler / measurement tool to add an annotation.

To test this, try and use the line measurement tool and create an annotation with Enter after having closed the interested area. Please check that this addition does not interfere with other parts of the project (e.g. conflict with other keyboard shortcuts. I checked, and I should have fixed the only problem I found, which was when pressing enter with other instruments)

This commit introduces the capability of toggling the creation an annotation with Enter when doing measurements. Since this could cause Biigle to bug when using it without having closed the annotation, a new info message is instroduced when trying to do that.
When using other buttons and measuring, the function convertMeasurement gets triggered. This caused the error message to get triggered.
@dbrembilla dbrembilla requested a review from mzur October 4, 2024 07:41
@dbrembilla dbrembilla self-assigned this Oct 4, 2024
Copy link
Member

@mzur mzur left a comment

Choose a reason for hiding this comment

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

Mostly fine, thanks! Only three comments:

  • Instead of showing a notification that the line should be finished, I would simply disable/ignore the keyboard shortcut until the measurement line was finished (similar to the "convert" button being disabled then).
  • Please add the new shortcut to the manual (here, maybe add a new section at the bottom).
  • The video annotation tool doesn't have a measure tool at all, so no changes are required here.

@mzur mzur linked an issue Oct 7, 2024 that may be closed by this pull request
…s not closed

As per review, removes the error message
@dbrembilla
Copy link
Contributor Author

Mostly fine, thanks! Only three comments:

  • Instead of showing a notification that the line should be finished, I would simply disable/ignore the keyboard shortcut until the measurement line was finished (similar to the "convert" button being disabled then).
  • Please add the new shortcut to the manual (here, maybe add a new section at the bottom).
  • The video annotation tool doesn't have a measure tool at all, so no changes are required here.

Gotcha, should be fixed now!

Copy link
Member

@mzur mzur left a comment

Choose a reason for hiding this comment

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

Thanks!

@mzur mzur merged commit 764ec21 into master Oct 7, 2024
6 checks passed
@mzur mzur deleted the annotation-shortcut branch October 7, 2024 12:55
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.

Shortcut to convert line measurement to annotation
2 participants