[go: up one dir, main page]

CN104657078B - A kind of terminal - Google Patents

A kind of terminal Download PDF

Info

Publication number
CN104657078B
CN104657078B CN201510068176.5A CN201510068176A CN104657078B CN 104657078 B CN104657078 B CN 104657078B CN 201510068176 A CN201510068176 A CN 201510068176A CN 104657078 B CN104657078 B CN 104657078B
Authority
CN
China
Prior art keywords
text
dragging
cursor
unit
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510068176.5A
Other languages
Chinese (zh)
Other versions
CN104657078A (en
Inventor
陈恳
易文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Microphone Holdings Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201510068176.5A priority Critical patent/CN104657078B/en
Publication of CN104657078A publication Critical patent/CN104657078A/en
Application granted granted Critical
Publication of CN104657078B publication Critical patent/CN104657078B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the present invention provides a kind of terminal, its can include: lock cell, when for detecting the slide of user on the touchscreen, the cursor entered text into area locks the cursor initial position where the preceding cursor occurs for the slide in the display interface;Text tug unit, for dragging the text in the input text area according to the slide;Target insertion position determination unit, for determining that insertion position of the cursor in the text after dragging is target insertion position;Insertion and lifting unit, for the cursor to be inserted into the target insertion position;And locking of the releasing to the cursor.Terminal provided in an embodiment of the present invention can be improved the efficiency of positioning cursor operations, and it is convenient to operate.

Description

Terminal
Technical Field
The invention relates to the technical field of touch control, in particular to a terminal.
Background
When a user edits characters by using the terminal, a text box is displayed on an input interface of the terminal, and the text box contains the input characters and a cursor for indicating the current character input position. Along with the input operation of the user, the cursor can move along the direction of increasing characters. If the user finds that the edited characters are wrong, the user needs to move the cursor to the wrong position to delete the characters.
The method of moving the cursor usually includes directly clicking the target position to prompt the cursor to move the position, when the text in the text box is very small, the user may easily touch the adjacent position by mistake, and the target position may be clicked by multiple clicks. The prior art provides a scheme for moving a cursor, which automatically pops up a magnifying glass when detecting that a user continuously touches an input text for more than 1 second, so as to magnify the text touched by the user and assist the user in moving the cursor to a target position. Although the prior art improves the accuracy of cursor movement operation, each time a user moves a cursor for at least 1 second, a large amount of text modification operations waste the time of the user, and dragging the cursor after continuously touching for more than 1 second affects the efficiency of cursor movement operation, and also has the disadvantage of inconvenient operation.
Disclosure of Invention
The embodiment of the invention provides a terminal which can improve the efficiency of cursor positioning operation and is convenient and fast to operate.
Specifically, an embodiment of the present invention provides a terminal, which may include:
the locking unit is used for locking a cursor in a text input area to an initial cursor position on a display interface where the cursor is located before the sliding operation occurs when the sliding operation of a user on the touch screen is detected;
the text dragging unit is used for dragging the text in the text input area according to the sliding operation;
a target insertion position determining unit, configured to determine that an insertion position of the cursor in the text after the dragging is a target insertion position;
an insertion and release unit for inserting the cursor into the target insertion position; and releasing the locking of the cursor.
The terminal provided by the embodiment of the invention finally confirms the target insertion position of the cursor by detecting the sliding operation of the user on the touch screen and dragging the text of the text input area according to the data generated by the sliding operation, and inserts the cursor in the confirmed target insertion position. The scheme of the embodiment of the invention can improve the efficiency of cursor positioning operation and is convenient and fast to operate.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments are briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flowchart illustrating an embodiment of a method for positioning a cursor according to the present invention;
fig. 2a is a schematic structural diagram of a terminal according to a first embodiment of the present invention;
fig. 2b is a schematic structural diagram of a terminal according to a second embodiment of the present invention;
fig. 2c is a schematic structural diagram of a terminal according to a third embodiment of the present invention;
fig. 2d is a schematic structural diagram of a terminal according to a fourth embodiment of the present invention;
fig. 2e is a schematic structural diagram of a terminal according to a fifth embodiment of the present invention;
fig. 2f is a schematic structural diagram of a terminal according to a sixth embodiment of the present invention;
fig. 2g is a schematic structural diagram of a terminal provided in a seventh embodiment of the present invention;
fig. 3 is a flowchart illustrating an embodiment of a terminal according to the present invention;
fig. 4 is a schematic structural diagram of a terminal according to another embodiment of the present invention;
FIG. 5 is a schematic view of a first interface provided in an embodiment of the present invention;
FIG. 6 is a schematic view of a second interface provided in an embodiment of the present invention;
FIG. 7 is a schematic view of a third interface provided in an embodiment of the present invention;
FIG. 8 is a schematic view of a fourth interface provided in an embodiment of the present invention;
fig. 9 is a schematic diagram of a fifth interface provided in the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a method for positioning a cursor, wherein an implementation main body of the method is a terminal with a touch screen, specifically a mobile phone, a pad, a portable computer and other portable mobile terminals, and also a desktop computer working through an external touch screen display, a set-top box working with the touch screen display or a set-top box all-in-one machine and other terminals with a touch screen display function. Specifically, the method of the embodiment of the present invention may include: when the terminal detects the sliding operation of a user on the touch screen, locking a cursor in a text input area to an initial cursor position where the cursor is located on a display interface before the sliding operation occurs; dragging the text in the text input area according to the sliding operation, and determining the insertion position of the cursor in the dragged text as a target insertion position; and inserting the cursor into the target insertion position and unlocking the cursor. The scheme of the embodiment of the invention can improve the efficiency of cursor positioning operation.
The technical solutions of the embodiments of the present invention are described in detail below with reference to the accompanying drawings and the detailed description.
As shown in fig. 1, an embodiment of a method for positioning a cursor provided by the present invention may include the following steps:
step S110, when the terminal detects the sliding operation of the user on the touch screen, the terminal locks the initial position of the cursor on the display interface where the cursor is before the sliding operation occurs in the text input area;
step S111, the terminal drags the text in the text input area according to the sliding operation and determines the insertion position of the cursor in the dragged text as the target insertion position;
in step S112, the terminal inserts the cursor into the target insertion position and unlocks the cursor.
The embodiment of the invention supports the user to drag the text in the text input area, thereby achieving the purpose of changing the cursor position in the text input area. As shown in fig. 5, the text input area, in which some words have been input, needs to move the cursor to the target position when the input text is found to be wrong or more words need to be added to the input text, for example, the target insertion position required by the user may be between "and" ok ".
Specifically, when a user operates on the touch screen through a contact medium (such as a finger, a touch pen, and the like), the terminal can immediately acquire coordinates of a starting point of the display interface corresponding to a contact point of the touch medium on the touch screen, and when the touch medium slides on the touch screen, the terminal can detect a sliding operation to be performed on the touch screen by the user according to the touch condition acquired through the touch screen, and record a sliding track formed by coordinates of each contact point corresponding to the display interface, the sliding track being generated in the sliding operation process.
Further optionally, in the cursor movement scheme provided in the embodiment of the present invention, a user is supported to indirectly reposition the cursor by moving a text in the text input area, and the time when the sliding operation is detected is used as a trigger point to trigger the cursor repositioning operation, and the terminal in the embodiment of the present invention may specify a setting area for detecting the sliding operation, as shown in fig. 5, the terminal may set an area of the display interface corresponding to the text input area on the touch screen as the setting area, and detect whether there is a sliding operation for performing the cursor repositioning operation in the setting area. The terminal can also set the area of the touch screen corresponding to the whole display interface as a set area, and prescribe that when the text input area is displayed on the display interface, the sliding operation acquired from the touch screen is regarded as the cursor repositioning operation in the text input area.
Further optionally, when the terminal detects a sliding operation of the user on the touch screen, the specific implementation of the operation of locking the cursor in the text input area to the initial position of the cursor where the cursor is located on the display interface before the sliding operation occurs may include: the terminal records a track generated in the process of operating on the touch screen by a user through the touch screen, and determines the initial position of a cursor when the initial point position of the track is obtained; the terminal judges whether the operation of the user on the touch screen is sliding operation or not according to the track; and if the operation of the user on the touch screen is judged to be sliding operation, locking the cursor at the initial position of the cursor. For example, referring to fig. 5, when the terminal detects a sliding operation, it may determine that the initial position of the cursor is between "packet" and "ha" according to the recorded starting point position, and lock the cursor at the initial position of the cursor.
Further optionally, in the dragging process of dragging the text in the text input area by the terminal according to the sliding operation, the text in the preset range corresponding to the cursor can be displayed in an enlarged manner on the display interface. The effect of the enlarged display can be referred to fig. 6 to 9 provided later.
Further optionally, the specific implementation of the operation of the terminal dragging the text in the text input area according to the sliding operation may include: the terminal saves the track generated by the sliding operation recorded by the terminal; and dragging the text in the text input area by the terminal according to the track. If the track generated by the sliding operation is a track from left to right, the terminal moves the text by a corresponding distance to the right, if the track generated by the sliding operation is a track from right to left, the terminal moves the text by a corresponding distance to the left, if the track generated by the sliding operation is a track from bottom to top, the terminal moves the text by a corresponding distance to the top, if the track generated by the sliding operation is a track from top to bottom, the terminal moves the text by a corresponding distance to the bottom, and further, if the end point of the track generated by the sliding operation is the position of the oblique line direction relative to the start point, the text will finally move according to the oblique line direction relative to the start point of the end point.
Further optionally, the specific implementation of the operation of dragging the text in the text input area by the terminal according to the track may include: the terminal determines a sliding vector according to the position of the end point and the position of the start point of the track; and dragging the text by the terminal according to the sliding vector. That is, the magnitude and direction of the sliding vector will determine the final movement position of the text.
Further alternatively, when the terminal performs the text movement operation according to the sliding vector, the module of the sliding vector may be directly used as the distance basis for the text movement, for example, a scale may be preset, and a proportional relationship between the sliding vector module and the final text movement distance may be established, and if the proportional relationship may be set to be 1:1, the performing of the text movement operation according to the sliding vector by the terminal may include: the terminal determines the dragging direction and the vector mode for dragging the text based on the sliding vector; and dragging the text by the terminal along the dragging direction by a distance equal to the vector modulo. For example, referring to fig. 6 together, when the target insertion position is between "still" and "existing", the terminal may determine that the direction of the sliding vector is to the right through the sliding operation, and the modulus of the sliding vector is 3 characters, the terminal moves the text to the right by a distance of three characters, and indirectly repositions the cursor between "still" and "existing" by moving the text.
Further alternatively, after the terminal inserts the cursor into the target insertion position and releases the lock on the cursor, the text needs to be moved back to the position where the text was before being dragged, wherein the cursor remains at the target insertion position and moves along with the text. Referring also to fig. 7, after the terminal indirectly repositions the cursor, the text and the cursor can be moved back together, and the cursor on the interface shown in fig. 7 moves along with the text and is always positioned between "still" and "there".
Further alternatively, when the terminal implements the operation of moving the text according to the sliding vector, the terminal may also refer to only the direction of the sliding vector and move the text by a distance of a specified character along the direction of the sliding vector, for example, the implementation of the operation of moving the text according to the sliding vector by the terminal may include: the terminal determines the dragging direction for dragging the text based on the sliding vector; when the determined dragging direction is leftward, the terminal moves the text leftward by a distance of one character; or when the determined dragging direction is rightward, the terminal moves the text by a distance of one character rightward; or when the determined dragging direction is upward, the terminal moves the text by a distance of one line upward, or when the determined dragging direction is downward, the terminal moves the text by a distance of one line downward. For example, based on the interface shown in fig. 7, when the detected dragging direction is downward, the terminal directly sets the position corresponding to the cursor in the previous line as the target insertion position, and moves the text by a distance of one line downward, the effect after the movement can be referred to fig. 8, and in addition, when the movement is finished and the contact medium leaves the set range, the terminal moves the cursor back to the text, and the final display effect is shown in fig. 9.
Further optionally, the specific implementation of the operation of the terminal determining the dragging direction for dragging the text based on the sliding vector may include the terminal determining an angle α of the sliding vector, if 2k pi-pi/4 < α ≤ 2k pi + pi/4, the terminal determining the dragging direction as right, if 2k pi + pi/4 < α ≤ 2k pi +3 pi/4, the terminal determining the dragging direction as up, if 2k pi +3 pi/4 < α ≤ 2k pi +5 pi/4, the terminal determining the dragging direction as left, and if 2k pi +5 pi/4 < α ≤ 2k pi +7 pi/4, the terminal determining the dragging direction as down (where k is an integer and pi is a circumferential rate).
The method and the device for detecting the cursor target insertion position of the touch screen comprise the steps that the sliding operation of a user on the touch screen is detected, the text of a text input area is dragged according to data generated by the sliding operation, the target insertion position of the cursor is finally confirmed, and the cursor is inserted into the confirmed target insertion position; in the moving process, the area where the cursor is located is enlarged and displayed, and the user can conveniently check the cursor. The scheme of the embodiment of the invention improves the efficiency of cursor positioning operation.
An embodiment of the present invention further provides a terminal, which may include: the cursor locking unit is used for locking a cursor in the text input area to an initial cursor position on the display interface where the cursor is located before the sliding operation occurs when the sliding operation of a user on the touch screen is detected; the text dragging unit is used for dragging the text in the text input area according to the sliding operation; a target insertion position determining unit, configured to determine that an insertion position of the cursor in the text after the dragging is a target insertion position; an insertion and release unit for inserting the cursor into the target insertion position; and releasing the locking of the cursor. The terminal of the embodiment of the invention can improve the efficiency of cursor positioning operation.
The technical solution of the apparatus in the embodiments of the present invention will be described in detail below with reference to the accompanying drawings and the detailed description.
Fig. 2a is a schematic structural diagram of a terminal according to an embodiment of the present invention. The apparatus of this embodiment may be used to implement the method shown in fig. 1, and specifically, the apparatus of this embodiment includes: the cursor locking unit 21, the text dragging unit 22, the target insertion position determining unit 23, and the insertion and release unit 24 may further include an enlargement display unit 25 and a move-back unit 26, the cursor locking unit 21 of the present embodiment may further include a recording unit 211, an initial position determining unit 212, a determining unit 213, and a locking unit 214, the text dragging unit 22 of the present embodiment may further include a saving unit 221 and a first dragging unit 222, the first dragging unit 222 of the present embodiment may further include a sliding vector determining unit 2221 and a second dragging unit 2222, the second dragging unit 2222 of the present embodiment may further include a dragging direction and vector modulo determining unit 22221 and a third dragging unit 22222, wherein:
the cursor locking unit 21 is configured to lock, when a sliding operation of a user on the touch screen is detected, an initial cursor position where a cursor is located on a display interface before the sliding operation of the cursor in the text input area occurs;
a text dragging unit 22 for dragging the text in the text input area according to the sliding operation;
a target insertion position determining unit 23, configured to determine an insertion position of the cursor in the dragged text as a target insertion position;
an insertion and release unit 24 for inserting the cursor into the target insertion position; and releases the lock on the cursor.
The embodiment of the invention supports the user to drag the text in the text input area, thereby achieving the purpose of changing the cursor position in the text input area. As shown in fig. 5, the text input area, in which some words have been input, needs to move the cursor to the target position when the input text is found to be wrong or more words need to be added to the input text, for example, the target insertion position required by the user may be between "and" ok ".
Specifically, when a user operates on the touch screen through a contact medium (such as a finger, a touch pen, and the like), the terminal can immediately acquire coordinates of a starting point of the display interface corresponding to a contact point of the touch medium on the touch screen, and when the touch medium slides on the touch screen, the terminal can detect a sliding operation to be performed on the touch screen by the user according to the touch condition acquired through the touch screen, and record a sliding track formed by coordinates of each contact point corresponding to the display interface, the sliding track being generated in the sliding operation process.
Further optionally, in the cursor movement scheme provided in the embodiment of the present invention, a user is supported to indirectly reposition the cursor by moving a text in the text input area, and the time when the sliding operation is detected is used as a trigger point to trigger the cursor repositioning operation, and the terminal in the embodiment of the present invention may specify a setting area for detecting the sliding operation, as shown in fig. 5, the terminal may set an area of the display interface corresponding to the text input area on the touch screen as the setting area, and detect whether there is a sliding operation for performing the cursor repositioning operation in the setting area. The terminal can also set the area of the touch screen corresponding to the whole display interface as a set area, and prescribe that when the text input area is displayed on the display interface, the sliding operation acquired from the touch screen is regarded as the cursor repositioning operation in the text input area.
Further optionally, referring to fig. 2b, the cursor locking unit 21 according to the embodiment of the present invention may further include:
the recording unit 211 is configured to record, through the touch screen, a track generated in an operation process performed on the touch screen by a user;
an initial position determining unit 212, configured to determine an initial position of a cursor when the initial point position of the track is obtained;
a judging unit 213, configured to judge whether an operation performed by a user on the touch screen is a sliding operation according to the trajectory;
and a locking unit 214, configured to lock the cursor at the initial cursor position when the determining unit 213 determines that the user operation on the touch screen is a sliding operation.
Further optionally, referring to fig. 2c, in the process of dragging the text in the text input area by the terminal according to the sliding operation, the text in the preset range corresponding to the cursor may be displayed in an enlarged manner on the display interface through the enlargement display unit 25.
And the magnification display unit 25 is used for magnifying and displaying the text in the preset range corresponding to the cursor on the display interface in the dragging process of dragging the text in the text input area according to the sliding operation by the text dragging unit.
Further optionally, referring to fig. 2d together, the text dragging unit 22 according to the embodiment of the present invention may further include:
a holding unit 221 for holding a track generated by a slide operation recorded by the terminal;
a first dragging unit 222 for dragging the text in the text input area according to the trajectory.
In the embodiment of the invention, if the track generated by the sliding operation is a track from left to right, the terminal moves the text by a corresponding distance to the right, if the track generated by the sliding operation is a track from right to left, the terminal moves the text by a corresponding distance to the left, if the track generated by the sliding operation is a track from bottom to top, the terminal moves the text by a corresponding distance to the top, if the track generated by the sliding operation is a track from top to bottom, the terminal moves the text by a corresponding distance to the bottom, and further, if the end point of the track generated by the sliding operation is at the position of the oblique line direction relative to the start point, the text is finally moved by the oblique line direction relative to the start point according to the end point.
Further optionally, referring to fig. 2e together, the first dragging unit 222 according to the embodiment of the present invention may further include:
a sliding vector determination unit 2221 configured to determine a sliding vector according to the end point position and the start point position of the trajectory;
a second dragging unit 2222 for dragging the text according to the sliding vector. That is, the magnitude and direction of the sliding vector will determine the final movement position of the text.
Further optionally, when the terminal implements the operation of moving the text according to the sliding vector, the terminal may directly use the sliding vector module as the text movement distance basis, for example, a scale may be preset, and establish a proportional relationship between the sliding vector module and the final text movement distance, for example, when the proportional relationship is set to 1:1, please refer to fig. 2f, and the second dragging unit 2222 according to the embodiment of the present invention may further include:
a dragging direction and vector mode determining unit 22221 for determining a dragging direction and vector mode for dragging the text based on the slide vector;
a third dragging unit 22222 for dragging the text along the dragging direction by a distance equal to the vector modulo.
Further alternatively, when the terminal is embodied to move the text according to the sliding vector, it may also refer to only the direction of the sliding vector, and move the text by a distance of a prescribed character along the direction of the sliding vector, for example,
a second dragging unit 2222 for determining a dragging direction for dragging the text based on the sliding vector;
the second dragging unit 2222 is further configured to, when the determined dragging direction is leftward, move the text a distance of one character to the left;
or,
the second dragging unit 2222 is further configured to, when the determined dragging direction is rightward, move the text by a distance of one character rightward;
or,
the second dragging unit 2222 is further configured to move the text upward by a distance of one line when the determined dragging direction is upward.
Or,
the second dragging unit 2222 is further configured to move the text downward by a distance of one line when the determined dragging direction is downward.
Further optionally, the second dragging unit 2222 is further configured to determine an angle α of the sliding vector, determine that the dragging direction is rightward when 2k pi-pi/4 < α ≤ 2k pi + pi/4, determine that the dragging direction is upward when 2k pi + pi/4 < α ≤ 2k pi +3 pi/4, determine that the dragging direction is leftward when 2k pi +3 pi/4 < α ≤ 2k pi +5 pi/4, and determine that the dragging direction is downward when 2k pi +5 pi/4 < α ≤ 2k pi +7 pi/4 (where k is an integer and pi is a circumferential ratio).
Further alternatively, after the terminal inserts the cursor into the target insertion position and releases the lock on the cursor, the text needs to be moved back to the position where the text was before being dragged, wherein the cursor remains at the target insertion position and moves along with the text. Referring to fig. 2g, the terminal according to the embodiment of the present invention may further include a moving back unit 26 for moving the text back to the position where the text was dragged, wherein the cursor remains at the target insertion position and moves following the text.
The terminal provided by the embodiment of the invention is a terminal with a touch screen, and specifically can be a portable mobile terminal such as a mobile phone, a pad and a portable computer, and also can be a terminal with a touch screen display function such as a desktop computer working through an external touch screen display, a set-top box working with the touch screen display, or a set-top box all-in-one machine. The embodiments of the present invention are not limited in this regard.
The terminal provided by the embodiment of the invention finally confirms the target insertion position of the cursor by detecting the sliding operation of the user on the touch screen and dragging the text of the text input area according to the data generated by the sliding operation, and inserts the cursor in the confirmed target insertion position; in the moving process, the area where the cursor is located is enlarged and displayed, and the user can conveniently check the cursor. The terminal provided by the embodiment of the invention improves the efficiency of cursor positioning operation, is convenient and fast to operate, saves the time of a user and brings good experience to the user.
Further, referring to fig. 3, fig. 3 is a specific implementation flow of positioning a cursor by a terminal according to an embodiment of the present invention, where an execution main body of the implementation flow may be any one of fig. 2a, fig. 2b, fig. 2c, fig. 2d, fig. 2e, fig. 2f, and fig. 2g, and specifically, the flow of the embodiment may include:
step S310, inputting the input state of partial characters;
step S311, whether a certain character which is input needs to be modified;
step S312, dragging the inputted characters, and adjusting the input cursor to the designated position;
step 313, modify the characters.
The method and the device for detecting the cursor position of the mobile terminal detect the sliding operation of the user on the touch screen, drag the text of the text input area according to the data generated by the sliding operation, finally confirm the target insertion position of the cursor, and insert the cursor in the determined target insertion position. The scheme of the embodiment of the invention can improve the efficiency of cursor positioning operation, is convenient and fast to operate, can save the time of a user and brings good experience to the user.
Fig. 4 is a schematic structural diagram of a terminal provided in another embodiment of the present invention. As shown in fig. 4, the terminal includes: at least one input device 41; at least one output device 42; at least one processor 43, such as a CPU; and a memory 44, the input device 41, the output device 42, the processor 43, and the memory 44 being connected by a bus 45.
The input device 41 may be a touch panel of the terminal, and includes a touch screen and a touch screen, and is configured to detect an operation instruction on the touch panel of the terminal.
The output device 42 may be a display screen of the terminal, and is used for outputting and displaying image data (including the first image data and the second image data).
The memory 44 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). The memory 44 is used for storing a set of program codes, and the input device 41, the output device 42 and the processor 43 are used for calling the program codes stored in the memory 44 to execute the following operations:
the processor 43 is configured to detect, through the input device 41, an operation of a user on the touch screen, and further configured to detect a cursor initial position where a cursor is located on the display interface before a cursor locking sliding operation in the text input area occurs when a sliding operation of the user on the touch screen is detected;
the processor 43 is further configured to drag a text in the text input area according to the sliding operation, and determine that an insertion position of the cursor in the dragged text is a target insertion position;
the processor 43 is also configured to insert the cursor into the target insertion position and unlock the cursor.
In an alternative embodiment, when the processor 43 calls the program code stored in the memory 44 to detect a sliding operation of the user on the touch screen, the initial position of the cursor on the display interface before the sliding operation of the cursor lock in the text input area occurs may specifically be:
recording a track generated in the process of operating on the touch screen by a user through the touch screen, and determining the initial position of a cursor when the initial point position of the track is obtained;
judging whether the operation of the user on the touch screen is sliding operation or not according to the track;
and if the operation of the user on the touch screen is judged to be sliding operation, locking the cursor at the initial position of the cursor.
Further alternatively, the processor 43 calls the program code stored in the memory 44 to enlarge and display the text in the preset range corresponding to the cursor on the display interface in the process of dragging the text in the text input area according to the sliding operation.
Further optionally, the processor 43 calls the program code stored in the memory 44 to drag the text in the text input area according to the sliding operation, which may specifically be:
saving a track generated by the sliding operation recorded by the terminal;
and dragging the text in the text input area according to the track.
Further optionally, the processor 43 calls the program code stored in the memory 44 to drag the text in the text input area according to the track, which may specifically be:
determining a sliding vector according to the position of the end point and the position of the start point of the track;
the text is dragged according to the sliding vector.
Further optionally, the processor 43 calls the program code stored in the memory 44 to move the text according to the sliding vector, which may specifically be:
determining a dragging direction and a vector mode for dragging the text based on the sliding vector;
the text is dragged along the dragging direction by a distance equal to the vector modulo.
Further optionally, the processor 43 calls the program code stored in the memory 44 to move the text according to the sliding vector, which may specifically be:
the terminal determines the dragging direction for dragging the text based on the sliding vector;
when the determined dragging direction is leftward, moving the text leftward by a distance of one character;
or, when the determined dragging direction is rightward, the text is moved rightward by a distance of one character;
or when the determined dragging direction is upward, moving the text upward by a line distance;
alternatively, when the determined drag direction is downward, the text is moved downward by a distance of one line.
Further optionally, the processor 43 calls the program code stored in the memory 44 to determine a dragging direction for dragging the text based on the sliding vector, which may specifically be:
determining an angle of the sliding vector α;
if 2k pi-pi/4 is less than α and less than or equal to 2k pi + pi/4, determining the dragging direction to be rightward;
if 2k pi + pi/4 is less than α and less than or equal to 2k pi +3 pi/4, determining that the dragging direction is upward;
if 2k pi +3 pi/4 is less than α and less than or equal to 2k pi +5 pi/4, determining the dragging direction to be leftward;
if 2k pi +5 pi/4 is less than α and less than or equal to 2k pi +7 pi/4, the dragging direction is determined to be downward.
Further optionally, after the processor 43 calls the program code stored in the memory 44 to insert the cursor into the target insertion position and unlock the cursor, the following scheme is also executed:
the text is moved back to the location where the text was before being dragged, with the cursor remaining at the target insertion location and following the text movement.
Specifically, the terminal described in this embodiment may be used to implement part or all of the flow in the text information display method embodiment described in conjunction with fig. 1 or fig. 3.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs.
The modules or units in the device of the embodiment of the invention can be combined, divided and deleted according to actual needs.
The modules or units in the embodiments of the present invention may be implemented by a general-purpose integrated circuit, such as a CPU (central processing Unit), or an ASIC (Application Specific integrated circuit).
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, and the program can be stored in a computer readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs.
The modules or units in the device of the embodiment of the invention can be combined, divided and deleted according to actual needs.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention.

