fix: show "Shift" symbol istead of text

This commit is contained in:
barredterra 2024-03-07 11:35:14 +01:00
parent 4e77e5f0c4
commit e9a57deff9
2 changed files with 6 additions and 0 deletions

View file

@ -100,6 +100,9 @@ frappe.ui.keys.show_keyboard_shortcut_dialog = () => {
if (frappe.utils.is_mac()) {
shortcut_label = shortcut_label.replace("Ctrl", "⌘").replace("Alt", "⌥");
}
shortcut_label = shortcut_label.replace("Shift", "⇧");
return `<tr>
<td width="40%"><kbd>${shortcut_label}</kbd></td>
<td width="60%">${shortcut.description || ""}</td>

View file

@ -542,6 +542,9 @@ frappe.ui.Page = class Page {
} else {
shortcut_obj.shortcut_label = shortcut_obj.shortcut;
}
shortcut_obj.shortcut_label = shortcut_obj.shortcut_label.replace("Shift", "⇧");
// actual shortcut string
shortcut_obj.shortcut = shortcut_obj.shortcut.toLowerCase();
// action is button click