On 31.01.2018 09:33, Graham Harris wrote:
> Come to think of it, this is an instance of a more general problem with
> that menu.
>
> Maybe it's a linux thing- keen to hear from Windows and Mac users- but when
> you right-click the menu seems to spring either up from your cursor
> position or down from it, depending whether your cursor is nearer the
> bottom or top of the edit window. Then, either the bottom item (close tab)
> or the top item (an alternate spelling) is selected by default.
On Windows, the placement is the same but the behavior differs:
* The menu appears after releasing the right mouse button
* No menu item is under the mousepointer or in other way preactivated.
As I'm mainly using Windows I didn't notice a problem here.
>> Where would we need to disable this in the source code? I use WikidPad
>> 2.3beta16, which I find generally solid as a rock.
In "lib/pwiki/WikiTxtCtrl.py"
There is (beginning about at line 4205):
_CONTEXT_MENU_INTEXT_BOTTOM = \
u"""
-
Close Tab;CMD_CLOSE_CURRENT_TAB
"""
After deleting two lines in the middle you should have:
_CONTEXT_MENU_INTEXT_BOTTOM = \
u"""
"""
And the menu item is gone.
Michael