fix: show "Shift" symbol istead of text
This commit is contained in:
parent
4e77e5f0c4
commit
e9a57deff9
2 changed files with 6 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue