ruffle-rs / ruffle

A Flash Player emulator written in Rust
https://ruffle.rs
Other
15.58k stars 809 forks source link

Show native context menu on 2nd right click #13128

Open robinheidrich opened 1 year ago

robinheidrich commented 1 year ago

So basically, if you right click once, you get the Ruffle context menu, and the second time you right click, you get the native context menu. Sort of like YouTube does with videos.

Not really a big deal but would make it possible to save or copy the canvas as an image, for example.

capture

Croworbit commented 1 year ago

I wonder if it would be better to have a 'screenshot' button for the '1st' context menu, like https://github.com/ruffle-rs/ruffle/issues/7036 and https://github.com/ruffle-rs/ruffle/issues/6545 ask for rather than 2 context menus (the second only appears on html elements, and not ruffle/WASM)

robinheidrich commented 1 year ago

I was actually talking about the web version (which uses the HTML canvas tag). Perhaps I should have mentioned this explicitly.

But I would also be fine with it being in the Ruffle context menu, as long as there is an option to "Copy to clipboard" in addition to saving. Personally, however, I would probably find the native context menu better for this.

Croworbit commented 1 year ago

maybe 2 options in the ruffle context, one for screenshotting, one for copying a screenshot to clipboard (or maybe just one button that puts a screenshot in your clipboard and one can decide what to do from there)

I think thats a good comprimise, as it would also be cross platform compatible