Sochettra / dynatree

Automatically exported from code.google.com/p/dynatree
0 stars 0 forks source link

Add mouse middle button support to active a node #297

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What new or enhanced feature are you proposing?

User can activate a node with the left button or with the middle button

What goal would this enhancement help you achieve?

I can associate different behaviours to mouse's buttons. Like the behaviour 
used by browser. 
For example if user left click on a node, it will display the information into 
the same jquery tab. If user middle click on a node it will create a new jquery 
tab and displays the information into this new tab without erasing the previous 
tab.

Thanks!

Nicolas

Original issue reported on code.google.com by nithril@gmail.com on 14 Mar 2012 at 5:45

GoogleCodeExporter commented 8 years ago
did your try to implement the onClick-handler to emulate this behavior?
You should get all click events there, then check for event.which to find out 
the button.
If you return `false`, default processing (e.g. activation) is suppressed.

Original comment by moo...@wwwendt.de on 18 Mar 2012 at 11:28

GoogleCodeExporter commented 8 years ago
Yes I had tried but the onClick handler is activated only on a left click. The 
event mousedown should be used to catch middle click.

Original comment by nithril@gmail.com on 22 Mar 2012 at 10:45

GoogleCodeExporter commented 8 years ago
Deferred, so v1.2.1 can be released shortly.

Original comment by moo...@wwwendt.de on 6 Jun 2012 at 7:47

GoogleCodeExporter commented 8 years ago

Original comment by moo...@wwwendt.de on 6 Oct 2012 at 9:31

GoogleCodeExporter commented 8 years ago
Closing 'Waiting' issues without timely answer

Original comment by moo...@wwwendt.de on 6 Oct 2013 at 2:09

GoogleCodeExporter commented 8 years ago

Original comment by moo...@wwwendt.de on 3 May 2014 at 4:37