fix: support ctrl key for linux/windows
This commit is contained in:
parent
1b8bf0f64c
commit
8c9c9b9f37
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) {
|
||||
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");
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue