From 4b0eb8475dd97b4b03c19cdf89388c887f562588 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Wed, 6 Oct 2021 13:51:38 +0100 Subject: [PATCH] Fix updating shortcuts in menus after keyboard dialog closed --- .../@node-red/editor-client/src/js/ui/common/menu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/common/menu.js b/packages/node_modules/@node-red/editor-client/src/js/ui/common/menu.js index f1239edef..417189b33 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/common/menu.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/common/menu.js @@ -292,7 +292,7 @@ RED.menu = (function() { delete opt.shortcutSpan; var shortcut = RED.keyboard.getShortcut(opt.onselect); if (shortcut && shortcut.key) { - opt.shortcutSpan = $(''+RED.keyboard.formatKey(shortcut.key, true)+'').appendTo(opt.link); + opt.shortcutSpan = $(''+RED.keyboard.formatKey(shortcut.key, true)+'').appendTo(opt.link.find(".red-ui-menu-label")); } } }