mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Fix updating shortcuts in menus after keyboard dialog closed
This commit is contained in:
parent
8a3da1ce8d
commit
4b0eb8475d
@ -292,7 +292,7 @@ RED.menu = (function() {
|
|||||||
delete opt.shortcutSpan;
|
delete opt.shortcutSpan;
|
||||||
var shortcut = RED.keyboard.getShortcut(opt.onselect);
|
var shortcut = RED.keyboard.getShortcut(opt.onselect);
|
||||||
if (shortcut && shortcut.key) {
|
if (shortcut && shortcut.key) {
|
||||||
opt.shortcutSpan = $('<span class="red-ui-popover-key">'+RED.keyboard.formatKey(shortcut.key, true)+'</span>').appendTo(opt.link);
|
opt.shortcutSpan = $('<span class="red-ui-popover-key">'+RED.keyboard.formatKey(shortcut.key, true)+'</span>').appendTo(opt.link.find(".red-ui-menu-label"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user