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

Long press actions for links #87

Open
M4rtinK opened this issue Apr 10, 2019 · 4 comments
Open

Long press actions for links #87

M4rtinK opened this issue Apr 10, 2019 · 4 comments

Comments

@M4rtinK
Copy link
Owner

M4rtinK commented Apr 10, 2019

It would be useful if long press on a link opened a quick menu:

  • copy link to clipboard
  • share link
@M4rtinK
Copy link
Owner Author

M4rtinK commented Apr 15, 2019

Looks like this might not be doable due to limitations of the QML Text element. There is just linkActivated that gets triggered when a link is clicked and that's it.

@jkonecny12
Copy link

Thanks for investigation. Please let this open, I will try to look on a different approach if I'll be able to find some time :D

@M4rtinK
Copy link
Owner Author

M4rtinK commented Apr 28, 2019

Just got an idea - looks like both normal and long clicks always trigger the linkActivated signal. So theoretically if we overlaid a mouse area over the text element, we could differentiate normal and long clicks and handle linkActivated differently based on that.

@jkonecny12
Copy link

Sounds nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants