feat: Allow exiting chat rename edit mode with Escape key and revert changes #4237

Closed
opened 2025-11-11 15:49:19 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @bannert1337 on GitHub (Mar 4, 2025).

Feature Request

Problem Description

Currently, when renaming a chat, there's no keyboard shortcut to cancel editing while maintaining the original chat name. Users need to manually revert changes or click outside the input field which might accidentally save unwanted edits.

Proposed Solution

Implement Escape key functionality to:

  1. Exit chat rename edit mode immediately
  2. Discard any unsaved changes
  3. Restore the original chat name

Use Cases

  1. User starts editing a chat name but wants to cancel midway
  2. User accidentally enters edit mode and wants quick exit
  3. User makes typos and wants to abort changes without manual cleanup

Additional Context

  • Should follow standard text editing conventions where Escape cancels editing
  • Should maintain original focus state after cancellation
  • Would complement existing Enter key save functionality

Implementation Notes

  • Event listener for Escape key in chat rename input field
  • Store original name reference when entering edit mode
  • State management to handle cancellation flow
Originally created by @bannert1337 on GitHub (Mar 4, 2025). # Feature Request ### Problem Description Currently, when renaming a chat, there's no keyboard shortcut to cancel editing while maintaining the original chat name. Users need to manually revert changes or click outside the input field which might accidentally save unwanted edits. ### Proposed Solution Implement Escape key functionality to: 1. Exit chat rename edit mode immediately 2. Discard any unsaved changes 3. Restore the original chat name ### Use Cases 1. User starts editing a chat name but wants to cancel midway 2. User accidentally enters edit mode and wants quick exit 3. User makes typos and wants to abort changes without manual cleanup ### Additional Context - Should follow standard text editing conventions where Escape cancels editing - Should maintain original focus state after cancellation - Would complement existing Enter key save functionality ### Implementation Notes - Event listener for Escape key in chat rename input field - Store original name reference when entering edit mode - State management to handle cancellation flow
Author
Owner

@tjbck commented on GitHub (Mar 21, 2025):

Implemented.

@tjbck commented on GitHub (Mar 21, 2025): Implemented.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#4237