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

Feature/1358 copy coordinates #1506

Merged
merged 17 commits into from
May 15, 2024
Merged

Conversation

OlofSvahnVbg
Copy link
Collaborator

closes #1358

@OlofSvahnVbg OlofSvahnVbg added the new feature Request for adding/changing functionality label May 8, 2024
@OlofSvahnVbg OlofSvahnVbg added this to the 3.x milestone May 8, 2024
@OlofSvahnVbg OlofSvahnVbg self-assigned this May 8, 2024
@OlofSvahnVbg OlofSvahnVbg changed the base branch from master to develop May 8, 2024 06:03
@Hallbergs
Copy link
Member

Netlify fails since the repo structure is updated in develop but not in master. Nothing to worry about. We should set up separate builds for develop and master tbh.

@OlofSvahnVbg OlofSvahnVbg marked this pull request as draft May 8, 2024 06:09
@jesade-vbg
Copy link
Contributor

We're going to test some more, so now in Draft mode.

@OlofSvahnVbg OlofSvahnVbg marked this pull request as ready for review May 8, 2024 11:28
@jesade-vbg jesade-vbg self-requested a review May 8, 2024 15:22
Copy link
Member

@Hallbergs Hallbergs left a comment

Choose a reason for hiding this comment

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

Looks good!

// Make the element non-interactive and hide it
input.setAttribute("readonly", "");
input.style.position = "absolute";
input.style.left = "-9999px";
Copy link
Member

Choose a reason for hiding this comment

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

Instead of creating an element to copy from, wouldn't navigator.clipboard.writeText(coordinatesString) get the job done? There might be security considerations that i am missing though.

Copy link
Member

@Hallbergs Hallbergs left a comment

Choose a reason for hiding this comment

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

lgtm

@OlofSvahnVbg OlofSvahnVbg merged commit fac7bf8 into develop May 15, 2024
@OlofSvahnVbg OlofSvahnVbg deleted the feature/1358-copy-coordinates branch May 15, 2024 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature Request for adding/changing functionality
Projects
Hajk
  
Awaiting triage
Development

Successfully merging this pull request may close these issues.

Coordinate: Add a "Copy coordinates" shortcut
3 participants