fix: scope print shortcut to form page (#35811)
This commit is contained in:
parent
238bcf1670
commit
1c7520e820
1 changed files with 1 additions and 0 deletions
|
|
@ -168,6 +168,7 @@ frappe.ui.form.Form = class FrappeForm {
|
|||
frappe.ui.keys.add_shortcut({
|
||||
shortcut: "ctrl+p",
|
||||
action: () => this.print_doc(),
|
||||
page: this.page,
|
||||
description: __("Print document"),
|
||||
condition: () => frappe.model.can_print(this.doctype, this) && !this.meta.issingle,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue