Beef icon indicating copy to clipboard operation
Beef copied to clipboard

Accidentally clicking on a tooltip loses editor's focus

Open Xrayez opened this issue 2 years ago • 0 comments

Beef version: 0.43.4

Accidentally clicking on an autocompletion/documentation tooltip loses editor's focus, hence input, this interrupts the development flow quite a bit, because editor shortcuts no longer work when this happens (for example, it's not possible to launch debugger with F5).

Reproduction:

beef_tooltip_lost_focus

In certain cases, when the mouse is no longer hovering over the tooltip, the editor regains focus (like with System.Console), while in other cases, like clicking over a string literal, it does not.

While I acknowledge the use case of being able to edit literals via a tooltip, it would be better to limit the focus area to the input widget itself, rather than letting the focus area encompass the entire tooltip.

image

Workaround:

It's possible to press Esc to quickly get rid of the tooltip, but since clicking on the tooltip occurs unintentionally, it is not something that one expects to happen.

Suggested solution:

Prevent a popup stealing focus and/or add tooltip delay option.

Xrayez avatar May 24 '23 10:05 Xrayez