Browse Source

fix: Disabled alt keys in the case of rich modal

pull/7046/head
Muhammed Mustafa 1 year ago
parent
commit
1a6905e5c7
  1. 2
      packages/nc-gui/components/cell/TextArea.vue
  2. 8
      packages/nc-gui/components/smartsheet/grid/Table.vue

2
packages/nc-gui/components/cell/TextArea.vue

@ -236,7 +236,7 @@ watch(editEnabled, () => {
v-if="!isVisible"
placement="bottom"
class="!absolute right-0 bottom-1 !hidden nc-text-area-expand-btn"
:class="{ 'right-0 bottom-2': editEnabled }"
:class="{ 'right-0 bottom-1': editEnabled, '!bottom-0': !isRichMode }"
>
<template #title>{{ $t('title.expand') }}</template>
<NcButton type="secondary" size="xsmall" data-testid="attachment-cell-file-picker-button" @click.stop="onExpand">

8
packages/nc-gui/components/smartsheet/grid/Table.vue

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

Loading…
Cancel
Save