fix: alt/option key to see fieldname instead of cmd/ctrl key

This commit is contained in:
Shariq Ansari 2023-01-01 13:50:15 +05:30
parent 7227cabe57
commit 9ca2826f33

View file

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