We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d1e751 commit 7011cedCopy full SHA for 7011ced
1 file changed
src/main/java/me/ryan/controller/TextController.java
@@ -158,6 +158,11 @@ private void updateText() {
158
}
159
160
161
+ // 用户在跟打过程中删除了已经输入的所有内容,这时要调用重打方法
162
+ // 但是调用start前,要先恢复文章显示框的所有字符的样式,所以它要放这下面。
163
+ if (inputLengthNow == 0 && inputLengthLast > 0) {
164
+ this.start();
165
+ }
166
167
// 跟打结束
168
// TODO 结尾无错字才结束跟打
0 commit comments