Recent

Author Topic: LAMW - jListView: OnLongClickItem event always comes with OnClickItem event  (Read 408 times)

Alcatiz

  • Newbie
  • Posts: 5
Hi to all!

While debugging an app, I've noticed that if the user makes a long click on an item of a jListView, two events are generated : OnLongClickItem and OnClickItem.

I'd like to use the long click to delete an item and the simple click to edit it. But up to now, in the simple click event handler, I must add tests to distinguish real click items and click events generated by a long click.

Any idea on how to prevent theses complications?  ;D

 

TinyPortal © 2005-2018