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

[Feature Request] Context-Aware Window Toggle for Show/Hide Hotkey #1700

Closed
2 tasks done
libingtong opened this issue Feb 15, 2025 · 2 comments
Closed
2 tasks done

[Feature Request] Context-Aware Window Toggle for Show/Hide Hotkey #1700

libingtong opened this issue Feb 15, 2025 · 2 comments

Comments

@libingtong
Copy link

Issue 检查清单

  • 我已经查看了置顶 Issue 并搜索了现有的 Issue,但没有找到类似的问题。
  • 正确填写了 Issue 标题。

平台

Windows

版本

v0.9.23

您的功能建议是否与某个问题相关?

Current Issue

The current "Show/Hide App" hotkey has counterintuitive behavior in specific scenarios:

  1. When window is visible but backgrounded:

    • Hotkey hides the window instead of bringing it forward
    • Forces users to manually reactivate the window
  2. When window is hidden:

    • Hotkey correctly shows and focuses the window

This violates the "activation before action" principle common in productivity apps.

请描述您希望实现的解决方案

Proposed Behavior

Implement state-dependent window management:

Window State Hotkey Action
Hidden Show & Focus
Visible + Background Focus without hiding
Visible + Foreground Hide

Key Benefits

  • Single hotkey handles both activation and toggling
  • Eliminates accidental background window hiding
  • Matches macOS/Windows platform conventions
  • Requires zero learning curve for existing users

Industry References

  1. Slack: Show App prioritizes activation over toggle
  2. VS Code: Window always activates before hiding
  3. 1Password: Context-aware window states

请描述您考虑过的其他方案

No response

其他补充信息

No response

@IzualYang
Copy link

IzualYang commented Feb 15, 2025

确实和预期不同,但够不上counterintuitive。

  • 直接按热键是在“前台激活状态”和“隐藏状态”之前切换。
  • 按一次或两次后总会将Cherry Studio置于前台。

所以多按一次就完事了。如果这也算learning curve的话,说明你不是这个软件的目标受众。

在“前台激活状态”和“非前台窗口”之间切换——Alt+Tab或其他操作原生的窗口切换热键。
在“非前台窗口”和“隐藏状态”之间切换——有这个必要吗?

@icinggslits
Copy link
Contributor

Resolved #1693

@ousugo ousugo closed this as completed Feb 17, 2025
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

No branches or pull requests

4 participants