ttalvitie/browservice

Context menu support

j6b72 opened this issue · 2 comments

j6b72 commented

Using 1) a Raspberry Pi 3B with the current Raspbian or 2) an Ubuntu Server 20.04 VM with the LXDE desktop installed, I wasn't able to open the context menu of the embedded browser, neither by right-clicking nor by pressing the ancient context-menu-keyboard-button in the bottom right of my keyboard. I can confirm that the right-click button works and in reaches the embedded browser (checked by using a mouse button test page).

Such a context menu would come in really handy, for example for downloading images off of websites or to copy their URL.

Is this already implemented and an error on my side is keeping me from using it, or if it isn't implemented, are there any plans to do so?

Thanks for the great project, really enjoying it.

Context menu support has not been implemented. Implementing it is probably possible; CEF seems to have the necessary interfaces for implementing custom rendering for it. This has been on my TODO list for a while, but I don't currently have much time for this project so it will probably take some time and have limited functionality at first. Are there any other important use cases for you besides downloading images or copying image/link URLs?

j6b72 commented

Thank you for the quick answer! Good to know that's not caused by an error when setting it up and instead intended.

Downloading files without having to visit the link (maybe because the browser-built-in preview for a specific file type doesn't have a download button - can't think of an example besides images though, pdfs can be downloaded from the preview without any problem), viewing page source, opening links in new tabs or bookmarking them come to my mind when thinking about what I use the browser context menu for - maybe some of these an be considered important?

All of these can be worked around in some form or another though, so not having a context menu is not a big deal at all.