mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix(editor): Only treat as CTRL pressed by default on touch devices for MouseEvent (#5968)
This commit is contained in:
parent
ea8c48ad37
commit
536d8109b0
|
@ -19,7 +19,7 @@ export default function useDeviceSupportHelpers(): DeviceSupportHelpers {
|
|||
const controlKeyCode = ref(isMacOs.value ? 'Meta' : 'Control');
|
||||
|
||||
function isCtrlKeyPressed(e: MouseEvent | KeyboardEvent): boolean {
|
||||
if (isTouchDevice.value === true) {
|
||||
if (isTouchDevice.value === true && e instanceof MouseEvent) {
|
||||
return true;
|
||||
}
|
||||
if (isMacOs.value) {
|
||||
|
|
|
@ -19,7 +19,7 @@ export const deviceSupportHelpers = Vue.extend({
|
|||
},
|
||||
methods: {
|
||||
isCtrlKeyPressed(e: MouseEvent | KeyboardEvent): boolean {
|
||||
if (this.isTouchDevice === true) {
|
||||
if (this.isTouchDevice === true && e instanceof MouseEvent) {
|
||||
return true;
|
||||
}
|
||||
if (this.isMacOs) {
|
||||
|
|
Loading…
Reference in a new issue