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

How to check for focus on specific window? #115

Open
3 tasks done
danielwerg opened this issue Nov 19, 2024 · 0 comments
Open
3 tasks done

How to check for focus on specific window? #115

danielwerg opened this issue Nov 19, 2024 · 0 comments
Labels
question Further information is requested

Comments

@danielwerg
Copy link
Contributor

Have you read through the documentation?

Describe what have you tried so far

<clock-widget
  ...
  onHover={() => setWindowVisible('calendar', true)}
  onHoverLost={async () => {
    await sleep(1000);
    // check if calendar is in focus?
    setWindowVisible('calendar', false);
  }}
/>

Describe your question

I'm trying to open calendar widget by hovering or clicking on clock widget, don't have issue with that part. But I haven't figured a good way to close it. Couldn't figure out how to do it with hover. Closing by clicking on clock again works it's just too much mouse movement. Maybe pressing a key like ESC could work?

@danielwerg danielwerg added the question Further information is requested label Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant