CN104657077A - Cursor positioning method - Google Patents

Cursor positioning method Download PDF

Info

Publication number
CN104657077A
CN104657077A CN201510065401.XA CN201510065401A CN104657077A CN 104657077 A CN104657077 A CN 104657077A CN 201510065401 A CN201510065401 A CN 201510065401A CN 104657077 A CN104657077 A CN 104657077A
Authority
CN
China
Prior art keywords
text
cursor
slide
drawing direction
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.)
Pending
Application number
CN201510065401.XA
Other languages
Chinese (zh)
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 Jinli Communication Equipment 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 CN201510065401.XA priority Critical patent/CN104657077A/en
Publication of CN104657077A publication Critical patent/CN104657077A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop

Abstract

The embodiment of the invention provides a cursor positioning method. The method can comprise the following steps: when the sliding operation of a user on a touch screen is detected, locking a cursor in a text input area at a cursor initial position on a display interface where the cursor is positioned before the sliding operation occurs; dragging a text in the text input area according to the sliding operation, and determining an insert position of the cursor in the dragged text as a target insert position; inserting the cursor into the target insert position and relieving the locking of the cursor. According to the embodiment of the invention, the efficiency of cursor positioning operation can be improved, and the operation is convenient.

Description

A kind of method of positioning cursor
Technical field
The present invention relates to technical field of touch control, particularly relate to a kind of method of positioning cursor.
Background technology
When user uses terminal editor word, the inputting interface of terminal can present a text box, in text box, have the word inputted and the cursor being used to indicate current character input position.Along with the input operation of user, the direction that cursor can increase along with word is moved.If when user finds that the word edited is wrong, need to move the cursor to wrong place and revise.
Mobile light calibration method is generally, and directly click target location with prompt shift position, when special hour of the word in text box, user was easy to false touch to adjacent locations, needs repeatedly to click just can click target location.Prior art provides a kind of scheme of mobile cursor, and when detecting that user touches more than 1 second continuously on the word inputted, automatic spring magnifier, amplified by the word of user touch place, assisting users moves the cursor to target location.Although prior art improves the degree of accuracy of mobile cursor operations, but each mobile cursor of user all at least will wait 1 second each time, a large amount of amendment text maninulations can waste the time of user, drag the efficiency that the ways such as cursor can affect mobile cursor operations after continuous touch more than 1 second, there is unhandy drawback equally.
Summary of the invention
The embodiment of the present invention provides a kind of method of positioning cursor, can improve the efficiency of positioning cursor operation, simple operation.
Concrete, embodiments provide a kind of method of positioning cursor, it can comprise:
When terminal detects user's slide on the touchscreen, the cursor in input text area is locked described slide occur before the cursor initial position at described cursor place on display interface;
Drag the text in described input text area according to described slide, and determine that the insertion position in the described text of described cursor after dragging is target insertion position;
Described cursor inserted described target insertion position and remove the locking to described cursor.
The embodiment of the present invention, by detecting user's slide on the touchscreen, dragging the text of input text area according to the data of slide generation, is finally confirmed the target insertion position of cursor, and is inserted cursor in the target insertion position determined.The scheme of the embodiment of the present invention can improve the efficiency of positioning cursor operation, simple operation.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment below, apparently, accompanying drawing in the following describes is some embodiments of the embodiment of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is an embodiment schematic flow sheet of the method for a kind of positioning cursor of the present invention;
A kind of structural representation of terminal of Fig. 2 a for providing in first embodiment of the invention;
A kind of structural representation of terminal of Fig. 2 b for providing in second embodiment of the invention;
A kind of structural representation of terminal of Fig. 2 c for providing in third embodiment of the invention;
A kind of structural representation of terminal of Fig. 2 d for providing in fourth embodiment of the invention;
A kind of structural representation of terminal of Fig. 2 e for providing in fifth embodiment of the invention;
A kind of structural representation of terminal of Fig. 2 f for providing in sixth embodiment of the invention;
A kind of structural representation of terminal of Fig. 2 g for providing in seventh embodiment of the invention;
Fig. 3 is an embodiment schematic flow sheet of a kind of terminal of the present invention;
A kind of structural representation of terminal of Fig. 4 for providing in another embodiment of the present invention;
Fig. 5 the first interface schematic diagram for providing in the embodiment of the present invention;
The second interface schematic diagram of Fig. 6 for providing in the embodiment of the present invention;
Fig. 7 the third interface schematic diagram for providing in the embodiment of the present invention;
The four kind interface schematic diagram of Fig. 8 for providing in the embodiment of the present invention;
The five kind interface schematic diagram of Fig. 9 for providing in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of method of positioning cursor, its subject of implementation is a kind of terminal with touch-screen, be specifically as follows the portable mobile terminals such as mobile phone, pad, portable computer, also can for undertaken by external touch screen displays work desktop computer, with the terminal with touch screen Presentation Function such as the Set Top Box of touch screen displays collaborative work or set-top box integrated machine.Concrete, the method for the embodiment of the present invention can comprise: when terminal detects user's slide on the touchscreen, the cursor in input text area is locked described slide occur before the cursor initial position at described cursor place on display interface; Drag the text in described input text area according to described slide, and determine that the insertion position in the described text of described cursor after dragging is target insertion position; Described cursor inserted described target insertion position and remove the locking to described cursor.The scheme of the embodiment of the present invention can improve the efficiency of positioning cursor operation.
Below in conjunction with the drawings and the specific embodiments, the technical scheme of the embodiment of the present invention is described in detail.
As shown in Figure 1, an embodiment of the method for a kind of positioning cursor provided by the invention can comprise the following steps:
Step S110, when terminal detects user's slide on the touchscreen, the cursor initial position at cursor place on display interface before the cursor locking slide in input text area is occurred;
Step S111, terminal drags the text in input text area according to slide, and determines that the insertion position in the text of cursor after dragging is target insertion position;
Step S112, cursor is inserted target insertion position and removes the locking to cursor by terminal.
The embodiment of the present invention supports that user drags text in input text area, thus reaches the object of cursor position in change input text area.Input text area as shown in Figure 5, wherein some words are have input, when the text finding to have inputted is wrong or need to add more word in the text inputted, need mobile cursor to target location, such as, target insertion position required for user can be between ", " and "available".
Particularly, when user is operated on the touchscreen by contact medium (as finger, pointer etc.), terminal immediately can obtain and touch corresponding to medium contact point on the touchscreen in the starting point coordinate of display interface, when touching medium and having carried out slip on the touchscreen, terminal can according to the touch situation got by touch-screen, detect user the slide that will make on the touchscreen, and record sliding trace that produce in slide process, that form corresponding to each contact point coordinate of display interface.
Further alternatively, it is support that user carrys out reorientation cursor indirectly by the word in mobile input text area that the cursor that the embodiment of the present invention provides moves scheme, to detect that the time of slide is as trigger point, trigger cursor reorientation operation, the terminal of the embodiment of the present invention can be given for the setting regions detecting slide, as shown in Figure 5, region in touch-screen corresponding to input text area on display interface can be set to setting regions by terminal, and in setting regions, detect the slide whether existed for carrying out reorientation cursor operations.Terminal also can be set to setting regions in the region of touch-screen corresponding to whole display interface, and regulation is when display interface showing input text area, is considered as by the slide got the cursor reorientation operation in input text area from touch-screen.
Further alternatively, when terminal detects user's slide on the touchscreen, before being occurred by cursor locking slide in input text area, the concrete enforcement of the cursor initial position operation at cursor place on display interface can comprise: terminal carries out the track produced in operating process on the touchscreen by touch-screen recording user, and when getting the initial point position of track, determine cursor initial position; Whether according to track, terminal judges that user carries out operating on the touchscreen is slide; If judge, user carries out operation is on the touchscreen slide, then cursor is locked in cursor initial position.Such as, in the lump with reference to Fig. 5, when terminal detects slide, can determine that cursor initial position is between " bag " and " Kazakhstan " according to the initial point position of record, and cursor is locked in cursor initial position.
Further alternatively, terminal drags in the dragging process of the text in input text area according to slide, can make display interface to amplify the text in preset range corresponding to display highlighting.The effect of amplifying display can with reference to follow-up Fig. 6 to Fig. 9 provided.
Further alternatively, terminal can comprise according to the concrete enforcement of the text maninulation in slide dragging input text area: terminal preserves the track produced by the slide of terminal record; Terminal drags the text in input text area according to track.If the track that slide produces is track from left to right, then text moves right corresponding distance by terminal, if the track that slide produces is track from right to left, then text is moved to the left corresponding distance by terminal, if the track that slide produces is track from bottom to top, then text moves up corresponding distance by terminal, if the track that slide produces is track from top to bottom, then text is moved down corresponding distance by terminal, further, if slide produce track terminating point be oblique line directions position relative to starting point, then text by final be that oblique line directions moves according to terminating point relative to starting point.
Further alternatively, terminal can comprise according to the concrete enforcement of the text maninulation in track dragging input text area: terminal, according to the terminating point position of track and initial point position, determines sliding vector; Terminal drags text according to sliding vector.That is, the size and Orientation of sliding vector will determine the final shift position of text.
Further alternatively, terminal according to sliding vector move text maninulation specifically implement time, can directly using the distance foundation of the mould of sliding vector as text movement, such as, predeterminable engineer's scale, and the proportionate relationship setting up sliding vector mould and final text displacement, as, can Set scale to close be 1:1, then terminal moves text maninulation according to sliding vector and specifically implements to comprise: terminal determines based on sliding vector the drawing direction and the Vector Mode that drag text; Text is dragged the distance isometric with Vector Mode along drawing direction by terminal.Such as, can in the lump with reference to Fig. 6, when target insertion position is between " going back " and " having ", by slide, terminal can determine that the direction of sliding vector is for the right, and the mould of sliding vector is 3 characters, text moved right the distance of three characters by terminal, and indirectly again positions a cursor between " going back " and " having " by the mode of mobile text.
Further alternatively, cursor is inserted target insertion position and removes after the locking of cursor by terminal, and also need text to be moved back into text and dragged the position at front place, wherein, cursor remains on target insertion position and follows text and moves.Please with reference to Fig. 7, after cursor is reorientated by terminal room ground connection, text can be retracted together with cursor, on interface shown in Fig. 7, cursor is followed text and is moved, and is positioned at all the time between " going back " and " having ".
Further alternatively, terminal according to sliding vector move text maninulation specifically implement time, also can only with reference to the direction of sliding vector, and along the direction of sliding vector, text is moved the distance of regulation character, such as, the concrete enforcement that terminal moves text maninulation according to sliding vector can comprise: terminal determines based on sliding vector the drawing direction dragging text; When the drawing direction determined is for time left, text is moved to the left the distance of a character by terminal; Or when the drawing direction determined is for time to the right, text moves right the distance of a character by terminal; Or when the drawing direction determined is for time upwards, text moves up the distance of a row by terminal, or when the drawing direction determined is downward, text is moved down the distance of a row by terminal.Such as, based on the interface shown in Fig. 7, when the drawing direction detected is downward, the position of cursor corresponding to lastrow is directly set to target insertion position by terminal, and text is moved down the distance of a row, and the effect after mobile can refer to Fig. 8, in addition, after mobile end, contact medium leave setting range, cursor and text are retracted by terminal, and final display effect as shown in Figure 9.
Further alternatively, terminal determines that based on sliding vector the concrete enforcement of the drawing direction operation dragging text can comprise: terminal determines the angle [alpha] of sliding vector; If < α≤2k π+π/4,2k π-π/4, then terminal determination drawing direction is to the right; If < α≤2k π+3 π/4,2k π+π/4, then terminal determination drawing direction is upwards; If < α≤2k π+5 π/4,2k π+3 π/4, then terminal determination drawing direction is left; If < α≤2k π+7 π/4,2k π+5 π/4, then terminal determination drawing direction is downwards (wherein, k is integer, and π is circular constant).
The embodiment of the present invention, by detecting user's slide on the touchscreen, dragging the text of input text area according to the data of slide generation, is finally confirmed the target insertion position of cursor, and is inserted cursor in the target insertion position determined; In the process of movement, display is amplified in the region at cursor place, facilitates user to check.The scheme of the embodiment of the present invention improves the efficiency of positioning cursor operation.
The embodiment of the present invention also provides a kind of terminal, it can comprise: cursor lock cell, during for user's slide on the touchscreen being detected, the cursor in input text area is locked described slide occur before the cursor initial position at described cursor place on display interface; Text tug unit, for dragging the text in described input text area according to described slide; Target insertion position determining unit, for determining that the insertion position in the described text of described cursor after dragging is target insertion position; Insert and lifting unit, for described cursor is inserted described target insertion position; And the locking removed described cursor.The terminal of the embodiment of the present invention can improve the efficiency of positioning cursor operation.
Below in conjunction with the drawings and the specific embodiments, the technical scheme of device in the embodiment of the present invention is described in detail.
Fig. 2 a is the structure composition schematic diagram of the terminal of the embodiment of the present invention.The device of this embodiment can be used for performing the way shown in Fig. 1, concrete, the device of this embodiment comprises: cursor lock cell 21, text tug unit 22, target insertion position determining unit 23 and insertion and lifting unit 24, can also comprise and amplify display unit 25 and retract unit 26, the cursor lock cell 21 of the present embodiment may further include again record cell 211, initial position determining unit 212, judging unit 213 and lock cell 214, the text tug unit 22 of the present embodiment may further include again storage unit 221 and the first tug unit 222, first tug unit 222 of the present embodiment may further include again sliding vector determining unit 2221 and the second tug unit 2222, second tug unit 2222 of the present embodiment may further include again drawing direction and Vector Mode determining unit 22221 and the 3rd tug unit 22222, wherein:
Cursor lock cell 21, during for user's slide on the touchscreen being detected, the cursor initial position at cursor place on display interface before the cursor locking slide in input text area is occurred;
Text tug unit 22, for dragging the text in input text area according to slide;
Target insertion position determining unit 23, for determining that the insertion position in the text of cursor after dragging is target insertion position;
Insert and lifting unit 24, for cursor is inserted target insertion position; And the locking removed cursor.
The embodiment of the present invention supports that user drags text in input text area, thus reaches the object of cursor position in change input text area.Input text area as shown in Figure 5, wherein some words are have input, when the text finding to have inputted is wrong or need to add more word in the text inputted, need mobile cursor to target location, such as, target insertion position required for user can be between ", " and "available".
Particularly, when user is operated on the touchscreen by contact medium (as finger, pointer etc.), terminal immediately can obtain and touch corresponding to medium contact point on the touchscreen in the starting point coordinate of display interface, when touching medium and having carried out slip on the touchscreen, terminal can according to the touch situation got by touch-screen, detect user the slide that will make on the touchscreen, and record sliding trace that produce in slide process, that form corresponding to each contact point coordinate of display interface.
Further alternatively, it is support that user carrys out reorientation cursor indirectly by the word in mobile input text area that the cursor that the embodiment of the present invention provides moves scheme, to detect that the time of slide is as trigger point, trigger cursor reorientation operation, the terminal of the embodiment of the present invention can be given for the setting regions detecting slide, as shown in Figure 5, region in touch-screen corresponding to input text area on display interface can be set to setting regions by terminal, and in setting regions, detect the slide whether existed for carrying out reorientation cursor operations.Terminal also can be set to setting regions in the region of touch-screen corresponding to whole display interface, and regulation is when display interface showing input text area, is considered as by the slide got the cursor reorientation operation in input text area from touch-screen.
Further alternatively, please with reference to Fig. 2 b, the cursor lock cell 21 of the embodiment of the present invention can further include:
Record cell 211, for the track carrying out on the touchscreen producing in operating process by touch-screen recording user;
Initial position determining unit 212, for when getting the initial point position of track, determines cursor initial position;
Whether judging unit 213 is slide for judging that according to track user carries out operating on the touchscreen;
Lock cell 214, when judging user for judging unit 213 to carry out operation be on the touchscreen slide, is locked in cursor initial position by cursor.
Further alternatively, please with reference to Fig. 2 c, the terminal of the embodiment of the present invention drags in the dragging process of the text in input text area according to slide, makes display interface to amplify the text in preset range corresponding to display highlighting by amplification display unit 25 wherein.
Amplify display unit 25, drag in the dragging process of the text in input text area according to slide for text tug unit, display interface amplifies the text in preset range corresponding to display highlighting.
Further alternatively, please with reference to Fig. 2 d, the text tug unit 22 of the embodiment of the present invention can further include:
Storage unit 221, for preserving the track produced by the slide of terminal record;
First tug unit 222, for dragging the text in input text area according to track.
In the embodiment of the present invention, if the track that slide produces is track from left to right, then text moves right corresponding distance by terminal, if the track that slide produces is track from right to left, then text is moved to the left corresponding distance by terminal, if the track that slide produces is track from bottom to top, then text moves up corresponding distance by terminal, if the track that slide produces is track from top to bottom, then text is moved down corresponding distance by terminal, further, if slide produce track terminating point be oblique line directions position relative to starting point, then text by final be that oblique line directions moves according to terminating point relative to starting point.
Further alternatively, please with reference to Fig. 2 e, the first tug unit 222 of the embodiment of the present invention can further include:
Sliding vector determining unit 2221, for according to the terminating point position of track and initial point position, determines sliding vector;
Second tug unit 2222, for dragging text according to sliding vector.That is, the size and Orientation of sliding vector will determine the final shift position of text.
Further alternatively, further alternatively, terminal according to sliding vector move text maninulation specifically implement time, can directly using the distance foundation of the mould of sliding vector as text movement, such as, predeterminable engineer's scale, and set up the proportionate relationship of sliding vector mould and final text displacement, e.g., when Set scale pass is 1:1, please with reference to Fig. 2 f, the second tug unit 2222 of the embodiment of the present invention can further include:
Drawing direction and Vector Mode determining unit 22221, for determining the drawing direction and the Vector Mode that drag text based on sliding vector;
3rd tug unit 22222, for dragging the distance isometric with Vector Mode by text along drawing direction.
Further alternatively, terminal according to sliding vector move text maninulation specifically implement time, also can only with reference to the direction of sliding vector, and along the direction of sliding vector, text is moved the distance of regulation character, such as,
Second tug unit 2222, also for determining the drawing direction dragging text based on sliding vector;
Second tug unit 2222, also for the drawing direction determined for time left, text is moved to the left the distance of a character;
Or,
Second tug unit 2222, also for the drawing direction determined for time to the right, the distance of a character that text is moved right;
Or,
Second tug unit 2222, also for the drawing direction determined for time upwards, the distance of a row that text is moved up.
Or,
Second tug unit 2222, when the drawing direction also for determining is downward, moves down the distance of a row by text.
Further alternatively, the second tug unit 2222, also for determining the angle [alpha] of sliding vector; Time also for < α≤2k π+π/4,2k π-π/4, determine that drawing direction is to the right; Time also for < α≤2k π+3 π/4,2k π+π/4, determine that drawing direction is upwards; Time also for < α≤2k π+5 π/4,2k π+3 π/4, determine that drawing direction is left; Time also for < α≤2k π+7 π/4,2k π+5 π/4, determine that drawing direction is (wherein, k is integer, and π is circular constant) downwards.
Further alternatively, cursor is inserted target insertion position and removes after the locking of cursor by terminal, and also need text to be moved back into text and dragged the position at front place, wherein, cursor remains on target insertion position and follows text and moves.Please with reference to Fig. 2 g, the terminal of the embodiment of the present invention can further include retracts unit 26, and dragged the position at front place for text being moved back into text, wherein, cursor remains on target insertion position and follows text and moves.
The terminal that the embodiment of the present invention provides, for a kind of with the terminal of touch-screen, be specifically as follows the portable mobile terminals such as mobile phone, pad, portable computer, also can for undertaken by external touch screen displays work desktop computer, with the terminal with touch screen Presentation Function such as the Set Top Box of touch screen displays collaborative work or set-top box integrated machine.The embodiment of the present invention is not restricted this.
The terminal that the embodiment of the present invention provides is by detecting user's slide on the touchscreen, dragging the text of input text area according to the data of slide generation, finally confirm the target insertion position of cursor, and insert cursor in the target insertion position determined; In the process of movement, display is amplified in the region at cursor place, facilitates user to check.The terminal that the embodiment of the present invention provides improves the efficiency of positioning cursor operation, and simple operation, saves user time, and the experience bringing user is good.
Further, please with reference to Fig. 3, Fig. 3 is the concrete implementing procedure that terminal that the embodiment of the present invention provides positions cursor, the executive agent of this implementing procedure can be arbitrary in Fig. 2 a, Fig. 2 b, Fig. 2 c, Fig. 2 d, Fig. 2 e, Fig. 2 f, Fig. 2 g described in, concrete, the flow process of this embodiment can comprise:
Step S310, the input state of importation word;
Step S311, the need of revising certain word inputted;
Step S312, drags input characters, regulates input cursor to assigned address;
Step S313, amendment word.
The embodiment of the present invention, by detecting user's slide on the touchscreen, dragging the text of input text area according to the data of slide generation, is finally confirmed the target insertion position of cursor, and is inserted cursor in the target insertion position determined.The scheme of the embodiment of the present invention can improve the efficiency of positioning cursor operation, and simple operation, can save user time, and the experience bringing user is good.
Fig. 4 is the structural representation of a kind of terminal provided in another embodiment of the present invention.As shown in Figure 4, this terminal comprises: at least one input equipment 41; At least one output device 42; At least one processor 43, such as CPU; With storer 44, above-mentioned input equipment 41, output device 42, processor 43 are connected by bus 45 with storer 44.
Wherein, above-mentioned input equipment 41 specifically can be the contact panel of terminal, comprises touch-screen and touch screen, the operational order on sense terminals contact panel.
Above-mentioned output device 42 specifically can be the display screen of terminal, for exporting, showing view data (comprising the first view data and the second view data).
Above-mentioned storer 44 can be high-speed RAM storer, also can be non-labile storer (non-volatile memory), such as magnetic disk memory.Above-mentioned storer 44 is for storing batch processing code, and above-mentioned input equipment 41, output device 42 and processor 43, for calling the program code stored in storer 44, perform and operate as follows:
Above-mentioned processor 43, for detecting user's operation on the touchscreen by input equipment 41, time also for user's slide on the touchscreen being detected, the cursor initial position at cursor place on display interface before the cursor locking slide in input text area is occurred;
Above-mentioned processor 43, also for dragging the text in input text area according to slide, and determines that the insertion position in the text of cursor after dragging is target insertion position;
Above-mentioned processor 43, also for cursor being inserted target insertion position and removing the locking to cursor.
In an alternative embodiment, processor 43 calls the program code stored in storer 44 when user's slide on the touchscreen being detected, the cursor initial position at cursor place on display interface before being occurred by cursor locking slide in input text area, is specifically as follows:
Carried out the track produced in operating process by touch-screen recording user on the touchscreen, and when getting the initial point position of track, determine cursor initial position;
Whether judge that user carries out operating on the touchscreen according to track is slide;
If judge, user carries out operation is on the touchscreen slide, then cursor is locked in cursor initial position.
Further alternative, processor 43 calls the program code stored in storer 44 and drags in the dragging process of the text in input text area according to slide, and display interface amplifies the text in preset range corresponding to display highlighting.
Further alternative, processor 43 calls the program code of storage in storer 44 according to the text in slide dragging input text area, is specifically as follows:
Preserve the track produced by the slide of terminal record;
The text in input text area is dragged according to track.
Further alternative, processor 43 calls the program code of storage in storer 44 according to the text in track dragging input text area, is specifically as follows:
According to terminating point position and the initial point position of track, determine sliding vector;
Text is dragged according to sliding vector.
Further alternative, processor 43 calls the program code stored in storer 44 and moves text according to sliding vector, is specifically as follows:
The drawing direction and the Vector Mode that drag text is determined based on sliding vector;
Text is dragged the distance isometric with Vector Mode along drawing direction.
Further alternative, processor 43 calls the program code stored in storer 44 and moves text according to sliding vector, is specifically as follows:
Terminal determines based on sliding vector the drawing direction dragging text;
When the drawing direction determined is for time left, text is moved to the left the distance of a character;
Or, when the drawing direction determined is for time to the right, the distance of a character that text is moved right;
Or, when the drawing direction determined is for time upwards, the distance of a row that text is moved up;
Or, when the drawing direction determined is downward, text is moved down the distance of a row.
Further alternative, processor 43 calls the program code stored in storer 44 determines to drag text drawing direction based on sliding vector, is specifically as follows:
Determine the angle [alpha] of sliding vector;
If < α≤2k π+π/4,2k π-π/4, then determine that drawing direction is to the right;
If < α≤2k π+3 π/4,2k π+π/4, then determine that drawing direction is upwards;
If < α≤2k π+5 π/4,2k π+3 π/4, then determine that drawing direction is left;
If < α≤2k π+7 π/4,2k π+5 π/4, then determine that drawing direction is downward.
Further alternative, processor 43 calls the program code stored in storer 44 and cursor is inserted target insertion position and after removing locking to cursor, also for performing following scheme:
Text is moved back into text and is dragged the position at front place, wherein, cursor remains on target insertion position and follows text and moves.
Concrete, the terminal introduced in the present embodiment can in order to implement the part or all of flow process in the text message display packing embodiment of composition graphs 1 of the present invention or Fig. 3 introduction.
Step in embodiment of the present invention method can be carried out order according to actual needs and be adjusted, merges and delete.
Module in embodiment of the present invention device or unit can carry out merging, divide and deleting according to actual needs.
Module or unit in the embodiment of the present invention, universal integrated circuit can be passed through, such as CPU (CentralProcessing Unit, central processing unit), or realized by ASIC (Application Specific IntegratedCircuit, special IC).
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Step in embodiment of the present invention method can be carried out order according to actual needs and be adjusted, merges and delete.
Module in embodiment of the present invention device or unit can carry out merging, divide and deleting according to actual needs.
Above disclosedly be only present pre-ferred embodiments, certainly the interest field of the present invention can not be limited with this, one of ordinary skill in the art will appreciate that all or part of flow process realizing above-described embodiment, and according to the equivalent variations that the claims in the present invention are done, still belong to the scope that invention is contained.

