1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Merge pull request #2976 from kazuhitoyokoi/master-fixinfotips

Fix incorrect shortcut keys in info tips
This commit is contained in:
Nick O'Leary 2021-05-10 09:42:59 +01:00 committed by GitHub
commit f249d6306f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -477,7 +477,7 @@ RED.sidebar.info = (function() {
return; return;
} }
} }
while ((m=/(\[(.*?)\])/.exec(tip))) { while ((m=/(\[([a-z]*?)\])/.exec(tip))) {
tip = tip.replace(m[1],RED.keyboard.formatKey(m[2])); tip = tip.replace(m[1],RED.keyboard.formatKey(m[2]));
} }
tipBox.html(tip).fadeIn(200); tipBox.html(tip).fadeIn(200);