I’m developing a web app that emulates a generic file browser for the desktop, but for uploaded files. It offers the user multiple “views” for a folder, such as list, details, and thumbnails. It allows them to use their Shift and Ctrl click combinations for selecting multiple files at once for bulk file operations similar to a traditional file browser.
Unfortunately, Opera’s default behavior is to download an image when you Ctrl-Click on it, which ruins the Ctrl-Click multi-select while in the thumbnails view.
I’m aware that Opera allows you to disable this for your own browser, but from a UX perspective I’d like to avoid having to place a message on the page instructing users how to do that, or even worse, having to not offer that multi-select feature to Opera users.
Is there perhaps a meta tag or some javascript wizardry I can use to tell Opera not to download an image when a user Ctrl-Clicks it?
Here’s a little code snippet that illustrates the issue (please note it’s a quick test and it doesn’t work in IE):
When you Ctrl+click on a picture Opera opens a “Save as dialogue” only because it is an
<img>tag. It’s worth noting that regular event cancellation does not work:Background images do not seem affected:
So my best workaround so far is to use any other tag instead of
<img>. I’ll report back if I find something better.