Claims (10)

1. a method for positioning cursor, is characterized in that, comprising:
When user's slide on the touchscreen being detected, the cursor in input text area is locked described slide occur before the cursor initial position at described cursor place on display interface;
Drag the text in described input text area according to described slide, and determine that the insertion position in the described text of described cursor after dragging is target insertion position;
Described cursor inserted described target insertion position and remove the locking to described cursor.
2. the method for claim 1, is characterized in that, described slide detects in the setting regions of touch-screen.
3. the method for claim 1, is characterized in that, described in when user's slide on the touchscreen being detected, the cursor in input text area is locked described slide occur before described cursor cursor initial position at place on display interface comprise:
By the track that user described in described touch-screen record produces in the enterprising line operate process of described touch-screen, and when getting the initial point position of described track, determine described cursor initial position;
Judge whether described user is slide at the enterprising line operate of described touch-screen according to described track;
If judge, described user is slide at the enterprising line operate of described touch-screen, then described cursor is locked in described cursor initial position.
4. the method for claim 1, is characterized in that, describedly drags in the dragging process of the text in described input text area according to described slide, and described display interface amplifies the text in preset range corresponding to the described cursor of display.
5. method as claimed in claim 3, it is characterized in that, the described text dragged in described input text area according to described slide comprises:
Preserve the described track that described slide produces;
The described text in described input text area is dragged according to described track.
6. method as claimed in claim 5, it is characterized in that, the described described text dragged in described input text area according to described track comprises:
According to terminating point position and the described initial point position of described track, determine sliding vector;
Described text is dragged according to described sliding vector.
7. method as claimed in claim 6, is characterized in that, describedly moves described text according to described sliding vector and comprises:
The drawing direction and the Vector Mode that drag described text is determined based on described sliding vector;
Described text is dragged the distance isometric with described Vector Mode along described drawing direction.
8. method as claimed in claim 6, is characterized in that, describedly moves described text according to described sliding vector and comprises:
The drawing direction dragging described text is determined based on described sliding vector;
When the described drawing direction determined is for time left, described text is moved to the left the distance of a character;
Or, when the described drawing direction determined is for time to the right, the distance of a character that described text is moved right;
Or, when the described drawing direction determined is for time upwards, the distance of a row that described text is moved up;
Or, when the described drawing direction determined is downward, described text is moved down the distance of a row.
9. method as claimed in claim 8, is characterized in that, describedly determines that the drawing direction dragging described text comprises based on described sliding vector:
Determine the angle [alpha] of described sliding vector;
If < α≤2k π+π/4,2k π-π/4, then determine that described drawing direction is for the right;
If < α≤2k π+3 π/4,2k π+π/4, then determine that described drawing direction is upwards;
If < α≤2k π+5 π/4,2k π+3 π/4, then determine that described drawing direction is for left;
If < α≤2k π+7 π/4,2k π+5 π/4, then determine that described drawing direction is downward.
10. the method for claim 1, is characterized in that, describedly described cursor is inserted described target insertion position and after removing locking to described cursor, also comprises:
Described text is moved back into described text and is dragged the position at front place, wherein, described cursor remains on described target insertion position and follows described text and moves.
CN201510065401.XA 2015-02-09 2015-02-09 Cursor positioning method Pending CN104657077A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510065401.XA CN104657077A (en) 2015-02-09 2015-02-09 Cursor positioning method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510065401.XA CN104657077A (en) 2015-02-09 2015-02-09 Cursor positioning method

