Merge pull request #35470 from KerollesFathy/fix-search-shortcut-on-sidebar

This commit is contained in:
Soham Kulkarni 2025-12-28 14:22:19 +05:30 committed by GitHub
commit 41a48b3d36
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -248,7 +248,7 @@ frappe.ui.Sidebar = class Sidebar {
type: "Button",
id: "navbar-modal-search",
suffix: {
keyboard_shortcut: "CtrlK",
keyboard_shortcut: "Ctrl+K",
},
class: "navbar-search-bar hidden",
});

View file

@ -84,7 +84,7 @@ frappe.ui.sidebar_item.TypeLink = class SidebarItem {
}
get_shortcut_html(shortcut) {
if (frappe.utils.is_mac()) {
shortcut = shortcut.replace("Ctrl", "⌘");
shortcut = shortcut.replace("Ctrl+", "⌘");
}
return `<span class="sidebar-item-suffix keyboard-shortcut">${shortcut}</span>`;
}