Skip to content

fix(client): map Delete key to erase selection#308

Open
fuleinist wants to merge 1 commit intohundredrabbits:mainfrom
fuleinist:fix/delete-key-v2
Open

fix(client): map Delete key to erase selection#308
fuleinist wants to merge 1 commit intohundredrabbits:mainfrom
fuleinist:fix/delete-key-v2

Conversation

@fuleinist
Copy link
Copy Markdown

Summary

The Delete key now erases selections in Orca, matching the behavior of Backspace. This fixes issue #280 where users on Windows expected Delete to work like Backspace for erasing.

Problem

On Windows (version 247, downloaded from itch), the Delete key did not erase selections while Backspace did. Interestingly Shift+Delete already worked as cut. This was a gap in keyboard support for editing operations.

Solution

Added Delete as a second accelerator for the same erase action in client.js. The fix reuses the exact same handler as Backspace.

Testing

  • Code inspection confirms Delete now triggers the same erase path as Backspace
  • No behavioral changes to existing functionality
  • Shift+Delete (cut) continues to work as before

Files Changed

  • desktop/sources/scripts/client.js — added Delete key binding for erase selection

Fixes #280

The Delete key was reported not working for erasing selections, while
Backspace worked correctly. On Windows, users muscle-memory expects
Delete to erase. Interestingly, Shift+Delete already worked as cut.

This change adds 'Delete' as a second accelerator for the same erase
action, mirroring the Backspace behavior. No new behavior is introduced;
Delete now behaves identically to Backspace when erasing.

Fixes hundredrabbits#280
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.

delete key

1 participant