Skip to content

taskmgr:添加按下Ctrl任务管理器停止滚动的功能#836

Merged
fzlzjerry merged 2 commits into
win12-online:mainfrom
Iamliuxiaozhen:ctrl/taskmgr
Jun 11, 2026
Merged

taskmgr:添加按下Ctrl任务管理器停止滚动的功能#836
fzlzjerry merged 2 commits into
win12-online:mainfrom
Iamliuxiaozhen:ctrl/taskmgr

Conversation

@Iamliuxiaozhen

Copy link
Copy Markdown
Contributor

我补充了原版Windows有的功能,按下Ctrl键时任务管理器暂停更新,松开Ctrl键时,任务管理器恢复刷新

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

该 PR 为任务管理器补齐原版 Windows 的交互:按住 Ctrl 时暂停任务管理器的周期刷新/更新,松开后恢复刷新,以便用户在查看列表/图表时避免内容滚动变化。

Changes:

  • 为 taskmgr 增加 paused 状态,并在定时刷新循环中加入暂停短路逻辑
  • 在 taskmgr 初始化时绑定 Ctrl 按下/松开与窗口失焦事件以控制暂停/恢复

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread module/apps.js
Comment thread module/apps.js
Comment on lines 208 to 212
remove: () => {
apps.taskmgr.paused = false;
apps.taskmgr.loaded = false;
window.clearInterval(apps.taskmgr.handle);
if (apps.taskmgr.preLoaded == true) {
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@fzlzjerry fzlzjerry merged commit b5d27f7 into win12-online:main Jun 11, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

3 participants