The control method and device of touch-control screen cursor
Technical field
The present embodiments relate to field of communication technology more particularly to a kind of control method and device of touch-control screen cursor.
Background technology
With the progress of the Development Technology of science and technology, intelligentized terminal use is more and more universal.In order to improve service efficiency
And the good user experience of enhancing, existing intelligentized terminal are mostly interacted using touch screen with user.
Text editing is to realize one of basic skills that user interacts with terminal, and in using terminal, user can lead to
It crosses various input methods and carries out text editing, realize chat, search data needed etc..It, may in text editing process is carried out
Will appear text input it is wrong need correct, increase in the text edited or delete certain words etc. and update text
Situation, in the prior art, big multi-purpose finger clicks the mode that the position edited is needed in text or drags cursor, makes cursor
This position is moved to, then the text is updated.
But since finger area is bigger, cursor and text edit box are smaller, easily occur that target position can not be clicked
The situation of cursor is put or can not dragged, makes cursor that can not be moved to target location, reduces the efficiency of control cursor.
Invention content
The embodiment of the present invention provides a kind of control method and device of touch-control screen cursor, to solve due to finger area ratio
Larger, cursor and text edit box are smaller, easily occur not clicking target location or can not dragging the situation of cursor, make
Cursor can not be moved to target location, reduce control cursor efficiency the problem of.
The embodiment of the present invention provides a kind of control method of touch-control screen cursor, including:
When detect the touch control operation on touch screen be start cursor control specific operation when, into cursor control shape
State;
Under cursor control state, according to the slide on touch screen detected, control cursor carry out with it is described
The corresponding movement of slide.
The embodiment of the present invention also provides a kind of control device of touch-control screen cursor, including:
Detection module, for when detect the touch control operation on touch screen be start cursor control specific operation when,
Into cursor control state;
Control module, under cursor control state, according to the slide on touch screen detected, controlling light
Mark carries out and the corresponding movement of the slide.
The control method and device of the touch-control screen cursor of the embodiment of the present invention, when detecting the touch control operation on touch screen
For start cursor control specific operation when, into cursor control state;And under cursor control state, according to detecting
Slide on touch screen, control cursor carries out and the corresponding movement of slide, avoids and finger is utilized to click text
The middle position for needing to edit or the mode for dragging cursor, control cursor are moved to target location.Using the embodiment of the present invention
Technical solution can control cursor to carry out corresponding with slide according to the slide on touch screen detected
It is mobile, so that cursor is moved to target location, improve the efficiency of control cursor.
Description of the drawings
Attached drawing described herein is used for providing further understanding the embodiment of the present invention, forms the embodiment of the present invention
A part, the illustrative embodiments and their description of the embodiment of the present invention are not formed for explaining the embodiment of the present invention to this hair
The improper restriction of bright embodiment.In the accompanying drawings:
The flow chart of the control method embodiment one for the touch-control screen cursor that Fig. 1 is provided by the embodiment of the present invention;
The flow chart of the control method embodiment two for the touch-control screen cursor that Fig. 2 is provided by the embodiment of the present invention;
The control method application scenarios schematic diagram for the touch-control screen cursor that Fig. 3 is provided by the embodiment of the present invention;
Fig. 4 is the schematic diagram that Fig. 3 is under cursor control state;
Fig. 5 is the schematic diagram after the movement of cursor 2 in Fig. 4;
Fig. 6 is the final process result schematic diagram of Fig. 3 to Fig. 5;
The structure diagram of the embodiment one for the control device of touch-control screen cursor that Fig. 7 is provided by the embodiment of the present invention;
The structure diagram of the embodiment two for the control device of touch-control screen cursor that Fig. 8 is provided by the embodiment of the present invention.
Specific embodiment
Purpose, technical scheme and advantage to make the embodiment of the present invention are clearer, below in conjunction with the embodiment of the present invention
Technical solution of the embodiment of the present invention is clearly and completely described in specific embodiment and corresponding attached drawing.Obviously, it is described
Embodiment is only part of the embodiment of the embodiment of the present invention, instead of all the embodiments.Based on the reality in the embodiment of the present invention
Apply example, those of ordinary skill in the art's all other embodiments obtained without making creative work all belong to
In the range of protection of the embodiment of the present invention.
Below in conjunction with attached drawing, the technical solution of each embodiment offer of embodiment that the present invention will be described in detail.
Embodiment one
The flow chart of the control method embodiment one for the touch-control screen cursor that Fig. 1 is provided by the embodiment of the present invention, such as Fig. 1 institutes
Show, the control method of the touch-control screen cursor of the embodiment of the present invention specifically may include steps of:
100th, when detect the touch control operation on touch screen be start cursor control specific operation when, into cursor control
State processed.
Under normal conditions, when user carries out text editing by touch screen, cursor is located at the end of text edited, but
It is that often will appear situations such as errors in text needs to correct, needs to add word or delete word in the text edited, but
The position of these edit objects is not necessarily located at the end for the text edited, and then needing to move the cursor at this time needs to compile
Collect the corresponding target location of object.Most users can utilize finger to click the corresponding target location of edit object, so as to control light
Mark is moved to the target location, but since user mobile phone area is bigger, and text edit box is smaller, user's finger is not
Target location can accurately be clicked, cursor can not also be moved to target location, can not to mistake word amendment, can not add
Word that new word or can not delete is more than etc..
It therefore, can be according to the operating habit of user, by touch control operation of the user on touch screen in the embodiment of the present invention
It is set as starting the specific operation of cursor control, when user needs to update text, touch control operation reality can be passed through
Now to the control of cursor.
Specifically, when detect the touch control operation on touch screen be start cursor control specific operation when, into light
State of a control is marked, user can control cursor at this time.For example, starting the specific operation of cursor control can be included but not
Clicking operation of the user on touch screen is limited to, alternatively, user's pressing operation on touch screen.
During a specific implementation, it can detect whether number of clicks of the user on touch screen reaches specified click
Number, if detecting, number of clicks of the user on touch screen reaches specified number of clicks, such as double into cursor control state
Hit operation;Alternatively, can detect whether pressing duration of the user on touch screen reaches specified duration, if detecting, user is touching
Pressing duration on control screen reaches specified duration, then into cursor control state;Alternatively, user can be detected on touch screen
Whether press pressure reaches specified pressure, if detecting, press pressure of the user on touch screen reaches specified pressure, enters
Cursor control state.
It should be noted that in the control method of the touch-control screen cursor of the embodiment of the present invention, user's touching on touch screen
It can be arbitrary region on touch screen to control operating area, and the embodiment of the present invention is not particularly limited.
101st, under cursor control state, according to the slide on touch screen detected, control cursor carry out with
The corresponding movement of slide.
Under cursor control state, user can control cursor, at this time to mobile cursor, need to detect user
Slide on touch screen, with according to the slide on touch screen detected, control cursor carries out slide
Corresponding movement, so as to which cursor be controlled to be moved to target location, in order to text into edlin.
It should be noted that the region of slide of the user on touch screen can be any one region on touch screen
Or entire touch screen region, the embodiment of the present invention are not particularly limited.In order to facilitate user's control cursor, the present invention is real
It is preferably entire touch screen region to apply example, and such user can arbitrarily slide in entire touch screen region, realizes control cursor
It is mobile, it avoids when removing to click cursor using finger and controlling the cursor to move again, since finger area is larger, cursor is smaller, without dragging
The phenomenon that dynamic cursor movement.
The executive agent of the control method of touch-control screen cursor that the embodiment of the present invention is provided can be touch screen cursor
Control device, the device be located locally the application program of terminal or can also be plug-in unit in the application program of DTV or
The functional units such as Software Development Kit (Software Development Kit, SDK), the embodiment of the present invention to this without
It is particularly limited to.
The control method of the touch-control screen cursor of the embodiment of the present invention, when detect the touch control operation on touch screen for start
During the specific operation of cursor control, into cursor control state;And under cursor control state, according to detecting in touch screen
On slide, control cursor carry out with the corresponding movement of slide, avoid using finger click text in need
The position of editor or the mode for dragging cursor, control cursor are moved to target location.Using the technical side of the embodiment of the present invention
Case can control cursor progress and the corresponding movement of slide according to the slide on touch screen detected, with
Cursor is made to be moved to target location, improves the efficiency of control cursor.
Embodiment two
The flow chart of the control method embodiment two for the touch-control screen cursor that Fig. 2 is provided by the embodiment of the present invention, such as Fig. 2 institutes
Show, further to the present invention on the basis of the control method embodiment shown in Fig. 1 of the touch-control screen cursor of the embodiment of the present invention
Technical solution carry out description.
As shown in Fig. 2, the control method of the touch-control screen cursor of the embodiment of the present invention, specifically may include steps of:
200th, whether touch control operation of the detection on touch screen is the specific operation for starting cursor control.
When detecting when the touch control operation on touch screen is to start the specific operation of cursor control, step 201 is performed;It is no
Then, when detecting when the touch control operation on touch screen is not to start the specific operation of cursor control, terminate this flow.
The step is identical with step 100 realization mechanism of embodiment illustrated in fig. 1, please refers to above-mentioned related record in detail,
This is repeated no more.
201st, into cursor control state.
When detecting when the touch control operation on touch screen is to start the specific operation of cursor control, illustrate that user can be controlled
Cursor processed, and enter cursor control state.
202nd, it determines cursor control region, cursor control region and its peripheral region is distinguished and shown.
During a specific implementation, into after cursor control state, it may be determined that cursor control region, and determining
It, can be by being amplified processing to cursor control region after cursor control region;And/or cursor control region is carried out
Brightness processed is improved, virtualization processing is carried out to the peripheral region in cursor control region, enables cursor control region more obvious
Be shown to user, facilitate user look for cursor move target location.
For example, in order to which cursor to be quickly moved to the target location of text, the touch screen light of the embodiment of the present invention
In target control method, touch control operation region of the user on touch screen is preferably text filed, and user can be in the mesh of text
Cursor position nearby input start cursor control specific operation, cursor is made to be moved near the target location of text, so again after
The slide on touch screen that continuous basis detects, when control cursor carries out and the slide is corresponding mobile,
The target location for moving the cursor to text that can be quickly.
Specifically, in the control method of the touch-control screen cursor of the embodiment of the present invention, when detecting the touch-control on touch screen
When operating the specific operation to start cursor control, and when touch control operation is located at text filed, determine that cursor control region can be with
Including:The cursor control region is determined as any one of following:The character area at touch control operation position both ends, touch control operation
The region of word paragraph where the region of literal line where position and touch control operation position.
The control method of the touch-control screen cursor of the embodiment of the present invention, using cursor control region as touch control operation position both ends
Technical scheme of the present invention is described for character area.The control method of the touch-control screen cursor of the embodiment of the present invention, can
With the front and rear word to touch control operation position be amplified processing and/or, the front and rear word of touch control operation position is improved
Brightness processed carries out virtualization processing to the peripheral region in cursor control region.For example, it can utilize but be not limited to inverse technology
The peripheral region in cursor control region is handled, the peripheral region in cursor control region is made to become fuzzy, such protrusion
Display highlighting control area, can be more obvious be shown to user, facilitate user look for cursor move target location.
In the embodiment of the present invention, cursor control region is grasped if the region of literal line where touch control operation position or touch-control
The region of word paragraph where making position, realization principle and the character area that cursor control region is touch control operation position both ends
Realization mechanism it is identical, please refer in detail it is above-mentioned it is related record, no longer illustrate one by one herein.
It should be noted that in the control method of the touch-control screen cursor of the embodiment of the present invention, can also be to cursor at
Reason, for example, it is appropriate by cursor overstriking, alternatively, change shape of cursor etc..
203rd, according to the slide on touch screen detected, control cursor carries out and the corresponding shifting of slide
It is dynamic.
Under cursor control state, user can control cursor, at this time to mobile cursor, need to detect user
Slide on touch screen, with according to the slide on touch screen detected, control cursor carries out slide
Corresponding movement, so as to which cursor be controlled to be moved to target location, in order to text into edlin.
For example, when detecting in the slide on touch screen, the corresponding glide direction of slide can be obtained, and
An arrow identical with glide direction is generated on cursor, is moved with the direction that cursor is controlled to follow the arrow.
204th, whether touch control operation of the detection on touch screen is the specific operation for closing cursor control.
When detecting when the touch control operation on touch screen is to close the specific operation of cursor control, step 205 is performed;It is no
Then, when detecting when the touch control operation on touch screen is not to close the specific operation of cursor control, step 203 is performed.
For example, in order to facilitate user's operation, in the embodiment of the present invention, the region of slide of the user on touch screen is excellent
Entire touch screen region is selected as, but entire touch screen region further includes other contents, user, may in the slip on control screen
Other contents are touched, other contents are controlled, therefore, during a specific implementation, terminal is entering cursor control
During state processed, the corresponding interface of content on terminal screen in addition to cursor can be locked, user carries out on touch screen
During slip, cursor can only be controlled to move, and other contents cannot be touched.
In order to which after cursor is moved to the target location of text, to text into edlin, the embodiment of the present invention is touched
The control method of screen cursor is controlled, to text into edlin, is needed to release cursor control state, touched at this time, it may be necessary to detect
Whether the touch control operation on control screen is the specific operation for closing cursor control.When detect the touch control operation on touch screen for close
When closing the specific operation of cursor control, illustrate that cursor has been moved to determining position, perform step 205;Otherwise, when detect touch
Touch control operation on control screen is not when closing the specific operation of cursor control, to illustrate that cursor is not moved to determining position, perform step
Rapid 203.
For example, the specific operation for closing cursor control can also include but is not limited to click behaviour of the user on touch screen
Make, alternatively, user's pressing operation on touch screen, the specific operation for closing cursor control can be with starting the specific of cursor control
Operate specific operation identical or different, but that the principle and setting startup cursor control of the specific operation for closing cursor control are set
Principle it is identical, please refer in detail it is above-mentioned it is related record, details are not described herein.
205th, cursor control state is closed.
When detecting when the touch control operation on touch screen is to close the specific operation of cursor control, illustrate that cursor has moved
To determining position, user can at this time need to close cursor control state, into text editing state to text into edlin.
206th, to text into edlin.
The control method of the touch-control screen cursor of the embodiment of the present invention, when detect the touch control operation on touch screen for start
During the specific operation of cursor control, into cursor control state, cursor control region is determined, around cursor control region and its
Display is distinguished in region, and according to the slide on touch screen detected, control cursor carries out corresponding with slide
It is mobile, it realizes and is shown to user, and grasp according to the slip on touch screen detected by cursor control region is clearer
Make, control cursor carries out and the corresponding movement of slide, so that cursor is moved to target location, improves control cursor
Efficiency, and then improve the efficiency of text editing.
Further, in above-described embodiment, if since user misoperation causes terminal to enter cursor control state, alternatively,
When user abandons updating the text, after terminal enters cursor control state, user needs to close cursor control
State processed.At this point, terminal can directly perform step 204, and it is closing cursor to work as the touch control operation detected on touch screen
During the specific operation of control, step 205 is performed, to close cursor control state.
Technical scheme of the present invention is described with specific example below:
The control method application scenarios schematic diagram for the touch-control screen cursor that Fig. 3 is provided by the embodiment of the present invention, Fig. 4 Fig. 3
Schematic diagram under cursor control state.
As shown in Figure 3 and Figure 4, display " I will go home to have a meal " in the text edit box of terminal, user needs to delete
One " going home ", at this point it is possible to which touch screen 1 is double-clicked in corresponding position in text edit box on touch screen 1, for example, user exists
Touch control operation position on touch screen 1 is behind " I will return ", can enter cursor control state, and cursor 2 is moved at this time
Behind " I will return ", the region of 2 place literal line of cursor is then amplified processing and improves brightness processed, the row
Region in addition carries out virtualization processing, is more clear as shown in figure 4, larger to " I will go home back " font, and " family has a meal " is then
Compare fuzzy, and font is smaller.
Fig. 5 is the schematic diagram after the movement of cursor 2 in Fig. 4, and Fig. 6 is the final process result schematic diagram of Fig. 3 to Fig. 5.Such as Fig. 5
Shown, user can to the right slide in the arbitrary region of touch screen, and cursor 2 can move right according to the direction of slip at this time, when
When being moved to " I will go home " below, it can stop sliding, user double-clicks touch screen 1, so as to close cursor control state, and will
Literal line region where cursor and other regions are restored to initial conditions, to text into edlin.It as shown in fig. 6, can
By " going home " two word deletions before cursor, to obtain result shown in fig. 6 " I will go home to have a meal ", text editing terminates.
Embodiment three
The structure diagram of the embodiment one for the control device of touch-control screen cursor that Fig. 7 is provided by the embodiment of the present invention,
The control device of the touch-control screen cursor of the embodiment of the present invention as shown in Figure 7, can include detection module 10 and control module 11.
Detection module 10, for when the specific operation that the touch control operation detected on touch screen is startup cursor control
When, into cursor control state;
Control module 11, under cursor control state, according to the slide on touch screen detected, controlling
Cursor carries out and the corresponding movement of slide.
The control device of the touch-control screen cursor of the embodiment of the present invention, by using above-mentioned module realize to touch-control screen cursor into
The realization mechanism of row control is identical with the realization mechanism of above-mentioned embodiment illustrated in fig. 1, can refer to shown in above-mentioned Fig. 1 implement in detail
The record of example, details are not described herein.
The control device of the touch-control screen cursor of the embodiment of the present invention, when detection module 10 detects the touch-control on touch screen
When operating the specific operation to start cursor control, into cursor control state;And under cursor control state, control module 11
According to the slide on touch screen detected, control cursor carries out and the corresponding movement of slide, avoids profit
Being clicked with finger needs the position edited in text or drags the mode of cursor, and control cursor is moved to target location.Using
The technical solution of the embodiment of the present invention can control cursor to carry out and slide according to the slide on touch screen detected
The dynamic corresponding movement of operation, so that cursor is moved to target location, improves the efficiency of control cursor.
Example IV
The structure diagram of the embodiment two for the control device of touch-control screen cursor that Fig. 8 is provided by the embodiment of the present invention,
As shown in figure 8, on the basis of the control device embodiment shown in Fig. 7 of the touch-control screen cursor of the embodiment of the present invention, further also
It can include processing module 12 and closedown module 13.
Processing module 12, for when the specific operation that the touch control operation detected on touch screen is startup cursor control
When, it determines cursor control region, cursor control region and its peripheral region is distinguished and shown.
During a specific implementation, processing module 12 is specifically used for:
Processing is amplified to cursor control region;And/or
Raising brightness processed is carried out to cursor control region, virtualization processing is carried out to the peripheral region in cursor control region.
Processing module 12 is additionally operable to when the specific operation that the touch control operation detected on touch screen is startup cursor control
When, and touch control operation be located at it is text filed when, cursor control region is determined as any one of following:
The character area at touch control operation position both ends, the region of literal line and touch control operation position where touch control operation position
The region of word paragraph where putting.
Closedown module 13, for when the specific operation that the touch control operation detected on touch screen is closing cursor control
When, close cursor control state.
The control device of the touch-control screen cursor of the embodiment of the present invention, by using above-mentioned module realize to touch-control screen cursor into
The realization mechanism of row control is identical with the realization mechanism of above-mentioned embodiment illustrated in fig. 2, can refer to shown in above-mentioned Fig. 2 implement in detail
The record of example, details are not described herein.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program
Product.Therefore, the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware can be used in the present invention
Apply the form of example.Moreover, the computer for wherein including computer usable program code in one or more can be used in the present invention
The computer program production that usable storage medium is implemented on (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that it can be realized by computer program instructions every first-class in flowchart and/or the block diagram
The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided
The processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that the instruction performed by computer or the processor of other programmable data processing devices is generated for real
The device of function specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction generation being stored in the computer-readable memory includes referring to
Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or
The function of being specified in multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps are performed on calculation machine or other programmable devices to generate computer implemented processing, so as in computer or
The instruction offer performed on other programmable devices is used to implement in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in a box or multiple boxes.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer-readable instruction, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, CD-ROM read-only memory (CD-ROM),
Digital versatile disc (DVD) or other optical storages, magnetic tape cassette, the storage of tape magnetic rigid disk or other magnetic storage apparatus
Or any other non-transmission medium, available for storing the information that can be accessed by a computing device.It defines, calculates according to herein
Machine readable medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to nonexcludability
Comprising so that process, method, commodity or equipment including a series of elements are not only including those elements, but also wrap
Include other elements that are not explicitly listed or further include for this process, method, commodity or equipment it is intrinsic will
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that wanted including described
Also there are other identical elements in the process of element, method, commodity or equipment.
It will be understood by those skilled in the art that the embodiment of the embodiment of the present invention can be provided as method, system or computer journey
Sequence product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and hardware side
The form of the embodiment in face.Moreover, the embodiment of the present invention can be used wherein includes computer available programs in one or more
Implement in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of code
The form of computer program product.
The foregoing is merely embodiments herein, are not limited to the application.For those skilled in the art
For, the application can have various modifications and variations.All any modifications made within spirit herein and principle are equal
Replace, improve etc., it should be included within the scope of claims hereof.