I have to create an image gallery where user can select some images and then process them. The selection should be done via Ctrl+LeftClick of the mouse. It works well in FF and IE8, but when I Ctrl+click in Opera, new dialog “Save as” appears which causes saving the clicked image.
How do I prevent opening the dialog in Opera? (it’s probably system setting)
I haven’t still found any solution. The question at Opera remains unanswered since June,2008 🙁
Is it even possible? Ctrl+Click is standard way in OS, that’s probably the problem – adapting desktop behaviour to web.
In Opera, it is possible to set this behavior in
Tools->Preferences->Content->JavaScript Options->Allow script to detect context menu events. This is unchecked by default, which means that most users will see the browser’s context menu.This was added to prevent “context menu hijacking”; unfortunately, this limits all browser apps to the left mouse button. You could have the user
rightclick->Edit site preferences->Scripting->Allow script to detect context menu events; this should allow your site to use this functionality.