feat: add shortcut for toggle sidebar

This commit is contained in:
KerollesFathy 2026-04-06 09:18:08 +00:00
parent 118cb4490f
commit 2404bee1bb

View file

@ -312,6 +312,12 @@ frappe.ui.Sidebar = class Sidebar {
$(document).on("form-refresh", function () {
frappe.app.sidebar.toggle();
});
frappe.ui.keys.add_shortcut({
shortcut: "ctrl+/",
action: () => me.toggle_width(),
description: __("Toggle sidebar"),
});
}
toggle() {