mirror of
https://github.com/RealKai42/qwerty-learner.git
synced 2026-04-05 14:29:04 +08:00
fix: fixed: #373
This commit is contained in:
@@ -67,17 +67,29 @@ const ResultScreen = () => {
|
||||
const exitButtonHandler = useCallback(() => {
|
||||
dispatch({ type: TypingStateActionType.REPEAT_CHAPTER })
|
||||
}, [dispatch])
|
||||
useHotkeys('enter', () => {
|
||||
nextButtonHandler()
|
||||
})
|
||||
useHotkeys(
|
||||
'enter',
|
||||
() => {
|
||||
nextButtonHandler()
|
||||
},
|
||||
{ preventDefault: true },
|
||||
)
|
||||
|
||||
useHotkeys('space', () => {
|
||||
repeatButtonHandler()
|
||||
})
|
||||
useHotkeys(
|
||||
'space',
|
||||
() => {
|
||||
repeatButtonHandler()
|
||||
},
|
||||
{ preventDefault: true },
|
||||
)
|
||||
|
||||
useHotkeys('shift+enter', () => {
|
||||
dictationButtonHandler()
|
||||
})
|
||||
useHotkeys(
|
||||
'shift+enter',
|
||||
() => {
|
||||
dictationButtonHandler()
|
||||
},
|
||||
{ preventDefault: true },
|
||||
)
|
||||
|
||||
const handleOpenInfoPanel = useCallback(
|
||||
(modalType: InfoPanelType) => {
|
||||
|
||||
Reference in New Issue
Block a user