fix(text editor): grid row tab action (#36802)

This commit is contained in:
Akash Tom 2026-02-08 12:47:11 +05:30 committed by GitHub
parent 6700203523
commit fb94bb9f83
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}
};