Claims (10)

1. A terminal, comprising:
the cursor locking unit is used for locking a cursor in the text input area to an initial cursor position on the display interface where the cursor is located before the sliding operation occurs when the sliding operation of a user on the touch screen is detected;
the text dragging unit is used for dragging the text in the text input area according to the sliding operation;
a target insertion position determining unit, configured to determine that an insertion position of the cursor in the text after the dragging is a target insertion position;
an insertion and release unit for inserting the cursor into the target insertion position; and releasing the locking of the cursor.
2. The terminal of claim 1, wherein the sliding operation is detected by the locking unit within a set area of a touch screen.
3. The terminal of claim 1, wherein the cursor locking unit comprises:
the recording unit is used for recording a track generated in the process of operating the touch screen by the user through the touch screen;
the initial position determining unit is used for determining the initial position of the cursor when the initial point position of the track is obtained;
the judging unit is used for judging whether the operation of the user on the touch screen is sliding operation or not according to the track;
and the locking unit is used for locking the cursor at the initial position of the cursor when the judging unit judges that the operation of the user on the touch screen is sliding operation.
4. The terminal of claim 1, further comprising:
and the amplification display unit is used for amplifying and displaying the text in the preset range corresponding to the cursor on the display interface in the dragging process of dragging the text in the text input area by the text dragging unit according to the sliding operation.
5. The terminal of claim 3, wherein the text dragging unit comprises:
a holding unit configured to hold the trajectory generated by the sliding operation;
and the first dragging unit is used for dragging the text in the text input area according to the track.
6. The terminal of claim 5, wherein the dragging unit comprises:
a sliding vector determining unit, configured to determine a sliding vector according to the end point position and the start point position of the track;
and the second dragging unit is used for dragging the text according to the sliding vector.
7. The terminal of claim 6, wherein the second dragging unit comprises:
a dragging direction and vector mode determining unit for determining a dragging direction and a vector mode for dragging the text based on the sliding vector;
and the third dragging unit is used for dragging the text along the dragging direction by a distance equal to the vector norm.
8. The terminal of claim 6,
the second dragging unit is further used for determining a dragging direction for dragging the text based on the sliding vector;
the second dragging unit is further configured to move the text a distance of one character to the left when the determined dragging direction is to the left;
or,
the second dragging unit is further used for moving the text to the right by a distance of one character when the determined dragging direction is the right direction;
or,
the second dragging unit is further configured to move the text by a distance of one line upward when the determined dragging direction is upward;
or,
the second dragging unit is further configured to move the text downward by a distance of one line when the determined dragging direction is downward.
9. The terminal of claim 8,
the second dragging unit is further used for determining an angle α of the sliding vector;
the method is also used for determining the dragging direction to be rightward when 2k pi-pi/4 is less than α and less than or equal to 2k pi + pi/4;
the method is also used for determining that the dragging direction is upward when 2k pi + pi/4 is less than α and less than or equal to 2k pi +3 pi/4;
the method is also used for determining the dragging direction to be leftward when 2k pi +3 pi/4 is less than α and less than or equal to 2k pi +5 pi/4;
and when the dragging direction is determined to be downward when 2k pi +5 pi/4 is less than α and less than or equal to 2k pi +7 pi/4, and k is an integer.
10. The terminal of claim 1, further comprising:
and the moving-back unit is used for moving the text back to the position where the text is located before being dragged, wherein the cursor is kept at the target insertion position and moves along with the text.
CN201510068176.5A 2015-02-09 2015-02-09 A kind of terminal Active CN104657078B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510068176.5A CN104657078B (en) 2015-02-09 2015-02-09 A kind of terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510068176.5A CN104657078B (en) 2015-02-09 2015-02-09 A kind of terminal

