21-01-2021 дата публикации
Номер: US20210019401A1
Принадлежит:
Embodiments of the present invention disclose a method and an apparatus for displaying a keyboard, and a terminal device. The method includes: displaying, on a touchscreen, a keyboard whose keys are normally arranged; before a touching object touches the keyboard on the touchscreen, obtaining a location, which the touching object points to, on the keyboard; adjusting an arrangement order of some keys on the keyboard, where the keys include keys within a preset range, the preset range includes the location, which the touching object points to, on the keyboard, and the preset range includes at least two keys; and displaying the adjusted keyboard on the touchscreen. By means of the technical solutions in the present invention, an arrangement order of some keys on a keyboard displayed by a terminal is adjusted, thereby improving an information input speed, and reducing energy consumption of the terminal. 1. A terminal device , comprising:at least one processor; and at least one memory, the at least one memory comprising instructions that when executed by the at least one processor, cause the terminal device to:display a user interface, wherein the user interface comprises an input box;in response to detecting a first operation on the input box, display a keyboard, wherein the keyboard comprises a first element, a second element, a third element, and a fourth element, wherein the first element is in a first place, the second element is in a second place, the third element is in a third place, and the first element, the second element and the third element are arranged in sequence; andin response to detecting a drag operation that drags the fourth element to the second place, display the first element in the first place, the fourth element in the second place, the second element in the third place and the third element in a fourth place.2. The terminal device according to the claim 1 , wherein before dragging the fourth element to the second place claim 1 , a selection ...
Подробнее