摘要 |
Disclosed are a character selection method and apparatus and a terminal device. The method comprises the following steps: detecting whether a contact of a touchscreen operation for selecting a character falls in a text node or not; when the contact does not fall in the text node, searching for a text node having the shortest distance from the contact; and using a character having the shortest distance from the contact in the found text node as a character selected by the contact. In the present disclosure, when a contact of a touchscreen operation for selecting a character does not fall in a text node, a character having the shortest distance from the contact in a text node having the shortest distance from the contact is used as a character selected by the contact, and therefore, it is achieved that when the contact does not fall on a character, the character selected by the touchscreen operation can also be provided, so that a user is prevented from conducting selection repeatedly, thereby providing convenience for the user. |