CN104932807A - Cursor positioning method and touch screen device - Google Patents
Cursor positioning method and touch screen device Download PDFInfo
- Publication number
- CN104932807A CN104932807A CN201410103409.6A CN201410103409A CN104932807A CN 104932807 A CN104932807 A CN 104932807A CN 201410103409 A CN201410103409 A CN 201410103409A CN 104932807 A CN104932807 A CN 104932807A
- Authority
- CN
- China
- Prior art keywords
- text
- text cursor
- cursor
- mentioned
- triggered
- 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
Links
Landscapes
- Position Input By Displaying (AREA)
Abstract
The present invention discloses a cursor positioning method and a touch screen device. The cursor positioning method comprises: if monitoring an instruction for starting text selection, which is input by a user, displaying a first text cursor, a second text cursor and a suspension control; and when detecting that the suspension control is triggered, moving the first text cursor or the second text cursor by one bit, wherein texts positioned between the first text cursor and the second text cursor are selected texts. According to the technical scheme provided by the present invention, difficulty in accurately positioning the cursor can be effectively reduced and usability that the user accurately selects text contents is improved.
Description
Technical field
The present invention relates to areas of information technology, be specifically related to a kind of cursor positioning method and touch-screen equipment.
Background technology
Text selecting, as an important subsidiary function, is used widely at present in numerous touch-screen equipment (as smart mobile phone, panel computer etc.) and application.
Existing text selecting is located based on text cursor, one or more character, the letter or number in text is selected by the text cursor dragged in text interface, particular content comprises: can show two text cursors (supposing to be respectively text cursor A and text cursor B) when text interface is in the state of text selection, user drags text cursor A and text cursor B manually in text interface, the text selecting then realizing from A point to B point.
State in realization in the process based on the text selecting of text cursor location, at least there are the following problems:
Such scheme requires that text cursor can be navigated to target location by user accurately; to ensure that selected text wishes the text chosen for user; but; in most of the cases; user is difficult to carry out quick position to text cursor; such as; user is when moving text cursor by touch screen; often can move the distance being greater than a character; and in fact user only needs the distance of a mobile character just can navigate to target location; this shows, above-mentioned existing text selecting scheme is finally to needing the user accurately choosing text to make troubles.
Summary of the invention
The invention provides a kind of cursor positioning method and touch-screen equipment, for reducing the difficulty of cursor precise positioning, improve the ease for use that user accurately chooses content of text.
First aspect present invention provides a kind of text cursor localization method, comprising:
When listen to user's input for starting the instruction of text selection time, display suspension control, and show the first text cursor and the second text cursor according to above-mentioned instruction;
When detecting that described suspension control is triggered, described first text cursor or described second text cursor are moved one;
Wherein, text between described first text cursor and described second text cursor is in for choosing text.
Second aspect present invention provides a kind of touch-screen equipment, comprising:
Monitoring unit, for the instruction of monitoring users input;
Display unit, for listen to when described monitoring unit user's input for starting the instruction of text selection time, display suspension control, and show the first text cursor and the second text cursor according to above-mentioned instruction;
Detecting unit, for detecting the trigger event of described suspension control;
Mobile unit, during for detecting that described suspension control is triggered when described detecting unit, moves one by described first text cursor or described second text cursor;
Wherein, text between described first text cursor and described second text cursor is in for choosing text.
From technique scheme of the present invention, the present invention when listen to user's input for starting the instruction of text selection time, display suspension control, and show the first text cursor and the second text cursor according to above-mentioned instruction, first text cursor or the second text cursor can be moved one by triggering suspension control by user, thus overcome user when moving text cursor by touch screen, often can move the defect of the distance being greater than a character, greatly reduce the difficulty of cursor precise positioning, and, owing to being in text between the first text cursor and the second text cursor for choosing text, therefore, technical solution of the present invention also improves the ease for use that user accurately chooses text.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments 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-a is cursor positioning method provided by the invention embodiment schematic flow sheet;
Fig. 1-b is a kind of application scenarios schematic diagram under text selection state provided by the invention;
Fig. 2-a is cursor positioning method provided by the invention embodiment schematic flow sheet;
Fig. 2-b is a kind of application scenarios schematic diagram under text selection state provided by the invention;
Fig. 3 is another embodiment schematic flow sheet of cursor positioning method provided by the invention;
Fig. 4-a is another embodiment schematic flow sheet of cursor positioning method provided by the invention;
Fig. 4-b is the another kind of application scenarios schematic diagram under text selection state provided by the invention;
Fig. 5 is another embodiment schematic flow sheet of cursor positioning method provided by the invention;
Fig. 6-a is another embodiment schematic flow sheet of cursor positioning method provided by the invention;
Fig. 6-b is another the application scenarios schematic diagram under text selection state provided by the invention;
Fig. 7 is touch-screen equipment provided by the invention example structure schematic diagram;
Fig. 8 is another example structure schematic diagram of touch-screen equipment provided by the invention.
Embodiment
For making goal of the invention of the present invention, feature, advantage can be more obvious and understandable, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, and not all 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.
Be described the cursor positioning method in the embodiment of the present invention with an embodiment below, refer to Fig. 1-a, the cursor positioning method in the embodiment of the present invention, comprising:
101, when listen to user's input for starting the instruction of text selection time, display suspension control, and show the first text cursor and the second text cursor according to above-mentioned instruction;
In embodiments of the present invention, text cursor is mainly used in assisted user and chooses text, and text cursor can appear in certain text box, or text cursor also can appear in the text interface of certain program.
Alternatively, user by inputting prearranged gesture on touch-screen equipment, the instruction for starting text selection is sent to touch-screen equipment, such as, user can input double-click gesture and start text selection in text box or text interface, then when touch-screen equipment listens to double-click event in text box or text interface, determine the instruction for starting text selection listening to user's input, now, touch-screen equipment display suspension control, and according to this double-click gesture loaded and displayed first text cursor and the second text cursor; Or, user can input length and start text selection by gesture in text box or text interface, then when touch-screen equipment listens to length by event (as LongClickListener event) in text box or text interface, determine the instruction for starting text selection listening to user's input, now, touch-screen equipment display suspension control, and long by gesture loaded and displayed first text cursor and the second text cursor according to this; Certainly, above-mentioned prearranged gesture also can be other gesture, and particularly, above-mentioned prearranged gesture can set according to actual demand.Further, in the text interface of text box or distinct program, above-mentioned prearranged gesture may be identical, also may be different, do not limit herein.
Alternatively, when user by inputting prearranged gesture on touch-screen equipment, when sending the instruction for starting text selection to touch-screen equipment, touch-screen equipment shows above-mentioned first text cursor and above-mentioned second text cursor within the scope of the predeterminated position of the input position relative to above-mentioned prearranged gesture.Illustrate, suppose that user inputs double-click gesture (or long by gesture) and starts text selection in text box or text interface, then when touch-screen equipment listens to double-click event (or long by event) in text box or text interface, above-mentioned first text cursor is shown at the front M position place of the position of double-clicking (or length is pressed) relative to user, above-mentioned second text cursor is shown at the rear N position place of the position of double-clicking (or length is pressed) relative to user, wherein, above-mentioned M can be identical with above-mentioned N, also can be different, above-mentioned M and above-mentioned N can be arranged by Operation system setting or user, be not construed as limiting herein.
Alternatively, above-mentioned suspension control is presented at the below of above-mentioned second text cursor, or above-mentioned suspension control is presented at the top of above-mentioned first text cursor.Certainly, above-mentioned suspension control also may be displayed on other visible location, is not construed as limiting herein.
Optionally, the text cursor in the invention process is showed by a vertical line and a selected ball, and forward space button is showed by right arrow, and as shown in Fig. 1-b, the second text cursor 20 is positioned on the right side of the first text cursor 10, and suspension control 30 is translucent form.
It should be noted that, text cursor shown in Fig. 1-b, suspension control and forward space button are a kind of form of expression, in actual applications, text cursor, suspension control and forward space button also can have other form of expression, such as, text cursor can be showed by the lines of other type and other selected identity, and suspension control can be opaque form.
102, when detecting that above-mentioned suspension control is triggered, above-mentioned first text cursor or above-mentioned second text cursor are moved one;
In the embodiment of the present invention, user can trigger above-mentioned suspension control in several ways, such as, user can trigger this suspension control by clicking above-mentioned suspension control, or user also can trigger this suspension control by sliding on above-mentioned suspension control, particularly, the triggering mode of suspension control can set according to actual conditions, and, under different triggering modes, the display form of above-mentioned suspension control also may change to some extent, does not limit in the embodiment of the present invention to the triggering mode of suspension control and display form.
Alternatively, when detecting that above-mentioned suspension control is triggered, above-mentioned first text cursor is turned left or toward moving right one by touch-screen equipment, or, when detecting that above-mentioned suspension control is triggered, above-mentioned second text cursor is turned left or toward moving right one by touch-screen equipment.
Alternatively, above-mentioned suspension control comprises: forward space button.When touch-screen equipment detects that above-mentioned forward space button is triggered, above-mentioned first text cursor or above-mentioned second text cursor are moved right one from current location is past.
Alternatively, above-mentioned suspension control comprises: backspace button.When touch-screen equipment detects that above-mentioned backspace button is triggered, above-mentioned first text cursor or above-mentioned second text cursor are moved left one from current location is past.
Alternatively, above-mentioned suspension control comprises: above move button.When touch-screen equipment detect above-mentioned on move button be triggered time, above-mentioned first text cursor or above-mentioned second text cursor are up moved a line from current location.
Alternatively, above-mentioned suspension control comprises: move down button.When touch-screen equipment detect above-mentioned move down button be triggered time, above-mentioned first text cursor or above-mentioned second text cursor to be moved down a line from current location.
It should be noted that, being in text between above-mentioned first text cursor and above-mentioned second text cursor in the embodiment of the present invention for choosing text.Such as in Fig. 1-b, on the right side of the first text cursor 10 character "; " start character on the left of the second text cursor 20 " " text that terminates is for choosing text, alternatively, as as described in Fig. 1-b, touch-screen equipment is by increasing the mode of shading, highlight choosing text, so that user distinguishes more intuitively choose text and non-selected text, certainly, touch-screen equipment also can be highlighted by alternate manner and choose text, or, also can not highlight and choose text, be not construed as limiting herein.
It should be noted that, when above-mentioned first text cursor is in last in certain a line, if now move right one by past for above-mentioned first text cursor, then show: above-mentioned first text cursor moves to the first place of next line.When to be in certain a line the first for above-mentioned second text cursor, if now by above-mentioned second text cursor toward moving left one, then show: above-mentioned second text cursor moves to last position of lastrow.
It should be noted that, the cursor positioning method in the embodiment of the present invention is applied in touch-screen equipment, and above-mentioned touch-screen equipment includes but not limited to smart mobile phone, panel computer.
From technique scheme of the present invention, the present invention when listen to user's input for starting the instruction of text selection time, display suspension control, and show the first text cursor and the second text cursor according to above-mentioned instruction, first text cursor or the second text cursor can be moved one by triggering suspension control by user, thus overcome user when moving text cursor by touch screen, often can move the defect of the distance being greater than a character, greatly reduce the difficulty of cursor precise positioning, and, owing to being in text between the first text cursor and the second text cursor for choosing text, therefore, technical solution of the present invention also improves the ease for use that user accurately chooses text.
Be described the cursor positioning method in the embodiment of the present invention with another embodiment below, refer to Fig. 2-a, the cursor positioning method in the embodiment of the present invention, comprising:
201, when listen to user's input for starting the instruction of text selection time, display suspension control, and show the first text cursor and the second text cursor according to above-mentioned instruction, wherein, above-mentioned suspension control comprises: forward space button;
In embodiments of the present invention, text cursor is mainly used in assisted user and chooses text, and text cursor can appear in certain text box, or text cursor also can appear in the text interface of certain program.
Alternatively, user by inputting prearranged gesture on touch-screen equipment, the instruction for starting text selection is sent to touch-screen equipment, such as, user can input double-click gesture and start text selection in text box or text interface, then when touch-screen equipment listens to double-click event in text box or text interface, determine the instruction for starting text selection listening to user's input, now, touch-screen equipment display suspension control, and according to this double-click gesture loaded and displayed first text cursor and the second text cursor; Or, user can input length and start text selection by gesture in text box or text interface, then when touch-screen equipment listens to length by event (as LongClickListener event) in text box or text interface, determine the instruction for starting text selection listening to user's input, now, touch-screen equipment display suspension control, and long by gesture loaded and displayed first text cursor and the second text cursor according to this; Certainly, above-mentioned prearranged gesture also can be other gesture, and particularly, above-mentioned prearranged gesture can set according to actual demand.Further, in the text interface of text box or distinct program, above-mentioned prearranged gesture may be identical, also may be different, do not limit herein.
Alternatively, when user by inputting prearranged gesture on touch-screen equipment, when sending the instruction for starting text selection to touch-screen equipment, touch-screen equipment shows above-mentioned first text cursor and above-mentioned second text cursor within the scope of the predeterminated position of the input position relative to above-mentioned prearranged gesture.Illustrate, suppose that user inputs double-click gesture (or long by gesture) and starts text selection in text box or text interface, then when touch-screen equipment listens to double-click event (or long by event) in text box or text interface, above-mentioned first text cursor is shown at the front M position place of the position of double-clicking (or length is pressed) relative to user, above-mentioned second text cursor is shown at the rear N position place of the position of double-clicking (or length is pressed) relative to user, wherein, above-mentioned M can be identical with above-mentioned N, also can be different, above-mentioned M and above-mentioned N can be arranged by Operation system setting or user, be not construed as limiting herein.
Alternatively, above-mentioned suspension control is presented at the below of above-mentioned second text cursor, or above-mentioned suspension control is presented at the top of above-mentioned first text cursor.Certainly, above-mentioned suspension control also may be displayed on other visible location, is not construed as limiting herein.
Optionally, the text cursor in the invention process is showed by a vertical line and a selected ball, and forward space button is showed by right arrow, as shown in Fig. 2-b, second text cursor 20 is positioned on the right side of the first text cursor 10, and suspension control 30 is translucent form, comprises forward space button 31.
It should be noted that, text cursor shown in Fig. 2-b, suspension control and forward space button are a kind of form of expression, in actual applications, text cursor, suspension control and forward space button also can have other form of expression, such as, text cursor can be showed by the lines of other type and other selected identity, suspension control can be opaque or all-transparent form, forward space button can be embodied forward space implication button by the button or other except right arrow comprising character shows, and is not construed as limiting herein.
202, when detecting that above-mentioned forward space button is triggered, above-mentioned first text cursor or above-mentioned second text cursor are moved right one from current location is past;
Alternatively, after step 201 shows the first text cursor and the second text cursor, user can select the first text cursor by click first text cursor, or user also can by selected second text cursor of click second text cursor.
User can move corresponding text cursor by the forward space button triggered on suspension control, alternatively, touch-screen equipment monitors the click event (as onClickLisnter event) on above-mentioned forward space button, when detecting that user clicks above-mentioned forward space button, above-mentioned first text cursor or above-mentioned second text cursor are moved right one from current location is past by touch screen.Certainly, user also can trigger above-mentioned forward space button by alternate manner, such as, user can trigger this forward space button by the above-mentioned forward space button that slides, and particularly, the triggering mode of forward space button can set according to actual conditions, and, under different triggering modes, the display form of above-mentioned forward space button also may change to some extent, does not limit in the embodiment of the present invention to the triggering mode of forward space button and display form.
Alternatively, when above-mentioned first text cursor is not selected, and above-mentioned second text cursor is not selected, and when detecting that above-mentioned forward space button is triggered, above-mentioned second text cursor is moved right one from current location is past by touch screen; When above-mentioned first text cursor is selected, and above-mentioned second text cursor is not selected, and when detecting that above-mentioned forward space button is triggered, above-mentioned first text cursor is moved right one from current location is past by touch screen; When above-mentioned second text cursor is selected, and when detecting that above-mentioned forward space button is triggered, above-mentioned second text cursor is moved right one from current location is past by touch screen.
It should be noted that, being in text between above-mentioned first text cursor and above-mentioned second text cursor in the embodiment of the present invention for choosing text.Such as in Fig. 2-b, on the right side of the first text cursor 10 character "; " start character on the left of the second text cursor 20 " " text that terminates is for choosing text, alternatively, as as described in Fig. 2-b, touch-screen equipment is by increasing the mode of shading, highlight choosing text, so that user distinguishes more intuitively choose text and non-selected text, certainly, touch-screen equipment also can be highlighted by alternate manner and choose text, or, also can not highlight and choose text, be not construed as limiting herein.
It should be noted that, when above-mentioned first text cursor is in last in certain a line, if now move right one by past for above-mentioned first text cursor, then show: above-mentioned first text cursor moves to the first place of next line.When to be in certain a line the first for above-mentioned second text cursor, if now by above-mentioned second text cursor toward moving left one, then show: above-mentioned second text cursor moves to last position of lastrow.
It should be noted that, the cursor positioning method in the embodiment of the present invention is applied in touch-screen equipment, and above-mentioned touch-screen equipment includes but not limited to smart mobile phone, panel computer.
Therefore, the present invention when listen to user's input for starting the instruction of text selection time, display suspension control, and show the first text cursor and the second text cursor according to above-mentioned instruction, user can be moved right the first text cursor or the second text cursor by the forward space button triggered on suspension control, make user the first text cursor or the second text cursor precisely can be moved to target location, greatly reduce the difficulty of cursor precise positioning, and, owing to being in text between the first text cursor and the second text cursor for choosing text, therefore, technical solution of the present invention also improves the ease for use that user accurately chooses text.
Be described cursor positioning method with another embodiment below, refer to Fig. 3, the cursor positioning method in the embodiment of the present invention, comprising:
301, when listen to user's input for starting the instruction of text selection time, display suspension control, and show the first text cursor and the second text cursor according to above-mentioned instruction, wherein, above-mentioned second text cursor is positioned on the right side of the first text cursor, and above-mentioned suspension control comprises: forward space button;
Step 201 shown in step 301 in the embodiment of the present invention Yu Fig. 2-a is similar, and therefore, the specific implementation of step 301 with reference to the description in step 201, can repeat no more herein.
302, when above-mentioned first text cursor and above-mentioned second text cursor are not selected, and when detecting that above-mentioned forward space button is triggered, by above-mentioned second text cursor from current location toward moving right one;
In embodiments of the present invention, after step 301 shows the first text cursor and the second text cursor, user can select the first text cursor by click first text cursor, or user also can by selected second text cursor of click second text cursor.
User can move corresponding text cursor by the forward space button triggered on suspension control, in the embodiment of the present invention, when above-mentioned first text cursor and above-mentioned second text cursor are not selected, and when detecting that above-mentioned forward space button is triggered, above-mentioned second text cursor is moved right one from current location is past by touch-screen equipment.
303, when above-mentioned first text cursor is selected, above-mentioned second text cursor is not selected, and when detecting that above-mentioned forward space button is triggered, by above-mentioned first text cursor from current location toward moving right one;
In embodiments of the present invention, after step 301 shows the first text cursor and the second text cursor, user can select the first text cursor by click first text cursor, or user also can by selected second text cursor of click second text cursor.In the embodiment of the present invention, user cannot select the first text cursor and the second text cursor simultaneously.
User can move corresponding text cursor by the forward space button triggered on suspension control, in the embodiment of the present invention, when above-mentioned first text cursor is selected, above-mentioned second text cursor is not selected, and when detecting that above-mentioned forward space button is triggered, above-mentioned first text cursor is moved right one from current location is past by touch-screen equipment.
304, when above-mentioned second text cursor is selected, and when detecting that above-mentioned forward space button is triggered, by above-mentioned second text cursor from current location toward moving right one.
It should be noted that, being in text between above-mentioned first text cursor and above-mentioned second text cursor in the embodiment of the present invention for choosing text.Such as in Fig. 2-b, on the right side of the first text cursor 10 character "; " start character on the left of the second text cursor 20 " " text that terminates is for choosing text, alternatively, as as described in Fig. 2-b, touch-screen equipment is by increasing the mode of shading, highlight choosing text, so that user distinguishes more intuitively choose text and non-selected text, certainly, touch-screen equipment also can be highlighted by alternate manner and choose text, or, also can not highlight and choose text, be not construed as limiting herein.
It should be noted that, when above-mentioned first text cursor is in last in certain a line, if now move right one by past for above-mentioned first text cursor, then show: above-mentioned first text cursor moves to the first place of next line.When to be in certain a line the first for above-mentioned second text cursor, if now by above-mentioned second text cursor toward moving left one, then show: above-mentioned second text cursor moves to last position of lastrow.
It should be noted that, the cursor positioning method in the embodiment of the present invention is applied in touch-screen equipment, and above-mentioned touch-screen equipment includes but not limited to smart mobile phone, panel computer.
Therefore, the present invention when listen to user's input for starting the instruction of text selection time, display suspension control, and show the first text cursor and the second text cursor according to above-mentioned instruction, user can by selected first text cursor and the forward space button triggered on suspension control moves right the first text cursor, make user the first text cursor precisely can be moved to target location, greatly reduce the difficulty of cursor precise positioning, and, owing to being in text between the first text cursor and the second text cursor for choosing text, therefore, technical solution of the present invention also improves the ease for use that user accurately chooses text.
Be described the cursor positioning method in the embodiment of the present invention with another embodiment below, refer to Fig. 4-a, the cursor positioning method in the embodiment of the present invention, comprising:
401, when listen to user's input for starting the instruction of text selection time, display suspension control, and show the first text cursor and the second text cursor according to above-mentioned instruction, wherein, above-mentioned suspension control comprises: backspace button;
In embodiments of the present invention, text cursor is mainly used in assisted user and chooses text, and text cursor can appear in certain text box, or text cursor also can appear in the text interface of certain program.
Alternatively, user by inputting prearranged gesture on touch-screen equipment, the instruction for starting text selection is sent to touch-screen equipment, such as, user can input double-click gesture and start text selection in text box or text interface, then when touch-screen equipment listens to double-click event in text box or text interface, determine the instruction for starting text selection listening to user's input, now, touch-screen equipment display suspension control, and according to this double-click gesture loaded and displayed first text cursor and the second text cursor; Or, user can input length and start text selection by gesture in text box or text interface, then when touch-screen equipment listens to length by event (as LongClickListener event) in text box or text interface, determine the instruction for starting text selection listening to user's input, now, touch-screen equipment display suspension control, and long by gesture loaded and displayed first text cursor and the second text cursor according to this; Certainly, above-mentioned prearranged gesture also can be other gesture, and particularly, above-mentioned prearranged gesture can set according to actual demand.Further, in the text interface of text box or distinct program, above-mentioned prearranged gesture may be identical, also may be different, do not limit herein.
Alternatively, when user by inputting prearranged gesture on touch-screen equipment, when sending the instruction for starting text selection to touch-screen equipment, touch-screen equipment shows above-mentioned first text cursor and above-mentioned second text cursor within the scope of the predeterminated position of the input position relative to above-mentioned prearranged gesture.Illustrate, suppose that user inputs double-click gesture (or long by gesture) and starts text selection in text box or text interface, then when touch-screen equipment listens to double-click event (or long by event) in text box or text interface, above-mentioned first text cursor is shown at the front M position place of the position of double-clicking (or length is pressed) relative to user, above-mentioned second text cursor is shown at the rear N position place of the position of double-clicking (or length is pressed) relative to user, wherein, above-mentioned M can be identical with above-mentioned N, also can be different, above-mentioned M and above-mentioned N can be arranged by Operation system setting or user, be not construed as limiting herein.
Alternatively, above-mentioned suspension control is presented at the below of above-mentioned second text cursor, or above-mentioned suspension control is presented at the top of above-mentioned first text cursor.Certainly, above-mentioned suspension control also may be displayed on other visible location, is not construed as limiting herein.
Optionally, the text cursor in the invention process is showed by a vertical line and a selected ball, and forward space button is showed by right arrow, as shown in Fig. 4-b, second text cursor 20 is positioned on the right side of the first text cursor 10, and suspension control 30 is translucent form, comprises backspace button 32.
It should be noted that, text cursor shown in Fig. 4-b, suspension control and forward space button are a kind of form of expression, in actual applications, text cursor, suspension control and backspace button also can have other form of expression, such as, text cursor can be showed by the lines of other type and other selected identity, suspension control can be opaque or all-transparent form, backspace button can be embodied backspace implication button by the button or other except left arrow comprising character shows, and is not construed as limiting herein.
402, when detecting that above-mentioned backspace button is triggered, above-mentioned first text cursor or above-mentioned second text cursor are moved left one from current location is past;
Alternatively, after step 401 shows the first text cursor and the second text cursor, user can select the first text cursor by click first text cursor, or user also can by selected second text cursor of click second text cursor.
User can move corresponding text cursor by the backspace button triggered on suspension control, alternatively, touch-screen equipment monitors the click event (as onClickLisnter event) on above-mentioned backspace button, when detecting that user clicks above-mentioned backspace button, above-mentioned first text cursor or above-mentioned second text cursor are moved left one from current location is past by touch screen.Certainly, user also can trigger above-mentioned backspace button by alternate manner, such as, user can trigger this backspace button by the above-mentioned backspace button that slides, and particularly, the triggering mode of backspace button can set according to actual conditions, and, under different triggering modes, the display form of above-mentioned backspace button also may change to some extent, does not limit in the embodiment of the present invention to the triggering mode of backspace button and display form.
Alternatively, when above-mentioned first text cursor is not selected, and above-mentioned second text cursor is not selected, and when detecting that above-mentioned backspace button is triggered, above-mentioned first text cursor is moved left one from current location is past by touch-screen equipment; When above-mentioned first text cursor is not selected, and when above-mentioned second text cursor is selected, and when detecting that above-mentioned backspace button is triggered, above-mentioned second text cursor is moved left one from current location is past by touch-screen equipment; When above-mentioned first text cursor is selected, and detect above-mentioned backspace button when being triggered, touch-screen equipment by above-mentioned first text cursor from current location toward moving left one.
It should be noted that, being in text between above-mentioned first text cursor and above-mentioned second text cursor in the embodiment of the present invention for choosing text.Such as in Fig. 4-b, on the right side of the first text cursor 10 character "; " start character on the left of the second text cursor 20 " " text that terminates is for choosing text, alternatively, as as described in Fig. 4-b, touch-screen equipment is by increasing the mode of shading, highlight choosing text, so that user distinguishes more intuitively choose text and non-selected text, certainly, touch-screen equipment also can be highlighted by alternate manner and choose text, or, also can not highlight and choose text, be not construed as limiting herein.
It should be noted that, when above-mentioned first text cursor is in last in certain a line, if now move right one by past for above-mentioned first text cursor, then show: above-mentioned first text cursor moves to the first place of next line.When to be in certain a line the first for above-mentioned second text cursor, if now by above-mentioned second text cursor toward moving left one, then show: above-mentioned second text cursor moves to last position of lastrow.
It should be noted that, the cursor positioning method in the embodiment of the present invention is applied in touch-screen equipment, and above-mentioned touch-screen equipment includes but not limited to smart mobile phone, panel computer.
Therefore, the present invention when listen to user's input for starting the instruction of text selection time, display suspension control, and show the first text cursor and the second text cursor according to above-mentioned instruction, user can be moved to the left the first text cursor or the second text cursor by the backspace button triggered on suspension control, make user the first text cursor or the second text cursor precisely can be moved to target location, greatly reduce the difficulty of cursor precise positioning, and, owing to being in text between the first text cursor and the second text cursor for choosing text, therefore, technical solution of the present invention also improves the ease for use that user accurately chooses text.
Be described cursor positioning method with another embodiment below, refer to Fig. 5, the cursor positioning method in the embodiment of the present invention, comprising:
501, when listen to user's input for starting the instruction of text selection time, display suspension control, and show the first text cursor and the second text cursor according to above-mentioned instruction, wherein, above-mentioned second text cursor is positioned on the right side of the first text cursor, and above-mentioned suspension control comprises: backspace button;
Step 401 shown in step 501 in the embodiment of the present invention Yu Fig. 4-a is similar, and therefore, the specific implementation of step 501 with reference to the description in step 401, can repeat no more herein.
502, when above-mentioned first text cursor and above-mentioned second text cursor are not selected, and when detecting that above-mentioned backspace button is triggered, by above-mentioned first text cursor from current location toward moving left one;
In embodiments of the present invention, after step 501 shows the first text cursor and the second text cursor, user can select the first text cursor by click first text cursor, or user also can by selected second text cursor of click second text cursor.
User can move corresponding text cursor by the backspace button triggered on suspension control, in the embodiment of the present invention, when above-mentioned first text cursor and above-mentioned second text cursor are not selected, and when detecting that above-mentioned backspace button is triggered, above-mentioned first text cursor is moved left one from current location is past by touch-screen equipment.
503, when above-mentioned first text cursor is not selected, above-mentioned second text cursor is selected, and when detecting that above-mentioned backspace button is triggered, by above-mentioned second text cursor from current location toward moving left one;
In embodiments of the present invention, after step 501 shows the first text cursor and the second text cursor, user can select the first text cursor by click first text cursor, or user also can by selected second text cursor of click second text cursor.In the embodiment of the present invention, user cannot select the first text cursor and the second text cursor simultaneously.
User can move corresponding text cursor by the backspace button triggered on suspension control, in the embodiment of the present invention, when above-mentioned first text cursor is not selected, above-mentioned second text cursor is selected, and when detecting that above-mentioned backspace button is triggered, above-mentioned second text cursor is moved left one from current location is past by touch-screen equipment.
504, when above-mentioned first text cursor is selected, and when detecting that above-mentioned backspace button is triggered, by above-mentioned first text cursor from current location toward moving left one.
It should be noted that, being in text between above-mentioned first text cursor and above-mentioned second text cursor in the embodiment of the present invention for choosing text.Such as in Fig. 4-b, on the right side of the first text cursor 10 character "; " start character on the left of the second text cursor 20 " " text that terminates is for choosing text, alternatively, as as described in Fig. 4-b, touch-screen equipment is by increasing the mode of shading, highlight choosing text, so that user distinguishes more intuitively choose text and non-selected text, certainly, touch-screen equipment also can be highlighted by alternate manner and choose text, or, also can not highlight and choose text, be not construed as limiting herein.
It should be noted that, when above-mentioned first text cursor is in last in certain a line, if now move right one by past for above-mentioned first text cursor, then show: above-mentioned first text cursor moves to the first place of next line.When to be in certain a line the first for above-mentioned second text cursor, if now by above-mentioned second text cursor toward moving left one, then show: above-mentioned second text cursor moves to last position of lastrow.
It should be noted that, the cursor positioning method in the embodiment of the present invention is applied in touch-screen equipment, and above-mentioned touch-screen equipment includes but not limited to smart mobile phone, panel computer.
Therefore, the present invention when listen to user's input for starting the instruction of text selection time, display suspension control, and show the first text cursor and the second text cursor according to above-mentioned instruction, user can by selected second text cursor and the backspace button triggered on suspension control is moved to the left the second text cursor, make user the second text cursor precisely can be moved to target location, greatly reduce the difficulty of cursor precise positioning, and, owing to being in text between the first text cursor and the second text cursor for choosing text, therefore, technical solution of the present invention also improves the ease for use that user accurately chooses text.
Be described cursor positioning method with another embodiment below, refer to Fig. 6-a, the cursor positioning method in the embodiment of the present invention, comprising:
601, when listen to user's input for starting the instruction of text selection time, display suspension control, and show the first text cursor and the second text cursor according to above-mentioned instruction, wherein, above-mentioned suspension control comprises: forward space button and backspace button;
In embodiments of the present invention, text cursor is mainly used in assisted user and chooses text, and text cursor can appear in certain text box, or text cursor also can appear in the text interface of certain program.
Alternatively, user by inputting prearranged gesture on touch-screen equipment, the instruction for starting text selection is sent to touch-screen equipment, such as, user can input double-click gesture and start text selection in text box or text interface, then when touch-screen equipment listens to double-click event in text box or text interface, load and show the first text cursor, the second text cursor and suspension control; Or, user can input length and start text selection by gesture in text box or text interface, then when touch-screen equipment listens to length by event (as LongClickListener event) in text box or text interface, load and show the first text cursor, the second text cursor and suspension control; Certainly, above-mentioned prearranged gesture also can be other gesture, and particularly, above-mentioned prearranged gesture can set according to actual demand.Further, in the text interface of text box or distinct program, above-mentioned prearranged gesture may be identical, also may be different, do not limit herein.
Alternatively, when user by inputting prearranged gesture on touch-screen equipment, when sending the instruction for starting text selection to touch-screen equipment, above-mentioned first text cursor and above-mentioned second text cursor are presented within the scope of the predeterminated position relative to the input position of above-mentioned prearranged gesture.Illustrate, suppose that user inputs double-click gesture (or long by gesture) and starts text selection in text box or text interface, then when touch-screen equipment listens to double-click event (or long by event) in text box or text interface, above-mentioned first text cursor is shown at the front M position place of the position of double-clicking (or length is pressed) relative to user, above-mentioned second text cursor is shown at the rear N position place of the position of double-clicking (or length is pressed) relative to user, wherein, above-mentioned M can be identical with above-mentioned N, also can be different, above-mentioned M and above-mentioned N can be arranged by Operation system setting or user, be not construed as limiting herein.
Alternatively, above-mentioned suspension control is presented at the below of above-mentioned second text cursor, or above-mentioned suspension control is presented at the top of above-mentioned first text cursor.Certainly, above-mentioned suspension control also may be displayed on other visible location, is not construed as limiting herein.
Optionally, text cursor in the invention process is showed by a vertical line and a selected ball, forward space button is showed by right arrow, backspace button is showed by left arrow, as shown in Fig. 6-b, second text cursor 20 is positioned on the right side of the first text cursor 10, and suspension control 30 is translucent form, comprises forward space button 31 and backspace button 32.
It should be noted that, text cursor shown in Fig. 6-b, suspension control, forward space button and backspace button are a kind of form of expression, in actual applications, text cursor, suspension control, forward space button and backspace button also can have other form of expression, such as, text cursor can be showed by the lines of other type and other selected identity, suspension control can be opaque or all-transparent form, forward space button can be embodied forward space implication button by the button or other except right arrow comprising character shows, backspace button can be embodied backspace implication button by the button or other except left arrow comprising character shows, be not construed as limiting herein.
602, when detecting that above-mentioned forward space button is triggered, above-mentioned first text cursor or above-mentioned second text cursor are moved right one from current location is past;
Alternatively, after step 601 shows the first text cursor and the second text cursor, user can select the first text cursor by click first text cursor, or user also can by selected second text cursor of click second text cursor.
User can move corresponding text cursor by the forward space button triggered on suspension control, alternatively, touch-screen equipment monitors the click event (as onClickLisnter event) on above-mentioned forward space button, when detecting that user clicks above-mentioned forward space button, above-mentioned first text cursor or above-mentioned second text cursor are moved right one from current location is past by touch screen.Certainly, user also can trigger above-mentioned forward space button by alternate manner, such as, user can trigger this forward space button by the above-mentioned forward space button that slides, and particularly, the triggering mode of forward space button can set according to actual conditions, and, under different triggering modes, the display form of above-mentioned forward space button also may change to some extent, does not limit in the embodiment of the present invention to the triggering mode of forward space button and display form.
Alternatively, when above-mentioned first text cursor is not selected, and above-mentioned second text cursor is not selected, and when detecting that above-mentioned forward space button is triggered, above-mentioned second text cursor is moved right one from current location is past by touch screen; When above-mentioned first text cursor is selected, and above-mentioned second text cursor is not selected, and when detecting that above-mentioned forward space button is triggered, above-mentioned first text cursor is moved right one from current location is past by touch screen; When above-mentioned second text cursor is selected, and when detecting that above-mentioned forward space button is triggered, above-mentioned second text cursor is moved right one from current location is past by touch screen.
603, when detecting that user triggers above-mentioned backspace button, above-mentioned first text cursor or above-mentioned second text cursor are moved left one from current location is past;
Alternatively, user can move corresponding text cursor by the backspace button triggered on suspension control, alternatively, touch-screen equipment monitors the click event (as onClickLisnter event) on above-mentioned backspace button, when detecting that user clicks above-mentioned backspace button, above-mentioned first text cursor or above-mentioned second text cursor are moved left one from current location is past by touch screen.Certainly, user also can trigger above-mentioned backspace button by alternate manner, such as, user can trigger this backspace button by the above-mentioned backspace button that slides, and particularly, the triggering mode of backspace button can set according to actual conditions, and, under different triggering modes, the display form of above-mentioned backspace button also may change to some extent, does not limit in the embodiment of the present invention to the triggering mode of backspace button and display form.
Alternatively, when above-mentioned first text cursor is not selected, and above-mentioned second text cursor is not selected, and when detecting that above-mentioned backspace button is triggered, above-mentioned first text cursor is moved left one from current location is past by touch-screen equipment; When above-mentioned first text cursor is not selected, and when above-mentioned second text cursor is selected, and when detecting that above-mentioned backspace button is triggered, above-mentioned second text cursor is moved left one from current location is past by touch-screen equipment; When above-mentioned first text cursor is selected, and when detecting that above-mentioned backspace button is triggered, above-mentioned first text cursor is moved left one from current location is past by touch-screen equipment.
It should be noted that, being in text between above-mentioned first text cursor and above-mentioned second text cursor in the embodiment of the present invention for choosing text.Such as in Fig. 6-b, on the right side of the first text cursor 10 character "; " start character on the left of the second text cursor 20 " " text that terminates is for choosing text, alternatively, as as described in Fig. 6-b, touch-screen equipment is by increasing the mode of shading, highlight choosing text, so that user distinguishes more intuitively choose text and non-selected text, certainly, touch-screen equipment also can be highlighted by alternate manner and choose text, or, also can not highlight and choose text, be not construed as limiting herein.
It should be noted that, when above-mentioned first text cursor is in last in certain a line, if now move right one by past for above-mentioned first text cursor, then show: above-mentioned first text cursor moves to the first place of next line.When to be in certain a line the first for above-mentioned second text cursor, if now by above-mentioned second text cursor toward moving left one, then show: above-mentioned second text cursor moves to last position of lastrow.
It should be noted that, the cursor positioning method in the embodiment of the present invention is applied in touch-screen equipment, and above-mentioned touch-screen equipment includes but not limited to smart mobile phone, panel computer.
Therefore, the present invention when listen to user's input for starting the instruction of text selection time, display suspension control, and show the first text cursor and the second text cursor according to above-mentioned instruction, user can move the first text cursor and/or the second text cursor by the forward space button on triggering suspension control and backspace button, make user the first text cursor and/or the second text cursor precisely can be moved to target location, greatly reduce the difficulty of cursor precise positioning, and, owing to being in text between the first text cursor and the second text cursor for choosing text, therefore, technical solution of the present invention also improves the ease for use that user accurately chooses text.
The embodiment of the present invention also provides a kind of touch-screen equipment, is described below, refers to Fig. 7 to the touch-screen equipment in the embodiment of the present invention, and the touch-screen equipment 700 in the embodiment of the present invention, comprising:
Monitoring unit 701, for the instruction of monitoring users input;
Display unit 702, for listen to when monitoring unit 701 user's input for starting the instruction of text selection time, display suspension control, and show the first text cursor and the second text cursor according to above-mentioned instruction;
Detecting unit 703, for detecting the trigger event of above-mentioned suspension control;
Mobile unit 704, during for detecting that above-mentioned suspension control is triggered when detecting unit 703, moves one by above-mentioned first text cursor or above-mentioned second text cursor;
Wherein, text between above-mentioned first text cursor and above-mentioned second text cursor is in for choosing text.
In embodiments of the present invention, text cursor is mainly used in assisted user and chooses text, and text cursor can appear in certain text box, or text cursor also can appear in the text interface of certain program.
Alternatively, user by inputting prearranged gesture on touch-screen equipment, the instruction for starting text selection is sent to touch-screen equipment, such as, user can input double-click gesture and start text selection in text box or text interface, then when monitoring unit 701 listens to double-click event in text box or text interface, determine the instruction for starting text selection listening to user's input, display unit 702 shows suspension control, and according to this double-click gesture loaded and displayed first text cursor and the second text cursor; Or, user can input length and start text selection by gesture in text box or text interface, then when monitoring unit 701 listens to length by event (as LongClickListener event) in text box or text interface, determine the instruction for starting text selection listening to user's input, display unit 702 shows suspension control, and long by gesture loaded and displayed first text cursor and the second text cursor according to this; Certainly, above-mentioned prearranged gesture also can be other gesture, and particularly, above-mentioned prearranged gesture can set according to actual demand.Further, in the text interface of text box or distinct program, above-mentioned prearranged gesture may be identical, also may be different, do not limit herein.
Alternatively, when user by inputting prearranged gesture on touch-screen equipment, when sending the instruction for starting text selection to touch-screen equipment, display unit 702 shows above-mentioned first text cursor and above-mentioned second text cursor within the scope of the predeterminated position of the input position relative to above-mentioned prearranged gesture.Illustrate, suppose that user inputs double-click gesture (or long by gesture) and starts text selection in text box or text interface, then when monitoring unit 701 listens to double-click event (or long by event) in text box or text interface, display unit 702 shows above-mentioned first text cursor at the front M position place of the position of double-clicking (or length is pressed) relative to user, and show above-mentioned second text cursor at the rear N position place of the position of double-clicking (or length is pressed) relative to user, wherein, above-mentioned M can be identical with above-mentioned N, also can be different, above-mentioned M and above-mentioned N can be arranged by Operation system setting or user, be not construed as limiting herein.
Alternatively, above-mentioned suspension control is presented at the below of above-mentioned second text cursor, or above-mentioned suspension control is presented at the top of above-mentioned first text cursor.Certainly, above-mentioned suspension control also may be displayed on other visible location, is not construed as limiting herein.
Alternatively, mobile unit 704 specifically for: when detecting unit 703 detects that above-mentioned suspension control is triggered, above-mentioned first text cursor to be turned left or toward moving right one, or, when detecting unit 703 detects that above-mentioned suspension control is triggered, above-mentioned second text cursor to be turned left or toward moving right one.
Alternatively, above-mentioned suspension control comprises: forward space button.Mobile unit 704 specifically for: when detecting unit 703 detects that above-mentioned forward space button is triggered, by above-mentioned first text cursor or above-mentioned second text cursor from current location toward moving right one.Alternatively, mobile unit 704 specifically for: when above-mentioned first text cursor is not selected, and above-mentioned second text cursor is not selected, and when detecting unit 703 detects that above-mentioned forward space button is triggered, by above-mentioned second text cursor from current location toward moving right one; When above-mentioned first text cursor is selected, and above-mentioned second text cursor is not selected, and when detecting unit 703 detects that above-mentioned forward space button is triggered, by above-mentioned first text cursor from current location toward moving right one; When above-mentioned second text cursor is selected, and when detecting unit 703 detects that above-mentioned forward space button is triggered, by above-mentioned second text cursor from current location toward moving right one.
Alternatively, above-mentioned suspension control comprises: backspace button.Mobile unit 704 concrete also for: when detecting unit 703 detects that above-mentioned backspace button is triggered, by above-mentioned first text cursor or above-mentioned second text cursor from current location toward moving left one.Alternatively, mobile unit 704 specifically for: when above-mentioned first text cursor is not selected, and above-mentioned second text cursor is not selected, and when detecting unit 703 detects that above-mentioned backspace button is triggered, by above-mentioned first text cursor from current location toward moving left one; When above-mentioned first text cursor is not selected, and when above-mentioned second text cursor is selected, and when detecting unit 703 detects that above-mentioned backspace button is triggered, by above-mentioned second text cursor from current location toward moving left one; When above-mentioned first text cursor is selected, and when detecting unit 703 detects that above-mentioned backspace button is triggered, by above-mentioned first text cursor from current location toward moving left one.
Alternatively, above-mentioned suspension control comprises: above move button.Mobile unit 704 also for: when detecting unit 703 detect above-mentioned on move button be triggered time, above-mentioned first text cursor or above-mentioned second text cursor are up moved a line from current location.
Alternatively, above-mentioned suspension control comprises: move down button.Mobile unit 704 also for: when detecting unit 703 detect above-mentioned move down button be triggered time, above-mentioned first text cursor or above-mentioned second text cursor to be moved down a line from current location.
It should be noted that, touch-screen equipment in the embodiment of the present invention includes but not limited to smart mobile phone, panel computer, can as the touch-screen equipment in above-mentioned embodiment of the method, may be used for the whole technical schemes realized in said method embodiment, the function of its each functional module can according to the method specific implementation in said method embodiment, its specific implementation process can refer to the associated description in above-described embodiment, repeats no more herein.
Therefore, touch-screen equipment in the present invention listen to user's input for starting the instruction of text selection time, display suspension control, and show the first text cursor and the second text cursor according to above-mentioned instruction, first text cursor or the second text cursor can be moved one by triggering suspension control by user, thus overcome user when moving text cursor by touch screen, often can move the defect of the distance being greater than a character, greatly reduce the difficulty of cursor precise positioning, and, owing to being in text between the first text cursor and the second text cursor for choosing text, therefore, technical solution of the present invention also improves the ease for use that user accurately chooses text.
The embodiment of the present invention also provides another kind of touch-screen equipment, below the touch-screen equipment in the embodiment of the present invention is described, refer to Fig. 8, the touch-screen equipment 800 in the embodiment of the present invention comprises: the storer 801 of one or more computer-readable recording mediums, input block 802, display unit 803, or more than process the parts such as processor 804 and power supply 805 of core.It will be understood by those skilled in the art that the touch-screen equipment structure shown in Fig. 8 does not form the restriction to going out touch-screen equipment, the parts more more or less than diagram can be comprised, or combine some parts, or different parts being arranged.Wherein:
Storer 801 can be used for storing software program and module, and processor 804 is stored in software program and the module of storer 801 by running, thus performs the application of various function and data processing.Storer 801 mainly can comprise storage program district and store data field, and wherein, storage program district can store operating system, application program (such as sound-playing function, image player function etc.) etc. needed at least one function; Store data field and can store the data (such as voice data, phone directory etc.) etc. created according to the use of touch-screen equipment 800.In addition, storer 801 can comprise high-speed random access memory, can also comprise nonvolatile memory, such as at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, storer 801 can also comprise Memory Controller, to provide the access of processor 804 and input block 802 pairs of storeies 801.
Input block 802 can be used for the numeral or the character information that receive input, and produces and to arrange with user and function controls relevant keyboard, mouse, control lever, optics or trace ball signal and inputs.Particularly, input block 802 comprises Touch sensitive surface 8021 and other input equipments 8022.Touch sensitive surface 8021, also referred to as touch display screen or Trackpad, user can be collected or neighbouring touch operation (such as user uses any applicable object or the operations of annex on Touch sensitive surface 8021 or near Touch sensitive surface 8021 such as finger, stylus) thereon, and drive corresponding coupling arrangement according to the formula preset.Optionally, Touch sensitive surface 8021 can comprise touch detecting apparatus and touch controller two parts.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation brings, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, then gives processor 804, and the order that energy receiving processor 804 is sent also is performed.In addition, the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be adopted to realize Touch sensitive surface 8021.Except Touch sensitive surface 8021, input block 802 can also comprise other input equipments 8022.Particularly, other input equipments 8022 can include but not limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, control lever etc.
Display unit 803 can be used for the various graphical user interface showing information or the information being supplied to user and the touch-screen equipment 800 inputted by user, and these graphical user interface can be made up of figure, text, icon, video and its combination in any.Display unit 803 can comprise display panel 8031, optionally, the form such as liquid crystal display (LCD, Liquid Crystal Display), Organic Light Emitting Diode (OLED, Organic Light-Emitting Diode) can be adopted to configure display panel 8031.Further, Touch sensitive surface 8021 can cover display panel 8031, when Touch sensitive surface 8021 detects thereon or after neighbouring touch operation, send processor 804 to determine the type of touch event, on display panel 8031, provide corresponding vision to export with preprocessor 804 according to the type of touch event.Although in fig. 8, Touch sensitive surface 8021 and display panel 8031 be as two independently parts realize input and input function, in certain embodiments, can by Touch sensitive surface 8021 and display panel 8031 integrated and realize input and output function.
Processor 804 is control centers of touch-screen equipment 800, utilize the various piece of various interface and the whole mobile phone of connection, software program in storer 801 and/or module is stored in by running or performing, and call the data be stored in storer 801, perform various function and the process data of touch-screen equipment 800, thus integral monitoring is carried out to mobile phone.Optionally, processor 804 can comprise one or more process core; Preferably, processor 804 accessible site application processor and modem processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in processor 804.
Touch-screen equipment 800 also comprises the power supply 805(such as battery of powering to all parts), preferably, power supply can be connected with processor 804 logic by power-supply management system, thus realizes the functions such as management charging, electric discharge and power managed by power-supply management system.Power supply 805 can also comprise one or more direct current or AC power, recharging system, power failure detection circuit, power supply changeover device or the random component such as inverter, power supply status indicator.
Although not shown, touch-screen equipment 800 can also comprise RF(Radio Frequency, radio frequency) circuit, sensor, voicefrequency circuit, Wireless Fidelity (WiFi, wireless fidelity) module, camera, bluetooth module etc., do not repeat them here.Specifically in the present embodiment, touch-screen equipment also comprises more than one or one program and is stored in storer 801, and is configured to be performed by more than one or one processor 804 state more than one or one routine package containing the instruction for carrying out following operation:
When listen to user's input for starting the instruction of text selection time, display suspension control, and show the first text cursor and the second text cursor according to above-mentioned instruction;
When detecting that above-mentioned suspension control is triggered, above-mentioned first text cursor or above-mentioned second text cursor are moved one.
Suppose that above-mentioned is the first possible embodiment, in the embodiment that the second then provided based on the embodiment that the first is possible is possible, above-mentioned suspension control comprises: forward space button, alternatively, when detecting that above-mentioned suspension control is triggered, touch-screen equipment by above-mentioned first text cursor or above-mentioned second text cursor toward moving right one.
In the third the possible embodiment provided based on the embodiment that the second is possible, when above-mentioned first text cursor is not selected, and above-mentioned second text cursor is not selected, and when detecting that above-mentioned forward space button is triggered, by above-mentioned second text cursor from current location toward moving right one; When above-mentioned first text cursor is selected, and above-mentioned second text cursor is not selected, and when detecting that above-mentioned forward space button is triggered, by above-mentioned first text cursor from current location toward moving right one; When above-mentioned second text cursor is selected, and when detecting that above-mentioned forward space button is triggered, by above-mentioned second text cursor from current location toward moving right one.
Based on the first possible embodiment or the possible implementation of the second or the third possible implementation and in the 4th kind of possible embodiment provided, above-mentioned suspension control also comprises: backspace button; When detecting that above-mentioned backspace button is triggered, above-mentioned first text cursor or above-mentioned second text cursor are moved left one from current location is past.
In the 5th kind of possible embodiment provided based on the 4th kind of possible embodiment, when above-mentioned first text cursor is not selected, and above-mentioned second text cursor is not selected, and when detecting that above-mentioned backspace button is triggered, by above-mentioned first text cursor from current location toward moving left one; When above-mentioned first text cursor is not selected, and when above-mentioned second text cursor is selected, and when detecting that above-mentioned backspace button is triggered, by above-mentioned second text cursor from current location toward moving left one; When above-mentioned first text cursor is selected, and when detecting that above-mentioned backspace button is triggered, by above-mentioned first text cursor from current location toward moving left one.
Based on the first possible embodiment or the possible implementation of the second or the third possible implementation and in the 6th kind of possible embodiment provided, when listening to user and inputting prearranged gesture, determine the instruction for starting text selection listening to user's input; Above-mentioned first text cursor and above-mentioned second text cursor is shown within the scope of the predeterminated position of the input position relative to above-mentioned prearranged gesture.
It should be noted that, touch-screen equipment in the embodiment of the present invention includes but not limited to smart mobile phone, panel computer, can as the touch-screen equipment in above-mentioned embodiment of the method, may be used for the whole technical schemes realized in said method embodiment, the function of its each functional module can according to the method specific implementation in said method embodiment, its specific implementation process can refer to the associated description in above-described embodiment, repeats no more herein.
Therefore, touch-screen equipment in the present invention listen to user's input for starting the instruction of text selection time, display suspension control, and show the first text cursor and the second text cursor according to above-mentioned instruction, first text cursor or the second text cursor can be moved one by triggering suspension control by user, thus overcome user when moving text cursor by touch screen, often can move the defect of the distance being greater than a character, greatly reduce the difficulty of cursor precise positioning, and, owing to being in text between the first text cursor and the second text cursor for choosing text, therefore, technical solution of the present invention also improves the ease for use that user accurately chooses text.
In several embodiments that the application provides, should be understood that disclosed apparatus and method can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. various can be program code stored medium.
It should be noted that, for aforesaid each embodiment of the method, in order to easy description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not by the restriction of described sequence of movement, because according to the present invention, some step can adopt other order or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in instructions all belongs to preferred embodiment, and involved action and module might not be all that the present invention is necessary.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part described in detail, can see the associated description of other embodiment.
Above to a kind of cursor positioning method provided by the present invention and touch-screen equipment, for one of ordinary skill in the art, according to the thought of the embodiment of the present invention, all will change in specific embodiments and applications, to sum up, this description should not be construed as limitation of the present invention.
Claims (12)
1. a text cursor localization method, is characterized in that, comprising:
When listen to user's input for starting the instruction of text selection time, display suspension control, and show the first text cursor and the second text cursor according to described instruction;
When detecting that described suspension control is triggered, described first text cursor or described second text cursor are moved one;
Wherein, text between described first text cursor and described second text cursor is in for choosing text.
2. method according to claim 1, is characterized in that,
Described suspension control comprises: forward space button;
Described when detecting that described suspension control is triggered, described first text cursor or described second text cursor are moved one, comprising:
When detecting that described forward space button is triggered, described first text cursor or described second text cursor are moved right one from current location is past.
3. method according to claim 2, is characterized in that, described when detecting that described forward space button is triggered, and described first text cursor or described second text cursor is moved right one from current location is past, comprising:
When described first text cursor is not selected, and described second text cursor is not selected, and when detecting that described forward space button is triggered, by described second text cursor from current location toward moving right one;
When described first text cursor is selected, and described second text cursor is not selected, and when detecting that described forward space button is triggered, by described first text cursor from current location toward moving right one;
When described second text cursor is selected, and when detecting that described forward space button is triggered, by described second text cursor from current location toward moving right one.
4. the method according to any one of claims 1 to 3, is characterized in that,
Described suspension control comprises: backspace button;
Described when detecting that described suspension control is triggered, described first text cursor or described second text cursor are moved one, comprising:
When detecting that described backspace button is triggered, described first text cursor or described second text cursor are moved left one from current location is past.
5. method according to claim 4, is characterized in that, described when detecting that described backspace button is triggered, and described first text cursor or described second text cursor is moved left one from current location is past, comprising:
When described first text cursor is not selected, and described second text cursor is not selected, and when detecting that described backspace button is triggered, by described first text cursor from current location toward moving left one;
When described first text cursor is not selected, and when described second text cursor is selected, and when detecting that described backspace button is triggered, then described second text cursor is moved left one from current location is past;
When described first text cursor is selected, and when detecting that described backspace button is triggered, then described first text cursor is moved left one from current location is past.
6. the method according to any one of claims 1 to 3, is characterized in that, described method comprises:
When listening to user and inputting prearranged gesture, determine the instruction for starting text selection listening to user's input;
Describedly show the first text cursor and the second text cursor according to described instruction, comprising:
Above-mentioned first text cursor and above-mentioned second text cursor is shown within the scope of the predeterminated position of the input position relative to above-mentioned prearranged gesture.
7. a touch-screen equipment, is characterized in that, comprising:
Monitoring unit, for the instruction of monitoring users input;
Display unit, for listen to when described monitoring unit user's input for starting the instruction of text selection time, display suspension control, and show the first text cursor and the second text cursor according to described instruction;
Detecting unit, for detecting the trigger event of described suspension control;
Mobile unit, during for detecting that described suspension control is triggered when described detecting unit, moves one by described first text cursor or described second text cursor;
Wherein, text between described first text cursor and described second text cursor is in for choosing text.
8. touch-screen equipment according to claim 7, is characterized in that,
Described suspension control comprises: forward space button;
Described mobile unit specifically for: when described detecting unit detects that described forward space button is triggered, by described first text cursor or described second text cursor from current location toward moving right one.
9. touch-screen equipment according to claim 8, is characterized in that,
Described mobile unit specifically for: when described first text cursor is not selected, and described second text cursor is not selected, and when described detecting unit detects that described forward space button is triggered, by described second text cursor from current location toward moving right one; When described first text cursor is selected, and described second text cursor is not selected, and when described detecting unit detects that described forward space button is triggered, by described first text cursor from current location toward moving right one; When described second text cursor is selected, and when described detecting unit detects that described forward space button is triggered, by described second text cursor from current location toward moving right one.
10. the touch-screen equipment according to any one of claim 7 to 9, is characterized in that,
Described suspension control comprises: backspace button;
Described mobile unit concrete also for: when described detecting unit detects that described backspace button is triggered, by described first text cursor or described second text cursor from current location toward moving left one.
11. touch-screen equipments according to claim 10, is characterized in that,
Described mobile unit specifically for: when described first text cursor is not selected, and described second text cursor is not selected, and when described detecting unit detects that described backspace button is triggered, by described first text cursor from current location toward moving left one; When described first text cursor is not selected, and when described second text cursor is selected, and described detecting unit detects described backspace button when being triggered, by described second text cursor from current location toward moving left one; When described first text cursor is selected, and when described detecting unit detects that described backspace button is triggered, by described first text cursor from current location toward moving left one.
12. touch-screen equipments according to any one of claim 7 to 9, is characterized in that,
Described monitoring unit, specifically for: the gesture of monitoring users input;
Described display unit, specifically for: when described monitoring unit listen to user input prearranged gesture time, within the scope of the predeterminated position of the input position relative to above-mentioned prearranged gesture, show above-mentioned first text cursor and above-mentioned second text cursor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410103409.6A CN104932807A (en) | 2014-03-19 | 2014-03-19 | Cursor positioning method and touch screen device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410103409.6A CN104932807A (en) | 2014-03-19 | 2014-03-19 | Cursor positioning method and touch screen device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104932807A true CN104932807A (en) | 2015-09-23 |
Family
ID=54119991
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410103409.6A Pending CN104932807A (en) | 2014-03-19 | 2014-03-19 | Cursor positioning method and touch screen device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104932807A (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105404444A (en) * | 2015-11-26 | 2016-03-16 | 广州华多网络科技有限公司 | Cursor moving method and apparatus |
CN106484229A (en) * | 2016-09-28 | 2017-03-08 | 珠海市魅族科技有限公司 | Cursor-moving method and electronic equipment |
CN106775211A (en) * | 2016-11-29 | 2017-05-31 | 深圳天珑无线科技有限公司 | One kind positioning light target moving method and device |
CN107404582A (en) * | 2017-07-30 | 2017-11-28 | 安徽云帮邦网络技术有限公司 | A kind of cell phone system text input program |
CN107589895A (en) * | 2017-08-23 | 2018-01-16 | 努比亚技术有限公司 | Select method, mobile terminal and the computer-readable recording medium of text |
CN107957829A (en) * | 2016-10-14 | 2018-04-24 | 腾讯科技(深圳)有限公司 | A kind of input light target editor location regulation method, device and terminal device |
CN108132752A (en) * | 2017-12-21 | 2018-06-08 | 维沃移动通信有限公司 | A kind of method for editing text and mobile terminal |
CN109062889A (en) * | 2018-06-27 | 2018-12-21 | 北京明略软件系统有限公司 | A kind of text marking method and apparatus, computer readable storage medium |
CN111273827A (en) * | 2020-01-17 | 2020-06-12 | 维沃移动通信有限公司 | Text processing method and electronic equipment |
CN113253881A (en) * | 2018-06-01 | 2021-08-13 | 聚好看科技股份有限公司 | Control display method and terminal equipment |
CN114610192A (en) * | 2022-03-17 | 2022-06-10 | 维沃移动通信有限公司 | Text selection method, text selection device, electronic equipment and readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102171635A (en) * | 2008-10-07 | 2011-08-31 | 捷讯研究有限公司 | Portable electronic device and method of controlling same |
CN102681695A (en) * | 2012-04-25 | 2012-09-19 | 北京三星通信技术研究有限公司 | Cursor control method and device |
CN102681765A (en) * | 2011-03-09 | 2012-09-19 | Lg电子株式会社 | Mobile terminal and text cursor operating method thereof |
CN102890580A (en) * | 2012-09-06 | 2013-01-23 | 百度在线网络技术(北京)有限公司 | Mobile terminal and method for selecting cursor position in mobile terminal |
CN103135901A (en) * | 2013-02-04 | 2013-06-05 | 广东欧珀移动通信有限公司 | Method for accurately selecting textual words in mobile terminal and mobile terminal |
-
2014
- 2014-03-19 CN CN201410103409.6A patent/CN104932807A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102171635A (en) * | 2008-10-07 | 2011-08-31 | 捷讯研究有限公司 | Portable electronic device and method of controlling same |
CN102681765A (en) * | 2011-03-09 | 2012-09-19 | Lg电子株式会社 | Mobile terminal and text cursor operating method thereof |
CN102681695A (en) * | 2012-04-25 | 2012-09-19 | 北京三星通信技术研究有限公司 | Cursor control method and device |
CN102890580A (en) * | 2012-09-06 | 2013-01-23 | 百度在线网络技术(北京)有限公司 | Mobile terminal and method for selecting cursor position in mobile terminal |
CN103135901A (en) * | 2013-02-04 | 2013-06-05 | 广东欧珀移动通信有限公司 | Method for accurately selecting textual words in mobile terminal and mobile terminal |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105404444A (en) * | 2015-11-26 | 2016-03-16 | 广州华多网络科技有限公司 | Cursor moving method and apparatus |
CN105404444B (en) * | 2015-11-26 | 2019-07-05 | 广州华多网络科技有限公司 | Cursor-moving method and device |
CN106484229A (en) * | 2016-09-28 | 2017-03-08 | 珠海市魅族科技有限公司 | Cursor-moving method and electronic equipment |
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 |
CN106775211A (en) * | 2016-11-29 | 2017-05-31 | 深圳天珑无线科技有限公司 | One kind positioning light target moving method and device |
CN107404582A (en) * | 2017-07-30 | 2017-11-28 | 安徽云帮邦网络技术有限公司 | A kind of cell phone system text input program |
CN107589895A (en) * | 2017-08-23 | 2018-01-16 | 努比亚技术有限公司 | Select method, mobile terminal and the computer-readable recording medium of text |
WO2019120192A1 (en) * | 2017-12-21 | 2019-06-27 | 维沃移动通信有限公司 | Method for editing text, and mobile device |
CN108132752A (en) * | 2017-12-21 | 2018-06-08 | 维沃移动通信有限公司 | A kind of method for editing text and mobile terminal |
US11340777B2 (en) | 2017-12-21 | 2022-05-24 | Vivo Mobile Communication Co., Ltd. | Method for editing text and mobile terminal |
CN113253881A (en) * | 2018-06-01 | 2021-08-13 | 聚好看科技股份有限公司 | Control display method and terminal equipment |
CN109062889A (en) * | 2018-06-27 | 2018-12-21 | 北京明略软件系统有限公司 | A kind of text marking method and apparatus, computer readable storage medium |
CN111273827A (en) * | 2020-01-17 | 2020-06-12 | 维沃移动通信有限公司 | Text processing method and electronic equipment |
CN111273827B (en) * | 2020-01-17 | 2021-10-22 | 维沃移动通信有限公司 | Text processing method and electronic equipment |
CN114610192A (en) * | 2022-03-17 | 2022-06-10 | 维沃移动通信有限公司 | Text selection method, text selection device, electronic equipment and readable storage medium |
WO2023174369A1 (en) * | 2022-03-17 | 2023-09-21 | 维沃移动通信有限公司 | Text selection method, text selection apparatus, electronic device and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104932807A (en) | Cursor positioning method and touch screen device | |
US11132121B2 (en) | Method, apparatus, storage medium, and electronic device of processing split screen display | |
CN102272699B (en) | gesture detection zones | |
KR102020345B1 (en) | The method for constructing a home screen in the terminal having touchscreen and device thereof | |
CN107422934A (en) | The method to set up and electronic equipment of a kind of icon | |
CN102880401B (en) | A kind of method and mobile terminal simplifying user interface buttons | |
CN105393205A (en) | Electronic device and method for controlling applications in the electronic device | |
AU2015327573B2 (en) | Interaction method for user interfaces | |
CN105389104A (en) | Application interface control controlling method and related equipment | |
CN104267903A (en) | Method and device for displaying multimedia lyric information | |
CN103235692A (en) | Touch-screen device and method for touch-screen device to select target objects | |
CN103530045A (en) | Menu item starting method and mobile terminal | |
CN105824693A (en) | Control method for multitask display and mobile terminal | |
CN105243345A (en) | Accidental touch preventing method for electronic equipment and electronic equipment | |
CN104991696A (en) | Information processing method and electronic equipment | |
KR20140105331A (en) | Mobile terminal for controlling objects display on touch screen and method therefor | |
US20160313960A1 (en) | Control Method, Control Apparatus, And Electronic Device | |
JP2012155675A (en) | Touch panel device | |
CN104820619A (en) | Application program switching method and device for mobile terminal | |
CN102768597B (en) | Method and device for operating electronic equipment | |
JP2013145556A (en) | Electronic equipment and method for controlling the same | |
CN103616994A (en) | Method and device for controlling electronic device | |
CN105278668A (en) | Mobile terminal control method and mobile terminal | |
CN103019610A (en) | Object selection method and terminal | |
CN102314299A (en) | Electronic equipment and display switching method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150923 |
|
RJ01 | Rejection of invention patent application after publication |