Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Mouse events are not properly handled
Mouse events are not properly handled [message #1220107] Mon, 09 December 2013 13:47 Go to next message
Michael Heiß is currently offline Michael Heiß
Messages: 15
Registered: November 2013
Location: Graz, Austria
Junior Member
Hi,

There seems to be a problem with the handling of mouse events. Hard to explain so here are some steps to reproduce the issue:

  • Open Examples
  • Goto the Group By Example
  • Select the first value in the ISIN column
  • Press control
  • Move the mouse down to item 9
  • Click again with the left mouse button to select them.
  • WITHOUT MOVING THE MOUSE: Do a right click.
  • Nothing happens, but the context menu should appear


It is very critical to NOT move the mouse, otherwise the issue is not reproducable. If you move the mouse everything works fine Smile

I debugged into it and it seems that - due to some event - the wrong IModeEventHandler is set. The new handler now does not know anything about opening the context menu and thus nothing happens.

Seems that the bad line is in:
MouseModeEventHandler#mouseMove:

// No drag mode registered when mouseMove detected. Switch back to normal mode.
switchMode(Mode.NORMAL_MODE);


For me it seems that this overwrites the handler that would open the popup menu.

Regards,
Michael



[Updated on: Mon, 09 December 2013 13:49]

Report message to a moderator

Re: Mouse events are not properly handled [message #1220120 is a reply to message #1220107] Mon, 09 December 2013 15:44 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk Fauth
Messages: 1213
Registered: July 2012
Senior Member
The problem is that the mode is not reset after selection via mouseDown.

I'm testing a possible solution.
Re: Mouse events are not properly handled [message #1220211 is a reply to message #1220120] Tue, 10 December 2013 06:56 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk Fauth
Messages: 1213
Registered: July 2012
Senior Member
https://bugs.eclipse.org/bugs/show_bug.cgi?id=423682
Re: Mouse events are not properly handled [message #1220657 is a reply to message #1220211] Thu, 12 December 2013 17:22 Go to previous message
Michael Heiß is currently offline Michael Heiß
Messages: 15
Registered: November 2013
Location: Graz, Austria
Junior Member
Again impressed how quickly you are resolving the issues that gets reported!
Thx Smile
Previous Topic:Abrupt behavior when using "EditCellCommand" through code directly
Next Topic:how to remove configuration
Goto Forum:
  


Current Time: Thu Jul 24 16:21:33 EDT 2014

Powered by FUDForum. Page generated in 0.05059 seconds