Skip to content

Commit 8aa29e7

Browse files
committed
chore: bump
1 parent 4e51535 commit 8aa29e7

File tree

5 files changed

+37
-3
lines changed

5 files changed

+37
-3
lines changed

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,26 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88

9+
## v1.0.13
10+
11+
### Added
12+
- **Undo (Ctrl+Z) with Permanent Eraser Semantics**
13+
- Press `Ctrl+Z` while drawing mode is active to undo the most recent **completed** action (pen stroke, line, rectangle, circle)
14+
- Erased items are permanently deleted and are never restored by undo
15+
- New `DrawingHistory` service tracks completed actions using stable element IDs
16+
- Added unit tests covering undo behavior and eraser permanence
17+
18+
### Changed
19+
- **Tool Completion Events**
20+
- Tools report completed actions (pen on mouse-up; shapes on second click) so undo is per-action instead of per-mouse-move
21+
- Eraser reports erased elements so history entries are marked removed
22+
- **Keyboard Hook Handling for Ctrl+Z**
23+
- Detects `Ctrl+Z` only when drawing mode is active
24+
- Suppresses `Ctrl+Z` during drawing mode to prevent pass-through to underlying apps
25+
- **History Reset Behavior**
26+
- Undo history is cleared when clearing the canvas and when exiting drawing mode
27+
28+
929
## v1.0.12
1030

1131
### Added

Installer/GhostDraw.Installer.wixproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="WixToolset.Sdk/4.0.5">
22
<PropertyGroup>
3-
<Version Condition="'$(Version)' == ''">1.0.12</Version>
3+
<Version Condition="'$(Version)' == ''">1.0.13</Version>
44
<OutputName>GhostDrawSetup-$(Version)</OutputName>
55
<OutputType>Package</OutputType>
66
<Platform>x64</Platform>

Src/GhostDraw/GhostDraw.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<UseWPF>true</UseWPF>
99
<UseWindowsForms>true</UseWindowsForms>
1010
<ApplicationIcon>Assets\favicon.ico</ApplicationIcon>
11-
<Version>1.0.12</Version>
11+
<Version>1.0.13</Version>
1212
<EnableWindowsTargeting>true</EnableWindowsTargeting>
1313
</PropertyGroup>
1414

Src/GhostDraw/Views/OverlayWindow.xaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,20 @@
279279
Text="Clear Canvas"/>
280280
</StackPanel>
281281

282+
<StackPanel Orientation="Horizontal" Margin="0,0,0,8">
283+
<TextBlock FontFamily="Consolas"
284+
FontSize="16"
285+
FontWeight="Bold"
286+
Foreground="#FFAA00"
287+
Text="Ctrl+Z"
288+
MinWidth="120"
289+
Margin="0,0,16,0"/>
290+
<TextBlock FontFamily="Segoe UI"
291+
FontSize="16"
292+
Foreground="#B0B0B0"
293+
Text="Undo Last Action"/>
294+
</StackPanel>
295+
282296
<StackPanel Orientation="Horizontal" Margin="0,0,0,8">
283297
<TextBlock FontFamily="Consolas"
284298
FontSize="16"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ghost-draw",
3-
"version": "1.0.12",
3+
"version": "1.0.13",
44
"description": "Draw directly on your screen with a transparent overlay",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)