Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
修复: 如果字幕抄写了一部分,就不能使用 ↓ 向下切换光标(#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
tangshimin committed Jul 19, 2022
1 parent 419b545 commit 8ecaf39
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/kotlin/components/TypingWord.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1547,8 +1547,7 @@ fun Captions(

(it.key == Key.DirectionDown && it.type == KeyEventType.KeyUp) -> {
if(index<2 && index + 1 < word.captions.size){
focusManager.moveFocus(FocusDirection.Next)
focusManager.moveFocus(FocusDirection.Next)
focusRequesterList[index+1].requestFocus()
}
true
}
Expand All @@ -1557,8 +1556,7 @@ fun Captions(
if(index == 0){
jumpToWord()
}else{
focusManager.moveFocus(FocusDirection.Previous)
focusManager.moveFocus(FocusDirection.Previous)
focusRequesterList[index-1].requestFocus()
}

true
Expand Down

0 comments on commit 8ecaf39

Please sign in to comment.