Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Consolidate link handling code #3556

@peterflynn

Description

@peterflynn

We have 4 different places that call NativeApp.openURLInDefaultBrowser() after clicking a link tag. Two of them store the URL in "href" and two of them store it in "data-*" attributes. We should make these consistent and use one central piece of handler code.

We should also consider a global capture listener to ensure that we always call preventDefault() for clicks on all links. If someone accidentally left an unhandled link in the UI, clicking it would otherwise navigate CEF away from the Brackets UI, losing all the user's unsaved work.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions