Method and apparatus for displaying keyboard, and terminal device
Abstract
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.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
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; and in 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, a selection operation is applied on the fourth element, and in response to detecting the selection operation on the forth element, the fourth element is displayed as being selected.
3 . The terminal device according to the claim 1 , wherein the instructions further cause the terminal device to:
in response to detecting dragging the forth element to the second place, display a movement track of dragging the fourth element to the second place.
4 . The terminal device according to the claim 1 , wherein the instructions further cause the terminal device to:
in response to detecting dragging the forth element to the second place, moving the second element from the second place to the third place and moving the third element from the third place to the fourth place.
5 . The terminal device according to the claim 1 , wherein the keyboard comprises a first preset area and a second preset area, an alphabetical element are displayed in the first preset area, an icon element are displayed in the second preset area.
6 . 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, and the third element is in a third place, and the first element, the second element and the third element are arranged in sequence; and in response to detecting a drag operation that drags the fourth element to the third place, display the fourth element as scaled up, and display the third element as scaled up.
7 . The terminal device according to the claim 6 , wherein the instructions further cause the terminal device to:
in response to detecting dragging the forth element to the third place, display the first element in the first place, the second element in the second place, the fourth element in the third place and the third element in a fourth place.
8 . The terminal device according to the claim 6 , wherein the instructions further cause the terminal device to:
in response to detecting dragging the fourth element to the third place, moving the third element from the third place to the fourth place.
9 . The terminal device according to the claim 6 , wherein before dragging the fourth element to the third place, a selection operation is applied on the fourth element, and in response to detecting the selection operation on the forth element, the fourth element is displayed as being selected.
10 . The terminal device according to the claim 6 , wherein the instructions further cause the terminal device to:
in response to detecting dragging the forth element to the third place, display a movement track of dragging the fourth element to the third place.
11 . 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, the keyboard comprises a first preset area and a second preset area, wherein a first element, a second element, a third element of the keyboard are displayed in the first preset area, a fourth element of the keyboard is displayed in the second preset area, 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 fourth element is in a fourth place, and the first element, the second element, and the third element are arranged in sequence; and in response to detecting a drag operation that drags a fifth element of the keyboard to the third place, display the third element in a box and the box covers at least a portion of the second preset area.
12 . The terminal device according to the claim 11 , wherein the instructions further cause the terminal device to:
in response to detecting a drag operation that drags the fifth element to the third place, display the fifth element as scaled up, and display the third element as scaled up.
13 . The terminal device according to the claim 11 , wherein before dragging the fifth element to the third place, a selection operation is applied on the fifth element, and in response to detecting the selection operation on the fifth element, the fifth element is displayed as being selected.
14 . The terminal device according to the claim 11 , wherein the instructions further cause the terminal device to:
in response to detecting dragging the fifth element to the third place, display a movement track of dragging the fifth element to the third place.
15 . The terminal device according to the claim 11 , wherein the keyboard comprises a first alphabetical element and the first alphabetical element are displayed in the first preset area.Join the waitlist — get patent alerts
Track US2021019401A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.