markupeditor 0.9.54 → 0.9.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/markup-editor.js +2 -1
- package/package.json +1 -1
package/dist/markup-editor.js
CHANGED
|
@@ -40846,7 +40846,8 @@ function baseKeyString(itemName, keymap) {
|
|
|
40846
40846
|
keyString = keyString.replaceAll('Shift', '\u21E7'); // ⇧
|
|
40847
40847
|
keyString = keyString.replaceAll('Alt', '\u2325'); // ⌥
|
|
40848
40848
|
keyString = keyString.replaceAll('-', '');
|
|
40849
|
-
|
|
40849
|
+
// Show a letter key in capitals, as the menu bar does
|
|
40850
|
+
return keyString.replace(/(^|[\u2318\u2303\u21E7\u2325])([a-z])$/, (_, lead, letter) => lead + letter.toUpperCase())
|
|
40850
40851
|
}
|
|
40851
40852
|
|
|
40852
40853
|
/**
|