CN105138256A - Cursor positioning method and apparatus and terminal - Google Patents

Cursor positioning method and apparatus and terminal Download PDF

Info

Publication number
CN105138256A
CN105138256A CN201510399108.7A CN201510399108A CN105138256A CN 105138256 A CN105138256 A CN 105138256A CN 201510399108 A CN201510399108 A CN 201510399108A CN 105138256 A CN105138256 A CN 105138256A
Authority
CN
China
Prior art keywords
cursor
sliding
submodule
action information
judged
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510399108.7A
Other languages
Chinese (zh)
Inventor
宫伟俊
陈杨
刘国明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510399108.7A priority Critical patent/CN105138256A/en
Publication of CN105138256A publication Critical patent/CN105138256A/en
Pending legal-status Critical Current

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention relates to a cursor positioning method and apparatus and a terminal. The method comprises: in a text editing state, obtaining slide action information of a user in a set region of a screen; and based on the slide action information, positioning a cursor in a text. By applying the embodiments of the invention, the terminal is capable of positioning the cursor in the text based on the slide action information of the user in the set region of the screen. By applying the embodiments of the invention, the terminal is capable of positioning the cursor by only performing a slide action on the screen, so that the operation is simple and convenient, the positioning is accurate, and the cursor positioning efficiency is improved.

Description

