fix: alt/option key to see fieldname instead of cmd/ctrl key
This commit is contained in:
parent
7227cabe57
commit
9ca2826f33
1 changed files with 2 additions and 2 deletions
|
|
@ -532,12 +532,12 @@ frappe.ui.form.Layout = class Layout {
|
|||
|
||||
setup_tooltip_events() {
|
||||
$(document).on("keydown", (e) => {
|
||||
if (e.metaKey || e.ctrlKey) {
|
||||
if (e.altKey) {
|
||||
this.wrapper.addClass("show-tooltip");
|
||||
}
|
||||
});
|
||||
$(document).on("keyup", (e) => {
|
||||
if (!e.metaKey || !e.ctrlKey) {
|
||||
if (!e.altKey) {
|
||||
this.wrapper.removeClass("show-tooltip");
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue