[PR #2221] [CLOSED] Add ability to use Esc keypress to close modal for document selection #3925

Closed
opened 2026-02-22 18:34:46 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/2221
Author: @MrSimonC
Created: 9/4/2024
Status: Closed

Base: masterHead: feature/use-escape-key-to-close-documents-modal


📝 Commits (1)

  • 66fffcb Add ability to use Esc keypress to close modal for documents

📊 Changes

1 file changed (+14 additions, -0 deletions)

View changed files

📝 frontend/src/components/Modals/ManageWorkspace/index.jsx (+14 -0)

📄 Description

Pull Request Type

  • feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

Relevant Issues

resolves #2220

What is in this change?

This pull request adds the ability to close the modal dialogue for selecting documents in workspaces using the Escape key on the keyboard. Specifically, the changes include:

  • Adding an event listener to the modal dialogue to listen for the Escape key press event.
  • Closing the modal dialogue when the Escape key is pressed.

This change provides an additional option for users to dismiss the modal, improving the overall user experience and efficiency.

Additional Information

This change addresses a feature request to improve the workflow for users who work with multiple workspaces and need to quickly switch between them. By allowing the Escape key to close the modal, users can reduce mouse movement and streamline their workflow. This change does not introduce any breaking changes or affect existing functionality.

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/2221 **Author:** [@MrSimonC](https://github.com/MrSimonC) **Created:** 9/4/2024 **Status:** ❌ Closed **Base:** `master` ← **Head:** `feature/use-escape-key-to-close-documents-modal` --- ### 📝 Commits (1) - [`66fffcb`](https://github.com/Mintplex-Labs/anything-llm/commit/66fffcbeceb43bf867248b9c25347f5d6fdb21c4) Add ability to use Esc keypress to close modal for documents ### 📊 Changes **1 file changed** (+14 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/components/Modals/ManageWorkspace/index.jsx` (+14 -0) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat - [ ] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues resolves #2220 ### What is in this change? This pull request adds the ability to close the modal dialogue for selecting documents in workspaces using the Escape key on the keyboard. Specifically, the changes include: - Adding an event listener to the modal dialogue to listen for the Escape key press event. - Closing the modal dialogue when the Escape key is pressed. This change provides an additional option for users to dismiss the modal, improving the overall user experience and efficiency. ### Additional Information This change addresses a feature request to improve the workflow for users who work with multiple workspaces and need to quickly switch between them. By allowing the Escape key to close the modal, users can reduce mouse movement and streamline their workflow. This change does not introduce any breaking changes or affect existing functionality. ### Developer Validations <!-- All of the applicable items should be checked. --> - [x] I ran `yarn lint` from the root of the repo & committed changes - [x] Relevant documentation has been updated - [x] I have tested my code functionality - [ ] Docker build succeeds locally --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:34:46 -05:00
yindo closed this issue 2026-02-22 18:34:47 -05:00
yindo changed title from [PR #2221] Add ability to use Esc keypress to close modal for document selection to [PR #2221] [CLOSED] Add ability to use Esc keypress to close modal for document selection 2026-06-05 15:15:55 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#3925