From dccc22691e0fde4249a2f9b5a1fd4ed3a816fd39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Wawrzyniec=20Urba=C5=84czyk?= Date: Fri, 7 May 2021 11:27:20 +0200 Subject: [PATCH] Delete key shall delete nodes. (https://github.com/enso-org/ide/pull/1538) Original commit: https://github.com/enso-org/ide/commit/70ce429e8b8af5db72bba737355d470ff83b167e --- ide/CHANGELOG.md | 5 ++++- ide/docs/product/shortcuts.md | 2 +- ide/src/rust/ide/view/graph-editor/src/lib.rs | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ide/CHANGELOG.md b/ide/CHANGELOG.md index 3ef1f83115e2..989fae887873 100644 --- a/ide/CHANGELOG.md +++ b/ide/CHANGELOG.md @@ -8,11 +8,12 @@ #### EnsoGL (rendering engine) -
![Bug Fixes](/docs/assets/tags/bug_fixes.svg) #### Visual Environment +- [Delete key will delete selected nodes][1538]. + #### EnsoGL (rendering engine) #### Enso Compiler @@ -21,6 +22,8 @@ If you're interested in the enhancements and fixes made to the Enso compiler, you can find their release notes [here](https://github.com/enso-org/enso/blob/main/RELEASES.md). +[1538]: https://github.com/enso-org/ide/pull/1538 +
# Enso 2.0.0-alpha.4 (2021-05-04) diff --git a/ide/docs/product/shortcuts.md b/ide/docs/product/shortcuts.md index d46eb266cddd..4040a03afad0 100644 --- a/ide/docs/product/shortcuts.md +++ b/ide/docs/product/shortcuts.md @@ -83,7 +83,7 @@ further investigation. | Shortcut | Action | | -------- | ------ | | tab | Show / hide node searcher. | -| backspace | Remove selected nodes. | +| backspace or delete | Remove selected nodes. | | cmd+g | Collapse (group) selected nodes. | | meta+LMB | Start editing node expression. | | meta+enter | Start editing node expression. | diff --git a/ide/src/rust/ide/view/graph-editor/src/lib.rs b/ide/src/rust/ide/view/graph-editor/src/lib.rs index 52cd599ea7eb..26523367025d 100644 --- a/ide/src/rust/ide/view/graph-editor/src/lib.rs +++ b/ide/src/rust/ide/view/graph-editor/src/lib.rs @@ -1908,6 +1908,7 @@ impl application::View for GraphEditor { (Press , "" , "left-mouse-button" , "node_press") , (Release , "" , "left-mouse-button" , "node_release") , (Press , "!node_editing" , "backspace" , "remove_selected_nodes") + , (Press , "!node_editing" , "delete" , "remove_selected_nodes") , (Press , "" , "cmd g" , "collapse_selected_nodes") // === Visualization ===