CN107885414B - Method and device for controlling cursor positioning - Google Patents

Method and device for controlling cursor positioning Download PDF

Info

Publication number
CN107885414B
CN107885414B CN201610875844.XA CN201610875844A CN107885414B CN 107885414 B CN107885414 B CN 107885414B CN 201610875844 A CN201610875844 A CN 201610875844A CN 107885414 B CN107885414 B CN 107885414B
Authority
CN
China
Prior art keywords
cursor
blank area
preset
switching instruction
relative
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610875844.XA
Other languages
Chinese (zh)
Other versions
CN107885414A (en
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201610875844.XA priority Critical patent/CN107885414B/en
Publication of CN107885414A publication Critical patent/CN107885414A/en
Application granted granted Critical
Publication of CN107885414B publication Critical patent/CN107885414B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application relates to the technical field of computers, in particular to a method and a device for controlling cursor positioning, which are used for solving the problems of high repeated operation rate and low accuracy rate in the prior art of switching cursor positions in blank areas of text input boxes; the method provided by the embodiment of the application comprises the following steps: providing an editing interface after text editing, wherein the editing interface comprises a text area displaying an edited text and a blank area positioned between the two text areas, and the blank area occupies at least one character position; receiving a cursor position switching instruction triggered by the user in the blank area; determining the position of the cursor relative to the blank area after the cursor position switching instruction is executed according to a preset cursor position switching sequence; the preset cursor position conversion sequence refers to a conversion sequence of the position of the cursor relative to the blank area.

Description

Method and device for controlling cursor positioning
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for controlling cursor positioning.
Background
When a user enters text in a text entry box of a wireless terminal such as a mobile phone or a tablet computer, a blank area is sometimes used to separate two short texts. If the user needs to continue inputting characters between two short texts with blank areas, the position of the cursor needs to be switched so that the cursor is at the position to be subjected to character input.
At present, methods for switching cursor positions in blank areas of text input boxes include two ways of changing cursor positions by clicking and moving cursor positions by long pressing. As shown in fig. 1(a), if the cursor position is changed by clicking, the user needs to click the text in the text input box to make the cursor be at the correct position. However, because the operation area of the text input box is very small, and the blank area is often smaller than the picture area occupied by a single character, the user can only click the rear end of the blank area in the process of switching the cursor, but cannot accurately locate the front end of the blank area, and if the user wants to locate the front end of the blank area, the user can only repeatedly try to click for many times until the cursor is at the correct position, or the user can move the cursor to the correct position by deleting part of the input characters. If the way of moving the cursor position by long pressing is used, as shown in fig. 1(b), a cursor magnifying glass appears when the user presses the text in the text input box for a long time, and the user can continuously move the cursor to the correct position at this time. However, when the mobile phone is used, the finger position of the user can shield the characters in the text input box to influence the reading of the user, the user can only pause after moving to check whether the mobile phone moves to the correct position, and the use smoothness is influenced by the delay feeling when the mobile phone is used in the mode.
In summary, the problems of high repetitive operation rate and low accuracy rate exist in switching the cursor position in the blank area of the text input box at present.
Content of application
The embodiment of the application provides a method and a device for controlling cursor positioning, which are used for solving the problems of high repeated operation rate and low accuracy rate in the prior art when the position of a cursor is switched in a blank area of a text input box.
The method for controlling cursor positioning provided by the embodiment of the application comprises the following steps:
providing an editing interface after text editing, wherein the editing interface comprises a text area displaying an edited text and a blank area positioned between the two text areas, and the blank area occupies at least one character position;
receiving a cursor position switching instruction triggered by the user in the blank area;
determining the position of the cursor relative to the blank area after the cursor position switching instruction is executed according to a preset cursor position switching sequence; the preset cursor position conversion sequence refers to a conversion sequence of the position of the cursor relative to the blank area.
Optionally, determining a position of the cursor relative to the blank area after the cursor position switching instruction is executed according to a preset cursor position conversion sequence, including:
determining the position of the cursor relative to the blank area after the cursor position switching instruction is executed according to a preset cursor position switching sequence and the position of the cursor relative to the blank area before the cursor position switching instruction is executed; the position of the cursor relative to the blank area after the cursor position switching instruction is executed is the next position of the cursor relative to the blank area before the cursor position switching instruction is executed in the preset cursor position conversion sequence.
Optionally, determining a position of the cursor relative to the blank area after the cursor position switching instruction is executed according to a preset cursor position conversion sequence, including:
determining that the user executes the specified operation for the Nth time within the latest preset time length; according to a preset cursor position conversion sequence, determining a position corresponding to the Nth execution of the designated operation in each preset position of the cursor relative to the blank area; and determining the determined position corresponding to the Nth execution of the designated operation as the position of the cursor relative to the blank area after the cursor position switching instruction is executed.
Optionally, when N is an odd number, a position corresponding to the nth execution of the designated operation is a front end of the blank area, and when N is an even number, a position corresponding to the nth execution of the designated operation is a rear end of the blank area; or when N is an odd number, the position corresponding to the nth execution of the designated operation is the rear end of the blank area, and when N is an even number, the position corresponding to the nth execution of the designated operation is the front end of the blank area.
Optionally, the designating operation is an operation of clicking the front end or the rear end of the blank area, or clicking a position between the front end and the rear end of the blank area.
The device for controlling cursor positioning provided by the embodiment of the application comprises:
the display module is used for providing an editing interface after text editing is carried out, the editing interface comprises a text area displaying an edited text and a blank area positioned between the two text areas, and the blank area occupies at least one character position;
the receiving module is used for receiving a cursor position switching instruction triggered by the user in the blank area;
the determining module is used for determining the position of the cursor relative to the blank area after the cursor position switching instruction is executed according to a preset cursor position switching sequence; the preset cursor position conversion sequence refers to a conversion sequence of the position of the cursor relative to the blank area.
In the embodiment of the application, a cursor position conversion sequence, that is, a conversion sequence of the position of the cursor relative to the blank area is preset, and after a user triggers a cursor position switching instruction in the blank area, the cursor can automatically switch the position in the blank area according to the preset position conversion sequence. For example, the user may repeatedly click on the front end or the rear end of the blank area, or any position between the front end and the rear end of the blank area (if there are multiple character positions in the blank area), until the cursor reaches the target position. By adopting the mode, the cursor can be switched to the target position without accurately positioning the cursor by the user, the misoperation times of the user can be reduced, the user can edit the text more smoothly at the front end or the rear end of the blank area, and the operation experience of the user is further improved.
Drawings
FIG. 1(a) is a diagram illustrating a scene in which a cursor position is changed by a single click in the prior art;
FIG. 1(b) is a schematic diagram of a scene where the cursor position is changed based on a cursor magnifier in the prior art;
fig. 2 is a flowchart of a method for controlling cursor positioning according to an embodiment of the present disclosure;
FIG. 3(a) is a first scene illustration diagram illustrating a first manner in which a cursor position is switched when text is input in a search bar of a browser according to an embodiment of the present application;
fig. 3(b) is a schematic view of a second scenario illustrating a first manner of switching cursor positions when text is input in a search bar of a browser according to an embodiment of the present application;
fig. 4(a) is a schematic view of a first scenario in which a cursor position is switched in a second manner when text is input in a search bar of a browser according to a first embodiment of the present application;
fig. 4(b) is a schematic diagram of a second scenario in which a cursor position is switched in a second manner when text is input in a search bar of a browser according to the first embodiment of the present application;
fig. 5 is a structural diagram of a device for controlling cursor positioning according to a second embodiment of the present application.
Detailed Description
The embodiment of the application can be applied to a scene that a user edits a text at a mobile terminal, especially when the user needs to input a plurality of keywords in a text input box of the mobile terminal and the middle of the plurality of keywords needs to be separated by a blank area, for example, when the user needs to continuously add the keywords at the front end of the blank area, namely the rear end of the previous keyword, it is usually difficult to accurately position a cursor at the front end of the blank area.
The embodiments of the present application will be described in further detail with reference to the drawings attached hereto.
As shown in fig. 2, a flowchart of a method for controlling cursor positioning according to an embodiment of the present application includes the following steps:
s201: and providing an editing interface after text editing is carried out, wherein the editing interface comprises a text area displaying the edited text and a blank area positioned between the two text areas, and the blank area occupies at least one character position.
Here, after the user edits the text in the editing interface, the editing interface displays a text region including the edited text, and if the user inputs a blank space during the process of editing the text, the editing interface also displays a blank region located between the two text regions.
S202: and receiving a cursor position switching instruction triggered by a user in a blank area of the editing interface.
Here, the cursor position switching instruction may be an instruction issued by the user by clicking a blank region in the text (here, the user clicks a front end or a rear end of the blank region, and if the blank region occupies a plurality of character positions, the position between the front end and the rear end of the blank region, that is, the position between any two adjacent character positions). Generally, when a user edits a text, if a blank area occupies a single character position, a cursor may fall at the front end or the rear end of the single character position; if the blank area occupies a plurality of character positions, the cursor may fall at the front end or the rear end of the whole blank area or at a position between the front end and the rear end of the blank area. When text is actually input, the position of the current blank area relative to the cursor may not meet the requirement of the user for editing the text, for example, the user needs to edit the front characters of the blank area and the cursor is at the rear end of the blank area, or the user needs to delete the current blank area and the cursor is at the front end of the blank area. In the above case, the user may trigger the cursor position switching instruction by clicking the blank area in the text, so that the cursor is switched to the position where the text input is to be performed.
S203: and determining the position of the cursor relative to the blank area after the cursor position switching instruction is executed according to a preset cursor position switching sequence.
Here, the preset cursor position conversion order refers to a conversion order of the position of the cursor with respect to the blank area. For example, the cursor at the rear end of the blank area may be switched to the front end of the blank area, the cursor at the front end of the blank area may be switched to the rear end of the blank area, and the cursor at a position between the front end and the rear end of the blank area may be switched to the front end of the entire blank area or switched to the rear end of the entire blank area.
Here, the preset cursor position conversion sequence may refer to a relative sequence of switching between the cursors, that is, the position of the cursor before switching determines the position of the cursor after switching; the preset cursor position conversion sequence may also be an absolute sequence of cursor position conversion, and specifically, the current position after cursor switching is determined only according to the number of clicks within the latest preset duration, regardless of the position of the cursor before switching.
The above two modes are further described below.
The first method is as follows: and determining the position of the cursor after switching by combining the position of the cursor relative to the blank area before executing the cursor position switching instruction.
Specifically, the position of the cursor relative to the blank area after the cursor position switching instruction is executed is determined according to a preset cursor position switching sequence and the position of the cursor relative to the blank area before the cursor position switching instruction is executed.
Here, the position of the cursor relative to the blank area after the execution of the cursor position switching instruction is a position next to the position of the cursor relative to the blank area before the execution of the cursor position switching instruction.
In a specific implementation, if the blank region only occupies a single character position, the preset cursor position conversion sequence may be set as: when the current position of the cursor before executing the cursor position switching instruction is the rear end of the blank area, the position of the cursor after executing the cursor position switching instruction is the front end of the blank area. When the current position of the cursor before executing the cursor position switching instruction is the front end of the blank area, the position of the cursor after executing the cursor position switching instruction is the rear end of the blank area. As shown in fig. 3, a scene diagram for switching the cursor position in a first mode is shown when text is input in a search bar of a browser. In fig. 3(a), before the cursor position switching command is executed, the cursor is located at the front end of the blank area (at this time, the position of the cursor located at the front end of the blank area may be the position clicked by the user to the front end of the blank area, or the cursor is automatically switched to the front end of the blank area after the cursor position switching command is executed last time. The scene can be applied to the situation that the user needs to continue inputting characters at the rear end of the blank area or delete the blank area. In fig. 3(b), the cursor is located at the rear end of the blank area before the cursor position switching command is executed, and the cursor is moved to the front end of the blank area after the cursor position switching command is executed. This scenario may be applied in the case that the user needs to continue inputting or deleting characters at the front end of the blank region, i.e. the back end of the previous text.
If the blank area occupies a plurality of character positions, the preset cursor position conversion sequence can be set as: when the position of the cursor before executing the cursor position switching instruction is the rear end of the blank area or the middle position, the position of the cursor after executing the cursor position switching instruction is the front end of the blank area. When the position of the cursor before executing the cursor position switching instruction is the front end of the blank area, the position of the cursor after executing the cursor position switching instruction is the rear end of the blank area. In summary, the preset cursor position changing sequence is that the cursor is located at the front end before switching → located at the rear end after switching, or the cursor is located at the rear end before switching → located at the front end after switching, in this case, if the user wants to position the cursor at a position between the front end and the rear end of the blank area, the cursor can be positioned at the front end first, then positioned at the designated position by inputting a space, and the redundant space can be deleted.
For another example, it may be preset that the cursor position changing order is a position before the switching at the front end of the first space → a position after the switching between the ith space and the (i + 1) th space (the first switching is between the 1 st space and the 2 nd space, the second switching is between the 2 nd space and the 3 rd space, until the switching to a position between the second last space and the last space) → a switching at the rear end of the last space → a switching at the front end of the first space.
For another example, before the switch, the position is located at the rear end of the last space → after the switch, the position is located between the (i + 1) th (a total of N spaces) space and the ith space (the first switch is located between the nth space and the (N-1) th space, and the second switch is located between the (N-1) th space and the (N-2) th space until the switch is located between the first space and the second space) → to the front end of the first space → to the rear end of the last space.
For another example, the position between the jth space and the jth +1 space before the switch → the first switch between the jth +1 space and the jth +2 space, and the second switch between the jth +2 space and the jth +3 space until the position between the penultimate space and the last space → the rear end of the last space → the front end of the first space → the position between the ith +1 space and the ith +2 space after the switch (here, first switch between the 1 st space and the 2 nd space, then switch between the 2 nd space and the 3 rd space, until the position between the jth space and the jth +1 space, the above cyclic switching sequence is repeated).
The preset cursor position conversion sequence is only used as a reference, and in practical application, the conversion sequence of the cursor position can be adjusted according to different requirements of a user.
The second method comprises the following steps: the specified operation is executed for the second time within the latest preset time length by the user.
Specifically, determining that the user executes the specified operation for the Nth time within the latest preset time length; according to a preset cursor position conversion sequence, determining a position corresponding to the Nth execution of the designated operation in each preset position of the cursor relative to the blank area; and determining the determined position corresponding to the Nth execution of the designated operation as the position of the cursor relative to the blank area after the cursor position switching instruction is executed.
Here, the user triggers the cursor position switching instruction by performing a specified operation within the last preset time period. The designating operation may be an operation of clicking the front end or the rear end of the blank area, or an operation of clicking an arbitrary position between the front end and the rear end of the blank area. Specifically, when the blank region occupies a single character position, the designating operation may be to click the front end or the rear end of the blank region, and when the blank region occupies a plurality of character positions, the designating operation may be to click the front end or the rear end of the entire blank region (i.e., the front end of the first space or the rear end of the last space), or to click a position between the front end and the rear end of the entire blank region. It should be noted that, when the designated operation triggering the cursor position switching instruction is executed, the system may preset a time threshold (preset time duration), and the system may accumulate the execution order for the designated operation only if the designated operation is continuously executed within the preset time duration. For example, if the user performs the specified operation for 2 times in the preset duration, the system searches for the cursor position corresponding to the execution sequence 2, otherwise, if the preset duration is exceeded, the cumulative execution sequence is cleared. For example, the preset time length is 10s, and after the user performs the specified operation of triggering the cursor position switching instruction for the first time, the cursor is switched to the cursor position corresponding to the execution sequence 1; after 1s, the designated operation for triggering the cursor position switching instruction is executed again, and the cursor is switched to the cursor position corresponding to the execution sequence 2; here, if the designation operation that triggers the cursor position switching instruction for the second time is executed after 12 seconds, it is considered that the designation operation is executed for the first time within the last preset time period, and at this time, the cursor is switched to the cursor position corresponding to the execution order 1.
In a specific implementation, the preset cursor position conversion sequence may be set as: when the cursor position switching instruction is executed for the first time within the latest preset duration, namely when N is equal to 1, the preset position of the cursor relative to the blank area is the front end of the blank area; when the cursor position switching instruction is executed for the second time within the latest preset time length, namely when N is equal to 2, the preset position of the cursor relative to the blank area is the rear end of the blank area; when the cursor position switching instruction is executed for the third time within the latest preset duration, namely when N is 3, the preset position of the cursor relative to the blank area is the front end of the blank area; the switching is carried out in a circulating mode. Or when the cursor position switching instruction is executed for the first time within the latest preset duration, namely when N is 1, the preset position of the cursor relative to the blank area is the rear end of the blank area; when the cursor position switching instruction is executed for the second time within the latest preset duration, namely when N is equal to 2, the preset position of the cursor relative to the blank area is the front end of the blank area; when the cursor position switching instruction is executed for the third time within the latest preset duration, namely when N is 3, the preset position of the cursor relative to the blank area is the rear end of the blank area; the switching is carried out in a circulating mode.
And performing loop iteration according to the rule of the preset cursor position conversion sequence, wherein when the cursor switching instruction needs to be executed for multiple times, the preset cursor position conversion sequence can be understood as follows: the position corresponding to the Nth execution of the designated operation is the front end of the blank area, and when N is an even number, the position corresponding to the Nth execution of the designated operation is the rear end of the blank area; or when N is an odd number, the position corresponding to the nth execution of the designated operation is the rear end of the blank area, and when N is an even number, the position corresponding to the nth execution of the designated operation is the front end of the blank area.
As shown in fig. 4, a scene diagram for switching the cursor position in the second mode is shown when text is input in the search bar of the browser. In fig. 4(a), when the user clicks the position of the blank area in the text for the first time within the preset time period (the clicked position may be the front end or the rear end of the blank area, or a position between the front end and the rear end of the blank area) to trigger the cursor position switching instruction, that is, when N is 1, the cursor is switched to the front end of the blank area according to the preset cursor position switching sequence (when N is 1, the preset position of the cursor relative to the blank area is the front end of the blank area, and when N is 2, the preset position of the cursor relative to the blank area is the rear end of the blank area). In fig. 4(b), when the user triggers the cursor position switching instruction by clicking the position of the blank area in the text for the second time within the preset duration, that is, when N is 2, the cursor position switching instruction is executed according to the preset cursor position switching instruction, and then the cursor is switched to the rear end of the blank area.
Here, comparing the first mode with the second mode in the preferred embodiment of the present application, it can be seen that, when the first mode is adopted to switch the cursor position, the position of the cursor after executing the current cursor position switching instruction can be determined only by considering the current position of the cursor, that is, the position of the cursor before executing the cursor position switching instruction. When the second mode is adopted for cursor switching, the current position of the cursor is irrelevant to the position where the cursor is located before the cursor position switching instruction is executed, and only the corresponding relation between the execution sequence N and the preset position of the cursor relative to the blank area is relevant, namely, only the appointed operation which is executed for the second time in the latest preset time length needs to be considered, and then the position where the cursor is located after the cursor position switching instruction is executed is determined according to the preset cursor position conversion sequence. For example, in the scenario shown in fig. 4(a), if the user clicks the position of the blank area in the text for the first time within the preset time period, the cursor is located at the front end of the blank area, and the cursor is still located at the front end of the blank area after executing the cursor position switching instruction, whereas in the scenario shown in fig. 3(a), the cursor is located at the front end of the blank area before executing the cursor position switching instruction, and the cursor is switched to the rear end of the blank area after executing the cursor position switching instruction.
For the case that a plurality of character bits are occupied in the blank area, the cursor position corresponding to the N-th execution of the specifying operation may further include a position between adjacent spaces in the blank area, as described in the first embodiment, and will not be described in detail here.
The preset cursor position conversion sequence is only used for example, and the cursor position conversion sequence can be set according to actual needs in practical application.
In the embodiment of the application, a cursor position conversion sequence, namely a conversion sequence of the position of the cursor relative to the blank area is preset, and after a user triggers a cursor position switching instruction, the cursor can automatically switch the position according to the preset position conversion sequence. For example, the user may repeatedly click on the front end or the rear end of the blank area, or any position between the front end and the rear end of the blank area until the cursor reaches the target position. By adopting the mode, the cursor can be switched to the target position without accurately positioning the cursor by the user, the misoperation times of the user can be reduced, and the user can more smoothly edit the text at the front end or the rear end of the blank area.
Based on the same application concept, the embodiment of the present application further provides a device for switching a cursor position corresponding to the method for switching a cursor position, and because the principle of solving the problem of the device is similar to that of the method for switching a cursor position in the embodiment of the present application, the implementation of the device may refer to the implementation of the method, and repeated details are not repeated.
As shown in fig. 5, a structure diagram of a device for controlling cursor positioning according to a second embodiment of the present application includes:
the display module 51 is configured to provide an editing interface after text editing is performed, where the editing interface includes a text region in which an edited text is displayed and a blank region located between two text regions, and the blank region occupies at least one character position;
a receiving module 52, configured to receive a cursor position switching instruction triggered by the user in the blank area;
a determining module 53, configured to determine, according to a preset cursor position conversion sequence, a position of the cursor relative to the blank area after the cursor position switching instruction is executed; the preset cursor position conversion sequence refers to a conversion sequence of the position of the cursor relative to the blank area.
Optionally, the determining module 52 is specifically configured to:
determining the position of the cursor relative to the blank area after the cursor position switching instruction is executed according to a preset cursor position switching sequence and the position of the cursor relative to the blank area before the cursor position switching instruction is executed;
the position of the cursor relative to the blank area after the cursor position switching instruction is executed is the next position of the cursor relative to the blank area before the cursor position switching instruction is executed in the preset cursor position conversion sequence.
Optionally, the determining module 52 is specifically configured to:
determining that the user executes the specified operation for the Nth time within the latest preset time length; according to a preset cursor position conversion sequence, determining a position corresponding to the Nth execution of the designated operation in each preset position of the cursor relative to the blank area; and determining the determined position corresponding to the Nth execution of the designated operation as the position of the cursor relative to the blank area after the cursor position switching instruction is executed.
Optionally, when N is an odd number, a position corresponding to the nth execution of the designated operation is a front end of the blank area, and when N is an even number, a position corresponding to the nth execution of the designated operation is a rear end of the blank area; or when N is an odd number, the position corresponding to the nth execution of the designated operation is the rear end of the blank area, and when N is an even number, the position corresponding to the nth execution of the designated operation is the front end of the blank area.
Optionally, the designating operation is an operation of clicking the front end or the rear end of the blank area, or clicking a position between the front end and the rear end of the blank area.
The device is preset with a cursor position conversion sequence, namely a conversion sequence of the position of the cursor relative to the blank area, and after a user triggers a cursor position switching instruction, the cursor can automatically switch the position according to the preset position conversion sequence. For example, the user may repeatedly click on the front end or the rear end of the blank area, or any position between the front end and the rear end of the blank area until the cursor reaches the target position. By adopting the mode, the cursor can be switched to the target position without accurately positioning the cursor by the user, the misoperation times of the user can be reduced, and the user can more smoothly edit the text at the front end or the rear end of the blank area.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A method of controlling cursor positioning, the method comprising:
providing an editing interface after text editing, wherein the editing interface comprises a text area displaying an edited text and a blank area positioned between the two text areas, and the blank area occupies at least one character position;
receiving a cursor position switching instruction triggered by the user in the blank area;
determining the position of the cursor relative to the blank area after the cursor position switching instruction is executed according to a preset cursor position switching sequence; the preset cursor position conversion sequence refers to a conversion sequence of the position of the cursor relative to the blank area.
2. The method of claim 1, wherein determining the position of the cursor relative to the blank area after executing the cursor position switching command according to a preset cursor position switching sequence comprises:
determining the position of the cursor relative to the blank area after the cursor position switching instruction is executed according to a preset cursor position switching sequence and the position of the cursor relative to the blank area before the cursor position switching instruction is executed;
the position of the cursor relative to the blank area after the cursor position switching instruction is executed is the next position of the cursor relative to the blank area before the cursor position switching instruction is executed in the preset cursor position conversion sequence.
3. The method of claim 1, wherein determining the position of the cursor relative to the blank area after executing the cursor position switching command according to a preset cursor position switching sequence comprises:
determining that the user executes the designated operation for the Nth time within the latest preset time;
according to a preset cursor position conversion sequence, determining a position corresponding to the Nth execution of the designated operation in each preset position of the cursor relative to the blank area;
and determining the determined position corresponding to the Nth execution of the designated operation as the position of the cursor relative to the blank area after the cursor position switching instruction is executed.
4. The method according to claim 3, wherein when N is an odd number, the position corresponding to the Nth execution of the designated operation is the front end of the blank area, and when N is an even number, the position corresponding to the Nth execution of the designated operation is the rear end of the blank area; alternatively, the first and second electrodes may be,
and when N is an odd number, the position corresponding to the Nth execution of the designated operation is the rear end of the blank area, and when N is an even number, the position corresponding to the Nth execution of the designated operation is the front end of the blank area.
5. The method of claim 3, wherein the designating operation is an operation of clicking on a front end or a back end of the blank area, or clicking on a position between the front end and the back end of the blank area.
6. Apparatus for controlling cursor positioning, the apparatus comprising:
the display module is used for providing an editing interface after text editing is carried out, the editing interface comprises a text area displaying an edited text and a blank area positioned between the two text areas, and the blank area occupies at least one character position;
the receiving module is used for receiving a cursor position switching instruction triggered by the user in the blank area;
the determining module is used for determining the position of the cursor relative to the blank area after the cursor position switching instruction is executed according to a preset cursor position switching sequence; the preset cursor position conversion sequence refers to a conversion sequence of the position of the cursor relative to the blank area.
7. The apparatus of claim 6, wherein the determination module is specifically configured to:
determining the position of the cursor relative to the blank area after the cursor position switching instruction is executed according to a preset cursor position switching sequence and the position of the cursor relative to the blank area before the cursor position switching instruction is executed;
the position of the cursor relative to the blank area after the cursor position switching instruction is executed is the next position of the cursor relative to the blank area before the cursor position switching instruction is executed in the preset cursor position conversion sequence.
8. The apparatus of claim 6, wherein the determination module is specifically configured to:
determining that the user executes the designated operation for the Nth time within the latest preset time; according to a preset cursor position conversion sequence, determining a position corresponding to the Nth execution of the designated operation in each preset position of the cursor relative to the blank area; and determining the determined position corresponding to the Nth execution of the designated operation as the position of the cursor relative to the blank area after the cursor position switching instruction is executed.
9. The apparatus of claim 8, wherein when N is an odd number, a location corresponding to the nth execution of the designating operation is a front end of the blank region, and when N is an even number, a location corresponding to the nth execution of the designating operation is a rear end of the blank region; alternatively, the first and second electrodes may be,
and when N is an odd number, the position corresponding to the Nth execution of the designated operation is the rear end of the blank area, and when N is an even number, the position corresponding to the Nth execution of the designated operation is the front end of the blank area.
10. The apparatus of claim 8, wherein the designating operation is an operation of clicking on a front end or a rear end of the blank area, or a position between the front end and the rear end of the blank area.
CN201610875844.XA 2016-09-30 2016-09-30 Method and device for controlling cursor positioning Active CN107885414B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610875844.XA CN107885414B (en) 2016-09-30 2016-09-30 Method and device for controlling cursor positioning

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610875844.XA CN107885414B (en) 2016-09-30 2016-09-30 Method and device for controlling cursor positioning

Publications (2)

Publication Number Publication Date
CN107885414A CN107885414A (en) 2018-04-06
CN107885414B true CN107885414B (en) 2021-04-13

Family

ID=61769749

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610875844.XA Active CN107885414B (en) 2016-09-30 2016-09-30 Method and device for controlling cursor positioning

Country Status (1)

Country Link
CN (1) CN107885414B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113177391B (en) * 2021-05-28 2021-11-19 掌阅科技股份有限公司 Method for redirecting operation cursor in streaming interface, computing equipment and storage medium
CN115328324A (en) * 2022-07-26 2022-11-11 京东科技信息技术有限公司 Method and device for inputting characters at mobile terminal

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1903432A2 (en) * 2006-09-14 2008-03-26 Avaya Technology Llc Audible computer user interface method and apparatus
CN101493752A (en) * 2009-02-26 2009-07-29 郑松平 Cursor operating system, mobile phone and palm PC
CN102314314A (en) * 2011-08-29 2012-01-11 上海量明科技发展有限公司 Method and system for converting cursor when in document reading
CN103699259A (en) * 2013-12-09 2014-04-02 宇龙计算机通信科技(深圳)有限公司 Cursor positioning method, cursor positioning system and touch equipment
CN105404444A (en) * 2015-11-26 2016-03-16 广州华多网络科技有限公司 Cursor moving method and apparatus
CN106775187A (en) * 2016-11-10 2017-05-31 杨昕 A kind of method and device for being switched fast view based on cursor positioning

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102224338B1 (en) * 2013-12-10 2021-03-08 삼성전자 주식회사 Method and apparatus for control cursor in portable device with touch device
JP5905550B1 (en) * 2014-09-19 2016-04-20 ヤフー株式会社 Information processing apparatus, information display program, and information display method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1903432A2 (en) * 2006-09-14 2008-03-26 Avaya Technology Llc Audible computer user interface method and apparatus
CN101493752A (en) * 2009-02-26 2009-07-29 郑松平 Cursor operating system, mobile phone and palm PC
CN102314314A (en) * 2011-08-29 2012-01-11 上海量明科技发展有限公司 Method and system for converting cursor when in document reading
CN103699259A (en) * 2013-12-09 2014-04-02 宇龙计算机通信科技(深圳)有限公司 Cursor positioning method, cursor positioning system and touch equipment
CN105404444A (en) * 2015-11-26 2016-03-16 广州华多网络科技有限公司 Cursor moving method and apparatus
CN106775187A (en) * 2016-11-10 2017-05-31 杨昕 A kind of method and device for being switched fast view based on cursor positioning

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Excel2013定位功能批量删除表格空行空白单元格;L847706709;《百度经验 https://jingyan.***.com/article/acf728fd543e92f8e510a392.html》;20160817;第1-5页 *

Also Published As

Publication number Publication date
CN107885414A (en) 2018-04-06

Similar Documents

Publication Publication Date Title
US9400775B2 (en) Document data entry suggestions
US20160124638A1 (en) Method for touch input and device therefore
CN104750378B (en) The input pattern automatic switching method and device of input method
KR101543196B1 (en) Sequence program creation device
CN103034411B (en) For text selection method and the device of touch-screen
CN106293694B (en) Ladder program editing device capable of displaying network comments
US20130262090A1 (en) System and method for reducing semantic ambiguity
JP2018538599A (en) Method and apparatus for grouping web page labels in a web browser
JP5987853B2 (en) Ladder program creation device, computer program, and computer-readable information recording medium
CN107463543A (en) A kind of form information input method and equipment
CN104462496A (en) Search method, device and mobile terminal
CN104881431B (en) A kind of method and apparatus for obtaining search results pages in computer equipment
CN105843547A (en) Page sliding method and device
US20180150196A1 (en) Method and apparatus for switching multiple folders, and computer storage medium
EP3489845A1 (en) Voice broadcast method and apparatus
CN107885414B (en) Method and device for controlling cursor positioning
CN106951168B (en) Word processing method and mobile terminal
CN104978074A (en) Formula input method and apparatus
CN105975154B (en) A kind of application icon lookup method and mobile terminal
JP5701078B2 (en) SEARCH METHOD, SEARCH DEVICE, AND MOVIE EDITING DEVICE
CN102937858B (en) Character input method and electronic equipment
CN103941979B (en) A kind of method and apparatus for inputting word in a mobile device
CN114063841A (en) Text selection method, text selection device and electronic equipment
CN104077007A (en) Information entry collation method and system
EP3065032A1 (en) Word prediction input method and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1253256

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant