fix: support ctrl key for linux/windows

This commit is contained in:
Shariq Ansari 2022-12-22 17:46:14 +05:30
parent 1b8bf0f64c
commit 8c9c9b9f37

View file

@ -532,12 +532,12 @@ frappe.ui.form.Layout = class Layout {
setup_tooltip_events() {
$(document).on("keydown", (e) => {
if (e.metaKey) {
if (e.metaKey || e.ctrlKey) {
this.wrapper.addClass("show-tooltip");
}
});
$(document).on("keyup", (e) => {
if (!e.metaKey) {
if (!e.metaKey || e.ctrlKey) {
this.wrapper.removeClass("show-tooltip");
}
});