You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by oe...@apache.org on 2026/07/16 16:11:48 UTC

(streampipes) 02/02: Fix keyboard shortcuts

This is an automated email from the ASF dual-hosted git repository.

SvenO3 pushed a commit to branch 4725-cant-delete-code-in-javascript-evaluator
in repository https://gitbox.apache.org/repos/asf/streampipes.git

commit f5e2a5bd96b015b9befbe0407d881617ee733b22
Author: Sven Oehler <oe...@web.de>
AuthorDate: Thu Jul 16 18:11:31 2026 +0200

    Fix keyboard shortcuts
---
 .../shared-ui/src/lib/services/keyboard-shortcut.service.ts       | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/ui/projects/streampipes/shared-ui/src/lib/services/keyboard-shortcut.service.ts b/ui/projects/streampipes/shared-ui/src/lib/services/keyboard-shortcut.service.ts
index c891ba6db7..d4085522a7 100644
--- a/ui/projects/streampipes/shared-ui/src/lib/services/keyboard-shortcut.service.ts
+++ b/ui/projects/streampipes/shared-ui/src/lib/services/keyboard-shortcut.service.ts
@@ -84,14 +84,16 @@ export class KeyboardShortcutService implements OnDestroy {
             );
 
         if (match) {
+            if (this.dialogService.hasOpenDialogs && !match.allowInDialog) {
+                return;
+            }
+
             if (match.preventDefault !== false) {
                 event.preventDefault();
                 event.stopPropagation();
             }
 
-            if (!this.dialogService.hasOpenDialogs || match.allowInDialog) {
-                match.action(event);
-            }
+            match.action(event);
         }
     }