diff --git a/frontend/src/pages/SettingsPage.tsx b/frontend/src/pages/SettingsPage.tsx index 3162dc8..1fe6da1 100644 --- a/frontend/src/pages/SettingsPage.tsx +++ b/frontend/src/pages/SettingsPage.tsx @@ -254,7 +254,7 @@ const SettingsPage: React.FC = () => { onChange={(e) => setNewTag(e.target.value)} size="small" fullWidth - onKeyPress={(e) => { + onKeyDown={(e) => { if (e.key === 'Enter') { handleAddTag(); } diff --git a/frontend/src/pages/VideoPlayer.tsx b/frontend/src/pages/VideoPlayer.tsx index 4e31299..ce0657a 100644 --- a/frontend/src/pages/VideoPlayer.tsx +++ b/frontend/src/pages/VideoPlayer.tsx @@ -567,7 +567,7 @@ const VideoPlayer: React.FC = ({ variant="outlined" size="small" autoFocus - onKeyPress={(e) => { + onKeyDown={(e) => { if (e.key === 'Enter') { handleSaveTitle(); }