Skip to content

feat: ESC key exits node editing and selects the node#9

Merged
OlegIGalkin merged 3 commits intoOlegIGalkin:mainfrom
DisciplinedSoftware:feat/esc-exits-edit-and-selects-node
Mar 4, 2026
Merged

feat: ESC key exits node editing and selects the node#9
OlegIGalkin merged 3 commits intoOlegIGalkin:mainfrom
DisciplinedSoftware:feat/esc-exits-edit-and-selects-node

Conversation

@DisciplinedSoftware
Copy link

Summary

Pressing ESC while editing a node now exits editing mode and leaves the node selected.

Changes

VS Code & Visual Studio extensions

  • MindElixir/MindElixir.js — Added Escape key handler in the input box keydown listener. Calls t.blur() to save the edit (via the existing blur handler), then this.selectNode(e) to ensure the node is explicitly selected and the selectNode event fires.

VS Code only

  • webpack.dev.config.js — Added CopyWebpackPlugin (already present in the production config) so MindElixir.js is correctly copied to out/MindElixir/ when using bundle-dev or watch. Without this the diagram failed to load in development builds.

Pierre-Luc Gagné and others added 3 commits March 2, 2026 00:57
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…copied to out/

The dev config was missing CopyWebpackPlugin, causing out/MindElixir/ to never
be created when using bundle-dev or watch. The webview references MindElixir.js
from out/MindElixir/, so without the copy step the diagram fails to load.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 2, 2026 06:26
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@OlegIGalkin OlegIGalkin merged commit f03f9fa into OlegIGalkin:main Mar 4, 2026
3 of 4 checks passed
@OlegIGalkin
Copy link
Owner

Pierre-Luc, be mindful that MindElixir might be upgraded to a newer version in the future and this change may be lost.

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.

3 participants