fix: Update key event from onKeyPress to onKeyDown

This commit is contained in:
Peifan Li
2025-11-25 17:33:10 -05:00
parent f0568e8934
commit 12213fdf0d
2 changed files with 2 additions and 2 deletions

View File

@@ -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();
}

View File

@@ -567,7 +567,7 @@ const VideoPlayer: React.FC<VideoPlayerProps> = ({
variant="outlined"
size="small"
autoFocus
onKeyPress={(e) => {
onKeyDown={(e) => {
if (e.key === 'Enter') {
handleSaveTitle();
}