Merge pull request #634 from zoeesilcock/628-fix-arrows-in-cheatsheet

Use standard HTML entities for the arrows displayed on the keyboard shortcut list
This commit is contained in:
Julian Descottes 2017-02-05 12:41:30 +01:00 committed by GitHub
commit 099ff80155

View File

@ -152,10 +152,10 @@
key = key.replace('ctrl', 'cmd');
key = key.replace('alt', 'option');
}
key = key.replace(/left/i, '←');
key = key.replace(/up/i, '↑');
key = key.replace(/right/i, '→');
key = key.replace(/down/i, '↓');
key = key.replace(/left/i, '←');
key = key.replace(/up/i, '↑');
key = key.replace(/right/i, '→');
key = key.replace(/down/i, '↓');
key = key.replace(/>/g, '>');
key = key.replace(/</g, '&lt;');
// add spaces around '+' delimiters