Menu

#728 SCN_HOTSPOTCLICK should trigger on mouse button release

Completed
closed
Scintilla (391)
2
2010-10-29
2010-10-06
No

I noticed that the SCN_HOTSPOTCLICK notification is triggered when the mouse button is pressed down on the hotspot area. Shouldn't it be triggered when the mouse button is released?

Every browser that I know of triggers links when the mouse button is released. Also, in Windows the "click" action of most controls are triggered when the mouse button is released.

I would suggest that Scintilla follow the same convention.

Discussion

  • Neil Hodgson

    Neil Hodgson - 2010-10-06

    Some people, including the implementer of SCN_HOTSPOTCLICK, prefer mouse down activation. A mouse release activation could be added as an additional event if anyone wants to implement it.

     
  • Neil Hodgson

    Neil Hodgson - 2010-10-06
    • assigned_to: nobody --> nyamatongwe
    • priority: 5 --> 2
    • milestone: 100660 -->
    • labels: 101017 --> Scintilla
     
  • Farshid Lashkari

    I understand. I've gone ahead and implemented a new SCN_HOTSPOTRELEASECLICK notification.

    This event should allow people to deal with hotspots similar to how browsers deal with links. It is only triggered when the mouse is pressed down on the hotspot and then released at the same character position. This gives the added benefit of being able to select hotspot enabled text without triggering the hotspot.

    I've attached the modified files.

     
  • Farshid Lashkari

    Added SCN_HOTSPOTRELEASECLICK

     
  • Neil Hodgson

    Neil Hodgson - 2010-10-11

    Committed.

     
  • Neil Hodgson

    Neil Hodgson - 2010-10-11
    • milestone: --> Completed
     
  • Neil Hodgson

    Neil Hodgson - 2010-10-29
    • status: open --> closed
     

Log in to post a comment.