Fix/win heatmap#118
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
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.
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.
Closes #117
变更内容
验证