Git Product home page Git Product logo

Comments (6)

Nauxscript avatar Nauxscript commented on August 26, 2024

逻辑:

  • 提交句子时出现错误则错误单词标红下划线,如果有多个单词错误,默认聚焦在第一个错误单词
  • 通过 tab 键切换单词 (甚至可以考虑支持方向键切换不同单词
  • 在单词中如果按删除键则删除整个单词
  • 如果提交时有单词为空,则不进行提交,此时聚焦在为空的单词,直接输入就可以输入在当前单词,如果有多个为空,则聚焦在第一个为空的单词

样式:

  • 最好区分 聚焦错误标红 的样式,比如错误是内部文本变成红色,聚焦则是紫色下划线

from earthworm.

Nauxscript avatar Nauxscript commented on August 26, 2024

related to #82

from earthworm.

Nauxscript avatar Nauxscript commented on August 26, 2024

related to #63

from earthworm.

shellingfordly avatar shellingfordly commented on August 26, 2024

我做了一个简单的实现,只删除错误的部分,保留正确的部分,并以红色的下划线呈现,没有保留错误单词,原因是我感觉定位到错误之后就已经足够了,保留则还需要去删除整个单词并不是太舒服。当然,这只是我个人看法和体验下来的感觉。

commit 地址

from earthworm.

cuixiaorui avatar cuixiaorui commented on August 26, 2024

我做了一个简单的实现,只删除错误的部分,保留正确的部分,并以红色的下划线呈现,没有保留错误单词,原因是我感觉定位到错误之后就已经足够了,保留则还需要去删除整个单词并不是太舒服。当然,这只是我个人看法和体验下来的感觉。

commit 地址

保留错误单词可以让用户检查自己到底是因为什么错的 分析这个原因还蛮重要的
这样因为知道错在了哪里 所以在下一次输入时 就会更加小心

from earthworm.

cuixiaorui avatar cuixiaorui commented on August 26, 2024

done

from earthworm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.