|
|
@ -1066,14 +1066,18 @@ useEventListener(document, 'mouseup', () => { |
|
|
|
|
|
|
|
|
|
|
|
/** handle keypress events */ |
|
|
|
/** handle keypress events */ |
|
|
|
useEventListener(document, 'keydown', async (e: KeyboardEvent) => { |
|
|
|
useEventListener(document, 'keydown', async (e: KeyboardEvent) => { |
|
|
|
if (e.key === 'Alt') { |
|
|
|
const isRichModalOpen = isExpandedCellInputExist() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (e.key === 'Alt' && !isRichModalOpen) { |
|
|
|
altModifier.value = true |
|
|
|
altModifier.value = true |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
/** handle keypress events */ |
|
|
|
/** handle keypress events */ |
|
|
|
useEventListener(document, 'keyup', async (e: KeyboardEvent) => { |
|
|
|
useEventListener(document, 'keyup', async (e: KeyboardEvent) => { |
|
|
|
if (e.key === 'Alt') { |
|
|
|
const isRichModalOpen = isExpandedCellInputExist() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (e.key === 'Alt' && !isRichModalOpen) { |
|
|
|
altModifier.value = false |
|
|
|
altModifier.value = false |
|
|
|
disableUrlOverlay.value = false |
|
|
|
disableUrlOverlay.value = false |
|
|
|
} |
|
|
|
} |
|
|
|