Defect #1655

Right Click Does not work in Opera

Added by Anke Maklo over 9 years ago. Updated over 9 years ago.

Status:ClosedStart date:2008-07-16
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:

0%

Category:-
Target version:0.8
Resolution:Fixed Affected version:0.7.3

Description

The right click feature on the page Issues does not work in Opera. No matter if alt+click, ctrl + click. no mouse-keyboard combination seems to activate the right click feature of redmine.

Associated revisions

Revision 1762
Added by Jean-Philippe Lang over 9 years ago

Fixes context menu with Opera (#1655).

History

#1 Updated by Michael Pirogov over 9 years ago

Is your Opera java powered? What java, browser version, OS, etc you use?

#2 Updated by Anke Maklo over 9 years ago

Yes it has java. I've used the newest java version avaible right now. Firefox and IE also work fine.

#3 Updated by Michael Pirogov over 9 years ago

Dunno, I've Opera 9.51, build 2061, w/o JRE, x86_64.

Alt+LeftButton gives me a menu

#4 Updated by Anke Maklo over 9 years ago

I tried it with Version
9.51
Build
10081
Platform
Win32
OS
Windows XP
Java
Sun Java Runtime Environment version 1.6
XHTML+Language
Plugin not installed

didnt work

#5 Updated by Jean-Philippe Lang over 9 years ago

Did a test with a fresh opera 9.51.10081 on win32. Works fine.
Make sure you use ALT + LEFT click (right click behaviour can not be changed with opera).

#6 Updated by Derek Montgomery over 9 years ago

Also make sure you click AWAY from the link, not ON it... I had forgotten about that myself :P

#7 Updated by Anke Maklo over 9 years ago

I think the problem might have been caused with FastCGI. I'm running Redmine with FCGI and the menus simply won't popup with alt + left click while on redmine.org it works.

#8 Updated by Philipp Führer over 9 years ago

Anke Maklo wrote:

I think the problem might have been caused with FastCGI. I'm running Redmine with FCGI and the menus simply won't popup with alt + left click while on redmine.org it works.

I have the same problem. A right click on redmine.org works, but not with Firefox or Opera at my site.

so i've changed in context_menu.js:

if (Event.findElement(e, 'a') != document) { return; }

to:

if (Event.findElement(e, 'a') != undefined) { return; }

after this it's working.. in opera and firefox.

btw, you could also use: if (Event.element(e).tagName == 'A') { return; }

#9 Updated by Anke Maklo over 9 years ago

  • Status changed from New to Resolved

Philipp flip Führer wrote:

btw, you could also use: if (Event.element(e).tagName == 'A') { return; }

Wonderful! It works! Maybe this should be included in redmine as patch.

#10 Updated by Jean-Philippe Lang over 9 years ago

  • Status changed from Resolved to Closed
  • Resolution set to Fixed

Fix applied in r1762. Thanks.

Also available in: Atom PDF