Publications (1)

Publication Number Publication Date
CN104657077A true CN104657077A (en) 2015-05-27

Family

ID=53248275

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510065401.XA Pending CN104657077A (en) 2015-02-09 2015-02-09 Cursor positioning method

Country Status (1)

Country Link
CN (1) CN104657077A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105589640A (en) * 2015-12-14 2016-05-18 魅族科技(中国)有限公司 Input control method and mobile terminal
CN105718138A (en) * 2016-01-15 2016-06-29 百度在线网络技术(北京)有限公司 Method and device for determining cursor position in mobile terminal
CN106293377A (en) * 2015-06-08 2017-01-04 武大吉奥信息技术有限公司 A kind of method of High-precision Vector editor on touch apparatus
CN107957829A (en) * 2016-10-14 2018-04-24 腾讯科技(深圳)有限公司 A kind of input light target editor location regulation method, device and terminal device
CN108008875A (en) * 2017-11-23 2018-05-08 维沃移动通信有限公司 A kind of method and terminal device for controlling cursor movement
CN111078071A (en) * 2019-11-29 2020-04-28 联想(北京)有限公司 Information display method and information display device
WO2022057609A1 (en) * 2020-09-15 2022-03-24 International Business Machines Corporation Physical cursor control in microfluidic display devices

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
US20130215018A1 (en) * 2012-02-20 2013-08-22 Sony Mobile Communications Ab Touch position locating method, text selecting method, device, and electronic equipment
CN103279219A (en) * 2013-05-15 2013-09-04 北京小米科技有限责任公司 Method and system for moving cursor of touch screen device
US20140306897A1 (en) * 2013-04-10 2014-10-16 Barnesandnoble.Com Llc Virtual keyboard swipe gestures for cursor movement
CN104657078A (en) * 2015-02-09 2015-05-27 深圳市金立通信设备有限公司 Terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102654821A (en) * 2011-03-04 2012-09-05 腾讯科技(深圳)有限公司 Method and device for locating text cursor
US20130215018A1 (en) * 2012-02-20 2013-08-22 Sony Mobile Communications Ab Touch position locating method, text selecting method, device, and electronic equipment
CN102799358A (en) * 2012-06-20 2012-11-28 中兴通讯股份有限公司 Method and device for determining display position of cursor
US20140306897A1 (en) * 2013-04-10 2014-10-16 Barnesandnoble.Com Llc Virtual keyboard swipe gestures for cursor movement
CN103279219A (en) * 2013-05-15 2013-09-04 北京小米科技有限责任公司 Method and system for moving cursor of touch screen device
CN104657078A (en) * 2015-02-09 2015-05-27 深圳市金立通信设备有限公司 Terminal

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106293377A (en) * 2015-06-08 2017-01-04 武大吉奥信息技术有限公司 A kind of method of High-precision Vector editor on touch apparatus
CN105589640A (en) * 2015-12-14 2016-05-18 魅族科技(中国)有限公司 Input control method and mobile terminal
CN105589640B (en) * 2015-12-14 2019-04-23 珠海市魅族科技有限公司 A kind of input control method and mobile terminal
CN105718138A (en) * 2016-01-15 2016-06-29 百度在线网络技术(北京)有限公司 Method and device for determining cursor position in mobile terminal
CN107957829A (en) * 2016-10-14 2018-04-24 腾讯科技(深圳)有限公司 A kind of input light target editor location regulation method, device and terminal device
CN107957829B (en) * 2016-10-14 2021-01-22 腾讯科技(深圳)有限公司 Method and device for adjusting editing position of input cursor and terminal equipment
CN108008875A (en) * 2017-11-23 2018-05-08 维沃移动通信有限公司 A kind of method and terminal device for controlling cursor movement
CN111078071A (en) * 2019-11-29 2020-04-28 联想(北京)有限公司 Information display method and information display device
WO2022057609A1 (en) * 2020-09-15 2022-03-24 International Business Machines Corporation Physical cursor control in microfluidic display devices
US11481069B2 (en) 2020-09-15 2022-10-25 International Business Machines Corporation Physical cursor control in microfluidic display devices
GB2614161A (en) * 2020-09-15 2023-06-28 Ibm Physical cursor control in microfluidic display devices
GB2614161B (en) * 2020-09-15 2023-12-20 Ibm Physical cursor control in microfluidic display devices

