fix(text editor): grid row tab action (#36802)
This commit is contained in:
parent
6700203523
commit
fb94bb9f83
1 changed files with 9 additions and 1 deletions
|
|
@ -392,7 +392,7 @@ frappe.ui.form.ControlTextEditor = class ControlTextEditor extends frappe.ui.for
|
|||
}
|
||||
|
||||
get_keyboard_bindings() {
|
||||
let bindings = {
|
||||
const bindings = {
|
||||
"table enter": {
|
||||
key: "Enter",
|
||||
formats: ["table"],
|
||||
|
|
@ -419,6 +419,14 @@ frappe.ui.form.ControlTextEditor = class ControlTextEditor extends frappe.ui.for
|
|||
},
|
||||
},
|
||||
};
|
||||
|
||||
if (this.grid_row) {
|
||||
bindings["tab"] = {
|
||||
key: "Tab",
|
||||
handler: () => true, // call default handler
|
||||
};
|
||||
}
|
||||
|
||||
return bindings;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue