Skip to content

feat: prevent opening links, unless ctrl or shift clicked #265

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

Merged
merged 1 commit into from
Aug 3, 2020

Conversation

smeijer
Copy link
Member

@smeijer smeijer commented Aug 3, 2020

What:
Prevent <a href=" elements from opening links when being clicked.

Why:
It's frustrating that a click on a elements open a page when all we want is to have that selector.

How:
Prevent the click action, unless either ctrl or shift is being pressed as well. ctrl+click usually opens in a new tab, and shift+click opens in a new window. Both are explicit user actions, and thereby fine.

Checklist:

  • Tests
  • Ready to be merged

@smeijer smeijer added the feature New feature or request label Aug 3, 2020
@smeijer smeijer self-assigned this Aug 3, 2020
@smeijer smeijer merged commit 97d55cb into develop Aug 3, 2020
@smeijer smeijer deleted the feature/block-link-click branch August 3, 2020 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant