How would you implement a right click action in a text editor?

#1

I would like to do a one-item popup menu (or equivalent) when the user right clicks in a text editor. How would one go about that? There is no onRightClick in a textEditor object I think. Any cues would be appreciated.

0 Likes

#2

Inherit TextEditor and override the addPopupMenuItems and performPopupMenuAction methods. (Also read the documentation about those.)

2 Likes

#3

Dang, that simple! Can’t believe I missed that. Thx for pointing me in the right direction!

0 Likes