From a067690610d7fc755b02a9904d48eef7d8c8c2f0 Mon Sep 17 00:00:00 2001 From: przeq piciel Date: Sat, 31 Aug 2024 19:14:49 +0000 Subject: [PATCH] add functionality when user pressed enter key --- app/components/FilesEditor/ContextMenu/rename.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/components/FilesEditor/ContextMenu/rename.tsx b/app/components/FilesEditor/ContextMenu/rename.tsx index dcd3160..a7e6159 100644 --- a/app/components/FilesEditor/ContextMenu/rename.tsx +++ b/app/components/FilesEditor/ContextMenu/rename.tsx @@ -12,10 +12,9 @@ const Rename = (props: Props) => { const handleKeyDown = (event: React.KeyboardEvent) => { if (event.key === "Escape") { - console.log("esc"); closeRemapFunction(); } else if (event.key === "Enter") { - console.log("enter pressed"); + renameCallback(file, newName); } };