diff --git a/frontend/src/components/NumberComponent.tsx b/frontend/src/components/NumberComponent.tsx index 42e20f3..81120a7 100644 --- a/frontend/src/components/NumberComponent.tsx +++ b/frontend/src/components/NumberComponent.tsx @@ -134,7 +134,13 @@ export const NumberComponent = React.memo((props: NumberComponentProps) => { }; const handleKeyDown = (event) => { const { key, target } = event; - if (key === 'F5' || key === 'ArrowRight' || key === 'ArrowLeft') { + if ( + key === 'F1' || + key === 'F5' || + key === 'F12' || + key === 'ArrowRight' || + key === 'ArrowLeft' + ) { return; } event.preventDefault(); @@ -189,6 +195,7 @@ export const NumberComponent = React.memo((props: NumberComponentProps) => { // Update the input value and maintain the cursor position socket.emit('frontend_update', { name: name, + parent_path: parent_path, value: Number(newValue) }); @@ -209,24 +216,26 @@ export const NumberComponent = React.memo((props: NumberComponentProps) => {