This is an automated email from the ASF dual-hosted git repository.
iuliana pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brooklyn-ui.git
The following commit(s) were added to refs/heads/master by this push:
new f3513a6f Do not handle Backspace key event
new 41771db7 Merge pull request #323 from algairim/composer-improvements
f3513a6f is described below
commit f3513a6f70c59f7fc44e116e7fa8f5ce71b2a2af
Author: Mykola Mandra <[email protected]>
AuthorDate: Fri May 6 16:08:24 2022 +0100
Do not handle Backspace key event
Signed-off-by: Mykola Mandra <[email protected]>
---
ui-modules/blueprint-composer/app/components/util/d3-blueprint.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/ui-modules/blueprint-composer/app/components/util/d3-blueprint.js
b/ui-modules/blueprint-composer/app/components/util/d3-blueprint.js
index 1408baac..9a22a7c1 100755
--- a/ui-modules/blueprint-composer/app/components/util/d3-blueprint.js
+++ b/ui-modules/blueprint-composer/app/components/util/d3-blueprint.js
@@ -364,7 +364,9 @@ export function D3Blueprint(container, options) {
function onKeyUp() {
d3.event.stopPropagation();
if (d3.event.target.nodeName == 'BODY') {
- if (d3.event.key === "Delete" || d3.event.key === "Backspace") {
+ // Do not handle "Backspace" key event here as it clashes with
editing actions in the spec editor.
+ // Handle "Delete" key event only.
+ if (d3.event.key === "Delete") {
let selected = _svg.selectAll('.entity.selected');
let nItemsSelected = selected._groups[0].length;
if (nItemsSelected > 0) {