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

need runtime api of focus #2813

Open
Cooooing opened this issue Aug 7, 2023 · 1 comment
Open

need runtime api of focus #2813

Cooooing opened this issue Aug 7, 2023 · 1 comment
Labels
Enhancement New feature or request

Comments

@Cooooing
Copy link

Cooooing commented Aug 7, 2023

Is your feature request related to a problem? Please describe.

我需要实现的功能是:在windows上,使用全局的快捷键唤起桌面程序或者失去焦点时隐藏。
快捷键唤起程序,我使用了 runtime.Show() ,但是显示的窗口并没有获得焦点。在使用上体验会不太好。
失去焦点时隐藏,我想在失去焦点时调用 runtime.Hide(),但是并没有监听失去焦点的事件。
我搜索了issus,在其中找到了 pull/1212,但是好像并没有得到我想要的效果。

Here is the translation(Machine translation, please forgive me)

The function I need to implement is to use global shortcut keys on Windows to wake up desktop programs or hide them when losing focus.

The shortcut key called up the program, and I used runtime. Show(), but the displayed window did not gain focus. The user experience may not be very good.

Hide when losing focus, I want to call runtime. Hide() when losing focus, but I did not listen for events that lose focus.

I searched issus and found [pull/1212] in it( #1212 )But it doesn't seem to have achieved the effect I wanted.

Describe the solution you'd like

我可能需要单独的 runtime api 或者 监听事件

I may need a separate runtime API or monitor events

Describe alternatives you've considered

No response

Additional context

No response

@Cooooing Cooooing added the Enhancement New feature or request label Aug 7, 2023
@Cooooing
Copy link
Author

Cooooing commented Aug 7, 2023

It would be even better if we could focus on a specific element on the page

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

No branches or pull requests

1 participant