Publications (2)

Publication Number Publication Date
CN104657078A CN104657078A (en) 2015-05-27
CN104657078B true CN104657078B (en) 2019-04-23

Family

ID=53248276

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510068176.5A Active CN104657078B (en) 2015-02-09 2015-02-09 A kind of terminal

Country Status (1)

Country Link
CN (1) CN104657078B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104657077A (en) * 2015-02-09 2015-05-27 深圳市金立通信设备有限公司 Cursor positioning method
CN105589640B (en) * 2015-12-14 2019-04-23 珠海市魅族科技有限公司 A kind of input control method and mobile terminal
CN107957829B (en) * 2016-10-14 2021-01-22 腾讯科技(深圳)有限公司 Method and device for adjusting editing position of input cursor and terminal equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1845056A (en) * 2006-04-29 2006-10-11 怡利电子工业股份有限公司 An input method for displaying a large keyboard table on a small screen
CN1912808A (en) * 2006-06-29 2007-02-14 臧忠卫 Planar selection log-in literal method
CN102654821A (en) * 2011-03-04 2012-09-05 腾讯科技(深圳)有限公司 Method and device for locating text cursor
CN102799358A (en) * 2012-06-20 2012-11-28 中兴通讯股份有限公司 Method and device for determining display position of cursor
CN103279219A (en) * 2013-05-15 2013-09-04 北京小米科技有限责任公司 Method and system for moving cursor of touch screen device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103257815A (en) * 2012-02-20 2013-08-21 索尼爱立信移动通讯有限公司 Positioning method for touch location, text selection method and device and electronic equipment
US20140306897A1 (en) * 2013-04-10 2014-10-16 Barnesandnoble.Com Llc Virtual keyboard swipe gestures for cursor movement

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1845056A (en) * 2006-04-29 2006-10-11 怡利电子工业股份有限公司 An input method for displaying a large keyboard table on a small screen
CN1912808A (en) * 2006-06-29 2007-02-14 臧忠卫 Planar selection log-in literal method
CN102654821A (en) * 2011-03-04 2012-09-05 腾讯科技(深圳)有限公司 Method and device for locating text cursor
CN102799358A (en) * 2012-06-20 2012-11-28 中兴通讯股份有限公司 Method and device for determining display position of cursor
CN103279219A (en) * 2013-05-15 2013-09-04 北京小米科技有限责任公司 Method and system for moving cursor of touch screen device

