Skip to content

fix: remove Delete key shortcut for clip deletion#190

Merged
fuzzzerd merged 1 commit intomasterfrom
fuzzz/issue-158-delete-key-scope
Apr 23, 2026
Merged

fix: remove Delete key shortcut for clip deletion#190
fuzzzerd merged 1 commit intomasterfrom
fuzzz/issue-158-delete-key-scope

Conversation

@fuzzzerd
Copy link
Copy Markdown
Owner

Summary

Fixes #158.

The Window-level <KeyBinding Gesture="Delete" Command="{Binding DeleteSelectedClip}" /> fired regardless of focus, so pressing Delete inside the script editor (or any text field) deleted the entire clip the user was editing rather than a character. Real data-loss risk.

Removed the global keybinding and the corresponding InputGesture="Delete" hint from the Edit menu item. Clip deletion remains reachable via the Edit menu and the clip-list context menu — keyboard shortcut intentionally not replaced, since destructive actions shouldn't be triggerable by a bare key.

The global Window-level KeyBinding for Delete fired regardless of focus,
so pressing Delete inside the script editor deleted the entire clip
instead of a character.

Drop the KeyBinding entirely and remove the now-misleading InputGesture
hint from the menu item. Clip deletion is still reachable via the Edit
menu and the clip list context menu.

Closes #158
@github-actions
Copy link
Copy Markdown

Test Results

✔️ Tests 1155 / 1155 - passed in 11.2s
✔️ Coverage 78.08% - passed with 70% threshold
📏 13104 / 15325 lines covered 🌿 4506 / 7229 branches covered
🔍 click here for more details

✏️ updated for commit fba7db8

@fuzzzerd fuzzzerd merged commit f52e70b into master Apr 23, 2026
6 checks passed
@fuzzzerd fuzzzerd deleted the fuzzz/issue-158-delete-key-scope branch April 23, 2026 23: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.

Using the delete key in the script editor deletes the script from the list, not the characters in the editor.

1 participant