Fix keyboard cmds table soft focus (#2608)
- fix keyboard cmds table soft focus
This commit is contained in:
@ -61,10 +61,6 @@ export const TableCellSoftFocusMode = ({
|
|||||||
'*',
|
'*',
|
||||||
(keyboardEvent) => {
|
(keyboardEvent) => {
|
||||||
if (!isFieldInputOnly) {
|
if (!isFieldInputOnly) {
|
||||||
keyboardEvent.preventDefault();
|
|
||||||
keyboardEvent.stopPropagation();
|
|
||||||
keyboardEvent.stopImmediatePropagation();
|
|
||||||
|
|
||||||
const isWritingText =
|
const isWritingText =
|
||||||
!isNonTextWritingKey(keyboardEvent.key) &&
|
!isNonTextWritingKey(keyboardEvent.key) &&
|
||||||
!keyboardEvent.ctrlKey &&
|
!keyboardEvent.ctrlKey &&
|
||||||
@ -74,6 +70,10 @@ export const TableCellSoftFocusMode = ({
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
keyboardEvent.preventDefault();
|
||||||
|
keyboardEvent.stopPropagation();
|
||||||
|
keyboardEvent.stopImmediatePropagation();
|
||||||
|
|
||||||
openTableCell({
|
openTableCell({
|
||||||
initialValue: {
|
initialValue: {
|
||||||
value: keyboardEvent.key,
|
value: keyboardEvent.key,
|
||||||
|
|||||||
Reference in New Issue
Block a user