Cursor positioning method, device and terminal
Technical field
The disclosure relates to communication technical field, particularly relates to a kind of cursor positioning method, device and terminal.
Background technology
When user is when Edit Text in the terminal such as mobile phone with touch-screen, if need to revise text, the mode usually clicking screen by finger is reorientated cursor, so that the content that amendment is edited.
In correlation technique, because the font of text is usually less, the interval between each word is also less, and finger easily will put wrong position.And when screen that finger is close, more word can be blocked, cursor is reorientated when can't see word with regard to needing like this, thus location can be caused inaccurate, need repeatedly clicking operation just can position a cursor over target location, troublesome poeration, brings bad Consumer's Experience to user.
Summary of the invention
Present disclose provides a kind of cursor positioning method, device and terminal, to solve in correlation technique when Edit Text, cursor is not easy location, often needs to click the problem repeatedly could accurately located.
According to the first aspect of disclosure embodiment, a kind of cursor positioning method is provided, comprises:
Under text editing state, obtain the sliding action information of user's setting regions on screen;
Based on described sliding action information, the cursor in described text is positioned.
Optionally, described acquisition user slide screen sliding action information before, described method also comprises:
The sliding action of slip screen is detected in the described setting regions of described screen.
Optionally, describedly based on described sliding action information, the cursor in described text to be positioned, comprising:
Extract the slip reference position in described sliding action information;
Read the current location of described cursor;
Judge that whether described slip reference position is consistent with the coordinate of the current location of described cursor;
Based on judged result, the cursor in described text is positioned.
Optionally, describedly based on judged result, the cursor in described text to be positioned, comprising:
When being judged as that described slip reference position is consistent with the coordinate of the current location of described cursor, extract the slip final position in described sliding action information;
Described cursor is navigated in the setting range corresponding to described slip final position.
Optionally, describedly based on judged result, the cursor in described text to be positioned, comprising:
When the coordinate of the current location being judged as described slip reference position and described cursor is inconsistent, extract the sliding trace in described sliding action information;
Based on the current location of described sliding trace, described slip reference position and described cursor, determine the target location of described cursor;
Described cursor is navigated to the target location of described cursor.
Optionally, describedly based on described sliding action information, the cursor in described text to be positioned, comprising:
Extract the glide direction in described sliding action information;
Based on described glide direction, the cursor in described text is positioned.
Optionally, describedly based on described glide direction, the cursor in described text to be positioned, comprising:
Judge whether described glide direction belongs to first direction;
When being judged as that described glide direction belongs to first direction, extract the sliding distance in described sliding action information;
Judge whether described sliding distance is greater than the first predeterminable range;
When being judged as that described sliding distance is greater than the first predeterminable range, described cursor is moved the first displacement toward the first moving direction; When being judged as that described sliding distance is not more than described first predeterminable range, described cursor is moved the second displacement toward described first moving direction.
Optionally, described first direction comprises the horizontal direction of described screen, and described first moving direction is identical with first direction or contrary.
Optionally, describedly based on described glide direction, the cursor in described text to be positioned, comprising:
Judge whether described glide direction belongs to second direction;
When being judged as that described glide direction belongs to second direction, extract the sliding distance in described sliding action information;
Judge whether described sliding distance is greater than the second predeterminable range;
When being judged as that described sliding distance is greater than the second predeterminable range, described cursor is moved the 3rd displacement toward the second moving direction; When being judged as that described sliding distance is not more than described second predeterminable range, described cursor is moved the 4th displacement toward described second moving direction.
Optionally, described second direction comprises the vertical direction of described screen, and described second moving direction is identical with second direction or contrary.
Optionally, describedly based on described glide direction, the cursor in described text to be positioned, comprising:
Judge whether described glide direction belongs to third direction;
When being judged as that described glide direction belongs to third direction, extract the slip reference position in described sliding action information;
Read the current location of described cursor;
Judge that whether described slip reference position is consistent with the coordinate of the current location of described cursor;
Based on judged result, the cursor in described text is positioned.
Optionally, describedly based on judged result, the cursor in described text to be positioned, comprising:
When being judged as that described slip reference position is consistent with the coordinate of the current location of described cursor, extract the slip final position in described sliding action information;
Described cursor is navigated in the setting range corresponding to described slip final position.
Optionally, describedly based on judged result, the cursor in described text to be positioned, comprising:
When the coordinate of the current location being judged as described slip reference position and described cursor is inconsistent, extract the sliding trace in described sliding action information;
Based on the current location of described sliding trace, described slip reference position and described cursor, determine the target location of described cursor;
Described cursor is navigated to the target location of described cursor.Optionally, describedly based on described glide direction, the cursor in described text to be positioned, comprising:
Judge whether described glide direction belongs to third direction;
When being judged as that described glide direction belongs to third direction, determine the cursor position farthest in described glide direction;
Cursor position farthest described in described cursor is navigated to.
Optionally, described third direction comprises the direction except the horizontal direction of described screen and vertical direction.
Optionally, describedly based on described sliding action information, the cursor in described text to be positioned, comprising:
Extract the sliding trace in described sliding action information and sliding distance;
The gesture template of described sliding trace and pre-stored is compared, obtains similarity;
When described similarity is greater than setting threshold value, based on extracted sliding distance and/or sliding distance corresponding to described gesture template, determine that described cursor will the distance of movement; The moving direction of described cursor is determined based on the moving direction that described gesture template is corresponding;
Based on determined described Distance geometry moving direction, described cursor is positioned.
According to the second aspect of disclosure embodiment, a kind of cursor positioner is provided, comprises:
Sliding action data obtaining module, under text editing state, obtains the sliding action information of user's setting regions on screen;
Locating module, for positioning the cursor in described text based on described sliding action information.
Optionally, described device also comprises:
Detection module, for detecting the sliding action of slip screen in the described setting regions of described screen.
Optionally, described locating module comprises:
First slip reference position extracts submodule, for extracting the slip reference position in described sliding action information;
First cursor current location reading submodule, for reading the current location of described cursor;
First coordinate judges submodule, for judging that whether described slip reference position is consistent with the coordinate of the current location of described cursor;
First locator module, for positioning the cursor in described text based on judged result.
Optionally, described first locator module comprises:
First slip final position extracts submodule, for when being judged as that described slip reference position is consistent with the coordinate of the current location of described cursor, extracts the slip final position in described sliding action information;
Second locator module, for navigating to described cursor in the setting range corresponding to described slip final position.
Optionally, described first locator module comprises:
First sliding trace extracts submodule, for when the coordinate of the current location being judged as described slip reference position and described cursor is inconsistent, extracts the sliding trace in described sliding action information;
Submodule is determined in first cursor target location, for the current location based on described sliding trace, described slip reference position and described cursor, determines the target location of described cursor;
3rd locator module, for navigating to the target location of described cursor by described cursor.
Optionally, described locating module comprises:
First glide direction extracts submodule, for extracting the glide direction in described sliding action information;
4th locator module, for positioning the cursor in described text based on described glide direction.
Optionally, described 4th locator module comprises:
First direction judges submodule, for judging whether described glide direction belongs to first direction;
First sliding distance extracts submodule, for when being judged as that described glide direction belongs to first direction, extracts the sliding distance in described sliding action information;
First predeterminable range judges submodule, for judging whether described sliding distance is greater than the first predeterminable range;
First cursor mover module, for when being judged as that described sliding distance is greater than the first predeterminable range, moves the first displacement by described cursor toward the first moving direction; When being judged as that described sliding distance is not more than described first predeterminable range, described cursor is moved the second displacement toward described first moving direction.
Optionally, described first direction judges that described first direction that submodule judges comprises the horizontal direction of described screen, and described first moving direction is identical with first direction or contrary.
Optionally, described 4th locator module comprises:
Second direction judges submodule, for judging whether described glide direction belongs to second direction;
Second sliding distance extracts submodule, for when being judged as that described glide direction belongs to second direction, extracts the sliding distance in described sliding action information;
Second predeterminable range judges submodule, for judging whether described sliding distance is greater than the second predeterminable range;
Second cursor mover module, for when being judged as that described sliding distance is greater than the second predeterminable range, moves the 3rd displacement by described cursor toward the second moving direction; When being judged as that described sliding distance is not more than described second predeterminable range, described cursor is moved the 4th displacement toward described second moving direction.
Optionally, described second direction judges that described second direction that submodule judges comprises the vertical direction of described screen, and described second moving direction is identical with second direction or contrary.
Optionally, described 4th locator module comprises:
Third direction judges submodule, for judging whether described glide direction belongs to third direction;
Second slip reference position extracts submodule, for when being judged as that described glide direction belongs to described third direction, extracts the slip reference position in described sliding action information;
Second cursor current location reading submodule, for reading the current location of described cursor;
Second coordinate judges submodule, for judging that whether described slip reference position is consistent with the coordinate of the current location of described cursor;
5th locator module, for positioning the cursor in described text based on judged result.
Optionally, described 5th locator module comprises:
Second slip final position extracts submodule, for when being judged as that described slip reference position is consistent with the coordinate of the current location of described cursor, extracts the slip final position in described sliding action information;
6th locator module, for navigating to described cursor in the setting range corresponding to described slip final position.
Optionally, described 5th locator module comprises:
Second sliding trace extracts submodule, for when the coordinate of the current location being judged as described slip reference position and described cursor is inconsistent, extracts the sliding trace in described sliding action information;
Submodule is determined in second cursor target location, for the current location based on described sliding trace, described slip reference position and described cursor, determines the target location of described cursor;
7th locator module, for navigating to the target location of described cursor by described cursor.
Optionally, described 4th locator module comprises:
Third direction judges submodule, for judging whether described glide direction belongs to third direction;
Cursor position determination submodule farthest, for when being judged as that described glide direction belongs to described third direction, determines the cursor position farthest in described glide direction;
8th locator module, for cursor position farthest described in being navigated to by described cursor.
Optionally, described third direction judges that the described third direction that submodule judges is the direction except the horizontal direction of described screen and the vertical direction of described screen.
Optionally, described locating module comprises:
Track distance extracts submodule, for extracting sliding trace in described sliding action information and sliding distance;
Comparer module, for the gesture template of described sliding trace and pre-stored being compared, obtains similarity;
Displacement determination submodule, during for being greater than setting threshold value in described similarity, based on extracted sliding distance and/or sliding distance corresponding to described gesture template, determines that described cursor will the distance of movement; The moving direction of described cursor is determined based on the moving direction that described gesture template is corresponding;
9th locator module, for positioning described cursor based on determined described distance.
According to the third aspect of disclosure embodiment, a kind of terminal is provided, comprises: processor; For the storer of storage of processor executable instruction; Wherein, described processor is configured to:
Under text editing state, obtain the sliding action information of user's setting regions on screen;
Based on described sliding action information, the cursor in described text is positioned.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
In the disclosure, terminal can position the cursor in text based on user's sliding action information of setting regions on screen.Application disclosure embodiment, terminal only needs to do on screen the location that sliding action just can realize cursor, and simple to operate, convenient, accurate positioning, improves the efficiency that cursor is located.
In the disclosure, terminal by judging that whether the slip reference position in sliding action information is consistent with cursor current location, can position cursor.
When slip reference position in the disclosure in sliding action information is consistent with cursor current location, cursor can directly navigate in the setting range corresponding to slip final position by terminal, and this mode is easy and simple to handle, is easy to realize.
Slip reference position in the disclosure in sliding action information and cursor current location inconsistent time, sliding trace can be carried out translation by terminal, slip reference position is overlapped with cursor current location, obtain cursor target location, the position that namely cursor will be navigated to, this mode user aims at the work of cursor current location without the need to doing, it is more convenient to operate.
Glide direction in the disclosure in sliding action information is first direction or second direction, namely when screen horizontal direction or vertical direction, terminal can determine the displacement of cursor based on sliding distance, thus realizes the location of cursor on the horizontal direction and vertical direction of screen.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in instructions and to form the part of this instructions, shows and meets embodiment of the present disclosure, and is used from instructions one and explains principle of the present disclosure.
Fig. 1 is a kind of cursor positioning method process flow diagram of the disclosure according to an exemplary embodiment.
Fig. 2 (A) and Fig. 2 (B) is a kind of cursor position application scene schematic diagram of the disclosure according to an exemplary embodiment.
Fig. 3 is a kind of cursor positioner block diagram of the disclosure according to an exemplary embodiment.
Fig. 4 is the another kind of cursor positioner block diagram of the disclosure according to an exemplary embodiment.
Fig. 5 is the another kind of cursor positioner block diagram of the disclosure according to an exemplary embodiment.
Fig. 6 is the another kind of cursor positioner block diagram of the disclosure according to an exemplary embodiment.
Fig. 7 is the another kind of cursor positioner block diagram of the disclosure according to an exemplary embodiment.
Fig. 8 is the another kind of cursor positioner block diagram of the disclosure according to an exemplary embodiment.
Fig. 9 is the another kind of cursor positioner block diagram of the disclosure according to an exemplary embodiment.
Figure 10 is the another kind of cursor positioner block diagram of the disclosure according to an exemplary embodiment.
Figure 11 is the another kind of cursor positioner block diagram of the disclosure according to an exemplary embodiment.
Figure 12 is the another kind of cursor positioner block diagram of the disclosure according to an exemplary embodiment.
Figure 13 is the another kind of cursor positioner block diagram of the disclosure according to an exemplary embodiment.
Figure 14 is the another kind of cursor positioner block diagram of the disclosure according to an exemplary embodiment.
Figure 15 is the another kind of cursor positioner block diagram of the disclosure according to an exemplary embodiment.
Figure 16 is a kind of structural representation for cursor positioner of the disclosure according to an exemplary embodiment.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the disclosure.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present disclosure are consistent.
The term used in the disclosure is only for the object describing specific embodiment, and the not intended to be limiting disclosure." one ", " described " and " being somebody's turn to do " of the singulative used in disclosure and the accompanying claims book is also intended to comprise most form, unless context clearly represents other implications.It is also understood that term "and/or" used herein refer to and comprise one or more project of listing be associated any or all may combine.
Term first, second, third, etc. may be adopted although should be appreciated that to describe various information in the disclosure, these information should not be limited to these terms.These terms are only used for the information of same type to be distinguished from each other out.Such as, when not departing from disclosure scope, the first information also can be called as the second information, and similarly, the second information also can be called as the first information.Depend on linguistic context, word as used in this " if " can be construed as into " ... time " or " when ... time " or " in response to determining ".
As shown in Figure 1, Fig. 1 is a kind of cursor positioning method process flow diagram according to an exemplary embodiment, and the method may be used for, in terminal, comprising the following steps:
Step 101, under text editing state, obtain the sliding action information of user setting regions on screen.
Terminal in the disclosure can be anyly have an intelligent terminal of text editing function with touch-screen, such as, can be specially mobile phone, panel computer, PDA (PersonalDigitalAssistant, personal digital assistant) etc.Can also be with touch-screen or with the other-end of touch-screen collaborative work or equipment.
In the disclosure, user is by the action of touch-screen input text information, comprise the text editing action that message editor, editor's address list, editor's social network information etc. are any, during the sliding action occurred when terminal detects user at Edit Text, gather user's sliding action information on the touchscreen, this sliding action information can comprise glide direction, sliding distance, sliding trace etc.Wherein glide direction can be any direction; Sliding distance is the concrete distance that the article of finger or manipulation touch-screen slip on the touchscreen, and glide direction is mainly used in determining to make cursor to which direction move.
In the disclosure, the text editing action of user can perform by pointing, can also by pointer etc., and even other article that can be used for operating touch-screen perform.
In the disclosure, the slip locating area of touch-screen can be pre-set.Such as, text edit area can be set to slip locating area, the region different from handwriting input region can be set to slip locating area, the sliding action only performed in the slip locating area of setting can be used for positioning cursor; In addition also any position of touch-screen all can be set to slip locating area.And, can cursor be positioned the enterprising line slip operation in any direction in 360 of slip locating area °.
Step 102, based on obtained sliding action information, cursor to be positioned.
In the disclosure, can position cursor based on the difference of reference position of sliding in sliding action information.
Under this mode, first the slip reference position in sliding action information is extracted, and read the current location of cursor, then the two coordinate of slip reference position and cursor current location is compared, when being judged as that slip reference position is consistent with the coordinate of cursor current location, extract the slip final position in this sliding action information, cursor is navigated in the position setting range that maybe this slip final position is corresponding corresponding to the coordinate of this slip final position, such as using character pitch nearest for the coordinate from slip final position as cursor target location, thus the location realized cursor.Wherein, the reference position of cursor current location and cursor is arranged in after last character that text box edits.
When being judged as that the coordinate of slip reference position and cursor current location is inconsistent, extract the sliding trace in sliding action information, based on this sliding trace and slip reference position, and determine cursor target location in conjunction with cursor current location, then cursor is navigated to this target location determined, thus realize the location to cursor.
That is, sliding trace is a straight line or curve, and this line is carried out translation, slip reference position is overlapped with cursor current location, thus can determine cursor target location, then cursor is navigated to this cursor target location.
In the disclosure, can also position cursor based on the difference of glide direction.
Under this mode, first extract the glide direction in sliding action information, and judge that glide direction is horizontal direction or vertical direction other directions still except horizontal direction and vertical direction.Wherein, horizontal direction refers to screen horizontal direction, and vertical direction refers to screen vertical direction.And, because the direction in practical operation may not have so accurate, the deviation range of about 10 ° can be set in the disclosure, even if that is depart from vertical direction or horizontal direction 5 °, also can think that glide direction is horizontal direction or vertical direction.
When being judged as that glide direction is horizontal direction, extract the sliding distance in sliding action information, and judge whether this sliding distance is greater than the first predeterminable range, when being judged as being greater than the first predeterminable range, cursor is moved the first displacement toward the first moving direction; When being judged as being not more than the first predeterminable range, cursor is moved the second displacement toward the first moving direction.
In this manner, the first predeterminable range can be arranged based on screen transverse direction or character boundary, such as, can be set to the half of screen transverse direction, or be set to the transverse direction of some characters; First displacement and the second displacement also can be arranged based on character number, and the first direction initialization can be set as identical with glide direction or contrary.Such as can be set to, if sliding distance is greater than the half of screen transverse direction, so cursor can move 2 characters to glide direction, if sliding distance is less than the half of screen transverse direction, so cursor can move 1 character to glide direction.
When being judged as that glide direction is vertical direction, extract the sliding distance in sliding action information, and judge whether this sliding distance is greater than the second predeterminable range, when being judged as being greater than the second predeterminable range, cursor is moved the 3rd displacement toward the second moving direction; When being judged as being not more than the second predeterminable range, cursor is moved the 4th displacement toward the second moving direction.
In this manner, the second predeterminable range vertical or character boundary, line space etc. can be arranged based on screen, such as, can be set to the vertical half of screen, or 1/3rd; 3rd displacement and the 4th displacement can be arranged based on text line number, and the second moving direction can be set as identical with glide direction, also can be set to contrary.Such as can be set to, if sliding distance is greater than the vertical half of screen, so cursor can move 2 row to glide direction, if sliding distance is less than the vertical half of screen, so cursor can move 1 row to glide direction.
When being judged as that glide direction is other directions except vertical direction and horizontal direction, first can obtain the slip reference position in sliding action information, slip reference position in sliding action information and cursor current location are compared, when being judged as that slip reference position is consistent with cursor current location, extract the coordinate of the slip final position in sliding action information, using position corresponding for the coordinate of slip final position or from the nearest character pitch of the coordinate of slip final position as cursor target location, realize the location to cursor.
When being judged as slip reference position and cursor current location is inconsistent, extract the glide direction in sliding action information and slip final position, based on this glide direction and slip final position determination cursor target location, then realize the location to cursor based on this target location determined.
In the disclosure, when being judged as that glide direction is other directions except vertical direction and horizontal direction, the glide direction in sliding action information can also be extracted, and determine the cursor position farthest in this glide direction, then position a cursor over the cursor position farthest in this glide direction.
In the disclosure, based on the gesture template preset, cursor can also be positioned.
In this fashion, positioning the moving direction that needs to determine cursor and cursor to cursor will the distance of movement.
Wherein, cursor will the distance of movement can be fixing, when sliding trace and gesture template matches, directly cursor fixing distance be can be moved, such as, the sliding trace in sliding action information and sliding distance extracted, then the gesture template of sliding trace and pre-stored is compared, obtain the similarity of the two, if similarity is greater than setting threshold value, then the locating rule searched corresponding to this gesture template positions cursor.This locating rule can for the sliding distance based on extracted sliding distance and/or gesture template, the cursor reading pre-stored will the distance of movement, and based on the moving direction of moving direction determination cursor corresponding to this gesture template, then will the Distance geometry moving direction of movement cursor be positioned based on determined.
In addition, can also determine based on the multiple proportion between sliding distance and sliding distance corresponding to gesture template that cursor will the distance of movement.Such as, prestore glide direction gesture template left, the vertical of this gesture template is the vertical of a mobile character.When the similarity of sliding trace and gesture template be greater than set threshold value time, judge the vertical relation of the vertical of sliding trace and gesture template, if sliding trace vertical is vertical 1.5 times of gesture template, then cursor is moved to the left 2 characters to position, namely, when this multiple is between 1 times to 2 times, selects 2 times and cursor is moved; If sliding trace vertical is vertical 2.3 times of gesture template, then cursor is moved to the left 3 characters and positions.
Concrete sensitivity freely can be arranged based on the use habit of user.
As shown in Fig. 2 (A) and (B), Fig. 2 (A) and (B) are a kind of cursor position application scene schematic diagram of the disclosure according to an exemplary embodiment.In the application scenarios shown in Fig. 2 (A) and (B), comprise the millet smart mobile phone as terminal, wherein slip locating area is any position on the screen of millet smart mobile phone.User is using this millet smart mobile phone to carry out short message editing, and current content of edit is " tomorrow afternoon six point, at good Xanadu | " such as shown in Fig. 2 (A), and cursor is positioned at after last edited character.Millet smart mobile phone obtains the sliding action information of user, and from this sliding action information, extract glide direction be horizontal direction, and namely the horizontal direction of screen, is specially and slides from right to left; Then millet smart mobile phone extracts the sliding distance in this sliding action information, and this sliding distance and the first predeterminable range are compared, here the first predeterminable range is the half of screen transverse direction, comparison result is that sliding distance is greater than the first predeterminable range, then cursor is moved to the left a character, at this moment content of edit is shown as " tomorrow afternoon six point, in good China | tall building " as shown in Fig. 2 (B).Relation between the distance of wherein concrete sliding distance and cursor movement can be arranged flexibly based on the custom of user and terminal feature.
In application scenarios shown in Fig. 2 (A) and (B), the detailed process realizing cursor location see aforementioned to the description in Fig. 1, can not repeat them here.
Corresponding with aforementioned cursor positioning method embodiment, the embodiment of terminal that the disclosure additionally provides cursor positioner and applies.
As shown in Figure 3, Fig. 3 is a kind of cursor positioner block diagram of the disclosure according to an exemplary embodiment, and this device can comprise: sliding action data obtaining module 310 and locating module 320.
Wherein, sliding action data obtaining module 310, is configured under text editing state, obtains the sliding action information of user's setting regions on screen;
Locating module 320, the sliding action information being configured to obtain based on sliding action data obtaining module 310 positions the cursor in text.
In above-described embodiment, terminal can position the cursor in text based on user's sliding action information of setting regions on screen.Application disclosure embodiment, terminal only needs to do on screen the location that sliding action just can realize cursor, and simple to operate, convenient, accurate positioning, improves the efficiency that cursor is located.
As shown in Figure 4, Fig. 4 is the another kind of cursor positioner block diagram of the disclosure according to an exemplary embodiment, and this embodiment is on aforementioned basis embodiment illustrated in fig. 3, and this device can also comprise: detection module 330.
Detection module 330, is configured to sliding action slip screen being detected in the setting regions of screen.
As shown in Figure 5, Fig. 5 is the another kind of cursor positioner block diagram of the disclosure according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 3, and this locating module 320 can comprise: the first slip reference position is extracted submodule 321, first cursor current location reading submodule 322, first coordinate and judged submodule 323 and the first locator module 324.
First slip reference position extracts submodule 321, is configured to the slip reference position extracted in the sliding action information of sliding action data obtaining module 310 acquisition;
First cursor current location reading submodule 322, is configured to the current location reading cursor;
First coordinate judges submodule 323, is configured to judge that first slides whether reference position to extract the slip reference position that submodule 321 extracts consistent with the coordinate of the current location of cursor;
First locator module 324, is configured to judge that the judged result of submodule 323 positions the cursor in text based on the first coordinate.
In above-described embodiment, terminal by judging that whether the slip reference position in sliding action information is consistent with cursor current location, can position cursor.
As shown in Figure 6, Fig. 6 is the another kind of cursor positioner block diagram of the disclosure according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 5, and the first locator module 324 can comprise: the first slip final position extracts submodule 3241 and the second locator module 3242.
First slip final position extracts submodule 3241, is configured to when the first coordinate judges that submodule 323 is judged as that slip reference position is consistent with the coordinate of the current location of cursor, extracts the slip final position in sliding action information;
Second locator module 3242, is configured to cursor to navigate to the first slip final position and extracts in the setting range corresponding to slip final position that submodule 3241 extracts.
In above-described embodiment, when the slip reference position in sliding action information is consistent with cursor current location, cursor can directly navigate in the setting range corresponding to slip final position by terminal, and this mode is easy and simple to handle, is easy to realize.
As shown in Figure 7, Fig. 7 is the another kind of cursor positioner block diagram of the disclosure according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 5, and the first locator module 324 can comprise: the first sliding trace extracts submodule 3243, first cursor target location and determines submodule 3245 and the 3rd locator module 3246.
Wherein, the first sliding trace extracts submodule 3243, is configured to when the first coordinate judges that submodule 323 is judged as that the coordinate of the current location of slip reference position and cursor is inconsistent, extracts the sliding trace in sliding action information;
Submodule 3245 is determined in first cursor target location, is configured to the current location extracting sliding trace, slip reference position and the cursor that submodule 3243 extracts based on sliding trace, determines the target location of cursor;
3rd locator module 3246, is configured to target location cursor being navigated to cursor.
In above-described embodiment, slip reference position in sliding action information and cursor current location inconsistent time, sliding trace can be carried out translation by terminal, slip reference position is overlapped with cursor current location, obtain cursor target location, the position that namely cursor will be navigated to, this mode user aims at the work of cursor current location without the need to doing, it is more convenient to operate.
As shown in Figure 8, Fig. 8 is the another kind of cursor positioner block diagram of the disclosure according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 3, and locating module 320 can also comprise: the first glide direction extracts submodule 325 and the 4th locator module 326.
First glide direction extracts submodule 325, is configured to extract the glide direction in sliding action information;
4th locator module 326, the glide direction being configured to extract based on the first glide direction submodule 325 extraction positions the cursor in text.
In above-described embodiment, terminal can also position cursor based on the glide direction in sliding action information.
As shown in Figure 9, Fig. 9 is the another kind of cursor positioner block diagram of the disclosure according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 8, and the 4th locator module 326 can comprise: first direction judges that submodule 3261, first sliding distance extracts submodule 3262, first predeterminable range and judges submodule 3263 and the first cursor mover module 3264.
First direction judges submodule 3261, is configured to judge whether the glide direction that the first glide direction extraction submodule 325 extracts belongs to first direction;
First sliding distance extracts submodule 3262, is configured to when first direction judges that submodule 3261 is judged as that glide direction belongs to first direction, extracts the sliding distance in sliding action information;
First predeterminable range judges submodule 3263, is configured to judge whether the sliding distance that the first sliding distance extraction submodule 3262 extracts is greater than the first predeterminable range;
First cursor mover module 3264, is configured to, when the first predeterminable range judges that submodule 3263 is judged as that sliding distance is greater than the first predeterminable range, cursor be moved the first displacement toward the first moving direction; When the first predeterminable range judges that submodule 3263 is judged as that sliding distance is not more than the first predeterminable range, cursor is moved the second displacement toward the first moving direction.
Wherein, first direction judges that first direction that submodule 3261 judges comprises the horizontal direction of screen, and the first moving direction is identical with first direction or contrary.
As shown in Figure 10, Figure 10 is the another kind of cursor positioner block diagram of the disclosure according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 8, and the 4th locator module 326 can comprise: second direction judges that submodule 3265, second sliding distance extracts submodule 3266, second predeterminable range and judges submodule 3267 and the second cursor mover module 3268.
Second direction judges submodule 3265, is configured to judge whether the glide direction that the first glide direction extraction submodule 325 extracts belongs to second direction;
Second sliding distance extracts submodule 3266, is configured to when second direction judges that submodule 3265 is judged as that glide direction belongs to second direction, extracts the sliding distance in sliding action information;
Second predeterminable range judges submodule 3267, is configured to judge whether the sliding distance that the second sliding distance extraction submodule 3266 extracts is greater than the second predeterminable range;
Second cursor mover module 3268, is configured to, when the second predeterminable range judges that submodule 3267 is judged as that sliding distance is greater than the second predeterminable range, cursor be moved the 3rd displacement toward the second moving direction; When the second predeterminable range judges that submodule 3267 is judged as that sliding distance is not more than the second predeterminable range, cursor is moved the 4th displacement toward the second moving direction.
Wherein, second direction judges that second direction that submodule 3265 judges comprises the vertical direction of screen, and the second moving direction is identical with second direction or contrary.
In above-described embodiment, glide direction in sliding action information is first direction or second direction, namely when screen horizontal direction or vertical direction, terminal can determine the displacement of cursor based on sliding distance, thus realizes the location of cursor on the horizontal direction and vertical direction of screen.
As shown in figure 11, Figure 11 is the another kind of cursor positioner block diagram of the disclosure according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 8, and the 4th locator module 326 can comprise: third direction judges that submodule 3269, second slip reference position is extracted submodule 32610, second cursor current location reading submodule 32611, second coordinate and judged submodule 32612 and the 5th locator module 32613.
Third direction judges submodule 3269, for judging whether the glide direction that the first glide direction extraction submodule 325 extracts belongs to third direction;
Second slip reference position extracts submodule 32610, is configured to when third direction judges that submodule 3269 is judged as that glide direction belongs to third direction, extracts the slip reference position in sliding action information;
Second cursor current location reading submodule 32611, is configured to the current location reading cursor;
Second coordinate judges submodule 32612, and whether the coordinate being configured to the current location judging the cursor that the second slip reference position of sliding the extraction of reference position extraction submodule 32610 reads with the second cursor current location reading submodule 32611 is consistent;
5th locator module 32613, is configured to judge that the judged result of submodule 32612 positions the cursor in text based on the second coordinate.
In above-described embodiment, when the glide direction in sliding action information is the direction except the horizontal direction of screen and vertical direction, cursor is positioned based on whether slip reference position and cursor current location be consistent in aforesaid way can be adopted.
As shown in figure 12, Figure 12 is the another kind of cursor positioner block diagram of the disclosure according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 11, and the 5th locator module 32613 can comprise: the second slip final position extracts submodule 32614 and the 6th locator module 32615.
Second slip final position extracts submodule 32614, is configured to when the second coordinate judges that submodule 32612 is judged as that slip reference position is consistent with the coordinate of the current location of cursor, extracts the slip final position in sliding action information;
6th locator module 32615, is configured to cursor to navigate to the second slip final position and extracts in the setting range corresponding to slip final position that submodule 32614 extracts.
As shown in figure 13, Figure 13 is the another kind of cursor positioner block diagram of the disclosure according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 11, and the 5th locator module 32613 can comprise: the second sliding trace extracts submodule 32616, second cursor target location and determines submodule 32617 and the 7th locator module 32618.
Second sliding trace extracts submodule 32616, is configured to when the second coordinate judges that submodule 32612 is judged as that the coordinate of the current location of slip reference position and cursor is inconsistent, extracts the sliding trace in sliding action information;
Submodule 32617 is determined in second cursor target location, is configured to the current location extracting sliding trace, slip reference position and the cursor that submodule 32616 extracts based on the second sliding trace, determines the target location of cursor;
7th locator module 32618, is configured to cursor be navigated to the target location that the determined cursor of submodule 32617 is determined in the second cursor target location.
As shown in figure 14, Figure 14 is the another kind of cursor positioner block diagram of the disclosure according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 8, and the 4th locator module 326 can also comprise: third direction judges submodule 32619, farthest cursor position determination submodule 326110 and the 8th locator module 326111.
Wherein, third direction judges submodule 32619, is configured to judge whether the glide direction that the first glide direction extraction submodule 325 extracts belongs to third direction;
Cursor position determination submodule 326110 farthest, is configured to, when third direction judges that submodule 32619 is judged as that glide direction belongs to third direction, determine the cursor position farthest in glide direction;
8th locator module 326111, is configured to cursor to navigate to the cursor position farthest that cursor position determination submodule 326110 is farthest determined.
Wherein, third direction judges that the third direction that submodule 32619 judges is the direction except the horizontal direction of screen and the vertical direction of screen.
In above-described embodiment, when the glide direction in sliding action information is the direction except the horizontal direction of screen and vertical direction, the highest distance position that can insert cursor can also be determined in this glide direction, cursor be navigated on this position farthest.Sliding distance need not be paid close attention to during user operation, simple operation under this mode.
As shown in figure 15, Figure 15 is the another kind of cursor positioner block diagram of the disclosure according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 3, and locating module 320 comprises: track distance extracts submodule 327, comparer module 328, displacement determination submodule 329 and the 9th locator module 3210.
Track distance extracts submodule 327, is configured to extract the sliding trace in sliding action information and sliding distance;
Comparer module 328, the gesture template being configured to sliding trace and the pre-stored extracted by track distance extraction submodule 327 is compared, and obtains similarity;
Displacement determination submodule 329, when the similarity being configured to obtain in comparer module 328 is greater than setting threshold value, based on extracted sliding distance and/or sliding distance corresponding to gesture template, determines that cursor will the distance of movement; Based on the moving direction of moving direction determination cursor corresponding to gesture template.
9th locator module 3210, is configured to position cursor based on the determined Distance geometry moving direction of displacement determination submodule 329.
In above-described embodiment, the gesture template of sliding trace and pre-stored also can compare by terminal, obtains similarity, and then based on the target location of sliding distance and template determination cursor, this mode is easy and simple to handle, is easy to realize.
Cursor positioner embodiment shown in above-mentioned Fig. 3 to Figure 15 can be applied in the terminal.
In said apparatus, the implementation procedure of the function and efficacy of unit specifically refers to the implementation procedure of corresponding step in said method, does not repeat them here.
For device embodiment, because it corresponds essentially to embodiment of the method, so relevant part illustrates see the part of embodiment of the method.Device embodiment described above is only schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, 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 module wherein can be selected according to the actual needs to realize the object of disclosure scheme.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
Accordingly, the disclosure also provides a kind of terminal, and described terminal includes processor; For the storer of storage of processor executable instruction; Wherein, described processor is configured to: under text editing state, obtains the sliding action information of user's setting regions on screen; Based on described sliding action information, the cursor in described text is positioned.
As shown in figure 16, Figure 16 is a kind of structural representation for cursor positioner 1600 of the disclosure according to an exemplary embodiment.Such as, device 1600 can be the mobile phone with routing function, computing machine, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Figure 16, device 1600 can comprise following one or more assembly: processing components 1602, storer 1604, power supply module 1606, multimedia groupware 1608, audio-frequency assembly 1610, the interface 1612 of I/O (I/O), sensor module 1614, and communications component 1616.
The integrated operation of the usual control device 1600 of processing components 1602, such as with display, call, data communication, camera operation and record operate the operation be associated.Processing components 1602 can comprise one or more processor 1620 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 1602 can comprise one or more module, and what be convenient between processing components 1602 and other assemblies is mutual.Such as, processing components 1602 can comprise multi-media module, mutual with what facilitate between multimedia groupware 1608 and processing components 1602.
Storer 1604 is configured to store various types of data to be supported in the operation of device 1600.The example of these data comprises for any application program of operation on device 1600 or the instruction of method, contact data, telephone book data, message, picture, video etc.Storer 1604 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), ROM (read-only memory) (ROM), magnetic store, flash memory, disk or CD.
The various assemblies that power supply module 1606 is device 1600 provide electric power.Power supply module 1606 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 1600 and be associated.
Multimedia groupware 1608 is included in the screen providing an output interface between described device 1600 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 1608 comprises a front-facing camera and/or post-positioned pick-up head.When device 1600 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 1610 is configured to export and/or input audio signal.Such as, audio-frequency assembly 1610 comprises a microphone (MIC), and when device 1600 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The sound signal received can be stored in storer 1604 further or be sent via communications component 1616.In certain embodiments, audio-frequency assembly 1610 also comprises a loudspeaker, for output audio signal.
I/O interface 1612 is for providing interface between processing components 1602 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor module 1614 comprises one or more sensor, for providing the state estimation of various aspects for device 1600.Such as, sensor module 1614 can detect the opening/closing state of device 1600, the relative positioning of assembly, such as described assembly is display and the keypad of device 1600, the position of all right pick-up unit 1600 of sensor module 1614 or device 1600 assemblies changes, the presence or absence that user contacts with device 1600, the temperature variation of device 1600 orientation or acceleration/deceleration and device 1600.Sensor module 1614 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor module 1614 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor module 1614 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer, microwave remote sensor or temperature sensor.
Communications component 1616 is configured to the communication being convenient to wired or wireless mode between device 1600 and other equipment.Device 1600 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 1616 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communications component 1616 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 1600 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD) (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
Those skilled in the art, at consideration instructions and after putting into practice invention disclosed herein, will easily expect other embodiment of the present disclosure.The disclosure is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Instructions and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.
The foregoing is only preferred embodiment of the present disclosure, not in order to limit the disclosure, all within spirit of the present disclosure and principle, any amendment made, equivalent replacements, improvement etc., all should be included within scope that the disclosure protects.

Claims (33)

1. a cursor positioning method, is characterized in that, comprising:
Under text editing state, obtain the sliding action information of user's setting regions on screen;
Based on described sliding action information, the cursor in described text is positioned.
2. method according to claim 1, is characterized in that, described acquisition user slide screen sliding action information before, described method also comprises:
The sliding action of slip screen is detected in the described setting regions of described screen.
3. method according to claim 1, is characterized in that, describedly positions the cursor in described text based on described sliding action information, comprising:
Extract the slip reference position in described sliding action information;
Read the current location of described cursor;
Judge that whether described slip reference position is consistent with the coordinate of the current location of described cursor;
Based on judged result, the cursor in described text is positioned.
4. method according to claim 3, is characterized in that, describedly positions the cursor in described text based on judged result, comprising:
When being judged as that described slip reference position is consistent with the coordinate of the current location of described cursor, extract the slip final position in described sliding action information;
Described cursor is navigated in the setting range corresponding to described slip final position.
5. method according to claim 3, is characterized in that, describedly positions the cursor in described text based on judged result, comprising:
When the coordinate of the current location being judged as described slip reference position and described cursor is inconsistent, extract the sliding trace in described sliding action information;
Based on the current location of described sliding trace, described slip reference position and described cursor, determine the target location of described cursor;
Described cursor is navigated to the target location of described cursor.
6. method according to claim 1, is characterized in that, describedly positions the cursor in described text based on described sliding action information, comprising:
Extract the glide direction in described sliding action information;
Based on described glide direction, the cursor in described text is positioned.
7. method according to claim 6, is characterized in that, describedly positions the cursor in described text based on described glide direction, comprising:
Judge whether described glide direction belongs to first direction;
When being judged as that described glide direction belongs to first direction, extract the sliding distance in described sliding action information;
Judge whether described sliding distance is greater than the first predeterminable range;
When being judged as that described sliding distance is greater than the first predeterminable range, described cursor is moved the first displacement toward the first moving direction; When being judged as that described sliding distance is not more than described first predeterminable range, described cursor is moved the second displacement toward described first moving direction.
8. method according to claim 7, is characterized in that, described first direction comprises the horizontal direction of described screen, and described first moving direction is identical with first direction or contrary.
9. method according to claim 6, is characterized in that, describedly positions the cursor in described text based on described glide direction, comprising:
Judge whether described glide direction belongs to second direction;
When being judged as that described glide direction belongs to second direction, extract the sliding distance in described sliding action information;
Judge whether described sliding distance is greater than the second predeterminable range;
When being judged as that described sliding distance is greater than the second predeterminable range, described cursor is moved the 3rd displacement toward the second moving direction; When being judged as that described sliding distance is not more than described second predeterminable range, described cursor is moved the 4th displacement toward described second moving direction.
10. method according to claim 9, is characterized in that, described second direction comprises the vertical direction of described screen, and described second moving direction is identical with second direction or contrary.
11. methods according to claim 6, is characterized in that, describedly position the cursor in described text based on described glide direction, comprising:
Judge whether described glide direction belongs to third direction;
When being judged as that described glide direction belongs to third direction, extract the slip reference position in described sliding action information;
Read the current location of described cursor;
Judge that whether described slip reference position is consistent with the coordinate of the current location of described cursor;
Based on judged result, the cursor in described text is positioned.
12. methods according to claim 11, is characterized in that, describedly position the cursor in described text based on judged result, comprising:
When being judged as that described slip reference position is consistent with the coordinate of the current location of described cursor, extract the slip final position in described sliding action information;
Described cursor is navigated in the setting range corresponding to described slip final position.
13. methods according to claim 11, is characterized in that, describedly position the cursor in described text based on judged result, comprising:
When the coordinate of the current location being judged as described slip reference position and described cursor is inconsistent, extract the sliding trace in described sliding action information;
Based on the current location of described sliding trace, described slip reference position and described cursor, determine the target location of described cursor;
Described cursor is navigated to the target location of described cursor.
14. methods according to claim 6, is characterized in that, describedly position the cursor in described text based on described glide direction, comprising:
Judge whether described glide direction belongs to third direction;
When being judged as that described glide direction belongs to third direction, determine the cursor position farthest in described glide direction;
Cursor position farthest described in described cursor is navigated to.
15. methods according to any one of claim 11-14, is characterized in that, described third direction comprises the direction except the horizontal direction of described screen and vertical direction.
16. methods according to claim 1, is characterized in that, describedly position the cursor in described text based on described sliding action information, comprising:
Extract the sliding trace in described sliding action information and sliding distance;
The gesture template of described sliding trace and pre-stored is compared, obtains similarity;
When described similarity is greater than setting threshold value, based on extracted sliding distance and/or sliding distance corresponding to described gesture template, determine that described cursor will the distance of movement; The moving direction of described cursor is determined based on the moving direction that described gesture template is corresponding;
Based on determined described Distance geometry moving direction, described cursor is positioned.
17. 1 kinds of cursor positioners, is characterized in that, comprising:
Sliding action data obtaining module, under text editing state, obtains the sliding action information of user's setting regions on screen;
Locating module, for positioning the cursor in described text based on described sliding action information.
18. devices according to claim 17, is characterized in that, described device also comprises:
Detection module, for detecting the sliding action of slip screen in the described setting regions of described screen.
19. devices according to claim 17, is characterized in that, described locating module comprises:
First slip reference position extracts submodule, for extracting the slip reference position in described sliding action information;
First cursor current location reading submodule, for reading the current location of described cursor;
First coordinate judges submodule, for judging that whether described slip reference position is consistent with the coordinate of the current location of described cursor;
First locator module, for positioning the cursor in described text based on judged result.
20. devices according to claim 19, is characterized in that, described first locator module comprises:
First slip final position extracts submodule, for when being judged as that described slip reference position is consistent with the coordinate of the current location of described cursor, extracts the slip final position in described sliding action information;
Second locator module, for navigating to described cursor in the setting range corresponding to described slip final position.
21. devices according to claim 19, is characterized in that, described first locator module comprises:
First sliding trace extracts submodule, for when the coordinate of the current location being judged as described slip reference position and described cursor is inconsistent, extracts the sliding trace in described sliding action information;
Submodule is determined in first cursor target location, for the current location based on described sliding trace, described slip reference position and described cursor, determines the target location of described cursor;
3rd locator module, for navigating to the target location of described cursor by described cursor.
22. devices according to claim 17, is characterized in that, described locating module comprises:
First glide direction extracts submodule, for extracting the glide direction in described sliding action information;
4th locator module, for positioning the cursor in described text based on described glide direction.
23. devices according to claim 22, is characterized in that, described 4th locator module comprises:
First direction judges submodule, for judging whether described glide direction belongs to first direction;
First sliding distance extracts submodule, for when being judged as that described glide direction belongs to first direction, extracts the sliding distance in described sliding action information;
First predeterminable range judges submodule, for judging whether described sliding distance is greater than the first predeterminable range;
First cursor mover module, for when being judged as that described sliding distance is greater than the first predeterminable range, moves the first displacement by described cursor toward the first moving direction; When being judged as that described sliding distance is not more than described first predeterminable range, described cursor is moved the second displacement toward described first moving direction.
24. devices according to claim 23, is characterized in that, described first direction judges that described first direction that submodule judges comprises the horizontal direction of described screen, and described first moving direction is identical with first direction or contrary.
25. devices according to claim 22, is characterized in that, described 4th locator module comprises:
Second direction judges submodule, for judging whether described glide direction belongs to second direction;
Second sliding distance extracts submodule, for when being judged as that described glide direction belongs to second direction, extracts the sliding distance in described sliding action information;
Second predeterminable range judges submodule, for judging whether described sliding distance is greater than the second predeterminable range;
Second cursor mover module, for when being judged as that described sliding distance is greater than the second predeterminable range, moves the 3rd displacement by described cursor toward the second moving direction; When being judged as that described sliding distance is not more than described second predeterminable range, described cursor is moved the 4th displacement toward described second moving direction.
26. devices according to claim 25, is characterized in that, described second direction judges that described second direction that submodule judges comprises the vertical direction of described screen, and described second moving direction is identical with second direction or contrary.
27. devices according to claim 22, is characterized in that, described 4th locator module comprises:
Third direction judges submodule, for judging whether described glide direction belongs to third direction;
Second slip reference position extracts submodule, for when being judged as that described glide direction belongs to described third direction, extracts the slip reference position in described sliding action information;
Second cursor current location reading submodule, for reading the current location of described cursor;
Second coordinate judges submodule, for judging that whether described slip reference position is consistent with the coordinate of the current location of described cursor;
5th locator module, for positioning the cursor in described text based on judged result.
28. devices according to claim 27, is characterized in that, described 5th locator module comprises:
Second slip final position extracts submodule, for when being judged as that described slip reference position is consistent with the coordinate of the current location of described cursor, extracts the slip final position in described sliding action information;
6th locator module, for navigating to described cursor in the setting range corresponding to described slip final position.
29. devices according to claim 27, is characterized in that, described 5th locator module comprises:
Second sliding trace extracts submodule, for when the coordinate of the current location being judged as described slip reference position and described cursor is inconsistent, extracts the sliding trace in described sliding action information;
Submodule is determined in second cursor target location, for the current location based on described sliding trace, described slip reference position and described cursor, determines the target location of described cursor;
7th locator module, for navigating to the target location of described cursor by described cursor.
30. devices according to claim 22, is characterized in that, described 4th locator module comprises:
Third direction judges submodule, for judging whether described glide direction belongs to third direction;
Cursor position determination submodule farthest, for when being judged as that described glide direction belongs to described third direction, determines the cursor position farthest in described glide direction;
8th locator module, for cursor position farthest described in being navigated to by described cursor.
31. devices according to any one of claim 27-30, is characterized in that, described third direction judges that described third direction that submodule judges is the direction except the horizontal direction of described screen and the vertical direction of described screen.
32. devices according to claim 17, is characterized in that, described locating module comprises:
Track distance extracts submodule, for extracting sliding trace in described sliding action information and sliding distance;
Comparer module, for the gesture template of described sliding trace and pre-stored being compared, obtains similarity;
Displacement determination submodule, during for being greater than setting threshold value in described similarity, based on extracted sliding distance and/or sliding distance corresponding to described gesture template, determines that described cursor will the distance of movement; The moving direction of described cursor is determined based on the moving direction that described gesture template is corresponding;
9th locator module, for positioning described cursor based on determined described Distance geometry moving direction.
33. 1 kinds of terminals, is characterized in that, comprising: processor; For the storer of storage of processor executable instruction; Wherein, described processor is configured to:
Under text editing state, obtain the sliding action information of user's setting regions on screen;
Based on described sliding action information, the cursor in described text is positioned.
CN201510399108.7A 2015-07-08 2015-07-08 Cursor positioning method and apparatus and terminal Pending CN105138256A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510399108.7A CN105138256A (en) 2015-07-08 2015-07-08 Cursor positioning method and apparatus and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510399108.7A CN105138256A (en) 2015-07-08 2015-07-08 Cursor positioning method and apparatus and terminal

Publications (1)

Publication Number Publication Date
CN105138256A true CN105138256A (en) 2015-12-09

Family

ID=54723618

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510399108.7A Pending CN105138256A (en) 2015-07-08 2015-07-08 Cursor positioning method and apparatus and terminal

Country Status (1)

Country Link
CN (1) CN105138256A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105718138A (en) * 2016-01-15 2016-06-29 百度在线网络技术(北京)有限公司 Method and device for determining cursor position in mobile terminal
WO2018103352A1 (en) * 2016-12-05 2018-06-14 西安中兴新软件有限责任公司 Cursor positioning method and device for mobile terminal, and mobile terminal
CN108334267A (en) * 2018-02-05 2018-07-27 广东欧珀移动通信有限公司 A kind of cursor-moving method, system and terminal device
CN108664196A (en) * 2018-05-21 2018-10-16 北京华大智宝电子系统有限公司 A kind of method and device of control cursor movement
CN109857294A (en) * 2018-12-28 2019-06-07 维沃移动通信有限公司 A kind of cursor control method and terminal device
CN113419651A (en) * 2021-06-17 2021-09-21 深圳市秦安科技有限公司 Multi-window double-screen switching method and system, intelligent terminal and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1852774A2 (en) * 2006-05-03 2007-11-07 Mitsubishi Electric Corporation Method and system for emulating a mouse on a multi-touch sensitive surface
CN102224483A (en) * 2008-12-22 2011-10-19 帕姆公司 Touch-sensitive display screen with absolute and relative input modes
CN104375740A (en) * 2013-08-15 2015-02-25 联想(北京)有限公司 Cursor positioning method, device and terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1852774A2 (en) * 2006-05-03 2007-11-07 Mitsubishi Electric Corporation Method and system for emulating a mouse on a multi-touch sensitive surface
CN102224483A (en) * 2008-12-22 2011-10-19 帕姆公司 Touch-sensitive display screen with absolute and relative input modes
CN104375740A (en) * 2013-08-15 2015-02-25 联想(北京)有限公司 Cursor positioning method, device and terminal

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105718138A (en) * 2016-01-15 2016-06-29 百度在线网络技术(北京)有限公司 Method and device for determining cursor position in mobile terminal
WO2018103352A1 (en) * 2016-12-05 2018-06-14 西安中兴新软件有限责任公司 Cursor positioning method and device for mobile terminal, and mobile terminal
CN108334267A (en) * 2018-02-05 2018-07-27 广东欧珀移动通信有限公司 A kind of cursor-moving method, system and terminal device
CN108664196A (en) * 2018-05-21 2018-10-16 北京华大智宝电子系统有限公司 A kind of method and device of control cursor movement
CN109857294A (en) * 2018-12-28 2019-06-07 维沃移动通信有限公司 A kind of cursor control method and terminal device
CN113419651A (en) * 2021-06-17 2021-09-21 深圳市秦安科技有限公司 Multi-window double-screen switching method and system, intelligent terminal and computer readable storage medium
CN113419651B (en) * 2021-06-17 2022-03-18 深圳市秦安科技有限公司 Multi-window double-screen switching method and system, intelligent terminal and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN104317520B (en) Viewing area content processing method and device
CN105138256A (en) Cursor positioning method and apparatus and terminal
CN105224195A (en) Terminal operation method and device
CN104503689A (en) Method and device for displaying application interface
CN105183286A (en) Desktop icon control method and apparatus and terminal
CN105487863A (en) Interface setting method and device based on scene
CN105204737A (en) Application program display method and device
CN104834559A (en) Notification message display method and device
CN104123093A (en) Information processing method and device
CN105094527A (en) Icon exchanging method and device
CN104536684A (en) Interface displaying method and device
CN105487749A (en) Application icon organizing method and device
CN105159524A (en) Interface display method and apparatus
CN104834433A (en) Method and device for editing text and terminal
CN105373334A (en) Interactive screen control method and device
CN104898889A (en) Character determining method and device
CN104793843A (en) Desktop display method and device
CN104503690A (en) Arrangement method and device for application icons
CN104461348A (en) Method and device for selecting information
CN104978141A (en) Picture management method, device and terminal
CN105389113A (en) Gesture-based application control method and apparatus and terminal
CN105487773A (en) Screen capturing method and device
CN105224168A (en) The display packing of application icon, device and mobile device
CN105487798A (en) Method and apparatus for operating communication application in touch screen terminal
CN105468281A (en) Setup interface display method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20151209