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

Improve Alt+M hiding/showing windows #12656

Closed
AdachiQ opened this issue Sep 30, 2024 · 3 comments
Closed

Improve Alt+M hiding/showing windows #12656

AdachiQ opened this issue Sep 30, 2024 · 3 comments
Assignees
Milestone

Comments

@AdachiQ
Copy link

AdachiQ commented Sep 30, 2024

改进隐藏/显示窗口和 Mac 上点击 Dock 图标

In what scenarios do you need this feature?

目前 显示\隐藏窗口 的全局快捷键alt+m只对第一个打开的工作空间生效,对后打开的工作空间无效。希望能够对所有的工作空间都生效。

Describe the optimal solution

可以在electron的渲染进程中焦点的获取事件,获取焦点后向主进程发送消息,在主进程中记录最后获取焦点的渲染进程。
按下alt+m全局快捷键时,主进程对最后获取焦点的渲染进程窗口进行显示\隐藏

Describe the candidate solution

No response

Other information

No response

@wish5115
Copy link

Mac上点击dock图标也有这个问题,只第一个打开的工作空间显示,obsidian就没这个问题,总是显示最后一个使用的窗口。

Vanessa219 added a commit that referenced this issue Dec 6, 2024
@Vanessa219 Vanessa219 added this to the 3.1.15 milestone Dec 6, 2024
@Vanessa219 Vanessa219 changed the title alt+m快捷键应对所有窗口生效 改进隐藏/显示窗口和 Mac 上点击 Dock 图标 Dec 6, 2024
@88250 88250 changed the title 改进隐藏/显示窗口和 Mac 上点击 Dock 图标 Improve hiding/showing windows and clicking Dock icons on macOS Dec 6, 2024
@88250 88250 changed the title Improve hiding/showing windows and clicking Dock icons on macOS Improve Alt+M hiding/showing windows Dec 6, 2024
@MisakaImouto8912
Copy link

出现一个问题,我之前是两个空间设置了不同的快捷键进行 显示/隐藏,一个是 ALT+M,一个是 ALT+N;这两个互不干扰,可是更新后两个快捷键都只对最后打开的窗口有效,无法用不同快捷键区分想要显示的空间了。 @Vanessa219

@Vanessa219
Copy link
Member

下个版本改进

Vanessa219 added a commit that referenced this issue Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants