简体   繁体   English

Nodejs电子:focusOut事件?

[英]Nodejs electron: focusOut event?

I'm toying around with electron, the framework used for the atom text editor, but I'm having a little trouble finding a basic feature. 我正在玩电子,这是用于原子文本编辑器的框架,但我找到一个基本功能有点麻烦。 I'm working on a little system tray gui that I want to pop up in that respective corner of the screen. 我正在研究一个小系统托盘gui,我想在屏幕的各个角落弹出。 When you click elsewhere on the screen, not on my window, I would like for the window to hide itself. 当你点击屏幕上的其他地方,而不是我的窗口,我希望窗口隐藏自己。 For that, I would normally use a focusOut event callback or something similar. 为此,我通常会使用focusOut事件回调或类似的东西。 Does that event exist in electron, because all I've found is the focus event. 那个事件是否存在于电子中,因为我发现的只是焦点事件。

Are you talking about a BrowserWindow losing focus? 你在谈论BrowserWindow失去焦点吗? If so the blur event seems to be what you're looking for. 如果是这样, blur事件似乎是你正在寻找的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM