CN104657078B - A kind of terminal - Google Patents
A kind of terminal Download PDFInfo
- 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
- cursor
- terminal
- slide
- unit
- 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
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
Technical field
The present invention relates to technical field of touch control more particularly to a kind of terminals.
Background technique
When user's using terminal editor's text, a text box can be presented on the input interface of terminal, have in text box
Text through inputting and the cursor for being used to indicate current character input position.As the input of user operates, cursor can be with
The increased direction of text is mobile.If the user find that needing to move the cursor to wrong place when the text edited is wrong and carrying out
It revises.
Mobile light calibration method is usually to click directly on target position with prompt shift position, when in text box
Text special hour, user are easy to accidentally contact adjacent locations, and target position can just be clicked by needing repeatedly to click.The prior art
A kind of scheme of mobile cursor is provided, detect user at continuous touch 1 second or more on the text inputted, automatic spring one
A magnifying glass amplifies the text of user touch place, and user is assisted to move the cursor to target position.Although prior art
The accuracy of mobile cursor operations is improved, but user moves cursor every time and at least to wait 1 second each time, it is a large amount of to modify
Text maninulation can waste the time of user, and the ways such as dragging cursor will affect mobile cursor operations after continuous touch 1 second or more
Efficiency equally has inconvenient drawback.
Summary of the invention
The embodiment of the present invention provides a kind of terminal, can be improved the efficiency of positioning cursor operations, and it is convenient to operate.
Specifically, the embodiment of the invention provides a kind of terminal, can include:
Lock cell when for detecting the slide of user on the touchscreen, enters text into the cursor lock in area
Determine 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 be
Target insertion position;
Insertion and lifting unit, for the cursor to be inserted into the target insertion position;And it releases to the cursor
Locking.
Terminal provided in an embodiment of the present invention is produced by detection user slide on the touchscreen, according to slide
The text of raw data dragging input text area is finally confirmed the target insertion position of cursor, and is inserted in the target determined
Enter position insertion cursor.The scheme of the embodiment of the present invention can be improved the efficiency of positioning cursor operations, and it is convenient to operate.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached
Figure is briefly described, it should be apparent that, the accompanying drawings in the following description is some embodiments of the embodiment of the present invention, for ability
For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 is an a kind of embodiment flow diagram of positioning light calibration method of the invention;
Fig. 2 a is a kind of structural schematic diagram of the terminal provided in first embodiment of the invention;
Fig. 2 b is a kind of structural schematic diagram of the terminal provided in second embodiment of the invention;
Fig. 2 c is a kind of structural schematic diagram of the terminal provided in third embodiment of the invention;
Fig. 2 d is a kind of structural schematic diagram of the terminal provided in fourth embodiment of the invention;
Fig. 2 e is a kind of structural schematic diagram of the terminal provided in fifth embodiment of the invention;
Fig. 2 f is a kind of structural schematic diagram of the terminal provided in sixth embodiment of the invention;
Fig. 2 g is a kind of structural schematic diagram of the terminal provided in seventh embodiment of the invention;
Fig. 3 is an a kind of embodiment flow diagram of terminal of the invention;
Fig. 4 is a kind of structural schematic diagram of the terminal provided in another embodiment of the present invention;
Fig. 5 is the first interface schematic diagram provided in the embodiment of the present invention;
Fig. 6 is second of the interface schematic diagram provided in the embodiment of the present invention;
Fig. 7 is the third interface schematic diagram provided in the embodiment of the present invention;
Fig. 8 is the 4th kind of interface schematic diagram provided in the embodiment of the present invention;
Fig. 9 is the 5th kind of interface schematic diagram provided in the embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
The embodiment of the present invention provides a kind of positioning light calibration method, and subject of implementation is a kind of terminal with touch screen,
It is specifically as follows the portable mobile terminals such as mobile phone, pad, portable computer, or carry out work by external touch screen displays
The desktop computer of work, the set-top box to cooperate with touch screen displays or set-top box integrated machine etc. have touch screen display function
Terminal.Specifically, the method for the embodiment of the present invention can include:, will when terminal detects the slide of user on the touchscreen
Cursor in input text area locks the cursor initial bit where the preceding cursor occurs for the slide in the display interface
It sets;The text in the input text area is dragged according to the slide, and determines the text of the cursor after dragging
Insertion position in this is target insertion position;The cursor is inserted into the target insertion position and is released to the cursor
Locking.The scheme of the embodiment of the present invention can be improved the efficiency of positioning cursor operations.
With reference to the accompanying drawing and specific embodiment, the technical solution of the embodiment of the present invention is described in detail.
As shown in Figure 1, a kind of embodiment for positioning light calibration method provided by the invention may comprise steps of:
Step S110 when terminal detects the slide of user on the touchscreen, enters text into the cursor lock in area
Determine the cursor initial position where preceding cursor occurs for slide in the display interface;
Step S111, terminal drag the text in input text area according to slide, and determine cursor after dragging
Insertion position in text is target insertion position;
Cursor is inserted into target insertion position and releases the locking to cursor by step S112, terminal.
The embodiment of the present invention supports user to drag text in input text area, to reach light in change input text area
The purpose of cursor position.Input text area as shown in Figure 5, wherein some texts have been had input, when the text that discovery has inputted
When wrong or needs add more texts in the text inputted, need to move a cursor to target position, for example, with
Target insertion position required for family can be between ", " and "available".
Specifically, when user is operated on the touchscreen by contact medium (such as finger, stylus), terminal can be instant
It obtains and touches in the starting point coordinate of display interface corresponding to the contact point of medium on the touchscreen, when touch medium is in touch screen
On when having carried out sliding, terminal can detect that user will be on the touchscreen according to the touch situation got by touch screen
The slide made, and record each contact point coordinate institute group that slide generates in the process, corresponding to display interface
At sliding trace.
Still optionally further, the mobile scheme of cursor provided in an embodiment of the present invention is that user is supported to pass through mobile text input
Text in area relocates cursor indirectly, is that will test the time of slide as trigger point, triggers cursor and reset
Bit manipulation, the terminal of the embodiment of the present invention could dictate that the setting regions for detecting slide, as shown in figure 5, terminal can
Setting regions is set by the region corresponding to input text area on display interface in touch screen, and detection is in setting regions
The no slide existed for carrying out reorientation cursor operations.Terminal can also by corresponding to entire display interface in touch screen
Region is set as setting regions, and provides when showing input text area on display interface, by what is got from touch screen
Slide, which is considered as, resets bit manipulation to the cursor in input text area.
Still optionally further, when terminal detects the slide of user on the touchscreen, the light in area is entered text into
Mark locks the specific implementation of the cursor initial position operation where preceding cursor occurs for slide in the display interface can include: whole
End records user by touch screen and carries out the track generated in operating process on the touchscreen, and in the starting point for getting track
When position, cursor initial position is determined;Whether it is sliding behaviour that terminal judges that user is operated on the touchscreen according to track
Make;If judging that user carries out operation on the touchscreen is slide, cursor is locked in cursor initial position.For example,
When terminal detects slide, it can determine that cursor initial position is according to the initial point position of record together referring to Fig. 5
Between " packet " and " Kazakhstan ", and cursor is locked in cursor initial position.
Still optionally further, terminal is dragged according to slide in the dragging process of the text in input text area, can be made
Amplify the text in the corresponding preset range of display highlighting on display interface.The effect of amplification display can refer to the figure of subsequent offer
6 to Fig. 9.
Still optionally further, terminal can be wrapped according to the specific implementation that slide drags the text maninulation in input text area
Include: terminal saves track caused by the slide recorded as terminal;Terminal drags the text in input text area according to track
This.If track caused by slide is track from left to right, terminal moves right text corresponding distance, if sliding
Dynamic to operate generated track as track from right to left, then text is moved to the left corresponding distance by terminal, if slide
Generated track is track from bottom to top, then text is moved up corresponding distance by terminal, if produced by slide
Track be track from top to bottom, then text is moved down corresponding distance by terminal, further, if slide is produced
The terminating point of raw track is oblique line directions position relative to starting point, then text will be finally according to terminating point relative to starting
Point is that oblique line directions are moved.
Still optionally further, terminal drags the specific implementation of the text maninulation in input text area according to track can include:
Terminal determines sliding vector according to the terminating point position of track and initial point position;Terminal drags text according to sliding vector.
That is, the size and Orientation of sliding vector will determine the final shift position of text.
Still optionally further, terminal is according to the mobile text maninulation of sliding vector when it is implemented, can be directly by sliding vector
The mould distance foundation mobile as text, for example, can preset ratio ruler, and establish sliding vector mould and final text it is mobile away from
From proportionate relationship, e.g., settable proportionate relationship is 1:1, then terminal can according to the mobile text maninulation specific implementation of sliding vector
It include: the drawing direction and Vector Mode that terminal determines dragging text based on sliding vector;Terminal drags text along drawing direction
It is dynamic it is isometric with Vector Mode at a distance from.For example, can be together referring to Fig. 6, when target insertion position is between " going back " and " having ", terminal
The direction that can determine that sliding vector by slide is that the right, and the mould of sliding vector is 3 characters, and terminal is by text
Moved right the distances of three characters, and positioned a cursor over again indirectly by way of mobile text " go back " and
Between " having ".
Still optionally further, after cursor is inserted into target insertion position and released to the locking of cursor by terminal, it is also necessary to will
Text is moved back into the position at the dragged preceding place of text, wherein cursor is maintained at target insertion position and follows text mobile.Please
Text and cursor can be moved back to together, on interface shown in Fig. 7 after terminal indirectly relocates cursor referring to Fig. 7 together
Cursor follows text mobile, is located between " going back " and " having " always.
Still optionally further, terminal is according to the mobile text maninulation of sliding vector when it is implemented, can also swear only with reference to sliding
The direction of amount, and text is moved to along the direction of sliding vector the distance of regulation character, for example, terminal is moved according to sliding vector
The specific implementation of dynamic text maninulation can include: terminal determines the drawing direction of dragging text based on sliding vector;When what is determined
When drawing direction is to the left, text is moved to the left the distance of a character by terminal;Alternatively, when the drawing direction that determine be to
When right, terminal moves right text the distance of one character;Alternatively, terminal will when the drawing direction determined is upward
Text moves up the distance of a row, alternatively, text is moved down one by terminal when the drawing direction determined is downward
The distance of a row.For example, being based on interface shown in Fig. 7, when the drawing direction detected is downward, terminal directly exists cursor
Position corresponding to lastrow is set as target insertion position, and text is moved down to the distance of a row, after mobile
Effect can refer to Fig. 8, in addition, cursor and text are moved back to by terminal, most after movement terminates, contact medium leaves setting range
Whole display effect is as shown in Figure 9.
Still optionally further, the specific implementation that terminal determines that the drawing direction of dragging text operates based on sliding vector can wrap
Include: terminal determines the angle [alpha] of sliding vector;If+π/4 the 2k π < α≤2k π of-π/4, terminal determines that drawing direction is to the right;
If+3 π/4 the 2k π < α≤2k of+π/4 π, terminal determine that drawing direction is upward;If+5 π/4 the 2k π < α≤2k of+3 π/4 π, eventually
It holds and determines that drawing direction is to the left;If+7 π/4 the 2k π < α≤2k of+5 π/4 π, terminal determines that drawing direction is downward (wherein, k
For integer, π is pi).
The embodiment of the present invention is dragged by detection user slide on the touchscreen, according to the data that slide generates
The text of dynamic input text area is finally confirmed the target insertion position of cursor, and is inserted into the target insertion position determined
Cursor;In the process of moving, display is amplified into the region where cursor, user is facilitated to check.The scheme of the embodiment of the present invention
Improve the efficiency of positioning cursor operations.
The embodiment of the present invention also provides a kind of terminal, can include: cursor lock cell, for detecting that user is touching
When slide on screen, enters text into the cursor in area and lock before the slide occurs the cursor in display interface
The cursor initial position at upper place;Text tug unit, for being dragged in the input text area according to the slide
Text;Target insertion position determination unit, for determining that insertion position of the cursor in the text after dragging is mesh
Mark insertion position;Insertion and lifting unit, for the cursor to be inserted into the target insertion position;And it releases to the cursor
Locking.The terminal of the embodiment of the present invention can be improved the efficiency of positioning cursor operations.
With reference to the accompanying drawing and specific embodiment, the technical solution of device in the embodiment of the present invention is carried out specifically
It is bright.
Fig. 2 a is the structure composition schematic diagram of the terminal of the embodiment of the present invention.The device of the embodiment can be used for executing Fig. 1
Shown in method, specifically, the device of the embodiment include: cursor lock cell 21, text tug unit 22, target insertion position
Determination unit 23 and insertion and lifting unit 24 are set, can also include amplifying display unit 25 and being moved back to unit 26, the present embodiment
Cursor lock cell 21 may further include recording unit 211, initial position determination unit 212,213 and of judging unit again
The text tug unit 22 of lock cell 214, the present embodiment may further include storage unit 221 and the first tug unit again
222, first tug unit 222 of the present embodiment may further include sliding vector determination unit 2221 again and the second dragging is single
Second tug unit 2222 of member 2222, the present embodiment may further include drawing direction and Vector Mode determination unit again
22221 and third tug unit 22222, in which:
Cursor lock cell 21 enters text into area when for detecting the slide of user on the touchscreen
Cursor locks the cursor initial position where preceding cursor occurs for slide in the display interface;
Text tug unit 22, for dragging the text in input text area according to slide;
Target insertion position determination unit 23, for determining that insertion position of the cursor in the text after dragging is inserted for target
Enter position;
Insertion and lifting unit 24, for cursor to be inserted into target insertion position;And locking of the releasing to cursor.
The embodiment of the present invention supports user to drag text in input text area, to reach light in change input text area
The purpose of cursor position.Input text area as shown in Figure 5, wherein some texts have been had input, when the text that discovery has inputted
When wrong or needs add more texts in the text inputted, need to move a cursor to target position, for example, with
Target insertion position required for family can be between ", " and "available".
Specifically, when user is operated on the touchscreen by contact medium (such as finger, stylus), terminal can be instant
It obtains and touches in the starting point coordinate of display interface corresponding to the contact point of medium on the touchscreen, when touch medium is in touch screen
On when having carried out sliding, terminal can detect that user will be on the touchscreen according to the touch situation got by touch screen
The slide made, and record each contact point coordinate institute group that slide generates in the process, corresponding to display interface
At sliding trace.
Still optionally further, the mobile scheme of cursor provided in an embodiment of the present invention is that user is supported to pass through mobile text input
Text in area relocates cursor indirectly, is that will test the time of slide as trigger point, triggers cursor and reset
Bit manipulation, the terminal of the embodiment of the present invention could dictate that the setting regions for detecting slide, as shown in figure 5, terminal can
Setting regions is set by the region corresponding to input text area on display interface in touch screen, and detection is in setting regions
The no slide existed for carrying out reorientation cursor operations.Terminal can also by corresponding to entire display interface in touch screen
Region is set as setting regions, and provides when showing input text area on display interface, by what is got from touch screen
Slide, which is considered as, resets bit manipulation to the cursor in input text area.
Still optionally further, please with reference to Fig. 2 b, the cursor lock cell 21 of the embodiment of the present invention can also be further
Include:
Recording unit 211 carries out the track generated in operating process for recording user by touch screen on the touchscreen;
Initial position determination unit 212, for determining cursor initial bit in the initial point position for getting track
It sets;
Whether judging unit 213 is slide for judging that user is operated on the touchscreen according to track;
Lock cell 214, for judging unit 213 judge user on the touchscreen carry out operation be slide when,
Cursor is locked in cursor initial position.
Still optionally further, please with reference to Fig. 2 c, the terminal of the embodiment of the present invention is defeated according to slide dragging text
In the dragging process for entering the text in area, it can make to amplify display highlighting pair on display interface by amplification display unit 25 therein
The text in preset range answered.
Amplify display unit 25, for text tug unit dragging according to the text in slide dragging input text area
During dynamic, amplify the text in the corresponding preset range of display highlighting in the display interface.
Still optionally further, please with reference to Fig. 2 d, the text tug unit 22 of the embodiment of the present invention can also be further
Include:
Storage unit 221, for saving track caused by the slide recorded as terminal;
First tug unit 222, for dragging the text in input text area according to track.
In the embodiment of the present invention, if track caused by slide is track from left to right, terminal by text to
Corresponding distance is moved right, if track caused by slide is track from right to left, text is moved to the left by terminal
Corresponding distance, if track caused by slide is track from bottom to top, terminal moves up text accordingly
Distance, if track caused by slide is track from top to bottom, text is moved down corresponding distance by terminal, into
One step, if the terminating point of track produced by slide is oblique line directions position relative to starting point, text will most
It is eventually that oblique line directions are moved relative to starting point according to terminating point.
Still optionally further, please with reference to Fig. 2 e, the first tug unit 222 of the embodiment of the present invention can also be further
Include:
Sliding vector determination unit 2221, for determining to slide according to the terminating point position of track and initial point position
Vector;
Second tug unit 2222, for dragging text according to sliding vector.That is, the size and Orientation of sliding vector will be certainly
Determine the final shift position of text.
Still optionally further, still optionally further, terminal is according to the mobile text maninulation of sliding vector when it is implemented, can be straight
Connect the distance foundation that the mould of sliding vector is mobile as text, for example, can preset ratio ruler, and establish sliding vector mould with most
The proportionate relationship of whole text moving distance, e.g., when Set scale relationship is 1:1, please with reference to Fig. 2 f, the embodiment of the present invention
The second tug unit 2222 can further include:
Drawing direction and Vector Mode determination unit 22221, for determining the drawing direction of dragging text based on sliding vector
And Vector Mode;
Third tug unit 22222, for by text along drawing direction drag with Vector Mode it is isometric at a distance from.
Still optionally further, terminal is according to the mobile text maninulation of sliding vector when it is implemented, can also swear only with reference to sliding
The direction of amount, and text is moved to along the direction of sliding vector the distance of regulation character, for example,
Second tug unit 2222 is also used to determine the drawing direction of dragging text based on sliding vector;
Text is moved to the left a word when drawing direction for being also used to determine is to the left by the second tug unit 2222
The distance of symbol;
Alternatively,
Second tug unit 2222 moves right text one word when the drawing direction for being also used to determine is to the right
The distance of symbol;
Alternatively,
Text is moved up a row when drawing direction for being also used to determine is upward by the second tug unit 2222
Distance.
Alternatively,
Text is moved down a row when drawing direction for being also used to determine is downward by the second tug unit 2222
Distance.
Still optionally further, the second tug unit 2222 is also used to determine the angle [alpha] of sliding vector;It is also used to 2k π-
When the < α≤2k π+π/4 of π/4, determine that drawing direction is to the right;When being also used to 2k π < α≤2k+3 π/4 of π of+π/4, dragging side is determined
To for upwards;When being also used to 2k π < α≤2k+5 π/4 of π of+3 π/4, determine that drawing direction is to the left;Be also used to the 2k π < of+5 π/4 α≤
When 2k π+7 π/4, determine that drawing direction is downward (wherein, k is integer, and π is pi).
Still optionally further, after cursor is inserted into target insertion position and released to the locking of cursor by terminal, it is also necessary to will
Text is moved back into the position at the dragged preceding place of text, wherein cursor is maintained at target insertion position and follows text mobile.Please
Together referring to Fig. 2 g, the terminal of the embodiment of the present invention, which can further include, is moved back to unit 26, for text to be moved back into text
Position where before this is dragged, wherein cursor is maintained at target insertion position and follows text mobile.
Terminal provided in an embodiment of the present invention is a kind of terminal with touch screen, is specifically as follows mobile phone, pad, portable
The portable mobile terminals such as computer, or the desktop computer and touch screen to be worked by external touch screen displays is shown
Set-top box or set-top box integrated machine that device cooperates etc. have the terminal of touch screen display function.The embodiment of the present invention to this not
It is restricted.
Terminal provided in an embodiment of the present invention is produced by detection user slide on the touchscreen, according to slide
The text of raw data dragging input text area is finally confirmed the target insertion position of cursor, and is inserted in the target determined
Enter position insertion cursor;In the process of moving, display is amplified into the region where cursor, user is facilitated to check.The present invention is real
The terminal for applying example offer improves the efficiency of positioning cursor operations, and it is convenient to operate, and saves user time, brings the experience of user
It is good.
It further, is that terminal provided in an embodiment of the present invention carries out positioning one of cursor please with reference to Fig. 3, Fig. 3
It is embodied process, the executing subject of the implementing procedure can be Fig. 2 a, Fig. 2 b, Fig. 2 c, Fig. 2 d, Fig. 2 e, Fig. 2 f, appoint in Fig. 2 g
Described in one, specifically, the process of the embodiment may include:
Step S310, the input state of importation text;
Step S311, if need to modify some text inputted;
Step S312, dragging have inputted text, adjust input cursor to designated position;
Step S313 modifies text.
The embodiment of the present invention is dragged by detection user slide on the touchscreen, according to the data that slide generates
The text of dynamic input text area is finally confirmed the target insertion position of cursor, and is inserted into the target insertion position determined
Cursor.The scheme of the embodiment of the present invention can be improved the efficiency of positioning cursor operations, and it is convenient to operate, and can save user time, band
Experience to user is good.
Fig. 4 is a kind of structural schematic diagram of the terminal provided in another embodiment of the present invention.As shown in figure 4, the terminal packet
It includes: at least one input equipment 41;At least one output equipment 42;At least one processor 43, such as CPU;With memory 44,
Above-mentioned input equipment 41, output equipment 42, processor 43 and memory 44 are connected by bus 45.
Wherein, the touch panel of above-mentioned input equipment 41 concretely terminal, including touch screen and touch screen, for detecting
Operational order in terminal touch panel.
The display screen of above-mentioned output equipment 42 concretely terminal, for exporting, display image data (including the first image
Data and the second image data).
Above-mentioned memory 44 can be high speed RAM memory, can also be non-labile memory (non-volatile
), such as magnetic disk storage memory.Above-mentioned memory 44 is used to store a set of program code, and above-mentioned input equipment 41, output are set
It is used to call the program code stored in memory 44 for 42 and processor 43, perform the following operations:
Above-mentioned processor 43 is also used to detect for detecting the operation of user on the touchscreen by input equipment 41
When user's slide on the touchscreen, cursor is on display circle before the cursor locking slide entered text into area occurs
Cursor initial position where go face;
Above-mentioned processor 43 is also used to drag the text in input text area according to slide, and determines that cursor is dragging
The insertion position in text after dynamic is target insertion position;
Above-mentioned processor 43 is also used to cursor being inserted into target insertion position and releases the locking to cursor.
In an alternative embodiment, processor 43 calls the program code stored in memory 44 to detect user in touch screen
On slide when, enter text into area cursor locking slide occur before cursor in the display interface where light
Initial position is marked, is specifically as follows:
User is recorded by touch screen and carries out the track generated in operating process on the touchscreen, and is getting track
When initial point position, cursor initial position is determined;
Whether judge that user is operated on the touchscreen according to track is slide;
If judging that user carries out operation on the touchscreen is slide, cursor is locked in cursor initial position.
Further alternative, processor 43 calls the program code stored in memory 44 to drag text according to slide
In the dragging process of text in input area, amplify the text in the corresponding preset range of display highlighting in the display interface.
Further alternative, processor 43 calls the program code stored in memory 44 to drag text according to slide
Text in input area, is specifically as follows:
Save track caused by the slide recorded as terminal;
The text in input text area is dragged according to track.
Further alternative, processor 43 calls the program code stored in memory 44 to drag text input according to track
Text in area, is specifically as follows:
According to the terminating point position of track and initial point position, sliding vector is determined;
Text is dragged according to sliding vector.
Further alternative, processor 43 calls the program code stored in memory 44 according to the mobile text of sliding vector
This, is specifically as follows:
The drawing direction and Vector Mode of dragging text are determined based on sliding vector;
By text along drawing direction drag with Vector Mode it is isometric at a distance from.
Further alternative, processor 43 calls the program code stored in memory 44 according to the mobile text of sliding vector
This, is specifically as follows:
Terminal determines the drawing direction of dragging text based on sliding vector;
When the drawing direction determined is to the left, text is moved to the left to the distance of a character;
Alternatively, text is moved right the distance of a character when the drawing direction determined is to the right;
Alternatively, text to be moved up to the distance of a row when the drawing direction determined is upward;
Alternatively, text to be moved down to the distance of a row when the drawing direction determined is downward.
Further alternative, processor 43 is called the program code stored in memory 44 to be determined based on sliding vector and dragged
The drawing direction of text, is specifically as follows:
Determine the angle [alpha] of sliding vector;
If+π/4 the 2k π < α≤2k π of-π/4, it is determined that drawing direction is to the right;
If+3 π/4 the 2k π < α≤2k of+π/4 π, it is determined that drawing direction is upward;
If+5 π/4 the 2k π < α≤2k of+3 π/4 π, it is determined that drawing direction is to the left;
If+7 π/4 the 2k π < α≤2k of+5 π/4 π, it is determined that drawing direction is downward.
Further alternative, processor 43 calls the program code stored in memory 44 that cursor insertion target is inserted into position
After setting and releasing the locking to cursor, it is also used to execute following scheme:
Text is moved back into the position at the dragged preceding place of text, wherein cursor is maintained at target insertion position and follows
Text is mobile.
Specifically, the terminal introduced in the present embodiment can combine the text of Fig. 1 Fig. 3 introduction to implement the present invention
Process some or all of in information display method embodiment.
The steps in the embodiment of the present invention can be sequentially adjusted, merged and deleted according to actual needs.
Module or unit in the device of that embodiment of the invention can be combined, divided and deleted according to actual needs.
Module or unit in the embodiment of the present invention can pass through universal integrated circuit, such as CPU (Central
Processing Unit, central processing unit), or pass through ASIC (Application Specific Integrated
Circuit, specific integrated circuit) Lai Shixian.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Instruct relevant hardware to complete by computer program, program can be stored in a computer-readable storage medium,
The program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, storage medium can for magnetic disk, CD,
Read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory,
RAM) etc..
The steps in the embodiment of the present invention can be sequentially adjusted, merged and deleted according to actual needs.
Module or unit in the device of that embodiment of the invention can be combined, divided and deleted according to actual needs.
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly
It encloses, those skilled in the art can understand all or part of the processes for realizing the above embodiment, and wants according to right of the present invention
Made equivalent variations is sought, is still belonged to the scope covered by the invention.
Claims (10)
1. a kind of terminal characterized by comprising
Cursor lock cell when for detecting the slide of user on the touchscreen, enters text into the cursor lock in area
Determine 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.
2. terminal as described in claim 1, which is characterized in that the slide is the lock cell setting in touch screen
Determine to detect in region.
3. terminal as described in claim 1, which is characterized in that the cursor lock cell includes:
Recording unit, for recording what the user carried out generating in operating process on the touch screen by the touch screen
Track;
Initial position determination unit, for when getting the initial point position of the track, determining the cursor initial bit
It sets;
Whether judging unit is sliding behaviour for judging that the user is operated on the touch screen according to the track
Make;
Lock cell, judging that the user carries out operation on the touch screen for the judging unit is slide
When, the cursor is locked in the cursor initial position.
4. terminal as described in claim 1, which is characterized in that further include:
Amplify display unit, the text in the input text area is dragged according to the slide for the text tug unit
In this dragging process, amplification shows the text in the corresponding preset range of the cursor on the display interface.
5. terminal as claimed in claim 3, which is characterized in that the text tug unit includes:
Storage unit, for saving the track caused by the slide;
First tug unit, for dragging the text in the input text area according to the track.
6. terminal as claimed in claim 5, which is characterized in that the tug unit includes:
Sliding vector determination unit, for according to the track terminating point position and the initial point position, determine to slide
Vector;
Second tug unit, for dragging the text according to the sliding vector.
7. terminal as claimed in claim 6, which is characterized in that second tug unit includes:
Drawing direction and Vector Mode determination unit, for determined based on the sliding vector drag the text drawing direction and
Vector Mode;
Third tug unit, for by the text along the drawing direction drag with the Vector Mode it is isometric at a distance from.
8. terminal as claimed in claim 6, which is characterized in that
Second tug unit is also used to determine the drawing direction for dragging the text based on the sliding vector;
The text is moved to the left one when the drawing direction for being also used to determine is to the left by second tug unit
The distance of a character;
Alternatively,
The text is moved right one when the drawing direction for being also used to determine is to the right by second tug unit
The distance of a character;
Alternatively,
The text is moved up one when the drawing direction for being also used to determine is upward by second tug unit
The distance of a row;
Alternatively,
The text is moved down one when the drawing direction for being also used to determine is downward by second tug unit
The distance of a row.
9. terminal as claimed in claim 8, which is characterized in that
Second tug unit, is also used to determine the angle [alpha] of the sliding vector;
When being also used to the 2k π < α≤2k π+π/4 of-π/4, determine that the drawing direction is to the right;
When being also used to 2k π < α≤2k+3 π/4 of π of+π/4, determine that the drawing direction is upward;
When being also used to 2k π < α≤2k+5 π/4 of π of+3 π/4, determine that the drawing direction is to the left;
When being also used to 2k π < α≤2k+7 π/4 of π of+5 π/4, determine the drawing direction be it is downward, the k be integer.
10. terminal as described in claim 1, which is characterized in that further include:
It is moved back to unit, for the text to be moved back into the position at the dragged preceding place of the text, wherein the cursor is kept
In the target insertion position and follow the text mobile.
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)
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)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1845056A (en) * | 2006-04-29 | 2006-10-11 | 怡利电子工业股份有限公司 | Input method capable of displaying big keyboard on 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)
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 |
-
2015
- 2015-02-09 CN CN201510068176.5A patent/CN104657078B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1845056A (en) * | 2006-04-29 | 2006-10-11 | 怡利电子工业股份有限公司 | Input method capable of displaying big keyboard on 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 |
---|---|---|
US11947782B2 (en) | Device, method, and graphical user interface for manipulating workspace views | |
US8704783B2 (en) | Easy word selection and selection ahead of finger | |
US9703462B2 (en) | Display-independent recognition of graphical user interface control | |
US9292161B2 (en) | Pointer tool with touch-enabled precise placement | |
US7903002B2 (en) | Electronic device having vibration input recognition and method | |
CN104657077A (en) | Cursor positioning method | |
CN104360808A (en) | Method and device for editing documents by using symbolic gesture instructions | |
CN105144037A (en) | Device, method, and graphical user interface for entering characters | |
CN104571852A (en) | Icon moving method and device | |
CN103473003A (en) | Character input error correction method and device | |
CN101763218A (en) | Input method for handheld equipment | |
WO2012151934A1 (en) | Method, device and terminal for deleting a character on terminal with touch screen | |
CN103838456A (en) | Method and system for controlling display positions of desktop icons | |
CN103718149A (en) | Processing method of text and touch panel equipment | |
JP6448639B2 (en) | Text selection method, apparatus and terminal | |
CN104808930A (en) | Operating element control method | |
CN102937864A (en) | Method and device for determining selected texts on touch terminals | |
CN104657078B (en) | A kind of terminal | |
CN103823547A (en) | Mobile terminal and cursor control method thereof | |
CN103870179A (en) | Method and device for controlling touch screen in portable terminal | |
CN105912170A (en) | Mobile terminal and touch control method thereof | |
US20090079704A1 (en) | Method and apparatus for inputting operation instructions using a dual touch panel of a mobile communication device | |
CN103645829A (en) | Character deletion method and portable terminal utilizing same | |
KR101397711B1 (en) | Device and method implementing for particular function based on writing | |
CN105302466B (en) | A kind of text operation method 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 |