|
|
|
@ -41,6 +41,15 @@ const isExpandedFormOpen = inject(IsExpandedFormOpenInj, ref(false))!
|
|
|
|
|
const focus: VNodeRef = (el) => !isExpandedFormOpen.value && (el as HTMLInputElement)?.focus() |
|
|
|
|
|
|
|
|
|
function onKeyDown(evt: KeyboardEvent) { |
|
|
|
|
const cmdOrCtrl = isMac() ? evt.metaKey : evt.ctrlKey |
|
|
|
|
if (cmdOrCtrl && !evt.altKey) { |
|
|
|
|
switch (evt.keyCode) { |
|
|
|
|
case 90: { |
|
|
|
|
evt.stopPropagation() |
|
|
|
|
break |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return evt.key === '.' && evt.preventDefault() |
|
|
|
|
} |
|
|
|
|
</script> |
|
|
|
|