Re: ENB: Improving popup menus

2020-03-24 Thread Edward K. Ream
On Tuesday, March 24, 2020 at 10:11:30 AM UTC-5, Edward K. Ream wrote: The configuredcommands_rclick function in contextmenu.py does not work as > is with cut/copy/paste-text. These commands require an event arg which the > callback must create. The necessary change should be safe enough, but

Re: ENB: Improving popup menus

2020-03-24 Thread vitalije
Deleting the two lines in leo/plugins/qt_text.py in the LeoQTextBrowser.__init__ method: self.setContextMenuPolicy(QtCore.Qt.CustomContextMenu) self.customContextMenuRequested.connect(self.onContextMenu) Will revert to the old style. Context menu in the body would have standard commands like

Re: ENB: Improving popup menus

2020-03-24 Thread Edward K. Ream
On Tuesday, March 24, 2020 at 8:14:37 AM UTC-5, Edward K. Ream wrote: For 6.2, I *will *add items to @data contextmenu-commands in > leoSettings.leo. These items will create cut/copy/paste/select-all *text* > items popup menus. These items will be added in the 6.2 branch, and merged > into

ENB: Improving popup menus

2020-03-24 Thread Edward K. Ream
This is #1531 , which arises from a less-than-perfect fix for #1286 . This post describes the details and choices. But first, a summary of my plans... *Plans* It's too late to complete