Fix keyboard cmds table soft focus (#2608)

- fix keyboard cmds table soft focus
This commit is contained in:
brendanlaschke
2023-11-28 16:58:59 +01:00
committed by GitHub
parent 9c49d7474f
commit a7111eef51

View File

@ -61,10 +61,6 @@ export const TableCellSoftFocusMode = ({
'*',
(keyboardEvent) => {
if (!isFieldInputOnly) {
keyboardEvent.preventDefault();
keyboardEvent.stopPropagation();
keyboardEvent.stopImmediatePropagation();
const isWritingText =
!isNonTextWritingKey(keyboardEvent.key) &&
!keyboardEvent.ctrlKey &&
@ -74,6 +70,10 @@ export const TableCellSoftFocusMode = ({
return;
}
keyboardEvent.preventDefault();
keyboardEvent.stopPropagation();
keyboardEvent.stopImmediatePropagation();
openTableCell({
initialValue: {
value: keyboardEvent.key,