Also Published As

Publication number Publication date
CN104657078A (en) 2015-05-27

Similar Documents

Publication Publication Date Title
CN104657077A (en) Cursor positioning method
US8276101B2 (en) Touch gestures for text-entry operations
US10275151B2 (en) Apparatus and method for cursor control and text selection and editing based on gesture-based touch inputs received in a virtual keyboard display area
CN103718149B (en) The processing method and touch-screen equipment of a kind of text
EP1507192B1 (en) Detection of a dwell gesture by examining parameters associated with pen motion
US20140327628A1 (en) Physical object detection and touchscreen interaction
US20140189482A1 (en) Method for manipulating tables on an interactive input system and interactive input system executing the method
CN103064627B (en) A kind of application management method and device
US20140365929A1 (en) Handhold electronic device and method for list item editing based on a touch screen
CN103838456A (en) Method and system for controlling display positions of desktop icons
JP6448639B2 (en) Text selection method, apparatus and terminal
TW201502963A (en) Method for controlling electronic device with touch screen and electronic device thereof
CN104808930A (en) Operating element control method
CN104461312A (en) Display control method and electronic equipment
CN103492981A (en) Touch screen selection
CN103809903B (en) Method and apparatus for controlling virtual screen
CN103309612A (en) Method, device and equipment for processing information of graphic interface text field of mobile equipment
CN104657078B (en) A kind of terminal
EP3125087B1 (en) Terminal device, display control method, and program
CN102750035B (en) The determination method and apparatus of display position of cursor
US10073612B1 (en) Fixed cursor input interface for a computer aided design application executing on a touch screen device
TWI617971B (en) System and method for turning pages of an object through gestures
CN106502536A (en) A kind of page info choosing method and device
EP3125089A1 (en) Terminal device, display control method, and program
WO2015081863A1 (en) Information input method, device and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20210126

Address after: 518057 Desai Science and Technology Building, 9789 Shennan Avenue, Yuehai Street, Nanshan District, Shenzhen City, Guangdong Province, 17th Floor (15th Floor of Natural Floor) 1702-1703

Patentee after: Shenzhen Microphone Holdings Co.,Ltd.

Address before: 518040 21 floor, east block, Times Technology Building, 7028 Shennan Road, Futian District, Shenzhen, Guangdong.

Patentee before: DONGGUAN GOLDEX COMMUNICATION TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right