Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin tooltip popups for keypress actions #2841

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kazariad
Copy link

@kazariad kazariad commented Sep 2, 2024

When hovering the mouse cursor over a code element, the resulting tooltip/popup is opened in a temporary window which closes automatically when the mouse cursor moves away from it. However, the behavior for popups activated via hotkey is inconsistent.

For example, the Quick Documentation action (Ctrl + Q) pins the tooltip and requires pressing Esc or clicking elsewhere to close (simply moving the mouse away isn't enough). But other actions, such as Error Description (Ctrl + F1), don't pin the popup window and function like the normal mouse hover. This patch changes the behavior of the following keypress actions to also pin their windows:

Next Highlighted Error (F2)
Previous Highlighted Error (Shift + F2)
Error Description (Ctrl + F1)
Hover Info

Before:
before

After:
after

@yopox
Copy link
Member

yopox commented Sep 17, 2024

Thank you! This looks great for consistency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants