From 8b0895424636fa1d964b3c67338ca2b654176f6a Mon Sep 17 00:00:00 2001 From: osorokin Date: Wed, 17 Jun 2026 11:45:19 +0300 Subject: [PATCH] [dev] Release update v.6.1.5 --- docs/guides/diagram_editor/hot_keys.md | 13 +++++++++++++ docs/guides/inline_editing.md | 12 ++++++++++++ docs/whats_new.md | 15 +++++++++++++++ 3 files changed, 40 insertions(+) diff --git a/docs/guides/diagram_editor/hot_keys.md b/docs/guides/diagram_editor/hot_keys.md index ff48ccdc0..85cd4db71 100644 --- a/docs/guides/diagram_editor/hot_keys.md +++ b/docs/guides/diagram_editor/hot_keys.md @@ -27,3 +27,16 @@ In this section you will find a set of standard hotkeys you can use while creati | `Delete` (`Del`), `Backspace` | Deletes an item(s) | `"delete"`, `"backspace"` | | `Arrow-Left`, `Arrow-Right`, `Arrow-Up`, `Arrow-Down`| Moves the selected items | `"arrowLeft"`, `"arrowRight"`, `"arrowUp"`, `"arrowDown"` | | `Ctrl+Mousewheel` (Win), `CMD+Mousewheel` (macOS)| Increases/decreases the scale value | (Not directly a `hotkeys` parameter key) | +| `Ctrl+Enter` (Win), `CMD+Enter` (macOS) | Opens the inline text editor for the selected element. Works as an alternative to double-clicking. Applicable only to shapes with an editable `text` property. | `"ctrl+enter"` | + +## Inline text editor shortcuts + +The following hotkeys are available when the [inline text editor](/guides/inline_editing/) is active. They cannot be configured via the `hotkeys` property. + +| Hotkey | Description | +|--------|-------------| +| `Ctrl+Enter` (Win), `CMD+Enter` (macOS) | Opens the inline text editor for the selected element. Works as an alternative to double-clicking. Applicable only to shapes with an editable `text` property. | +| `Shift+Enter` | Inserts a line break (`\n`) while keeping the editor open. | +| `Delete` (`Del`), `Backspace` | Deletes the character at the cursor position. Does not delete the element itself. | +| `Enter` | Confirms the current text and closes the editor. Because the editor applies changes dynamically as you type, pressing Enter marks a successful completion of editing. | +| `Escape` | Discards all unsaved changes and closes the editor, restoring the element's text to the value it had before editing began. | diff --git a/docs/guides/inline_editing.md b/docs/guides/inline_editing.md index 2e9995c92..2922a72b1 100644 --- a/docs/guides/inline_editing.md +++ b/docs/guides/inline_editing.md @@ -104,6 +104,18 @@ const data = [ ]; ~~~ +## Keyboard shortcuts + +The inline text editor supports the following keyboard shortcuts: + +| Hotkey | Description | +|--------|-------------| +| `Ctrl+Enter` (Win), `CMD+Enter` (macOS) | Opens the inline text editor for the selected element. Works as an alternative to double-clicking. Applicable only to shapes with an editable `text` property. | +| `Shift+Enter` | Inserts a line break (`\n`) while keeping the editor open. | +| `Delete` (`Del`), `Backspace` | Deletes the character at the cursor position. Does not delete the element itself. | +| `Enter` | Confirms the current text and closes the editor. Because the editor applies changes dynamically as you type, pressing Enter marks a successful completion of editing. | +| `Escape` | Discards all unsaved changes and closes the editor, restoring the element's text to the value it had before editing began. | + ## API events The library includes a set of helpful [API events](../../api/inline_editor/) which you can use to control the behavior of the editor on its opening/closing, as well as to control the process of editing the text of the items. diff --git a/docs/whats_new.md b/docs/whats_new.md index 5f0de71d5..c0ee3aa38 100644 --- a/docs/whats_new.md +++ b/docs/whats_new.md @@ -8,6 +8,21 @@ description: You can learn a new information about DHTMLX JavaScript Diagram lib If you are updating Diagram from an older version, check [Migration to Newer Version](migration.md) for details. +## Version 6.1.5 + +Released on June 17, 2026 + +### Updates + +- Diagram Editor. Improved text editing experience with new keyboard shortcuts: **Ctrl+Enter** to start editing, **Shift+Enter** for new lines, **Enter** to confirm, and **Escape** to discard changes. + +### Fixes + +- Diagram Editor. Fixed the issue where lines passing through swimlane groups were not selectable. +- Diagram Editor. Added auto-scroll functionality when dragging connection lines to shapes outside the current screen view. +- Diagram Editor. Fixed the bug that caused a shape to be deleted while editing its text. +- Diagram. Fixed a Safari-specific bug where lines with the `backArrow: "filled"` property were not rendered correctly. + ## Version 6.1.3 Released on May 21, 2026