Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cancel Phoenix container allocation on ctrl+c & ctrl+z #2055

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

asier-isayas
Copy link
Collaborator

@asier-isayas asier-isayas commented Feb 12, 2025

Preview this branch

This PR is to cancel the Mongo shell operations when user presses CTRL+C & CTRL+Z.

@asier-isayas asier-isayas requested a review from a team as a code owner February 12, 2025 17:48
this.abortSignal = this.abortController.signal;

document.addEventListener("keydown", (event: KeyboardEvent) => {
if (event.ctrlKey && event.key === "c") {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we be listening for Ctrl+D as well ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could not reproduce with Ctrl+D on Chrome and Edge. That command adds a bookmark.

@asier-isayas asier-isayas changed the title Cancel Phoenix container allocation on ctrl+c Cancel Phoenix container allocation on ctrl+c & ctrl+z Feb 14, 2025
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.

2 participants