Content editing control method, device, electronic device and storage medium
By displaying the cursor control area in the virtual keyboard area and responding to user touch operations, the problem of inconvenient cursor position control and content selection in electronic devices is solved, and the efficiency of content editing is improved.
Patent Information
- Application Number
- CN202210564732.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-23
- Publication Date
- 2024-12-17
- Estimated Expiration
- 2042-05-23
AI Technical Summary
In electronic devices, when users edit content, there is inconvenience in controlling cursor position and selecting content, especially due to inefficiency caused by the virtual keyboard to block part of the content.
By displaying the cursor control area in the virtual keyboard area, including the first control area and the second control area, the cursor is moved and selected contents are selected in response to the user's touch operation, and the cursor movement and selection operations are avoided directly in the content editing area.
Improves the user's control of input location and content, reduces hand occlusion problems, and improves the overall efficiency of content editing.
Smart Images

Figure CN114860149B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic devices, and more specifically, to a content editing control method, device, electronic device and storage medium. Background Art
[0002] With the rapid advancement of technology and living standards, electronic devices (such as smart phones, tablet computers, etc.) have become one of the commonly used electronic products in people's lives. At present, when users use electronic devices to edit text content, they usually need to move the cursor to adjust the position of text input, and move the cursor to select text content. However, the current methods of controlling the input position and selecting content are inconvenient. Summary of the invention
[0003] The present application proposes a content editing control method, device, electronic device and storage medium, which can facilitate users to control the input position and select content when editing content.
[0004] In a first aspect, an embodiment of the present application provides a content editing control method, which is applied to an electronic device, the method comprising: displaying a content editing interface, the content editing interface comprising a content editing area and a virtual keyboard area; in response to a first touch operation in the virtual keyboard area, displaying a cursor control area in the virtual keyboard area, the cursor control area comprising a first control area and a second control area; if a second touch operation in the first control area is detected, controlling the cursor in the content editing area to move; if a third touch operation in the second control area is detected, selecting the content in the content editing area as the content to be processed.
[0005] In a second aspect, an embodiment of the present application provides a content editing control device, which is applied to an electronic device, and the device includes: an interface display module, an area display module, a cursor control module and a content selection module, wherein the interface display module is used to display a content editing interface, and the content editing interface includes a content editing area and a virtual keyboard area; the area display module is used to respond to a first touch operation in the virtual keyboard area, and display a cursor control area in the virtual keyboard area, and the cursor control area includes a first control area and a second control area; the cursor control module is used to control the movement of the cursor in the content editing area if a second touch operation in the first control area is detected; and the content selection module is used to select the content in the content editing area as the content to be processed if a third touch operation in the second control area is detected.
[0006] In a third aspect, an embodiment of the present application provides an electronic device, comprising: one or more processors; a memory; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the content editing control method provided in the first aspect above.
[0007] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored. The program code can be called by a processor to execute the content editing control method provided in the first aspect above.
[0008] The solution provided by the present application is to display a cursor control area in the virtual keyboard area in response to a first touch operation in the virtual keyboard area of the content editing interface, and the cursor control area includes a first control area and a second control area. If a first touch operation in the first control area is detected, the cursor in the content editing area is controlled to move. If a second touch operation in the second control area is detected, the content in the content editing area is selected as the content to be processed. In this way, the display of the cursor control area can be triggered quickly. Through touch operations in different areas of the cursor control area, the movement of the cursor in the content editing area and the selection of content can be controlled. This can avoid the problem of low efficiency when the user controls the movement of the cursor and selects content by directly moving the cursor when controlling the input position and selecting content in the content editing area, and the hand will cover part of the content, thereby facilitating the user to control the input position and the selection of content, and improving the efficiency of the user in content editing. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0010] Figure 1 A schematic diagram showing an application scenario provided by an embodiment of the present application is shown.
[0011] Figure 2 Another schematic diagram of an application scenario provided by an embodiment of the present application is shown.
[0012] Figure 3 A flow chart of a method for controlling a cursor position according to an embodiment of the present application is shown.
[0013] Figure 4 A schematic diagram of an interface provided by an embodiment of the present application is shown.
[0014] Figure 5 A flow chart of a method for controlling a cursor position according to another embodiment of the present application is shown.
[0015] Figure 6 A schematic diagram of an interface provided by another embodiment of the present application is shown.
[0016] Figure 7 A schematic diagram of an interface provided by another embodiment of the present application is shown.
[0017] Figure 8 A flow chart of a method for controlling a cursor position according to yet another embodiment of the present application is shown.
[0018] Fig. 9 A flow chart of a method for controlling a cursor position according to yet another embodiment of the present application is shown.
[0019] Fig.10 A schematic diagram of an interface provided by another embodiment of the present application is shown.
[0020] Fig.11 A schematic diagram of an interface provided by another embodiment of the present application is shown.
[0021] Fig.12 A schematic diagram of an interface provided by another embodiment of the present application is shown.
[0022] Fig.13 A schematic diagram of an interface provided by another embodiment of the present application is shown.
[0023] Fig.14 A schematic diagram of an interface provided by another embodiment of the present application is shown.
[0024] Fig.15 A schematic diagram of an interface provided by another embodiment of the present application is shown.
[0025] Fig.16 A schematic diagram of an interface provided by another embodiment of the present application is shown.
[0026] Fig.17 A schematic diagram of an interface provided by another embodiment of the present application is shown.
[0027] Fig.18 A schematic diagram of an interface provided by another embodiment of the present application is shown.
[0028] Fig.19 A schematic diagram of an interface provided by another embodiment of the present application is shown.
[0029] Fig. 20 A schematic diagram of an interface provided by another embodiment of the present application is shown.
[0030] Fig.21 A schematic diagram of an interface provided by another embodiment of the present application is shown.
[0031] Fig. 22 A schematic diagram of an interface provided by another embodiment of the present application is shown.
[0032] Fig.23 A block diagram of a device for controlling a cursor position according to an embodiment of the present application is shown.
[0033] Fig.24 Detailed description is a block diagram of an electronic device for executing a cursor position control method according to an embodiment of the present application.
[0034] Fig.25 It is a storage unit of an embodiment of the present application for storing or carrying a program code for implementing a method for controlling a cursor position according to an embodiment of the present application. DETAILED DESCRIPTION
[0035] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0036] At present, cursor control operations such as cursor position movement and content selection on a touch screen are usually performed by directly clicking in the text area, long pressing and then dragging the cursor, etc. to control the cursor position in the text area. However, in such a solution, when editing content, a virtual keyboard is usually displayed in the interface, but since the virtual keyboard occupies a part of the interface, the display area of the text area is limited, making it easy for fingers to block text, thereby affecting line of sight operations; at the same time, since the touch area is relatively fine, the cursor movement and selection operations are not sensitive enough, the precision is low, and it is easy to make mistakes; especially in large-screen mobile phone touch screens, it is easy to exceed the finger's reachable area when controlling, making the operation more difficult.
[0037] Of course, in some solutions, by clicking on the function control displayed in the virtual keyboard, the setting interface of the virtual keyboard is entered, and by clicking on the corresponding control in the setting interface, the cursor editing area is triggered to be displayed in the virtual keyboard, and the cursor is controlled according to the operation of the cursor control control in the cursor editing area. However, in this way, the operation of triggering the cursor editing area is relatively cumbersome, and it is not convenient for the user to control the cursor at the input position and select the content when editing the content.
[0038] In response to the above problems, the inventors have proposed a content editing control method, device, electronic device, and storage medium provided in the embodiments of the present application, which can avoid the problem of low efficiency when the user controls the cursor movement and selects content by directly moving the cursor when controlling the input position and selecting content in the content editing area, and the hand will block part of the content, thereby facilitating the user to control the input position and select content, and improving the efficiency of the user in content editing. Among them, the specific content editing control method is described in detail in the subsequent embodiments.
[0039] The following first introduces the scenarios involved in the embodiments of the present application.
[0040] The content editing control method provided in the embodiment of the present application can be executed by an electronic device, and the electronic device can include a display area (for example, a display screen), or can include multiple display areas, and the multiple display areas can be folded with each other (for example, including a folding screen). Figure 1 As shown, the electronic device 100 may include a display area 101; for example, Figure 2 As shown, in Figure 2 The electronic device 100 shown may include a first display area 102 and a second display area 103 , and the first display area 102 and the display area 103 may be folded relative to each other.
[0041] See also Figure 3 , Figure 3 FIG. 1 is a flow chart showing a method for controlling content editing provided by an embodiment of the present application. In a specific embodiment, the method for controlling content editing is applied to Fig.23 The display device 400 of the virtual keyboard and the electronic device 100 ( Fig.24 ). The following will take an electronic device as an example to illustrate the specific process of this embodiment. Of course, it can be understood that the electronic device used in this embodiment can be a smart phone, a tablet computer, an e-book, etc., which is not limited here. Figure 3 The process shown is described in detail, and the control method of content editing may specifically include the following steps:
[0042] Step S110: displaying a content editing interface, wherein the content editing interface includes a content editing area and a virtual keyboard area.
[0043] Among them, the content editing interface can be any interface that can call a virtual keyboard for text input. For example, when the electronic device runs a memo application, the content editing interface can be an editing interface for the memo items of the memo. When an input operation for the input area is detected, a virtual keyboard can be displayed in the editing interface of the memo items for the user to input using the virtual keyboard; for another example, when the electronic device runs a chat application, the content editing interface can be a chat interface. When an input operation for the input area is detected, a virtual keyboard can be displayed in the chat interface. Of course, the specific interface is not limited.
[0044] In the embodiment of the present application, the content editing interface includes a content editing area and a virtual keyboard area. The content editing area is used to display the content to be edited, and the virtual keyboard area is used to display a virtual keyboard. The content to be edited can be text content or graphic content, which is not limited here; the virtual keyboard displayed in the virtual keyboard area can be a nine-key keyboard or a twenty-six-key keyboard. For example, see Figure 4 When the electronic device displays a memo interface, the memo interface A1 may include a content editing area A2 and a virtual keyboard area A3. At this time, the content editing area A2 is used to edit memo items, and a 26-key keyboard is displayed in the virtual keyboard area A3. Of course, the specific keyboard type may not be limited.
[0045] Step S120: In response to a first touch operation in the virtual keyboard area, displaying a cursor control area in the virtual keyboard area, wherein the cursor control area includes a first control area and a second control area.
[0046] In an embodiment of the present application, when the electronic device displays a content editing interface including a content editing area and a virtual keyboard area, it can detect an operation in the content editing interface, and when a first touch operation in the virtual keyboard area is detected, in response to the first touch operation in the virtual keyboard area, a cursor control area is displayed in the virtual keyboard area so that the user can control the cursor position in the content editing area through the cursor control area. It can be understood that the display of the cursor control area is triggered by the first touch operation in the virtual keyboard area, so that when the user holds the electronic device and edits the content through the virtual keyboard, the display of the cursor control area can be quickly triggered so that the user can control the cursor position in the content editing area through the cursor control area.
[0047] In some embodiments, the first touch operation may include touch operations at two different positions in the virtual keyboard area, that is, when the electronic device detects touch operations at two different positions at the same time, it can trigger the display of the cursor control area in the virtual keyboard area. Therefore, the display of the cursor control area is triggered only when the touch operations at two different positions are detected, thereby avoiding the false triggering of the display of the cursor control area. Optionally, the two different touch positions may be positions where other areas other than the virtual keyboard keys are located in the virtual keyboard area, for example, the edge area of the virtual keyboard. It can be understood that in order to avoid the user from accidentally touching the keys in the virtual keyboard when triggering the display of the cursor control area, causing the situation of wrong input; optionally, the first touch operation and the second touch operation may also be operations in the area where the virtual keys are located in the virtual keyboard area. In this case, the two different touch positions include at least two virtual keys. That is, when the user performs the first touch operation at two different positions, at least two keys need to be touched at both positions, thereby avoiding the occurrence of wrong input.
[0048] In a possible implementation, the touch operations at the two different positions may be touch operations detected at the same time, that is, when touch operations at different positions are detected at the same time, a cursor control area is displayed in the virtual keyboard area in response to the touch operations. The start time of the touch operations at the two positions may be different, and it is only necessary to detect the touch operations at the two positions at the same time. For example, the touch operation at one position may be performed before the touch operation at the other position.
[0049] In another possible implementation, the touch operations at the two different positions may also be touch operations detected at different times, that is, touch operations not performed simultaneously. In this manner, the time difference between the operation times of the touch operations at the two positions may be less than a preset time interval, that is, within the preset time interval, if touch operations at two different positions performed at different times are detected, the cursor control area may be displayed in the virtual keyboard area.
[0050] In some other embodiments, the first touch operation may also include at least two touch operations at the same position in the virtual keyboard area, whereby the display of the cursor control area is triggered only when at least two touch operations at the same position are detected, thereby avoiding false triggering of the display of the cursor control area. In this embodiment, the at least two touch operations may be touch operations performed at the same position detected at different times, and the position may be a position area. Among them, the time difference between the moments of two adjacent touch operations in the at least two touch operations detected may be less than the preset time interval.
[0051] In addition, in this embodiment, the touch positions of the at least two touch operations may also be the positions of other areas in the virtual keyboard area except the virtual keyboard keys; optionally, the at least two touch operations may also be operations in the area where the virtual keys are located in the virtual keyboard area. At this time, the touch area when the at least two touch operations are detected includes at least two virtual keys, that is, when the user performs the at least two touch operations, he needs to touch at least two keys to avoid the occurrence of erroneous input.
[0052] In some implementations, the first touch operation may be a pressing operation or a sliding operation. The specific operation type may not be limited, and only needs to be distinguished from operations that trigger other functions in the content editing interface.
[0053] In some embodiments, the cursor control area displayed by the electronic device may include a first control area and a second control area. The first control area is used to control the movement of the cursor, and the second control area is used to select the content in the content editing area. In one possible manner, the first control area and the second control area may be a touch area for detecting touch operations, for example, a blank area, so that according to the touch operation performed in the touch area, the cursor in the content editing area is controlled, or the content is selected. In another possible manner, the first control area may also be an area including a cursor control control, and the second control area may be a blank area, for example, the first control area includes a control for controlling the cursor to move in four directions of up, down, left and right, so that according to the touch operation on the control, the cursor in the content editing area is controlled, that is, the input position is controlled; the sliding operation, pressing operation, etc. of the second control area can trigger the selection of the content in the content editing area.
[0054] In some embodiments, when the electronic device displays the cursor control area, the cursor control area can be controlled to cover the virtual keyboard; when the electronic device displays the cursor control area, the virtual keyboard can also be controlled to reduce the display width and be displayed on one side of the virtual keyboard area in the row direction, and the cursor control area can be displayed on the other side of the virtual keyboard area in the row direction. Of course, the specific display method of the cursor control area is not limited.
[0055] In some implementations, when the electronic device detects the first touch operation in the virtual key area, it can also provide feedback prompts to prompt the user that the cursor control area will be triggered. For example, when the electronic device responds to the first touch operation, it can provide vibration prompts. It should be noted that this implementation can also be applied to other embodiments.
[0056] It should be noted that in the embodiments of the present application, the method of triggering the cursor control area through the function control on the virtual keyboard can also be retained. For example, if the electronic device detects a touch operation on the "toolbox" control on the virtual keyboard, the keyboard setting area can be displayed in the virtual keyboard area. The keyboard setting area includes a cursor editing control. When a touch operation on the cursor editing control is detected, the cursor control area is displayed in the virtual keyboard area in response to the touch operation.
[0057] Step S130: If a second touch operation in the first control area is detected, controlling the cursor in the content editing area to move.
[0058] In an embodiment of the present application, after the electronic device displays the cursor control area, it can detect operations in the content editing interface, and when a second touch operation in the first control area of the cursor control area is detected, in response to the second touch operation, the cursor in the content editing area is controlled to move, that is, the position of the cursor in the content displayed in the content editing area is controlled to change, so that the input position in the content editing area changes. In this way, the problem of low control efficiency of the input position caused by directly performing the cursor movement operation in the content displayed in the content editing area can be avoided.
[0059] In some embodiments, when the first control area is a touch area for detecting touch operations, the electronic device can control the movement of the cursor in response to a sliding operation in the first control area; when the first control area is an area including a cursor control control, the cursor in the content editing area can be controlled to move in response to a touch operation on the cursor control control.
[0060] Step S140: If a third touch operation in the second control area is detected, the content in the content editing area is selected as the content to be processed.
[0061] In the embodiment of the present application, after the electronic device displays the cursor control area, when a third touch operation in the second control area of the cursor control area is detected, the content in the content editing area is selected in response to the third touch operation, and the selected content is used as the content to be processed, thereby avoiding the problem of low content selection efficiency caused by directly moving the cursor in the content editing area when selecting content. It should be noted that the content in the content editing area can be text or graphic content, which is not limited here.
[0062] In some embodiments, the third touch operation may be a sliding operation in the second control area, through which the content in the content editing area is controlled to be in a selectable state, and the cursor movement is controlled according to the sliding operation, and the selected content is determined from the content in the content editing area as the content to be processed according to the movement of the cursor; the third touch operation may also be a pressing operation in the second control area. At this time, the electronic device may control the content in the content editing area to be in a selectable state according to the pressing operation, and control the cursor movement based on the sliding operation in the first control area, and the selected content is determined from the content in the content editing area as the content to be processed according to the movement of the cursor. That is to say, the electronic device determines the content that needs to be selected in the content editing area based on the operations in the first control area and the second control area at the same time.
[0063] In some embodiments, after displaying the cursor control area, the electronic device can perform timing. If no operation on the cursor control area is detected within a specified period of time, the display of the cursor control area can be canceled, and the virtual keyboard can be presented in the virtual keyboard area again for the user to perform keyboard input; the electronic device can also respond to a trigger operation of a close control displayed in the cursor control area, cancel the display of the cursor control area, and present the virtual keyboard in the virtual keyboard area again for the user to perform keyboard input.
[0064] The content editing control method provided in the embodiment of the present application can quickly trigger the display of the cursor control area. Through touch operations in different areas of the cursor control area, the movement of the cursor in the content editing area and the selection of content can be controlled. This can avoid the problem of directly moving the cursor when controlling the input position and selecting content in the content editing area, where the hand will block part of the content, resulting in low efficiency when the user controls the movement of the cursor and selects content. This can facilitate the user to control the input position and the selection of content, thereby improving the user's efficiency in content editing.
[0065] See also Figure 5 , Figure 5 A flow chart of a method for controlling content editing provided by another embodiment of the present application is shown. The method for controlling content editing is applied to the above electronic device. Figure 5 The process shown is described in detail, and the control method of content editing may specifically include the following steps:
[0066] Step S210: displaying a content editing interface, wherein the content editing interface includes a content editing area and a virtual keyboard area.
[0067] In the embodiment of the present application, step S210 can refer to the contents of the aforementioned embodiment and will not be described again here.
[0068] Step S220: In response to a first pressing operation performed simultaneously at a first position and a second position in the virtual keyboard area, a cursor control area is displayed in the virtual keyboard area, wherein the first position and the second position are respectively close to two side boundaries of the virtual keyboard area in a specified direction, and the cursor control area includes a first control area and a second control area.
[0069] In an embodiment of the present application, the touch operation for triggering the display of the cursor control area may be a pressing operation at two different positions performed simultaneously, that is, a first pressing operation at a first position and a first pressing operation at a second position performed simultaneously. In addition, the first position and the second position are respectively close to the two side boundaries of the virtual keyboard area in a specified direction, and the specified direction may be the row direction of the row where the keys of the virtual keyboard area are located, that is, the first position and the second position may be the left and right edge areas of the virtual keyboard in the row direction, respectively. Thus, when the user holds the electronic device with both hands, the display of the cursor control area can be triggered by pressing the boundary areas on both sides of the row direction of the virtual keyboard area with both hands at the same time, and the display of the cursor control area can be triggered quickly and conveniently; and, the display of the cursor control area is triggered only when the pressing operations performed at the first position and the second position are detected at the same time, and the display of the cursor control area can be avoided from being triggered by mistake.
[0070] In a possible implementation, the first position and the second position may be positions where non-virtual keys are located in the boundary of the virtual keyboard area in a specified direction. That is, the first position and the second position are not only close to the boundary of the virtual keyboard area in the specified direction, but also located outside the positions of the virtual keys, so as to avoid erroneous input caused by accidentally touching the keys of the virtual keyboard.
[0071] In another possible embodiment, the first position and the second position may also be the positions of the virtual keys located in the boundary of the virtual keyboard area close to the specified direction, and the first position and the second position performed at the first position and the second position may include at least two virtual keys, that is, the first pressing operation is a pressing operation on at least two virtual keys at the first position and the second position.
[0072] For example, see Figure 6 The electronic device simultaneously detects the pressing operations of multiple virtual keys in the key area on the first side of the virtual keyboard A4 in the row direction, and the pressing operations of multiple virtual keys in the key area on the second side of the virtual keyboard A4 in the row direction, which can trigger the display of the cursor control area in the virtual keyboard area A3.
[0073] In some embodiments, the first pressing operation may be a pressing operation that satisfies a preset pressing condition, that is, the electronic device may match the first pressing operation with the preset pressing condition in response to the first pressing operation at the first position and the second position in the virtual keyboard area. If the first pressing operation satisfies the preset pressing condition, the cursor control area is displayed in the virtual keyboard area. It can be understood that when the user holds the electronic device with both hands to edit content, the display of the cursor control area is triggered only when the first pressing operation performed at the first position and the second position using both hands satisfies the preset pressing condition, which can avoid erroneous triggering of the display of the cursor control area.
[0074] In a possible implementation, the preset pressing condition may include at least one of: a pressing duration greater than a preset duration, a pressing area greater than a preset area, and a pressing force greater than a preset force. It is understandable that the preset pressing condition may be that the pressing duration of the first pressing operation is greater than the preset duration; or that the pressing area of the first pressing operation is greater than the preset area; or that the pressing force of the first pressing operation is greater than the preset force; or that the first pressing operation satisfies multiple of the above conditions at the same time, for example, the pressing duration of the first pressing operation is greater than the preset duration, and the pressing force is greater than the preset force.
[0075] In a possible implementation, when the electronic device detects that a pressing operation is performed at two different positions in the virtual keyboard area at the same time, it can also provide feedback prompts to prompt the user that the cursor control area will be triggered. For example, the electronic device can provide a vibration prompt in response to the first pressing operation at the first position and the second position performed at the same time.
[0076] In some embodiments, when the electronic device displays the cursor control area in the virtual keyboard area in response to the first touch operation in the virtual keyboard area, the cursor control area may cover part or all of the area displayed in the virtual keyboard area, that is, the cursor control area completely covers the virtual keyboard area, or the cursor control area only covers part of the virtual keyboard area. The electronic device may control the cursor control area to be displayed in a different layer on the upper layer of the virtual keyboard area, thereby achieving that the cursor control area covers part or all of the area of the virtual keyboard area. For example, please refer to Figure 7 When the electronic device displays the cursor control area A5, the cursor control area A5 can cover the virtual keyboard in the virtual keyboard area A3 and keep displaying other contents. It should be noted that this implementation can also be applied to other embodiments.
[0077] Step S230: If a second touch operation in the first control area is detected, controlling the cursor in the content editing area to move.
[0078] Step S240: If a third touch operation in the second control area is detected, the content in the content editing area is selected as the content to be processed.
[0079] In the embodiment of the present application, step S230 and step S240 can refer to the contents of other embodiments and will not be repeated here.
[0080] The content editing control method provided in the embodiment of the present application can trigger the display of the cursor control area by simultaneously pressing two positions close to the two side boundaries of the virtual keyboard area in a specified direction, so that when the user holds the electronic device and edits the content through the virtual keyboard, the display of the cursor control area can be quickly triggered, so that the user can control the cursor position in the content editing area and select the content through the cursor control area, thereby improving the content editing efficiency and avoiding the accidental triggering of the display of the cursor control area.
[0081] See also Figure 8 , Figure 8 A flow chart of a method for controlling content editing provided by another embodiment of the present application is shown. The method for controlling content editing is applied to the above electronic device. Figure 8 The process shown is described in detail, and the control method of content editing may specifically include the following steps:
[0082] Step S310: displaying a content editing interface, wherein the content editing interface includes a content editing area and a virtual keyboard area.
[0083] In the embodiment of the present application, step S310 can refer to the contents of other embodiments and will not be repeated here.
[0084] Step S320: In response to a first sliding operation at the third position and the fourth position in the virtual keyboard area, a cursor control area is displayed in the virtual keyboard area, wherein the third position and the fourth position are respectively close to the two side boundaries of the virtual keyboard area in a specified direction, the touch areas at the starting positions of the first sliding operation and the second sliding operation each include at least two virtual keys, and the cursor control area includes a first control area and a second control area.
[0085] In an embodiment of the present application, the touch operation for triggering the cursor control area can be a sliding operation at two different positions, namely, a first sliding operation at a third position and a first sliding operation at a fourth position. In addition, the third position and the fourth position are respectively close to the two side boundaries of the virtual keyboard area in a specified direction, and the specified direction can be the row direction of the row where the keys of the virtual keyboard area are located, that is, the third position and the fourth position can be the left and right edge areas of the virtual keyboard in the row direction, respectively. Thus, when the user holds the electronic device with both hands, the display of the cursor control area can be triggered by sliding the two hands on the boundary areas on both sides of the row direction of the virtual keyboard area, which can quickly and conveniently trigger the display of the cursor control area; and the display of the cursor control area is triggered only after the sliding operations at the third position and the fourth position are detected, which can avoid the display of the cursor control area being triggered by mistake. Among them, since the touch area involved in the sliding operation is larger than that of the pressing operation, the first sliding operation is a sliding operation of the area where the virtual keys in the virtual keyboard are located, and the touch area at the starting position of the first sliding operation includes at least two virtual keys, that is, when the user starts to perform the first sliding operation at the above-mentioned third position and fourth position, at least two virtual keys are touched at the same time, thereby avoiding accidentally triggering the operation of the virtual keys, thereby avoiding accidentally triggering the keyboard input.
[0086] In some embodiments, if the electronic device detects touches on at least two virtual keys, the touch operations on the virtual keys during the sliding process starting from the touch position can be ignored, thereby avoiding erroneous triggering of keyboard input during the sliding process.
[0087] In a possible implementation, the first sliding operation can be a sliding operation detected simultaneously, that is, when the first sliding operation at the third position and the fourth position is detected simultaneously, the cursor control area is displayed in the virtual keyboard area in response to the first sliding operation. The starting time of the sliding operation at the third position and the fourth position can be different, and it is only necessary to detect the sliding operation at the third position and the fourth position at the same time. For example, the sliding operation at the third position can be performed before the sliding operation at the fourth position, or the sliding operation at the fourth position can be performed before the sliding operation at the third position.
[0088] Optionally, the third position may be the position of the virtual key in the key area of the first side boundary in the row direction of the virtual keyboard, and the fourth position may be the position of the virtual key in the key area of the second side boundary in the row direction of the virtual keyboard. Thus, when the user holds the electronic device with both hands, he or she can simultaneously slide the boundary areas on both sides of the row direction of the virtual keyboard area to trigger the display of the cursor control area.
[0089] In another possible implementation, the sliding operations at the third position and the fourth position may be sliding operations detected at different times, that is, sliding operations that are not performed simultaneously. In this manner, the time difference between the moment when the sliding operation at the third position is detected and the moment when the sliding operation at the fourth position is detected may be less than a preset time interval, that is, within the preset time interval, the sliding operation at the third position and the sliding operation at the fourth position performed at different times are detected, and the cursor control area may be displayed in the virtual keyboard area. Similarly, the sliding operation at the third position may be performed before the sliding operation at the fourth position, or the sliding operation at the fourth position may be performed before the sliding operation at the third position, and it is only necessary to ensure that the time interval between the sliding operations detected at the third position and the fourth position is less than the preset time interval.
[0090] In some embodiments, the first sliding operation may be a sliding operation that satisfies a preset sliding condition, that is, the electronic device may respond to the first sliding operation at the third position and the fourth position in the virtual keyboard area, may match the first sliding operation with the preset sliding condition, and determine whether the first sliding operation satisfies the preset sliding condition. If the first sliding operation satisfies the preset sliding condition, the cursor control area is displayed in the virtual keyboard area. It can be understood that when the user holds the electronic device to edit content, the display of the cursor control area is triggered only when the first sliding operations performed at the third position and the fourth position using both hands meet the preset sliding conditions, thereby avoiding the display of the cursor control area being triggered by mistake.
[0091] In a possible implementation, the preset sliding condition may include: the sliding length is greater than the preset length, the sliding direction is the preset sliding direction, and the sliding track satisfies at least one of the preset sliding tracks. It can be understood that the preset sliding condition may be that the sliding length of the first sliding operation is greater than the preset length; or the sliding direction of the first sliding operation is the preset sliding direction; or the sliding track of the first sliding operation satisfies the preset sliding track; or the first sliding operation satisfies multiple of the above sliding conditions at the same time, for example, the sliding length of the first sliding operation is greater than the preset length, and the sliding direction is the preset sliding direction.
[0092] Step S330: If a second touch operation in the first control area is detected, controlling the cursor in the content editing area to move.
[0093] Step S340: If a third touch operation in the second control area is detected, the content in the content editing area is selected as the content to be processed.
[0094] In the embodiment of the present application, step S330 and step S340 can refer to the contents of other embodiments and will not be repeated here.
[0095] The content editing control method provided in the embodiment of the present application can trigger the display of the cursor control area by performing a sliding operation in the key areas close to the two side boundaries of the virtual keyboard area in a specified direction, so that when the user holds the electronic device and edits the content through the virtual keyboard, the display of the cursor control area can be quickly triggered, so that the user can control the cursor position in the content editing area and select content through the cursor control area, thereby improving the content editing efficiency and avoiding the accidental triggering of the display of the cursor control area.
[0096] See also Fig. 9 , Fig. 9 A flow chart of a method for controlling content editing provided by another embodiment of the present application is shown. The method for controlling content editing is applied to the above electronic device. Fig. 9 The process shown is described in detail, and the control method of content editing may specifically include the following steps:
[0097] Step S410: displaying a content editing interface, wherein the content editing interface includes a content editing area and a virtual keyboard area.
[0098] In the embodiment of the present application, step S410 can refer to the contents of the aforementioned embodiment and will not be described again here.
[0099] Step S420: In response to a first touch operation in the virtual keyboard area, displaying a cursor control area in the virtual keyboard area, wherein the cursor control area includes a first control area and a second control area.
[0100] In some embodiments, when the electronic device displays the cursor control area, the cursor control area can be controlled to cover the virtual keyboard in the virtual keyboard area, and the first control area can be displayed on one side of the area where the virtual keyboard is located, and the second control area can be displayed on the other side of the area where the virtual keyboard is located. The cursor control area formed by the first control area and the second control area can completely cover the virtual keyboard in the virtual keyboard area, or can partially cover the virtual keyboard, which is not limited here.
[0101] Optionally, a first prompt message may be displayed in the first control area, and a second prompt message may be displayed in the second control area. The first prompt message is used to prompt that the first control area can control the movement of the cursor, and the second prompt message is used to prompt that the second control area can select content.
[0102] For example, see Fig.10When the electronic device displays the cursor control area A5, the cursor control area A5 may cover the virtual keyboard in the virtual keyboard area A3 and keep displaying other contents. The cursor control area A5 may include a first control area A6 and a second control area A7. The first control area A6 displays a first prompt message "move cursor", and the second control area A7 displays a second prompt message "select content". The first control area A6 may be located on the left side of the area where the original virtual keyboard is located, and the second control area A7 may be located on the right side of the area where the original virtual keyboard is located. For another example, please refer to Fig.11 , the first control area A6 may also be located on the right side of the area where the original virtual keyboard is located, and the second control area A7 may be located on the left side of the area where the original virtual keyboard is located.
[0103] In some embodiments, the display widths of the first control area and the second control area can be adjusted. In response to the size adjustment operation on the cursor control area, the electronic device can adjust the display width of the first control area and / or the second control area to meet the needs of the user. Optionally, in response to the editing operation on the cursor control area, the electronic device can control the cursor control area to enter an editable state so that the user can adjust the display width of the cursor control area.
[0104] In a possible implementation, if the first control area is displayed on one side of the area where the virtual keyboard is located in the row direction, the second control area can be displayed on the other side of the area where the virtual keyboard is located in the row direction, that is, one of the first control area and the second control area is displayed on the left side of the area where the virtual keyboard is located, and the other control area is displayed on the right side of the area where the virtual keyboard is located. In this case, considering the convenience of operation when the user holds the electronic device with both hands, the side of the first control area and the second control area in the row direction away from the edge of the screen can be controlled to stretch to change the display width of the first control area and the second control area. In other words, in response to the size adjustment operation on the first control area, the display width of the first control area can be controlled to change, and the first control area can be kept displayed on one side of the area where the virtual keyboard is located in the row direction; the display width of the second control area can also be adjusted in the same way.
[0105] For example, see Fig.12 , when the first control area A6 is on the left side of the cursor control area A5 and the second control area A7 is on the right side of the cursor control area A5, after the cursor control area A5 is controlled to be editable, the first adjustment control A8 can be displayed at the edge position of the middle area of the first control area A6, and similarly, the second adjustment control A9 can be displayed at the edge position of the middle area of the second control area A7; please refer to Fig.13After detecting a leftward sliding operation on the first adjustment control A8, the edge of the middle area of the first control area A6 can be controlled to move to the left. Similarly, after detecting a rightward sliding operation on the second adjustment control A9, the edge of the middle area of the second control area A7 can be controlled to move to the right. Thus, the display width of the first control area A6 and the second control area A7 can be reduced, and the first control area A6 and the second control area A7 can be kept displayed on one side of the virtual key area, making it easier for users to perform touch operations in the first control area A6 and the second control area A7.
[0106] Step S430: If a second sliding operation in the first control area is detected, control the cursor in the content editing area to move along with the second sliding operation.
[0107] In an embodiment of the present application, when the electronic device controls the movement of the cursor in the content editing area in response to a touch operation in the cursor control area, since the first control area is used to control the movement of the cursor, when a sliding operation in the first control area is detected, the electronic device can respond to the sliding operation in the first control area and control the cursor in the content editing area to slide along with the sliding operation.
[0108] In some embodiments, the electronic device controls the cursor in the content editing area to move according to the sliding direction and sliding distance of the third sliding operation in response to the second sliding operation in the first control area. The moving direction of the cursor may be consistent with the sliding direction. For example, if the sliding direction is horizontally to the right, the cursor is controlled to slide to the right, and if the sliding direction is vertically downward, the cursor is controlled to move downward. The number of characters moved by the cursor may be positively correlated with the sliding distance, that is, the greater the sliding distance, the more characters the cursor moves. In this way, the user can feel the same effect of moving the cursor in the content of the content editing area, thereby improving the user experience.
[0109] In a possible implementation, the sliding distance of the second sliding operation may be greater than the distance corresponding to the number of characters moved by the cursor in the content editing area. Thus, it is not necessary to make the sliding distance of the cursor consistent with the distance between characters in order to control the cursor to move to the desired position as when the cursor is moved directly in the content of the content editing area, so that the user can better control the movement of the cursor. In this implementation, since the actual sliding distance in the first control area is not equal to the distance moved by the cursor in the content editing area, there may be a situation where the cursor has not moved to the user's desired position after the sliding operation slides to the edge position of the first control area. In this case, the cursor can continue to be controlled to move according to the re-detected sliding operation until the cursor moves to the user's desired position. In other words, after the sliding operation slides to the edge position of the first control area, the user can end the sliding operation and perform the same sliding operation in the first control area again until the cursor moves to the user's desired position.
[0110] In other embodiments, the electronic device controls the cursor in the content editing area to move according to the sliding direction and sliding speed of the second sliding operation in response to the second sliding operation in the first control area. The moving direction of the cursor may be consistent with the sliding direction; the number of characters moved by the cursor may be positively correlated with the sliding speed, that is, the greater the sliding speed, the more characters the cursor moves. In this way, the user can feel the same effect of moving the cursor in the content of the content editing area, thereby improving the user's experience.
[0111] Step S440: If a third touch operation in the second control area is detected, the content in the content editing area is selected as the content to be processed.
[0112] In some embodiments, the electronic device can respond to the sliding operation in the second control area alone and select the content of the content editing area as the content to be processed. Among them, the electronic device can respond to the third sliding operation in the second control area, control the cursor in the content editing area to move with the third sliding operation; obtain the cursor position before the cursor moves with the third sliding operation as the first cursor position, and the cursor position after the cursor moves with the third sliding operation as the second cursor position; from the content editing area, obtain the content between the first cursor position and the second cursor position as the content to be processed. That is to say, the cursor position before the third sliding operation is detected is used as the starting point of the content to be selected, and the position to which the cursor moves when the third sliding operation ends is used as the end point of the content to be selected, so that the starting point and the end point can constitute the content range to be selected, and then the content to be processed can be determined according to the content range.
[0113] In this implementation, prompt information may be displayed in the first control area and the second control area to prompt the user of the functions of the first control area and the second control area, and the operation methods for implementing the corresponding functions. Fig.14 , when the first control area A6 is displayed on the left side of the cursor control area A5 and the second control area A7 is displayed on the right side of the cursor control area A5, the prompt message “Slide your finger to select the cursor” can be displayed in the first control area A6, and the prompt message “Slide your finger to select content” can be displayed in the second control area A7.
[0114] In other embodiments, the electronic device responds to the sliding operation in the second control area alone and selects the content in the content editing area as the content to be processed. Alternatively, if a fourth sliding operation in the second control area is detected, the cursor in the content editing area is controlled to move with the fourth sliding operation; and the content matching the movement track of the cursor is obtained from the content editing area as the content to be processed. Different from the above embodiment, the content that the cursor passes through during the movement process can be determined according to the movement track of the cursor, and this can be used as the content to be processed.
[0115] In other embodiments, the electronic device may also select the content in the content editing area as the content to be processed according to the combined touch operation in the first control area and the second control area. In particular, the electronic device may select the content in the content editing area as the content to be processed in response to the fifth sliding operation in the first control area and the second pressing operation in the second control area.
[0116] In a possible implementation, the fifth sliding operation and the second pressing operation may be performed simultaneously. That is, when the electronic device detects the second pressing operation in the second control area and the sliding operation in the first control area, the content in the content editing area may be selected.
[0117] In a possible implementation, the second pressing operation may be a pressing operation that satisfies a corresponding pressing condition. For example, the pressing duration of the second pressing operation may be greater than the target duration, so that when the user long presses the second control area and slides in the first control area, the content in the content editing area can be selected.
[0118] In a possible implementation, the electronic device can respond to the fifth sliding operation in the first control area and the second pressing operation in the second control area, control the cursor in the content editing area to move with the fifth sliding operation; obtain the cursor position before the cursor moves with the fifth sliding operation as the third cursor position, and the cursor position after the cursor moves with the fifth sliding operation as the fourth cursor position; obtain the content between the first cursor position and the second cursor position from the content editing area as the content to be processed. That is to say, the cursor position before the second pressing operation and the fifth sliding operation are detected is used as the starting point of the content to be selected, and the position to which the cursor moves at the end of the fifth sliding operation is used as the end point of the content to be selected, so that the starting point and the end point can constitute the content range to be selected, and then the content to be processed can be determined based on the content range. Of course, in this method, the content to be processed can also be determined according to the movement trajectory of the cursor as in the above implementation.
[0119] In a possible implementation, the electronic device may display a first prompt message in the first control area, the first prompt message being used to prompt that the first control area is used for cursor movement and the operation method of cursor movement; and may display a second prompt message in the second control area, the second prompt message being used to prompt that the second control area is used for content selection and the operation method of content selection. For example, see Fig.15 , when the first control area A6 is displayed on the right side of the cursor control area A5 and the second control area A7 is displayed on the left side of the cursor control area A5, the prompt message of “slide your finger to select the cursor” can be displayed in the first control area A6, and the prompt message of “long press your finger to select content” can be displayed in the second control area A7.
[0120] In some other embodiments, when the content selection is realized by combining the operations in the first control area and the second control area, the electronic device may also respond to the third pressing operation in the first control area and the sixth sliding operation in the second control area to select the content in the content editing area as the content to be processed. Thus, the user can realize the selection of the content in the content editing area by pressing the content in the first control area and cooperating with the sliding operation in the second control area. Among them, as in the aforementioned embodiment, the electronic device may also control the movement of the cursor based on the sixth sliding operation, and determine the content to be processed according to the position of the cursor before and after the movement, or determine the content to be processed according to the movement trajectory of the cursor.
[0121] In some other embodiments, if the electronic device displays the cursor control area in response to a first pressing operation performed simultaneously at a first position and a second position in the virtual keyboard area, the first control area can be displayed at the first position and the second control area can be displayed at the second position; and, when it is detected that the pressing operation at the second position is maintained, the movement of the cursor can be controlled according to the sliding operation in the first control area; in addition, when it is detected that the pressing operation at the first position is maintained, the content can be selected according to the sliding operation in the second control area. Thus, it is convenient for the user to trigger the display of the cursor control area when holding the electronic device with both hands, and control the movement of the cursor and the selection of content based on the cursor control area. Among them, the manner in which the electronic device displays the cursor control area in the virtual keyboard area in response to the first pressing operation performed simultaneously at the first position and the second position in the virtual keyboard area can refer to the contents of the aforementioned embodiments, which will not be repeated here.
[0122] Of course, in this embodiment, if the second control area is displayed at the first position and the first control area is displayed at the second position, the movement of the cursor can be controlled according to the sliding operation in the second control area when it is detected that the pressing operation at the second position is maintained; in addition, when it is detected that the pressing operation at the first position is maintained, the content can be selected according to the sliding operation in the first control area.
[0123] It can be understood that in the above-mentioned embodiment, after triggering the display of the cursor control area by simultaneously pressing operations at different positions, one of the pressing operations can be maintained, and the cursor movement and content selection can be achieved according to another sliding operation, thereby making the cursor control and content selection more convenient and making the entire control process more coherent.
[0124] In this embodiment, optionally, when it is detected that the pressing operation at the first position and the pressing operation at the second position are not maintained, the display of the cursor control area can be cancelled, that is, when the display of the cursor control area is triggered by the first pressing operation at the first position and the second position, as long as it is detected that both pressing operations are not maintained, the display of the cursor control area is cancelled. For example, after the user maintains the pressing operation at one position and realizes the movement of the cursor or the selection of the content through another sliding operation, the maintained pressing operation can be cancelled, thereby canceling the display of the cursor control area and making the virtual keyboard appear in the virtual keyboard area.
[0125] Step S450: In response to the triggering operation on the processing control, the to-be-processed content is processed accordingly.
[0126] In the embodiment of the present application, a processing control is also displayed in the cursor control area, and the processing control is used to trigger the corresponding processing of the content to be processed; after the electronic device obtains the content to be processed, if a trigger operation for the processing control is detected, the content to be processed can be processed accordingly. Among them, the trigger operation for the processing control can be a click operation, a long press operation, etc., and the specific operation can be not limited.
[0127] In some implementations, the processing of the content to be processed may include: copying, pasting, cutting, intelligent recognition, etc. Of course, the specific processing of the content to be processed is not limited thereto.
[0128] For example, see Fig.16 , the bottom of the cursor control area A5 may display a copy control corresponding to the copy function, a paste control corresponding to the paste function, a cut control corresponding to the cut function, and a smart identification control corresponding to the smart identification function; please refer to Fig.17 , if a click operation corresponding to the copy control is detected, the content to be processed can be copied, and a prompt content can be displayed to prompt that the selected content has been saved in the clipboard; see Fig.18 If a click operation corresponding to the paste control is detected, the most recent content in the clipboard can be pasted; see Fig.19 , if a click operation corresponding to the cut control is detected, the content to be processed can be cut, and a prompt content can be displayed to prompt that the selected content has been saved in the clipboard; see Fig. 20 If a click operation corresponding to the smart recognition control is detected, the content to be processed can be intelligently recognized, and the specific intelligent recognition can be the recognition of entries. Of course, the intelligent recognition can also be the recognition of information such as addresses and telephone numbers, and the specific recognition can be unlimited.
[0129] In some embodiments, for the above-mentioned method of selecting content based on the sliding operation of the second control area alone, and the method of selecting content based on the operation in the first control area and the second control area, the electronic device can provide two cursor control modes, and the electronic device can display the above-mentioned cursor control area according to the cursor control mode selected by the user. For example, please refer to Fig.21, controls corresponding to "mode 1" and "mode 2" of the cursor control mode may be displayed in the virtual keyboard area. When "mode 1" is selected, the first control area A6 is displayed on the left side of the cursor control area A5, and the second control area A7 is displayed on the right side of the cursor control area A5. The first control area A6 displays a prompt message of "slide your finger to select the cursor", and the second control area A7 displays "slide your finger to select content", that is, the electronic device can control the cursor to move according to the sliding operation in the first control area A6, and select the content in the content editing area according to the sliding operation in the second control area A7; please refer to Fig. 22 When "Mode 2" is selected, the first control area A6 is displayed on the right side of the cursor control area A5, and the second control area A7 is displayed on the left side of the cursor control area A5, and the first control area A6 displays the prompt message "Slide your finger to select the cursor", and the second control area A7 displays "Long press your finger to select content", that is, the electronic device can control the movement of the cursor according to the sliding operation in the first control area A6, and the content in the content editing area can be selected according to the long press operation in the second control area A7 and the sliding operation in the first control area A6. Of course, in the above example, the display positions of the first control area A6 and the second control area A7 are not limited, that is, the first control area can be displayed on the left side of the cursor control area, and can also be displayed on the right side of the cursor control area. In this way, the needs of users with different usage habits can be met and the user experience can be improved.
[0130] The content editing control method provided in the embodiment of the present application can trigger the display of the cursor control area through a touch operation on the virtual keyboard area, so that when the user holds the electronic device and edits the content through the virtual keyboard, the display of the cursor control area can be quickly triggered. Based on the first control area and the second control area in the displayed cursor control area, the cursor can be moved and the content in the content editing area can be selected, thereby improving the content editing efficiency, and the selected content to be processed can be further processed accordingly, thereby better meeting the user's editing needs.
[0131] See also Fig.23, which shows a structural block diagram of a content editing control device 400 provided in an embodiment of the present application. The content editing control device 400 applies the above-mentioned electronic device, and the content editing control device 400 includes: an interface display module 410, an area display module 420, a cursor control module 430 and a content selection module 440. Among them, the interface display module 410 is used to display a content editing interface, and the content editing interface includes a content editing area and a virtual keyboard area; the area display module 420 is used to respond to a first touch operation in the virtual keyboard area, and display a cursor control area in the virtual keyboard area, and the cursor control area includes a first control area and a second control area; the cursor control module 430 is used to control the cursor in the content editing area to move if a second touch operation in the first control area is detected; the content selection module 440 is used to select the content in the content editing area as the content to be processed if a third touch operation in the second control area is detected.
[0132] In some embodiments, the area display module 420 can be specifically used to: display a cursor control area in the virtual keyboard area in response to a first pressing operation performed simultaneously at a first position and a second position in the virtual keyboard area, wherein the first position and the second position are respectively close to the two side boundaries of the virtual keyboard area in a specified direction.
[0133] In a possible implementation, the area display module 420 can also be specifically used to: in response to a first pressing operation performed simultaneously at a first position and a second position in the virtual keyboard area, match the first pressing operation with a preset pressing condition; if the first pressing operation satisfies the preset pressing condition, display a cursor control area in the virtual keyboard area.
[0134] Optionally, the preset pressing condition includes at least one of: a pressing duration greater than a preset duration, a pressing area greater than a preset area, and a pressing force greater than a preset force.
[0135] In some embodiments, the area display module 420 can be specifically used to: display a cursor control area in the virtual keyboard area in response to a first sliding operation at a third position and a fourth position in the virtual keyboard area, wherein the third position is different from the fourth position, the third position and the fourth position are respectively close to the two side boundaries of the virtual keyboard area in a specified direction, and the touch areas at the starting positions of the first sliding operation and the second sliding operation each include at least two virtual keys.
[0136] In a possible implementation, the area display module 420 can also be specifically used to: in response to a first sliding operation at the third position and the fourth position in the virtual keyboard area, match the first sliding operation with a preset sliding condition; if the first sliding operation satisfies the preset sliding condition, display a cursor control area in the virtual keyboard area.
[0137] In some implementations, the cursor control module 430 may be specifically configured to: if a second sliding operation in the first control area is detected, control the cursor in the content editing area to move along with the second sliding operation.
[0138] In some embodiments, the content selection module 440 can be specifically used to: if a third sliding operation is detected in the second control area, control the cursor in the content editing area to move along with the third sliding operation; obtain the cursor position before the cursor moves along with the third sliding operation as the first cursor position, and the cursor position after the cursor moves along with the third sliding operation as the second cursor position; obtain the content between the first cursor position and the second cursor position from the content editing area as the content to be processed.
[0139] In other embodiments, the content selection module 440 can be specifically used to: if a fourth sliding operation is detected in the second control area, control the cursor in the content editing area to move along with the fourth sliding operation; and obtain content matching the movement trajectory of the cursor from the content editing area as content to be processed.
[0140] In some other embodiments, the content selection module 440 can be specifically used to: if a fifth sliding operation in the first control area and a second pressing operation in the second control area are detected, control the cursor in the content editing area to move with the fifth sliding operation; obtain the cursor position before the cursor moves with the fifth sliding operation as the third cursor position, and the cursor position after the cursor moves with the fifth sliding operation as the fourth cursor position; obtain the content between the third cursor position and the fourth second cursor position from the content editing area as the content to be processed.
[0141] Optionally, the cursor control area also includes a processing control. The cursor position control device 400 may also include a content processing module. The content processing module is used to, after the third touch operation in the second control area is detected, select the content in the content editing area as the content to be processed, and then respond to the trigger operation for the processing control to perform corresponding processing on the content to be processed.
[0142] In some implementations, the area display module 420 may be specifically configured to: in response to a first touch operation in the virtual keyboard area, display a cursor control area covering a portion or all of the virtual keyboard area.
[0143] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0144] In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.
[0145] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.
[0146] In summary, the solution provided by the present application is to display a cursor control area in the virtual keyboard area in response to a first touch operation in the virtual keyboard area of the content editing interface, and the cursor control area includes a first control area and a second control area. If a first touch operation in the first control area is detected, the cursor in the content editing area is controlled to move. If a second touch operation in the second control area is detected, the content in the content editing area is selected as the content to be processed. In this way, the display of the cursor control area can be triggered quickly. Through touch operations in different areas of the cursor control area, the movement of the cursor in the content editing area and the selection of content can be controlled. This can avoid the problem of low efficiency when the user controls the movement of the cursor and selects content by directly moving the cursor when controlling the input position and selecting content in the content editing area, and the hand will block part of the content, thereby facilitating the user to control the input position and the selection of content, thereby improving the efficiency of the user in content editing.
[0147] Please refer to Fig.24 , which shows a structural block diagram of an electronic device provided in an embodiment of the present application. The electronic device 100 may be an electronic device capable of running applications, such as a smart phone, a tablet computer, an e-book, etc. The electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and one or more applications, wherein the one or more applications may be stored in the memory 120 and configured to be executed by one or more processors 110, and the one or more applications are configured to execute the method described in the aforementioned method embodiment.
[0148] The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes various functions and processes data of the electronic device 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 110 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented separately through a communication chip.
[0149] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the electronic device 100 during use.
[0150] Please refer to Fig.25 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 800 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.
[0151] The computer readable storage medium 800 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 800 includes a non-transitory computer-readable storage medium. The computer readable storage medium 800 has storage space for program code 810 that performs any method step in the above method. These program codes can be read from or written to one or more computer program products. The program code 810 can be compressed, for example, in an appropriate form.
[0152] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for controlling content editing, characterized in that: Applied to electronic equipment, the method comprises: Displaying a content editing interface, wherein the content editing interface includes a content editing area and a virtual keyboard area; In response to a first touch operation in the edge area, a cursor control area is displayed in the virtual keyboard area, the cursor control area includes a first control area and a second control area, the edge area is other areas of the virtual keyboard area except for the virtual keyboard keys, the first control area is used to control the movement of the cursor, and the second control area is used to select content in the content editing area; If a second sliding operation is detected in the first control area, controlling the cursor in the content editing area to move along with the second sliding operation; If a fifth sliding operation in the first control area and a second pressing operation in the second control area are detected, controlling the cursor in the content editing area to move along with the fifth sliding operation; acquiring a cursor position before the cursor moves with the fifth sliding operation as a third cursor position, and a cursor position after the cursor moves with the fifth sliding operation as a fourth cursor position; From the content editing area, content between the third cursor position and the fourth cursor position is acquired as content to be processed.
2. The method according to claim 1, characterized in that The step of displaying a cursor control area in the virtual keyboard area in response to a first touch operation in the virtual keyboard area comprises: In response to a first pressing operation performed simultaneously at a first position and a second position in the virtual keyboard area, a cursor control area is displayed in the virtual keyboard area, wherein the first position and the second position are respectively close to two side boundaries of the virtual keyboard area in a specified direction.
3. The method according to claim 2, characterized in that The method of displaying a cursor control area in the virtual keyboard area in response to a first pressing operation performed simultaneously at a first position and a second position in the virtual keyboard area comprises: In response to a first pressing operation performed simultaneously at a first position and a second position in the virtual keyboard area, matching the first pressing operation with a preset pressing condition; If the first pressing operation satisfies a preset pressing condition, a cursor control area is displayed in the virtual keyboard area.
4. The method according to claim 3, characterized in that The preset pressing conditions include: At least one of a pressing duration greater than a preset duration, a pressing area greater than a preset area, and a pressing force greater than a preset force.
5. The method according to claim 1, characterized in that The step of displaying a cursor control area in the virtual keyboard area in response to a first touch operation in the virtual keyboard area comprises: In response to a first sliding operation at a third position and a fourth position in the virtual keyboard area, a cursor control area is displayed in the virtual keyboard area, wherein the third position is different from the fourth position, the third position and the fourth position are respectively close to the two side boundaries of the virtual keyboard area in a specified direction, and the touch areas at the starting positions of the first sliding operation and the second sliding operation both include at least two virtual keys.
6. The method according to claim 5, characterized in that In response to the first sliding operation at the third position and the fourth position in the virtual keyboard area, displaying a cursor control area in the virtual keyboard area includes: In response to a first sliding operation at a third position and a fourth position in the virtual keyboard area, matching the first sliding operation with a preset sliding condition; If the first sliding operation satisfies a preset sliding condition, a cursor control area is displayed in the virtual keyboard area.
7. The method according to any one of claims 1 to 6, characterized in that: If the third touch operation in the second control area is detected, the content in the content editing area is selected as the content to be processed, including: If a third sliding operation in the second control area is detected, controlling the cursor in the content editing area to move along with the third sliding operation; Acquire a cursor position before the cursor moves with the third sliding operation as a first cursor position, and a cursor position after the cursor moves with the third sliding operation as a second cursor position; From the content editing area, content between the first cursor position and the second cursor position is acquired as content to be processed.
8. The method according to any one of claims 1 to 6, characterized in that: If the third touch operation in the second control area is detected, the content in the content editing area is selected as the content to be processed, including: If a fourth sliding operation in the second control area is detected, controlling the cursor in the content editing area to move along with the fourth sliding operation; From the content editing area, content matching the movement track of the cursor is obtained as content to be processed.
9. The method according to any one of claims 1 to 6, characterized in that: The cursor control area also includes a processing control. After the third touch operation in the second control area is detected, the content in the content editing area is selected as the content to be processed, the method further includes: In response to the triggering operation on the processing control, the to-be-processed content is processed accordingly.
10. The method according to any one of claims 1 to 6, characterized in that: The step of displaying a cursor control area in the virtual keyboard area in response to a first touch operation in the virtual keyboard area comprises: In response to a first touch operation in the virtual keyboard area, a cursor control area is displayed covering a portion or all of the virtual keyboard area.
11. A content editing control device, characterized in that: Applied to electronic equipment, the device comprises: an interface display module, an area display module, a cursor control module and a content selection module, wherein: The interface display module is used to display a content editing interface, wherein the content editing interface includes a content editing area and a virtual keyboard area; The area display module is used to respond to the first touch operation in the edge area and display a cursor control area in the virtual keyboard area, wherein the cursor control area includes a first control area and a second control area, and the edge area is other areas of the virtual keyboard area except for the virtual keyboard keys, the first control area is used to control the movement of the cursor, and the second control area is used to select content in the content editing area; The cursor control module is used for controlling the cursor in the content editing area to move along with the second sliding operation if a second sliding operation is detected in the first control area; The content selection module is used to control the cursor in the content editing area to move along with the fifth sliding operation if a fifth sliding operation is detected in the first control area and a second pressing operation in the second control area; obtain the cursor position before the cursor moves along with the fifth sliding operation as the third cursor position, and the cursor position after the cursor moves along with the fifth sliding operation as the fourth cursor position; and obtain the content between the third cursor position and the fourth cursor position from the content editing area as the content to be processed.
12. An electronic device, characterized in that: include: one or more processors; Memory; One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method according to any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, which can be called by a processor to execute the method according to any one of claims 1 to 10.
Citation Information
Patent Citations
Text segment copying and pasting method and device and terminal for implementing same
CN103136180A