Similar Documents

Publication Publication Date Title
CN104657077A (en) Cursor positioning method
RU2679348C2 (en) Apparatus and method for displaying chart in electronic device
US7256773B2 (en) Detection of a dwell gesture by examining parameters associated with pen motion
US20110320978A1 (en) Method and apparatus for touchscreen gesture recognition overlay
US20120096345A1 (en) Resizing of gesture-created markings for different display sizes
CN104808930A (en) Operating element control method
US20140189482A1 (en) Method for manipulating tables on an interactive input system and interactive input system executing the method
WO2019085921A1 (en) Method, storage medium and mobile terminal for operating mobile terminal with one hand
CN103838456A (en) Method and system for controlling display positions of desktop icons
CN104205033A (en) Method of controlling touch-based input
CN104407798A (en) Virtual key control method and device as well as terminal
CN103699259A (en) Cursor positioning method, cursor positioning system and touch equipment
CN104536643A (en) Icon dragging method and terminal
CN104820548A (en) Screenshot method and device
CN104657078A (en) Terminal
CN102750035B (en) The determination method and apparatus of display position of cursor
CN110427139B (en) Text processing method and device, computer storage medium and electronic equipment
CN111124237A (en) Control method and device of touch electronic board and storage medium
CN104750412A (en) Method for controlling display interfaces
CN105653131A (en) Application search method and terminal
CN105824548A (en) Methods and devices for merging and splitting spreadsheet cells
CN104317492A (en) Wallpaper setting method
CN104777978A (en) Terminal
EP2669783A1 (en) Virtual ruler for stylus input
CN104820550A (en) 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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150527