🔧 chore(reactflowUtils.ts): remove console.log statement for keydown event in handleKeyDown function
🐛 fix(reactflowUtils.ts): fix handleKeyDown function to properly handle special characters and backspace key
This commit is contained in:
parent
9acf9e39aa
commit
a531cc6066
1 changed files with 2 additions and 1 deletions
|
|
@ -236,7 +236,8 @@ export function addVersionToDuplicates(flow: FlowType, flows: FlowType[]) {
|
|||
|
||||
export function handleKeyDown(e: React.KeyboardEvent<HTMLInputElement>, inputValue: string | string[] | null, block: string)
|
||||
{
|
||||
|
||||
console.log("check key: ", e);
|
||||
|
||||
if (typeof inputValue === "string" && e.ctrlKey && e.key === "Backspace" &&
|
||||
(inputValue === block || inputValue?.charAt(inputValue?.length - 1) === ' '
|
||||
|| specialCharsRegex.test(inputValue?.charAt(inputValue?.length - 1))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue