numere-org / NumeRe

Framework for numerical computations, data analysis and visualisation
https://www.numere.org
GNU General Public License v3.0
18 stars 6 forks source link

Mouseover tooltips are not shown, if cursor is in function parentheses #175

Closed numeredev closed 7 months ago

numeredev commented 8 months ago

DESCRIPTION

Describe the bug If the cursor is currently within a function (or procedure) parentheses, it shows the arguments of this function. If there are other syntax elements within this parentheses, then it is not possible to show the mouseover tooltips. One has to remove the cursor explicitly from the parentheses to re-enable the mouseover tooltips.

To Reproduce Steps to reproduce the behavior:

  1. Open or create a code file
  2. Move the cursor in function parentheses (the context tooltip is shown)
  3. Move the mouse over any syntax element having a mouseover tooltip (e.g. other function)
  4. The mouseover tooltip is not shown

Expected behavior The mouseover tooltip should at least be shown, if I explicitly click on any of those syntax elements. Moving the cursor using arrow keys may not necessarily enable that (and might interfere with other behaviors).

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

(Do not write below this line)


DEVS' SECTION

ANALYSIS

This can be resolved by using the last pressed key (which is 0, if the last action was a mouse click) within void NumeReEditor::HandleFunctionCallTip() to detect, whether the usual context calltip or a possible dwelling calltip (if the cursor is on a corresponding element) shall be displayed. Extract then the necessary part for the dwelling calltip into a callable function and use this from void NumeReEditor::HandleFunctionCallTip(). Check also, if key+mouseclick combinations do interfere with this solution.

IMPLEMENTATION STEPS

(see also our Wiki for implementation guidelines)

DOCUMENTATION STEPS

(see also our Wiki for further information)

PULL REQUEST