taskmgr:添加按下Ctrl任务管理器停止滚动的功能#836
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
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 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
我补充了原版Windows有的功能,按下
Ctrl键时任务管理器暂停更新,松开Ctrl键时,任务管理器恢复刷新