Skip to content

Fix/win heatmap#118

Merged
debugtheworldbot merged 4 commits into
mainfrom
fix/win-heatmap
Jun 6, 2026
Merged

Fix/win heatmap#118
debugtheworldbot merged 4 commits into
mainfrom
fix/win-heatmap

Conversation

@debugtheworldbot
Copy link
Copy Markdown
Owner

@debugtheworldbot debugtheworldbot commented Jun 6, 2026

Closes #117

变更内容

  • 调整键盘热力图窗口:默认宽度加大,取消固定最大尺寸,允许用户手动缩放窗口。
  • 移除热力图控件的最大缩放限制,让键盘布局按可用空间自适应放大。
  • 补充热力图键位布局:增加 Print Screen、Scroll Lock、Pause,以及完整数字小键盘区域。
  • 优化键名归一化:区分主键盘数字/符号与数字小键盘输入,支持 NumLock、NumEnter、Num/、Num*、Num-、Num+、Num. 等键位聚合。
  • 修正日期选择弹窗背景刷,降低透明导致的可读性问题。

验证

  • 未运行自动构建;本次仅更新 PR 描述。

Copilot AI review requested due to automatic review settings June 6, 2026 04:39
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses Issue #117 on Windows by improving the keyboard heatmap’s usability and correctness: it makes the heatmap view effectively “zoomable” via window resizing, adds a distinct numpad region to the rendered keyboard layout, and adjusts the date-picker popup styling for better readability.

Changes:

  • Make the heatmap window resizable (and widen default width) to allow larger heatmap rendering.
  • Extend the keyboard heatmap layout to include navigation keys (PrintScreen/ScrollLock/Pause) and a full numpad cluster; remove the maximum render scale clamp so the heatmap scales with available space.
  • Improve heatmap key aggregation and key-name mapping for numpad keys (including NumEnter and numpad operators).

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
KeyStats.Windows/KeyStats/Views/KeyboardHeatmapWindow.xaml Makes the window resizable and tweaks date-picker popup background for better visibility.
KeyStats.Windows/KeyStats/Views/Controls/KeyboardHeatmapControl.cs Removes render scale cap and adds explicit layout regions for nav keys + numpad cluster.
KeyStats.Windows/KeyStats/Services/StatsManager.cs Normalizes/aggregates numpad keys so heatmap counts map to the new numpad key IDs.
KeyStats.Windows/KeyStats/Services/InputMonitorService.cs Passes scan code + flags into key naming to better distinguish certain keys (e.g., NumEnter).
KeyStats.Windows/KeyStats/Helpers/KeyNameMapper.cs Adds extended-key handling for NumEnter and updates key-name API to accept scan code/flags.

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

Comment thread KeyStats.Windows/KeyStats/Helpers/KeyNameMapper.cs Outdated
@debugtheworldbot debugtheworldbot merged commit 76fe7eb into main Jun 6, 2026
@debugtheworldbot debugtheworldbot deleted the fix/win-heatmap branch June 6, 2026 07:25
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.

希望键盘热力图可以支持缩放,增加小键盘区域

2 participants