fix: Update key event from onKeyPress to onKeyDown
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -567,7 +567,7 @@ const VideoPlayer: React.FC<VideoPlayerProps> = ({
|
||||
variant="outlined"
|
||||
size="small"
|
||||
autoFocus
|
||||
onKeyPress={(e) => {
|
||||
onKeyDown={(e) => {
|
||||
if (e.key === 'Enter') {
|
||||
handleSaveTitle();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user