WO2023226422A1 - Content editing control method and apparatus, electronic device, and storage medium - Google Patents

Content editing control method and apparatus, electronic device, and storage medium Download PDF

Info

Publication number
WO2023226422A1
WO2023226422A1 PCT/CN2022/141625 CN2022141625W WO2023226422A1 WO 2023226422 A1 WO2023226422 A1 WO 2023226422A1 CN 2022141625 W CN2022141625 W CN 2022141625W WO 2023226422 A1 WO2023226422 A1 WO 2023226422A1
Authority
WO
WIPO (PCT)
Prior art keywords
area
cursor
content
control area
control
Prior art date
Application number
PCT/CN2022/141625
Other languages
French (fr)
Chinese (zh)
Inventor
陈启
梁可
黎瀚
谷穗子
池卓哲
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2023226422A1 publication Critical patent/WO2023226422A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • the present application relates to the technical field of electronic equipment, and more specifically, to a content editing control method, device, electronic equipment, and storage medium.
  • This application proposes a content editing control method, device, electronic device and storage medium, which can facilitate the user to control the input position and select content when editing content.
  • embodiments of the present application provide a content editing control method, which is applied to electronic devices.
  • the method includes: displaying a content editing interface, the content editing interface including a content editing area and a virtual keyboard area; in response to the The first touch operation in the virtual keyboard area displays a cursor control area in the virtual keyboard area, and the cursor control area includes a first control area and a second control area; if the first control area in the first control area is detected.
  • the second touch operation is to control the cursor in the content editing area to move; 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. .
  • inventions of the present application provide a content editing control device, which is applied to electronic equipment.
  • 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
  • the module is used to display a content editing interface, 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 virtual keyboard area, in the virtual keyboard area Display a cursor control area, the cursor control area includes a first control area and a second control area; the cursor control module is used to control the content if a second touch operation in the first control area is detected.
  • the cursor in the editing area moves; the content selection module is configured to select content in the content editing area as content to be processed if a third touch operation in the second control area is detected.
  • embodiments of the present application provide an electronic device, including: one or more processors; a memory; and one or more application programs, wherein the one or more application programs are stored in the memory and Configured to be executed by the one or more processors, the one or more application programs are configured to execute the content editing control method provided by the above-mentioned first aspect.
  • embodiments of the present application provide a computer-readable storage medium.
  • the computer-readable storage medium stores program code.
  • the program code can be called by a processor to execute the content provided in the first aspect. Editing control methods.
  • the solution provided by this application displays a cursor control area in the virtual keyboard area in response to the 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 The first touch operation in the first control area is detected, and the cursor in the content editing area is controlled to move. If the second touch operation in the second control area is detected, the content in the content editing area is selected as to be processed. content. As a result, 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 and the selection of content in the content editing area can be controlled, thereby avoiding the need to control the input position in the content editing area.
  • Figure 1 shows a schematic diagram of an application scenario provided by an embodiment of the present application.
  • Figure 2 shows another schematic diagram of the application scenario provided by the embodiment of the present application.
  • Figure 3 shows a flow chart of a cursor position control method according to an embodiment of the present application.
  • Figure 4 shows a schematic diagram of an interface provided by an embodiment of the present application.
  • FIG. 5 shows a flow chart of a cursor position control method according to another embodiment of the present application.
  • Figure 6 shows a schematic diagram of an interface provided by another embodiment of the present application.
  • Figure 7 shows a schematic diagram of an interface provided by another embodiment of the present application.
  • FIG. 8 shows a flow chart of a cursor position control method according to yet another embodiment of the present application.
  • Figure 9 shows a flow chart of a cursor position control method according to yet another embodiment of the present application.
  • Figure 10 shows a schematic diagram of an interface provided by another embodiment of the present application.
  • Figure 11 shows a schematic diagram of an interface provided by another embodiment of the present application.
  • Figure 12 shows a schematic diagram of an interface provided by another embodiment of the present application.
  • Figure 13 shows a schematic diagram of an interface provided by another embodiment of the present application.
  • Figure 14 shows a schematic diagram of an interface provided by another embodiment of the present application.
  • Figure 15 shows a schematic diagram of an interface provided by another embodiment of the present application.
  • Figure 16 shows a schematic diagram of an interface provided by another embodiment of the present application.
  • Figure 17 shows a schematic diagram of an interface provided by another embodiment of the present application.
  • Figure 18 shows a schematic diagram of an interface provided by another embodiment of the present application.
  • Figure 19 shows a schematic diagram of an interface provided by another embodiment of the present application.
  • Figure 20 shows a schematic diagram of an interface provided by another embodiment of the present application.
  • Figure 21 shows a schematic diagram of an interface provided by another embodiment of the present application.
  • Figure 22 shows a schematic diagram of an interface provided by another embodiment of the present application.
  • Figure 23 shows a block diagram of a cursor position control device according to an embodiment of the present application.
  • FIG. 24 is a block diagram of an electronic device used to perform a cursor position control method according to an embodiment of the present application.
  • Figure 25 is a storage unit used to save or carry the program code for implementing the method for controlling the cursor position according to the embodiment of the present application.
  • the cursor position in the text area is usually controlled by directly clicking in the text area, long pressing and then dragging the cursor.
  • a virtual keyboard is usually displayed in the interface.
  • 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 the text.
  • the inventor proposes a content editing control method, device, electronic device and storage medium provided by embodiments of the present application, which can avoid directly moving the cursor when controlling the input position in the content editing area and selecting content, and the hand will block part of the content.
  • This leads to the problem of low efficiency when users control the cursor movement and select content, which in turn makes it easier for users to control the input position and content selection, and improves the user's efficiency in content editing.
  • the specific content editing control method will be described in detail in subsequent embodiments.
  • the content editing control method provided by the embodiment of the present application can be executed by an electronic device.
  • the electronic device can include one 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 folding screens).
  • the electronic device 100 may include one display area 101; for another example, as shown in Figure 2, the electronic device 100 shown in Figure 2 may include a first display area 102 and a second display area. area 103, and the first display area 102 and the display area 103 can be relatively folded.
  • FIG. 3 shows a schematic flowchart of a content editing control method provided by an embodiment of the present application.
  • the content editing control method is applied to the virtual keyboard display device 400 shown in FIG. 23 and the electronic device 100 ( FIG. 24 ) configured with the content editing control device 400 .
  • the following will take an electronic device as an example to illustrate the specific process of this embodiment.
  • the electronic device applied in this embodiment can be a smart phone, a tablet computer, an e-book, etc., and is not limited here.
  • the process shown in Figure 3 will be described in detail below.
  • the content editing control method may specifically include the following steps:
  • Step S110 Display a content editing interface, which includes a content editing area and a virtual keyboard area.
  • the content editing interface can be any interface that can call a virtual keyboard for text input.
  • the content editing interface may be an editing interface for memo items.
  • a virtual keyboard may be displayed in the editing interface for memo items.
  • the content editing interface can be a chat interface, and when an input operation for the input area is detected, the virtual keyboard can be displayed in the chat interface.
  • the specific interface does not need to be limited.
  • the content editing interface includes a content editing area and a virtual keyboard area.
  • the content editing area is used to display 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.
  • the memo interface A1 may include a content editing area A2 and a virtual keyboard area A3.
  • the content editing area A2 is used to edit memo items, and two virtual keyboard areas A3 are displayed. Sixteen-key keyboard, of course, the specific keyboard type does not need to be limited.
  • Step S120 In response to the first touch operation in the virtual keyboard area, display a cursor control area in the virtual keyboard area, where the cursor control area includes a first control area and a second control area.
  • the electronic device when it displays a content editing interface including a content editing area and a virtual keyboard area, it can detect operations in the content editing interface, and detect the first touch 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.
  • the first touch operation in the virtual keyboard area triggers the display of the cursor control area, so that when the user holds the electronic device and edits content through the virtual keyboard, the display of the cursor control area can be quickly triggered so that the user can pass
  • the cursor control area controls the cursor position in the content editing area.
  • the first touch operation may include touch operations at two different locations in the virtual keyboard area. That is to say, if the electronic device detects touch operations at two different locations at the same time, then it may The display of the cursor control area is triggered in the virtual keyboard area. Therefore, the display of the cursor control area is only triggered when touch operations at two different locations are detected, thereby avoiding the display of the cursor control area being accidentally triggered.
  • the two different touch positions may be the positions of areas other than the virtual keyboard keys in the virtual keyboard area, for example, the edge area of the virtual keyboard.
  • the first touch operation and the second touch operation can also be operations in the area where the virtual keys are located in the virtual keyboard area.
  • the two different touch positions include at least two virtual buttons. That is to say, when the user performs the first touch operation at two different positions, he needs to touch at least two buttons at both positions, so that Avoid incorrect input.
  • the touch operations at the two different locations may be touch operations detected at the same time. That is to say, in the case of touch operations at different locations being detected at the same time, then In response to the touch operation, a cursor control area is displayed in the virtual keyboard area.
  • the starting moments of the touch operations at the two locations may be different, as long as the touch operations at the two locations need to be detected at the same time.
  • the touch operation at one location may be preceded by the touch operation at the other location. touch operation.
  • the touch operations at the two different locations may also be touch operations detected at different times, that is, touch operations that are not performed simultaneously.
  • the time difference between the operation moments of the touch operations at the two locations can be less than the preset time interval. That is to say, within the preset time interval, two different touch operations at two locations performed at different times are detected.
  • the cursor control area can be displayed in the virtual keyboard area.
  • the first touch operation may also include at least two touch operations at the same position in the virtual keyboard area. Therefore, when at least two touch operations at the same position are detected, Only then the display of the cursor control area is triggered, so as to avoid accidentally triggering the display of the cursor control area.
  • the at least two touch operations may be touch operations performed at the same location detected at different times, and the location may be a location area. Wherein, the time difference between the moments between two adjacent touch operations among the at least two detected touch operations may be less than a preset time interval.
  • 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 It can be an operation in the area where the virtual keys are located in the virtual keyboard area.
  • the touch area when the above-mentioned at least two touch operations are detected includes at least two virtual buttons. That is to say, the user performs the above-mentioned at least two touch operations. During operation, you need to touch at least two buttons to avoid mistaken input.
  • the first touch operation may be a pressing operation or a sliding operation.
  • the specific operation type may not be limited, and it only needs to be distinguished from operations that trigger other functions in the content editing interface.
  • 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
  • the second control area is used to select content in the content editing area.
  • the first control area and the second control area may be a touch area used to detect touch operations, for example, they may be blank areas, so that the first control area and the second control area can be detected according to the touch operation in the touch area. , to control the cursor in the content editing area, or to select content.
  • the first control area may also be an area including a cursor control control
  • the second control area may be a blank area.
  • the first control area may include an area for controlling the cursor to move up, down, left, and A control that moves in the right four directions to control the cursor in the content editing area according to the touch operation of the control, that is, to control the input position; it can be triggered according to the sliding operation, pressing operation, etc. of the second control area Select content in the content editing area.
  • the electronic device when the electronic device displays the cursor control area, it can control the cursor control area to cover the virtual keyboard; when the electronic device displays the cursor control area, it can also control the virtual keyboard to reduce the display width and display it in the virtual keyboard area in the row direction. one side of the cursor control area and display the cursor control area on the other side of the virtual keyboard area in the row direction.
  • the specific display method of the cursor control area does not need to be limited.
  • the electronic device when the electronic device detects the first touch operation in the virtual key area, it may also provide a feedback prompt to prompt the user that the cursor control area will be triggered to display. For example, when the electronic device responds to the first touch operation, it may perform a vibration prompt. It should be noted that this implementation mode can also be applied to other embodiments.
  • the method of triggering the cursor control area through the functional controls on the virtual keyboard can also be retained. For example, if the electronic device detects a touch operation for the "Toolbox" control on the virtual keyboard, Then the keyboard setting area can be displayed in the virtual keyboard area, and the keyboard setting area includes the cursor editing control. When a touch operation for the cursor editing control is detected, the cursor control area is displayed in the virtual keyboard area in response to the touch operation. .
  • Step S130 If the second touch operation in the first control area is detected, control the cursor in the content editing area to move.
  • the electronic device after the electronic device displays the cursor control area, it can detect the operation in the content editing interface, and when detecting the second touch operation in the first control area of the cursor control area, respond to the second touch operation in the first control area of the cursor control area.
  • the second touch operation controls the movement of the cursor in the content editing area, that is, the position of the cursor in the content displayed in the content editing area is controlled to change, causing the input position in the content editing area to change.
  • the electronic device can control the cursor to move in response to a sliding operation in the first control area; the first control area is In the case of 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.
  • Step S140 If 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.
  • the content editing area is modified. Select the content and use the selected content as the content to be processed. This can avoid the problem of low content selection efficiency caused by directly moving the cursor in the content editing area when selecting content.
  • the content in the content editing area can be text or graphic content, which is not limited here.
  • the third touch operation may be a sliding operation in the second control area.
  • the sliding operation controls the content in the content editing area to be in a selectable state, and controls the movement of the cursor according to the sliding operation.
  • the selected content is determined from the content in the content editing area as the content to be processed; the third touch operation can also be a pressing operation in the second control area.
  • the electronic device can control the content in the content editing area according to the pressing operation.
  • the content is in a selectable state, and the cursor movement is controlled based on the sliding operation in the first control area.
  • the selected content is determined as the content to be processed from the content in the content editing area. That is to say, the electronic device is At the same time, according to the operations in the first control area and the second control area, the content to be selected in the content editing area is determined.
  • the electronic device after the electronic device displays the cursor control area, it can time the display. 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 so that the virtual keyboard can be presented to the virtual keyboard again. area for the user to perform keyboard input; the electronic device can also respond to the triggering operation of the close control displayed in the cursor control area, cancel the display of the cursor control area, and make the virtual keyboard appear in the virtual keyboard area again for the user to perform keyboard input. enter.
  • the content editing control method provided by the embodiment of the present application can quickly trigger the display of the cursor control area. Through the touch operations of different areas in the cursor control area, the movement of the cursor and the selection of content in the content editing area can be controlled. It can avoid the problem of directly moving the cursor when controlling the input position and selecting content in the content editing area. The hand will block part of the content, resulting in low efficiency when the user controls the cursor movement and selects content. This in turn can facilitate the user to control the input position and content selection. Improve users’ efficiency in content editing.
  • FIG. 5 shows a schematic flowchart of a content editing control method provided by another embodiment of the present application.
  • the content editing control method is applied to the above-mentioned electronic device.
  • the process shown in Figure 5 will be described in detail below.
  • the content editing control method may specifically include the following steps:
  • Step S210 Display a content editing interface, which includes a content editing area and a virtual keyboard area.
  • Step S220 In response to the simultaneous first pressing operation at the first position and the second position in the virtual keyboard area, display a cursor control area in the virtual keyboard area, wherein the first position and the second position are respectively Close to both sides of the virtual keyboard area in a specified direction, the cursor control area includes a first control area and a second control area.
  • the touch operation used to trigger the display of the cursor control area may be a pressing operation at two different positions at the same time, that is, a first pressing operation at the first position and a second position at the same time.
  • the first position and the second position are respectively close to both sides of the virtual keyboard area in a specified direction.
  • the specified direction may be the row direction of the row of keys in the virtual keyboard area. That is to say, the first position and the second position are They may be respectively the left and right edge areas of the virtual keyboard in the row direction.
  • the user when the user holds the electronic device with both hands, he or she can trigger the display of the cursor control area by simultaneously pressing the boundary areas on both sides of the virtual keyboard area in the row direction with both hands, and can trigger the cursor control quickly and conveniently. and the display of the cursor control area is triggered only when the pressing operation at the first position and the second position is detected at the same time, which can avoid accidentally triggering the display of the cursor control area.
  • the first position and the second position may be positions where non-virtual keys are located close to the boundary of the virtual keyboard area in a specified direction. That is to say, the first position and the second position are not only It is close to the boundary of the virtual keyboard area in the specified direction and is also located outside the location of the virtual keys to avoid accidentally touching the keys of the virtual keyboard and causing incorrect input.
  • the first position and the second position may also be the position where the virtual key is located in the boundary of the virtual keyboard area in the specified direction, and, at the first position and the second position,
  • the touch area may include at least two virtual keys, that is to say, the first pressing operation is a pressing operation for at least two virtual keys at the first position and the second position.
  • the electronic device simultaneously detects a pressing operation of multiple virtual keys in the key area of the first side of the virtual keyboard A4 in the row direction, and detects a pressing operation of multiple virtual keys in the key area of the virtual keyboard A4 on the second side of the row direction.
  • the pressing operation of multiple virtual keys in the key area can trigger the cursor control area to be displayed in the virtual keyboard area A3.
  • the first pressing operation may be a pressing operation that satisfies the preset pressing condition. That is to say, the electronic device may respond to the first pressing operation at the first position and the second position in the virtual keyboard area.
  • the first pressing operation matches the preset pressing conditions. 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 for content editing, the display of the cursor control area is triggered only when the first pressing operation performed by both hands at the first position and the second position satisfies the preset pressing conditions. Avoid accidentally triggering the display of the cursor control area.
  • the preset pressing condition may include at least one of: pressing duration is greater than the preset duration, pressing area is greater than the preset area, and pressing intensity is greater than the preset intensity.
  • the preset pressing condition can be that the pressing duration of the first pressing operation is greater than the preset duration; it can also be that the pressing area of the first pressing operation is greater than the preset area; it can also be that the pressing force intensity of the first pressing operation is even. Greater than the preset strength; the first pressing operation may also satisfy multiple of the above conditions at the same time. For example, the pressing duration of the first pressing operation needs to be greater than the preset duration, and the pressing strength must be greater than the preset strength.
  • the electronic device when the electronic device detects simultaneous pressing operations at two different locations in the virtual keyboard area, it can also provide feedback prompts to prompt the user to trigger the display of the cursor control area. For example, the electronic device may perform a vibration prompt in response to simultaneous first pressing operations at the first position and the second position.
  • the cursor control area in response to the first touch operation in the virtual keyboard area, when the electronic device displays the cursor control area in the virtual keyboard area, the cursor control area can be displayed covering part or all of 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 can control the cursor control area to be displayed on a layer above the virtual keyboard area in different layers, thereby realizing that the cursor control area covers part or all of the virtual keyboard area. For example, please refer to FIG. 7 .
  • the cursor control area A5 can cover the virtual keyboard in the virtual keyboard area A3 and retain the display of other content. It should be noted that this implementation mode can also be applied to other embodiments.
  • Step S230 If the second touch operation in the first control area is detected, control the cursor in the content editing area to move.
  • Step S240 If 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.
  • steps S230 and S240 may be referred to other embodiments, and will not be described again here.
  • the content editing control method provided by the embodiment of the present application can trigger the display of the cursor control area by simultaneously performing pressing operations at two positions respectively close to the two sides of the virtual keyboard area in the specified direction, allowing the user to hold
  • 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 content editing efficiency and avoiding The display of the cursor control area is accidentally triggered.
  • FIG. 8 shows a schematic flowchart of a content editing control method provided by yet another embodiment of the present application.
  • the content editing control method is applied to the above-mentioned electronic device.
  • the process shown in Figure 8 will be described in detail below.
  • the content editing control method may specifically include the following steps:
  • Step S310 Display a content editing interface, which includes a content editing area and a virtual keyboard area.
  • step S310 may be referred to other embodiments, and will not be described again here.
  • Step S320 In response to the first sliding operation at the third position and the fourth position in the virtual keyboard area, display a cursor control area in the virtual keyboard area, wherein the third position and the fourth position are respectively close to the cursor control area.
  • the two sides of the virtual keyboard area in the designated direction are bounded, 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 third a control area and a second control area.
  • the touch operation used to trigger the cursor control area may be a sliding operation at two different positions, that is, the first sliding operation at the third position and the fourth position.
  • the third position and The fourth position is respectively close to both sides of the virtual keyboard area in a specified direction.
  • the specified direction may be the row direction of the row of keys in the virtual keyboard area. That is to say, the third position and the fourth position may be respectively the virtual keyboard area in the row direction.
  • the first sliding operation is a sliding operation in 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 is Including at least two virtual buttons, that is, when the user starts to perform the first sliding operation at the above-mentioned third position and the fourth position, he touches at least two virtual buttons at the same time, thereby avoiding false triggering of the operation of the virtual buttons, thereby avoiding false triggering keyboard input.
  • the electronic device detects a touch on at least two virtual keys, the touch operation on the virtual keys during the sliding process starting from the touch position can be ignored. Therefore, the touch operation on the virtual keys during the sliding process can be avoided. Keyboard input is accidentally triggered.
  • the first sliding operation may be a sliding operation detected at the same time, that is, in the case where the first sliding operation at the third position and the fourth position are detected at the same time, In response to the first sliding operation, the cursor control area is displayed in the virtual keyboard area.
  • the starting time of the sliding operation at the third position and the fourth position may be different, and it only needs to detect the sliding operation at the third position and the fourth position at the same time.
  • the sliding operation at the third position may be preceded by The sliding operation at the fourth position may be performed, or the sliding operation at the fourth position may be performed before the sliding operation at the third position.
  • 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
  • the fourth position may be the position of the virtual key in the key area of the second side boundary of the virtual keyboard in the row direction. Therefore, when the user holds the electronic device with both hands, he or she can simultaneously perform sliding operations on the boundary areas on both sides of the virtual keyboard area in the row direction to trigger the display of the cursor control area.
  • the sliding operations at the third position and the fourth position may also be sliding operations detected at different times, that is, sliding operations that are not performed at the same time.
  • the time difference between the moment when the sliding operation is detected at the third position and the moment when the sliding operation is detected at the fourth position may be less than the preset time interval. That is to say, within the preset time interval, the time difference between When the sliding operation at the third position and the sliding operation at the fourth position are performed at different times, the cursor control area can be displayed in the virtual keyboard area.
  • 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. It only needs to ensure that the third position is detected.
  • the time interval between the sliding operation at the position and the fourth position only needs to be less than the preset time interval.
  • the first sliding operation may be a sliding operation that satisfies the preset sliding condition. That is to say, the electronic device may respond to the first sliding operation at the third position and the fourth position in the virtual keyboard area.
  • the first sliding operation is matched with the preset sliding condition to 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 operation performed by both hands at the third position and the fourth position satisfies the preset sliding conditions. This can avoid accidentally triggering the display of the cursor control area.
  • the preset sliding condition may include at least one of: the sliding length is greater than the preset length, the sliding direction is the preset sliding direction, and the sliding trajectory satisfies the preset sliding trajectory.
  • the preset sliding condition may be that the sliding length of the first sliding operation is greater than the preset length; it may also be that the sliding direction of the first sliding operation is the preset sliding direction; or it may be that the sliding trajectory of the first sliding operation satisfies the preset length.
  • the first sliding operation can also satisfy multiple conditions among the above sliding conditions at the same time. For example, the sliding length of the first sliding operation needs to be greater than the preset length, and the sliding direction is the preset sliding direction.
  • Step S330 If the second touch operation in the first control area is detected, control the cursor in the content editing area to move.
  • Step S340 If 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.
  • steps S330 and S340 may be referred to other embodiments, and will not be described again here.
  • the content editing control method provided by the embodiment of the present application can trigger the display of the cursor control area by performing a sliding operation on the key areas respectively close to the two sides of the virtual keyboard area in the specified direction, allowing the user to hold the electronic device
  • the display of the cursor control area can be quickly triggered, so that users can control the cursor position in the content editing area and select content through the cursor control area, improving content editing efficiency and avoiding false triggers.
  • the cursor controls the display of the area.
  • FIG. 9 is a schematic flowchart of a content editing control method provided by yet another embodiment of the present application.
  • the content editing control method is applied to the above-mentioned electronic device.
  • the process shown in Figure 9 will be described in detail below.
  • the content editing control method may specifically include the following steps:
  • Step S410 Display a content editing interface, which includes a content editing area and a virtual keyboard area.
  • step S410 In the embodiment of the present application, reference may be made to the content of the previous embodiment for step S410, which will not be described again here.
  • Step S420 In response to the first touch operation in the virtual keyboard area, display a cursor control area in the virtual keyboard area, where the cursor control area includes a first control area and a second control area.
  • the electronic device when the electronic device displays the cursor control area, it can control the cursor control area to cover the virtual keyboard in the virtual keyboard area, and can display the first control area 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 composed of the first control area and the second control area may completely cover the virtual keyboard in the virtual keyboard area, or may partially cover the virtual keyboard, which is not limited here.
  • the first prompt information can be displayed in the first control area, and the second prompt information can be displayed in the second control area.
  • the first prompt information is used to prompt that the first control area can control the movement of the cursor, and the second prompt information is used. It prompts that content can be selected in the second control area.
  • the cursor control area A5 can cover the virtual keyboard in the virtual keyboard area A3 and retain the display of other content.
  • the cursor control area A5 can include the first control area. A6 and the second control area A7, the first prompt information "move cursor" is displayed in the first control area A6, and the second prompt information "select content” is displayed in the second control area A7, and the first control area A6 can be located On the left side of the area where the original virtual keyboard is located, the second control area A7 can be located on the right side of the area where the original virtual keyboard is located; for another example, please refer to Figure 11, the first control area A6 can also be located on the right side of the area where the original virtual keyboard is located.
  • the second control area A7 may be located on the left side of the area where the original virtual keyboard is located.
  • the display widths of the first control area and the second control area may be adjusted.
  • the electronic device may adjust the display width of the first control area and/or the second control area in response to the size adjustment operation for the cursor control area, so as to meet the user's needs.
  • the electronic device may control the cursor control area to enter an editable state in response to an editing operation on the cursor control area, so that the user can adjust the display width of the cursor control area.
  • 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, the first control area
  • One of the control areas 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.
  • the side of the first control area and the second control area away from the edge of the screen in the row direction can be controlled to be stretched to change the first control area and the second control area. 2. Control the display width of the 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; second The display width of the control area can also be adjusted in the same way.
  • the cursor control area A5 is controlled to be in an editable state.
  • the first adjustment control A8 can be displayed at the edge of the middle area of the first control area A6.
  • the second adjustment control A9 can be displayed at the edge of the middle area of the second control area A7; please refer to the figure. 13.
  • the edge of the middle area of the second control area A7 can be controlled to move to the right, thereby reducing the display width of the first control area A6 and the second control area A7, and making the first control area A7 smaller.
  • the control area A6 and the second control area A7 remain displayed on one side of the virtual key area, making it easier for the user to perform touch operations in the first control area A6 and the second control area A7.
  • Step S430 If the 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.
  • the electronic device controls the cursor in the content editing area to move in response to a touch operation in the cursor control area
  • the first control area is used to control the movement of the cursor
  • the cursor in the content editing area may be controlled to slide along with the sliding operation in response to the sliding operation in the first control area.
  • the electronic device responds to the second sliding operation in the first control area and controls the cursor in the content editing area to move according to the sliding direction and sliding distance of the third sliding operation.
  • the moving direction of the cursor can 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; if the sliding direction is vertically downward, the cursor is controlled to move downward; the number of characters moved by the cursor can be the same as the sliding distance. There is a positive correlation, that is, the greater the sliding distance, the more characters the cursor moves. As a result, the user can feel the same effect of moving the cursor in the content in the content editing area, thereby improving the user experience.
  • 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. Therefore, it is not necessary to directly move the cursor in the content of the content editing area.
  • the sliding distance of the cursor needs to be consistent with the distance between characters to control the cursor to move to the desired position, allowing the user to better control the movement of the cursor.
  • the cursor can continue to be controlled to move according to the re-detected sliding operation until the cursor moves to the position required by the user. That is to say, 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 on the first control area again until the cursor moves to the position required by the user.
  • the electronic device responds to the second sliding operation in the first control area and controls the cursor in the content editing area to move according to the sliding direction and sliding speed of the second sliding operation.
  • the moving direction of the cursor can be consistent with the sliding direction; the number of characters moved by the cursor can be positively correlated with the sliding speed, that is, the greater the sliding speed, the more characters the cursor moves.
  • the user can feel the same effect of moving the cursor in the content in the content editing area, thereby improving the user experience.
  • Step S440 If 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.
  • the electronic device can independently respond to the sliding operation in the second control area and select the content in the content editing area as the content to be processed.
  • the electronic device in response to the third sliding operation in the second control area, can control the cursor in the content editing area to move with the third sliding operation; and obtain the cursor position before the cursor moves with the third sliding operation as the first cursor position.
  • the cursor position after the cursor moves with the third sliding operation is used as the second cursor position; from the content editing area, the content between the first cursor position and the second cursor position is obtained as the content to be processed.
  • 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. Therefore, the starting point and the end point are A content range to be selected can be formed, and then the content to be processed can be determined based on the content range.
  • prompt information may be displayed in the first control area and the second control area to remind the user of the functions of the first control area and the second control area, as well as the operation methods to implement the corresponding functions.
  • first control area A6 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 first control area A6 may display "finger”.
  • the prompt message "Slide to select the cursor", and the second control area A7 may display "Finger slide to select content”.
  • the electronic device independently responds to the sliding operation in the second control area and selects the content in the content editing area as the content to be processed.
  • a fourth sliding operation in the second control area is detected, Control the cursor in the content editing area to move with the fourth sliding operation; obtain content matching the movement trajectory of the cursor from the content editing area as content to be processed.
  • the content that the cursor moves through can be determined based on the trajectory of the cursor movement, and this can be used as the content to be processed.
  • the electronic device may also select the content in the content editing area as the content to be processed based on the combined touch operation in the first control area and the second control area. Wherein, 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.
  • the fifth sliding operation and the second pressing operation may be simultaneous operations. That is to say, when the electronic device detects the second pressing operation in the second control area and detects the sliding operation in the first control area, the content in the content editing area can be selected.
  • the second pressing operation may be a pressing operation that satisfies the corresponding pressing condition.
  • the pressing duration of the second pressing operation can be greater than the target duration. Therefore, when the user long presses the second control area and slides in the first control area, the selection of content in the content editing area can be achieved. .
  • the electronic device may respond to a fifth sliding operation in the first control area and a second pressing operation in the second control area, and control the cursor in the content editing area to follow the fifth sliding operation. operation to move; 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; from the content editing area, obtain the third cursor position.
  • the content between the first cursor position and the second cursor position is used as the content to be processed.
  • 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 when the fifth sliding operation ends is used as the end point of the content to be selected, by
  • the starting point and the end point may constitute a content range to be selected, and then the content to be processed may be determined based on the content range.
  • the content to be processed may also be determined based on the movement trajectory of the cursor as in the above embodiment.
  • the electronic device can display first prompt information in the first control area, and the first prompt information is used to prompt the first control area for cursor movement and the operation mode of cursor movement; and, Second prompt information may be displayed in the second control area, and the second prompt information is used to prompt the second control area for selecting content and the operation method for selecting content.
  • First prompt information may be displayed in the second control area, and the second prompt information is used to prompt the second control area for selecting content and the operation method for selecting content.
  • 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 first control area A6 may display "finger".
  • the prompt message "Slide to select the cursor"
  • the second control area A7 can display "Long press with your finger to select content”.
  • the electronic device when content selection is implemented in combination with 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 third press operation in the second control area.
  • the sixth sliding operation selects the content in the content editing area as the content to be processed. Therefore, the user can select the content in the content editing area by pressing the content in the first control area in conjunction with the sliding operation in the second control area.
  • the electronic device can also control the cursor to move based on the sixth sliding operation, and determine the content to be processed based on the position of the cursor before and after the movement, or can also determine the content to be processed based on the movement trajectory of the cursor. .
  • the electronic device displays the cursor control area in response to the first pressing operation at the first position and the second position simultaneously in the virtual keyboard area
  • the first control area may be displayed at the first position.
  • the second control area if the second control area is displayed at the first position and the first control area is displayed at the second position, when it is detected that the pressing operation at the second position is maintained, the second control area can be displayed according to the second control area.
  • the sliding operation in the control area controls the movement of the cursor; in addition, when the pressing operation at the first position is detected and maintained, the content is selected according to the sliding operation in the first control area.
  • the display of the cursor control area can be canceled, that is, by pressing at the first position.
  • the first pressing operation at the second position triggers the display of the cursor control area, as long as it is detected that both pressing operations are not maintained, the display of the cursor control area is canceled.
  • the user can cancel the held pressing operation, thereby canceling the display of the cursor control area, so that the virtual keyboard is presented in Virtual keyboard area.
  • Step S450 In response to the triggering operation on the processing control, perform corresponding processing on the content to be processed.
  • a processing control is also displayed in the cursor control area, and the processing control is used to trigger corresponding processing of the content to be processed; after the electronic device obtains the content to be processed, if the electronic device detects a triggering operation for the processing control , then the content to be processed can be processed accordingly.
  • the triggering operation for the processing control can be a click operation, a long press operation, etc., and the specific operation is not limited.
  • the processing of the content to be processed may include: copying, pasting, cutting, intelligent recognition, and other processing.
  • the specific processing of the content to be processed is not limited to this.
  • 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 an intelligent recognition control corresponding to the intelligent recognition function. ;
  • Figure 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 to the clipboard; please refer to Figure 18, if a click operation is detected For the click operation corresponding to the paste control, the most recent content in the clipboard can be pasted; please refer to Figure 19. If the click operation corresponding to the cut control is detected, the content to be processed can be cut, and a prompt can be displayed.
  • the content to be processed can be intelligently identified.
  • the specific intelligent identification can be to identify the entry.
  • intelligent identification can also identify information such as address, phone number, etc., and the specific identification is not limited.
  • the electronic device can provide two cursor control modes for the above-mentioned method of selecting content based solely on the sliding operation of the second control area, and the method of selecting content based on operations in the first control area and the second control area.
  • the electronic device can display the above-mentioned cursor control area according to the cursor control mode selected by the user.
  • the virtual keyboard area may display controls corresponding to "Mode One" and controls corresponding to "Mode Two" of the cursor control mode.
  • the first control The area A6 is displayed on the left side of the cursor control area A5, the second control area A7 is displayed on the right side of the cursor control area A5, and the first control area A6 displays a prompt message of "slide your finger to select the cursor", and the second control area A7 is displayed on the right side of the cursor control area A5.
  • Area A7 displays “Finger slide, 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 edit the content in the content editing area according to the sliding operation in the second control area A7. Please refer to Figure 22.
  • 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 first control area A6 displays the prompt message "Finger slide, select cursor”
  • the second control area A7 displays "Finger long press, select content”, that is, the electronic device can according to the first control area A6.
  • the sliding operation controls the movement of the cursor, 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.
  • 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 or on the right side of the cursor control area. .
  • the needs of users with different usage habits can be met and the user experience can be improved.
  • the content editing control method provided by the embodiment of the present application can trigger the display of the cursor control area through the touch operation on the virtual keyboard area, so that when the user holds the electronic device and edits content through the virtual keyboard, the cursor can be quickly triggered.
  • the display of the control area based on the first control area and the second control area in the displayed cursor control area, can realize the movement of the cursor and the selection of content in the content editing area, which improves the efficiency of content editing and targets the selected content to be processed. , which can be further processed accordingly to better meet the user's editing needs.
  • FIG. 23 shows a structural block diagram of a content editing control device 400 provided by an embodiment of the present application.
  • the content editing control device 400 applies the above-mentioned electronic device.
  • 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.
  • the interface display module 410 is used to display a content editing interface, which includes a content editing area and a virtual keyboard area; the area display module 420 is used to respond to the first touch in the virtual keyboard area.
  • the cursor control area includes a first control area and a second control area; the cursor control module 430 is used to detect the second control area in the first control area. If a touch operation is performed, the cursor in the content editing area is controlled to move; the content selection module 440 is configured to select the content in the content editing area if a third touch operation in the second control area is detected. as pending content.
  • the area display module 420 may be specifically configured to: display a cursor control area in the virtual keyboard area in response to simultaneous first pressing operations at the first position and the second position in the virtual keyboard area, Wherein, the first position and the second position are respectively close to both sides of the virtual keyboard area in a specified direction.
  • the area display module 420 may also be specifically configured to: in response to the first pressing operation performed simultaneously at the first position and the second position in the virtual keyboard area, the first pressing operation Match with the preset pressing conditions; if the first pressing operation satisfies the preset pressing conditions, display a cursor control area in the virtual keyboard area.
  • the preset pressing condition includes at least one of: pressing duration is greater than the preset duration, pressing area is greater than the preset area, and pressing intensity is greater than the preset intensity.
  • the area display module 420 may be specifically configured to: in response to the first sliding operation at the third position and the fourth position in the virtual keyboard area, display the cursor control area 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 both sides of the virtual keyboard area in the specified direction, the first sliding operation and the second sliding operation are Each touch area at the starting position of the operation includes at least two virtual keys.
  • the area display module 420 may be specifically configured to: in response to the first sliding operation at the third position and the fourth position in the virtual keyboard area, combine the first sliding operation with the predetermined Sliding conditions are set for matching; if the first sliding operation satisfies the preset sliding conditions, a cursor control area is displayed in the virtual keyboard area.
  • 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.
  • the content selection module 440 may be specifically configured to: if a third sliding operation in the second control area is detected, control the cursor in the content editing area to move along 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.
  • the content selection module 440 may be specifically configured to: if a fourth sliding operation in the second control area is detected, control the cursor in the content editing area to move along with the fourth sliding operation. ; Obtain content matching the movement trajectory of the cursor from the content editing area as content to be processed.
  • the content selection module 440 may be specifically configured 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 content.
  • the cursor in the editing area moves with the fifth sliding operation; the cursor position before the cursor moves with the fifth sliding operation is obtained as the third cursor position, and the cursor position after the cursor moves with the fifth sliding operation is obtained
  • the cursor position is used as the fourth cursor position; the content between the third cursor position and the fourth cursor position is obtained from the content editing area as the content to be processed.
  • the cursor control area also includes processing controls.
  • the cursor position control device 400 may also include a content processing module.
  • the content processing module is configured to respond to a trigger for the processing control after selecting the content in the content editing area as the content to be processed if the third touch operation in the second control area is detected. Operation, perform corresponding processing on the content to be processed.
  • the area display module 420 may be specifically configured to: in response to the first touch operation in the virtual keyboard area, cover and display the cursor control area on part or all of the virtual keyboard area.
  • the coupling between modules may be electrical, mechanical or other forms of coupling.
  • each functional module in each embodiment of the present application can be integrated into one processing module, or each module can exist physically alone, 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 function modules.
  • the solution provided by this application displays a cursor control area in the virtual keyboard area in response to the first touch operation in the virtual keyboard area of the content editing interface, and the cursor control area includes the first control area and the third control area.
  • Two control areas If the first touch operation in the first control area is detected, the cursor in the content editing area is controlled to move. If the second touch operation in the second control area is detected, the cursor in the content editing area is selected. content as pending content. As a result, 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 and the selection of content in the content editing area can be controlled, thereby avoiding the need to control the input position in the content editing area.
  • FIG. 24 shows a structural block diagram of an electronic device provided by an embodiment of the present application.
  • the electronic device 100 may be a smart phone, a tablet computer, an e-book, or other electronic device capable of running applications.
  • 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 application programs, wherein one or more application programs may be stored in the memory 120 and configured by One or more processors 110 execute, and one or more application programs are configured to execute the method as described in the foregoing method embodiments.
  • 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 by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120.
  • Various functions and processing data of the electronic device 100 may use at least one of digital signal processing (Digital Signal Processing, DSP), field-programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA).
  • DSP Digital Signal Processing
  • FPGA field-programmable gate array
  • PROM programmable logic array
  • the processor 110 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU), a modem, etc.
  • CPU Central Processing Unit
  • GPU Graphics Processing Unit
  • modem etc.
  • the CPU mainly handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the display content; and the modem is used to handle wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110 and may be implemented solely through a communication chip.
  • the memory 120 may include random access memory (RAM) or read-only memory (Read-Only Memory). Memory 120 may be used to store instructions, programs, codes, sets of codes, or sets of instructions.
  • the memory 120 may include a program storage area and a data storage area, where the program storage area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing each of the following method embodiments, etc.
  • the storage data area can also store data created during use of the electronic device 100 (such as phone book, audio and video data, chat record data), etc.
  • FIG. 25 shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
  • Program code is stored in the computer-readable medium 800, and the program code can be called by the processor to execute the method described in the above method embodiment.
  • Computer-readable storage medium 800 may be electronic memory such as flash memory, EEPROM (electrically erasable programmable read-only memory), EPROM, hard disk, or ROM.
  • the computer-readable storage medium 800 includes non-transitory computer-readable storage medium.
  • the computer-readable storage medium 800 has storage space for program code 810 that performs any method steps in the above-described methods. These program codes can be read from or written into one or more computer program products.
  • Program code 810 may, for example, be compressed in a suitable form.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • User Interface Of Digital Computer (AREA)
  • Position Input By Displaying (AREA)

Abstract

The present application discloses a content editing control method and apparatus, an electronic device, and a storage medium. The content editing control method comprises: displaying a content editing interface, the content editing interface comprising a content editing region and a virtual keyboard region; in response to a first touch operation in the virtual keyboard region, displaying a cursor control region in the virtual keyboard region; if a second touch operation in a first control region is detected, controlling a cursor in the content editing region to move; and if a third touch operation in a second control region is detected, selecting the content in the content editing region as content to be processed. According to the method, during content editing, a user is facilitated to control an input position and select content.

Description

内容编辑的控制方法、装置、电子设备及存储介质Content editing control method, device, electronic equipment and storage medium
相关申请的交叉引用Cross-references to related applications
本申请要求于2022年5月23日提交的申请号为202210564732.8的中国申请的优先权,其在此出于所有目的通过引用将其全部内容并入本文。This application claims priority from Chinese application number 202210564732.8 filed on May 23, 2022, the entire content of which is hereby incorporated by reference for all purposes.
技术领域Technical field
本申请涉及电子设备技术领域,更具体地,涉及一种内容编辑的控制方法、装置、电子设备及存储介质。The present application relates to the technical field of electronic equipment, and more specifically, to a content editing control method, device, electronic equipment, and storage medium.
背景技术Background technique
随着科技水平和生活水平的快速进步,电子设备(例如智能手机、平板电脑等)已经成为人们生活中常用的电子产品之一。目前,用户利用电子设备编辑文本内容时,通常存在用户需要移动光标以调整文字输入的位置,以及对文本内容进行选取而移动光标的情况,但是目前进行输入位置的控制以及内容选取的方式存在不便。With the rapid advancement of technology and living standards, electronic devices (such as smartphones, tablets, 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 method of controlling the input position and selecting content is inconvenient. .
发明内容Contents of the invention
本申请提出了一种内容编辑的控制方法、装置、电子设备及存储介质,可以实现进行内容编辑时,方便用户对输入位置进行控制以及内容的选取。This application proposes a content editing control method, device, electronic device and storage medium, which can facilitate the user to control the input position and select content when editing content.
第一方面,本申请实施例提供了一种内容编辑的控制方法,应用于电子设备,所述方法包括:显示内容编辑界面,所述内容编辑界面包括内容编辑区域以及虚拟键盘区域;响应于所述虚拟键盘区域中的第一触控操作,于所述虚拟键盘区域显示光标控制区域,所述光标控制区域包括第一控制区域以及第二控制区域;若检测到所述第一控制区域中的第二触控操作,则控制所述内容编辑区域中的光标进行移动;若检测到所述第二控制区域中的第三触控操作,则选取所述内容编辑区域中的内容作为待处理内容。In a first aspect, embodiments of the present application provide a content editing control method, which is applied to electronic devices. The method includes: displaying a content editing interface, the content editing interface including a content editing area and a virtual keyboard area; in response to the The first touch operation in the virtual keyboard area displays a cursor control area in the virtual keyboard area, and the cursor control area includes a first control area and a second control area; if the first control area in the first control area is detected. The second touch operation is to control the cursor in the content editing area to move; 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. .
第二方面,本申请实施例提供了一种内容编辑的控制装置,应用于电子设备,所述装置包括:界面显示模块、区域显示模块、光标控制模块以及内容选取模块,其中,所述界面显示模块用于显示内容编辑界面,所述内容编辑界面包括内容编辑区域以及虚拟键盘区域;所述区域显示模块用于响应于所述虚拟键盘区域中的第一触控操作,于所述虚拟键盘区域显示光标控制区域,所述光标控制区域包括第一控制区域以及第二控制区域;所述光标控制模块用于若检测到所述第一控制区域中的第二触控操作,则控制所述内容编辑区域中的光标进行移动;所述内容选取模块用于若检测到所述第二控制区域中的第三触控操作,则选取所述内容编辑区域中的内容作为待处理内容。In the second aspect, embodiments of the present application provide a content editing control device, which is applied to electronic equipment. 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 The module is used to display a content editing interface, 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 virtual keyboard area, in the virtual keyboard area Display a cursor control area, the cursor control area includes a first control area and a second control area; the cursor control module is used to control the content if a second touch operation in the first control area is detected. The cursor in the editing area moves; the content selection module is configured to select content in the content editing area as content to be processed if a third touch operation in the second control area is detected.
第三方面,本申请实施例提供了一种电子设备,包括:一个或多个处理器;存储器;一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个应用程序配置用于执行上述第一方面提供的内容编辑的控制方法。In a third aspect, embodiments of the present application provide an electronic device, including: one or more processors; a memory; and one or more application programs, wherein the one or more application programs are stored in the memory and Configured to be executed by the one or more processors, the one or more application programs are configured to execute the content editing control method provided by the above-mentioned first aspect.
第四方面,本申请实施例提供了一种计算机可读取存储介质,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行上述第一方面提供的内容编辑的控制方法。In the fourth aspect, embodiments of the present application provide a computer-readable storage medium. The computer-readable storage medium stores program code. The program code can be called by a processor to execute the content provided in the first aspect. Editing control methods.
本申请提供的方案,通过响应于内容编辑界面的虚拟键盘区域中的第一触控操作,于虚拟键盘区域显示光标控制区域,且该光标控制区域包括第一控制区域以及第二控制区域,若检测到第一控制区域中的第一触控操作,控制内容编辑区域中的光标进行移动,若检测到第二控制区域中的第二触控操作,则选取内容编辑区域中的内容作为待处理内容。由此,可以快捷实现触发光标控制区域的显示,通过光标控制区域中不同区域的触控操作,可以实现控制内容编辑区域中的光标的移动以及内容的选取,能够避免在内容编辑区域控制输入位置以及选取内容时直接移动光标,手会遮挡部分内容而导致用户控制光标移动和选取内容时效率较低的问题,进而能够方便用户控制输入位置以及内容的选取,提升用户进行内容编辑的效率。The solution provided by this application displays a cursor control area in the virtual keyboard area in response to the 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 The first touch operation in the first control area is detected, and the cursor in the content editing area is controlled to move. If the second touch operation in the second control area is detected, the content in the content editing area is selected as to be processed. content. As a result, 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 and the selection of content in the content editing area can be controlled, thereby avoiding the need to control the input position in the content editing area. And if you directly move the cursor when selecting content, your hand will block part of the content, resulting in low efficiency when the user controls the movement of the cursor and selects content. This makes it easier for the user to control the input position and content selection, and improves the user's efficiency in content editing.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作 简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings without exerting creative efforts.
图1示出了本申请实施例提供的应用场景的一种示意图。Figure 1 shows a schematic diagram of an application scenario provided by an embodiment of the present application.
图2示出了本申请实施例提供的应用场景的另一种示意图。Figure 2 shows another schematic diagram of the application scenario provided by the embodiment of the present application.
图3示出了根据本申请一个实施例的光标位置的控制方法流程图。Figure 3 shows a flow chart of a cursor position control method according to an embodiment of the present application.
图4示出了本申请一个实施例提供的一种界面示意图。Figure 4 shows a schematic diagram of an interface provided by an embodiment of the present application.
图5示出了根据本申请另一个实施例的光标位置的控制方法流程图。FIG. 5 shows a flow chart of a cursor position control method according to another embodiment of the present application.
图6示出了本申请另一个实施例提供的一种界面示意图。Figure 6 shows a schematic diagram of an interface provided by another embodiment of the present application.
图7示出了本申请另一个实施例提供的一种界面示意图。Figure 7 shows a schematic diagram of an interface provided by another embodiment of the present application.
图8示出了根据本申请又一个实施例的光标位置的控制方法流程图。FIG. 8 shows a flow chart of a cursor position control method according to yet another embodiment of the present application.
图9示出了根据本申请再一个实施例的光标位置的控制方法流程图。Figure 9 shows a flow chart of a cursor position control method according to yet another embodiment of the present application.
图10示出了本申请另一个实施例提供的一种界面示意图。Figure 10 shows a schematic diagram of an interface provided by another embodiment of the present application.
图11示出了本申请另一个实施例提供的一种界面示意图。Figure 11 shows a schematic diagram of an interface provided by another embodiment of the present application.
图12示出了本申请另一个实施例提供的一种界面示意图。Figure 12 shows a schematic diagram of an interface provided by another embodiment of the present application.
图13示出了本申请另一个实施例提供的一种界面示意图。Figure 13 shows a schematic diagram of an interface provided by another embodiment of the present application.
图14示出了本申请另一个实施例提供的一种界面示意图。Figure 14 shows a schematic diagram of an interface provided by another embodiment of the present application.
图15示出了本申请另一个实施例提供的一种界面示意图。Figure 15 shows a schematic diagram of an interface provided by another embodiment of the present application.
图16示出了本申请另一个实施例提供的一种界面示意图。Figure 16 shows a schematic diagram of an interface provided by another embodiment of the present application.
图17示出了本申请另一个实施例提供的一种界面示意图。Figure 17 shows a schematic diagram of an interface provided by another embodiment of the present application.
图18示出了本申请另一个实施例提供的一种界面示意图。Figure 18 shows a schematic diagram of an interface provided by another embodiment of the present application.
图19示出了本申请另一个实施例提供的一种界面示意图。Figure 19 shows a schematic diagram of an interface provided by another embodiment of the present application.
图20示出了本申请另一个实施例提供的一种界面示意图。Figure 20 shows a schematic diagram of an interface provided by another embodiment of the present application.
图21示出了本申请另一个实施例提供的一种界面示意图。Figure 21 shows a schematic diagram of an interface provided by another embodiment of the present application.
图22示出了本申请另一个实施例提供的一种界面示意图。Figure 22 shows a schematic diagram of an interface provided by another embodiment of the present application.
图23示出了根据本申请一个实施例的光标位置的控制装置的一种框图。Figure 23 shows a block diagram of a cursor position control device according to an embodiment of the present application.
图24是本申请实施例的用于执行根据本申请实施例的光标位置的控制方法的电子设备的框图。FIG. 24 is a block diagram of an electronic device used to perform a cursor position control method according to an embodiment of the present application.
图25是本申请实施例的用于保存或者携带实现根据本申请实施例的光标位置的控制方法的程序代码的存储单元。Figure 25 is a storage unit used to save or carry the program code for implementing the method for controlling the cursor position according to the embodiment of the present application.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。In order to enable those in the technical field to better understand the solution of the present application, the technical solution in the embodiment of the present application will be clearly and completely described below in conjunction with the drawings in the embodiment of the present application.
目前,在触摸屏中进行光标位置移动及内容选择等光标控制操作,通常通过直接在文本区域中进行点击操作、长按后拖动光标等操作,对文本区域中的光标位置进行控制。但是这样的方案中,由于进行内容编辑时,界面中通常会显示有虚拟键盘,但由于虚拟键盘会占据界面中的一部分位置,因而导致文本区域的显示面积受限,使得手指容易遮挡文字,从而影响视线操作;同时,由于触控区较精细,光标移动和选择操作不够灵敏,精细度低,容易误操作;尤其在大屏手机触控屏内,控制时容易超出手指可达区,操作更加困难。Currently, when performing cursor control operations such as cursor position movement and content selection on a touch screen, the cursor position in the text area is usually controlled by directly clicking in the text area, long pressing and then dragging the cursor. However, in such a solution, when editing content, a virtual keyboard is usually displayed in the interface. However, because 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 the text. Affects line-of-sight operations; at the same time, because 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 misoperate; especially in large-screen mobile phone touch screens, it is easy to exceed the reachable area of the finger during control, making the operation more difficult. difficulty.
当然,在一些方案中,通过点击虚拟键盘中显示的功能控件,进入虚拟键盘的设置界面,并且通过点击设置界面中的相应控件,触发在虚拟键盘中显示光标编辑区域,并且根据光标编辑区域中针对光标控制控件的操作,对光标进行控制。但是这样的方式中,触发光标编辑区域的操作较为繁琐,也不方便用户进行内容编辑时的输入位置的光标控制和内容选取。Of course, in some solutions, by clicking on the function control displayed in the virtual keyboard, you enter the setting interface of the virtual keyboard, and by clicking the corresponding control in the setting interface, the cursor editing area is displayed in the virtual keyboard, and the cursor editing area is displayed according to the cursor editing area. For the operation of the cursor control control, control the cursor. However, in this method, the operation of triggering the cursor editing area is relatively cumbersome, and it is inconvenient for the user to control the cursor at the input position and select content when editing content.
针对上述问题,发明人提出了本申请实施例提供的内容编辑的控制方法、装置、电子设备以及存储介质,能够避免在内容编辑区域控制输入位置以及选取内容时直接移动光标,手会遮挡部分内容而导致用户控制光标移动和选取内容时效率较低的问题,进而能够方便用户控制输入位置以及内容的选取,提升用户进行内容编辑的效率。其中,具体的内容编辑的控制方法在后续的实施例中进行详细的说明。In response to the above problems, the inventor proposes a content editing control method, device, electronic device and storage medium provided by embodiments of the present application, which can avoid directly moving the cursor when controlling the input position in the content editing area and selecting content, and the hand will block part of the content. This leads to the problem of low efficiency when users control the cursor movement and select content, which in turn makes it easier for users to control the input position and content selection, and improves the user's efficiency in content editing. The specific content editing control method will be described in detail in subsequent embodiments.
下面先对本申请实施例涉及的场景进行介绍。The scenarios involved in the embodiments of this application are first introduced below.
本申请实施例提供的内容编辑的控制方法可以由电子设备执行,该电子设备可以包括一个显示区域(例如,一个显示屏),也可以由包括多个显示区域,且多个显示区域可相互折叠(例如,包括折叠屏)。例如,如图1所示,电子设备100可以包括1个显示区域101;再例如,如图2所示, 在图2所示的电子设备100中可以包括有第一显示区域102和第二显示区域103,且第一显示区域102和显示区域103可相对折叠。The content editing control method provided by the embodiment of the present application can be executed by an electronic device. The electronic device can include one 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 folding screens). For example, as shown in Figure 1, the electronic device 100 may include one display area 101; for another example, as shown in Figure 2, the electronic device 100 shown in Figure 2 may include a first display area 102 and a second display area. area 103, and the first display area 102 and the display area 103 can be relatively folded.
请参阅图3,图3示出了本申请一个实施例提供的内容编辑的控制方法的流程示意图。在具体的实施例中,所述内容编辑的控制方法应用于如图23所示的虚拟键盘的显示装置400以及配置有所述内容编辑的控制装置400的电子设备100(图24)。下面将以电子设备为例,说明本实施例的具体流程,当然,可以理解的,本实施例所应用的电子设备可以为智能手机、平板电脑、电子书等,在此不做限定。下面将针对图3所示的流程进行详细的阐述,所述内容编辑的控制方法具体可以包括以下步骤:Please refer to Figure 3, which shows a schematic flowchart of a content editing control method provided by an embodiment of the present application. In a specific embodiment, the content editing control method is applied to the virtual keyboard display device 400 shown in FIG. 23 and the electronic device 100 ( FIG. 24 ) configured with the content editing control device 400 . 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 applied in this embodiment can be a smart phone, a tablet computer, an e-book, etc., and is not limited here. The process shown in Figure 3 will be described in detail below. The content editing control method may specifically include the following steps:
步骤S110:显示内容编辑界面,所述内容编辑界面包括内容编辑区域以及虚拟键盘区域。Step S110: Display a content editing interface, which includes a content editing area and a virtual keyboard area.
其中,内容编辑界面可以是任意可以调用虚拟键盘进行文本输入的界面。例如,电子设备运行备忘录的应用时,内容编辑界面可以为备忘录的备忘事项的编辑界面,在检测到针对输入区域的输入操作的情况下,可以在备忘事项的编辑界面中显示虚拟键盘,以供用户利用虚拟键盘进行输入;又例如,电子设备运行聊天应用时,则内容编辑界面可以为聊天界面,在检测到针对输入区域的输入操作的情况下,可以在聊天界面中显示虚拟键盘。当然,具体的界面可以不做限定。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 may be an editing interface for memo items. When an input operation for the input area is detected, a virtual keyboard may be displayed in the editing interface for memo items. For users to use the virtual keyboard for input; for another example, when the electronic device runs a chat application, the content editing interface can be a chat interface, and when an input operation for the input area is detected, the virtual keyboard can be displayed in the chat interface. Of course, the specific interface does not need to be limited.
在本申请实施例中,内容编辑界面包括内容编辑区域以及虚拟键盘区域,内容编辑区域用于显示待编辑的内容,虚拟键盘区域用于显示虚拟键盘。其中,待编辑的内容可以是文字内容,也可以是图文内容,在此不做限定;虚拟键盘区域中显示的虚拟键盘可以是九键键盘,也可以是二十六键键盘,例如,请参阅图4,电子设备显示备忘录界面的情况下,备忘录界面A1可以包括内容编辑区域A2以及虚拟键盘区域A3,此时,内容编辑区域A2用于编辑备忘事项,虚拟键盘区域A3中显示有二十六键键盘,当然,具体的键盘类型可以不做限定。In this 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 content to be edited, and the virtual keyboard area is used to display a virtual keyboard. Among them, 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, please Referring to 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 two virtual keyboard areas A3 are displayed. Sixteen-key keyboard, of course, the specific keyboard type does not need to be limited.
步骤S120:响应于所述虚拟键盘区域中的第一触控操作,于所述虚拟键盘区域显示光标控制区域,所述光标控制区域包括第一控制区域以及第二控制区域。Step S120: In response to the first touch operation in the virtual keyboard area, display a cursor control area in the virtual keyboard area, where the cursor control area includes a first control area and a second control area.
在本申请实施例中,电子设备在显示包括内容编辑区域以及虚拟键盘区域的内容编辑界面的情况下,可以检测该内容编辑界面中的操作,并在检测到虚拟键盘区域中的第一触控操作的情况下,响应于虚拟键盘区域中的第一触控操作,于虚拟键盘区域显示光标控制区域,以便用户通过光标控制区域对内容编辑区域中的光标位置进行控制。可以理解地,通过虚拟键盘区域中的第一触控操作,触发光标控制区域的显示,使用户握持电子设备并通过虚拟键盘进行内容编辑时,可以快速触发光标控制区域的显示,以便用户通过光标控制区域对内容编辑区域中的光标位置进行控制。In the 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 operations in the content editing interface, and detect the first touch in the virtual keyboard area. In the case of operation, 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 first touch operation in the virtual keyboard area triggers the display of the cursor control area, so that when the user holds the electronic device and edits content through the virtual keyboard, the display of the cursor control area can be quickly triggered so that the user can pass The cursor control area controls the cursor position in the content editing area.
在一些实施方式中,第一触控操作可以包括虚拟键盘区域中不同的两个位置处的触控操作,也就是说,电子设备同时检测到了不同的两个位置处的触控操作,则可以触发在虚拟键盘区域显示光标控制区域,由此,在检测到不同的两个位置处的触控操作的情况下,才触发光标控制区域的显示,从而可以避免误触发光标控制区域的显示。可选地,不同的两个触控位置可以是虚拟键盘区域中除虚拟键盘按键以外的其他区域所在的位置,例如,虚拟键盘的边缘区域,可以理解地,为避免用户触发光标控制区域的显示时,误触控虚拟键盘中的按键而导致误输入的情况;可选地,第一触控操作以及第二触控操作也可以是虚拟键盘区域中虚拟按键所在区域中的操作,此时,不同的两个触控位置包括至少两个虚拟按键,也就是说,用户进行在两个不同的位置处进行第一触控操作时,在两个位置处均需触控至少两个按键,从而避免误输入的情况的发生。In some embodiments, the first touch operation may include touch operations at two different locations in the virtual keyboard area. That is to say, if the electronic device detects touch operations at two different locations at the same time, then it may The display of the cursor control area is triggered in the virtual keyboard area. Therefore, the display of the cursor control area is only triggered when touch operations at two different locations are detected, thereby avoiding the display of the cursor control area being accidentally triggered. Optionally, the two different touch positions may be the positions of areas other than the virtual keyboard keys in the virtual keyboard area, for example, the edge area of the virtual keyboard. Understandably, in order to prevent the user from triggering the display of the cursor control area When a key in the virtual keyboard is accidentally touched, resulting in an incorrect input; optionally, the first touch operation and the second touch operation can also be operations in the area where the virtual keys are located in the virtual keyboard area. At this time, The two different touch positions include at least two virtual buttons. That is to say, when the user performs the first touch operation at two different positions, he needs to touch at least two buttons at both positions, so that Avoid incorrect input.
在一种可能的实施方式中,上述不同的两个位置处的触控操作可以是同时检测到的触控操作,也就是说,在同时检测到不同位置处的触控操作的情况下,则响应该触控操作,于虚拟键盘区域显示光标控制区域。其中,两个位置处的触控操作的起始时刻可以不同,仅需要同时检测到两个位置处的触控操作即可,例如,其中一个位置处的触控操作可以先于另一位置处的触控操作进行。In a possible implementation, the touch operations at the two different locations may be touch operations detected at the same time. That is to say, in the case of touch operations at different locations being detected at the same time, then In response to the touch operation, a cursor control area is displayed in the virtual keyboard area. The starting moments of the touch operations at the two locations may be different, as long as the touch operations at the two locations need to be detected at the same time. For example, the touch operation at one location may be preceded by the touch operation at the other location. touch operation.
在另一种可能的实施方式中,上述不同的两个位置处的触控操作也可以是不同时刻检测到的触控操作,即非同时进行的触控操作。该方式中,两个位置处的触控操作的操作时刻之间的时间差可以小于预设时长间隔,也就是说,在预设时长间隔内,检测到不同时间进行的不同的两个位置处的触控操作,则可以于虚拟键盘区域显示光标控制区域。In another possible implementation, the touch operations at the two different locations may also be touch operations detected at different times, that is, touch operations that are not performed simultaneously. In this method, the time difference between the operation moments of the touch operations at the two locations can be less than the preset time interval. That is to say, within the preset time interval, two different touch operations at two locations performed at different times are detected. For touch operation, the cursor control area can be displayed in the virtual keyboard area.
在另一些实施方式中,第一触控操作也可以包括虚拟键盘区域中同一位置处的至少两个触控操作,由此,在检测到同一位置处的至少两个触控操作的情况下,才触发光标控制区域的显示,从而可以避免误触发光标控制区域的显示。在该实施方式中,该至少两个触控操作可以是不同时刻检测到的同一位置处进行的触控操作,该位置可以为一位置区域。其中,检测到的至少两个触控操作中相邻两个触控操作之间的时刻之间的时间差可以小于预设时长间隔。In other embodiments, the first touch operation may also include at least two touch operations at the same position in the virtual keyboard area. Therefore, when at least two touch operations at the same position are detected, Only then the display of the cursor control area is triggered, so as to avoid accidentally triggering the display of the cursor control area. In this embodiment, the at least two touch operations may be touch operations performed at the same location detected at different times, and the location may be a location area. Wherein, the time difference between the moments between two adjacent touch operations among the at least two detected touch operations may be less than a preset time interval.
另外,在该实施方式中,上述至少两个触控操作的触控位置也可以是虚拟键盘区域中除虚拟 键盘按键以外的其他区域所在的位置;可选地,上述至少两个触控操作也可以是虚拟键盘区域中虚拟按键所在区域中的操作,此时,检测到上述至少两个触控操作时的触控区域包括至少两个虚拟按键,也就是说,用户进行上述至少两个触控操作时,均需触控至少两个按键,从而避免误输入的情况的发生。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 It can be an operation in the area where the virtual keys are located in the virtual keyboard area. In this case, the touch area when the above-mentioned at least two touch operations are detected includes at least two virtual buttons. That is to say, the user performs the above-mentioned at least two touch operations. During operation, you need to touch at least two buttons to avoid mistaken input.
在一些实施方式中,第一触控操作可以为按压操作,也可以为滑动操作,具体地操作类型可以不做限定,仅需要与内容编辑界面中触发其他功能的操作区分即可。In some embodiments, the first touch operation may be a pressing operation or a sliding operation. The specific operation type may not be limited, and it only needs to be distinguished from operations that trigger other functions in the content editing interface.
在一些实施方式中,电子设备显示的光标控制区域可以包括第一控制区域以及第二控制区域。其中,第一控制区域用于控制光标的移动,第二控制区域用于选择内容编辑区域中的内容。在一种可能的方式中,第一控制区域以及第二控制区域可以是一用于检测触控操作的触控区域,例如,可以为空白区域,以便根据该触控区域中进行的触控操作,对内容编辑区域中的光标进行控制,或者进行内容的选取。在另一种可能的方式中,第一控制区域也可以是包括光标控制控件的区域,第二控制区域可以是空白区域,例如,第一控制区域包括用于控制光标进行上、下、左和右四个方向移动的控件,以便根据针对该控件的触控操作,对内容编辑区域中的光标进行控制,即实现对输入位置的控制;根据第二控制区域的滑动操作、按压操作等可以触发选择内容编辑区域中的内容。In some implementations, 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 content in the content editing area. In one possible way, the first control area and the second control area may be a touch area used to detect touch operations, for example, they may be blank areas, so that the first control area and the second control area can be detected according to the touch operation in the touch area. , to control the cursor in the content editing area, or to select content. In another possible way, 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 may include an area for controlling the cursor to move up, down, left, and A control that moves in the right four directions to control the cursor in the content editing area according to the touch operation of the control, that is, to control the input position; it can be triggered according to the sliding operation, pressing operation, etc. of the second control area Select content in the content editing area.
在一些实施方式中,电子设备显示光标控制区域时,可以控制光标控制区域覆盖于虚拟键盘;电子设备显示光标控制区域时,也可以控制虚拟键盘缩小显示宽度,并显示于虚拟键盘区域在行方向上的其中一侧,并且将光标控制区域显示于虚拟键盘区域在行方向上的另一侧。当然,光标控制区域的具体显示方式可以不做限定。In some embodiments, when the electronic device displays the cursor control area, it can control the cursor control area to cover the virtual keyboard; when the electronic device displays the cursor control area, it can also control the virtual keyboard to reduce the display width and display it in the virtual keyboard area in the row direction. one side of the cursor control area and display the cursor control area on the other side of the virtual keyboard area in the row direction. Of course, the specific display method of the cursor control area does not need to be limited.
在一些实施方式中,电子设备在检测到虚拟按键区域中的第一触控操作的情况下,还可以进行反馈提示,以提示用户将触发显示光标控制区域。例如,电子设备响应于第一触控操作时,可以进行振动提示。需要说明的是,该实施方式也可以应用于其他实施例中。In some embodiments, when the electronic device detects the first touch operation in the virtual key area, it may also provide a feedback prompt to prompt the user that the cursor control area will be triggered to display. For example, when the electronic device responds to the first touch operation, it may perform a vibration prompt. It should be noted that this implementation mode can also be applied to other embodiments.
需要说明的是,本申请实施例中,也可以保留通过虚拟键盘上的功能控件触发光标控制区域的方式,例如,若电子设备检测到针对虚拟键盘上的“工具箱”控件的触控操作,则可以于虚拟键盘区域显示键盘设置区域,键盘设置区域中包括光标编辑控件,在检测到针对该光标编辑控件的触控操作时,则响应于该触控操作,于虚拟键盘区域显示光标控制区域。It should be noted that in the embodiment of the present application, the method of triggering the cursor control area through the functional controls on the virtual keyboard can also be retained. For example, if the electronic device detects a touch operation for the "Toolbox" control on the virtual keyboard, Then the keyboard setting area can be displayed in the virtual keyboard area, and the keyboard setting area includes the cursor editing control. When a touch operation for the cursor editing control is detected, the cursor control area is displayed in the virtual keyboard area in response to the touch operation. .
步骤S130:若检测到所述第一控制区域中的第二触控操作,则控制所述内容编辑区域中的光标进行移动。Step S130: If the second touch operation in the first control area is detected, control the cursor in the content editing area to move.
在本申请实施例中,电子设备显示光标控制区域后,则可以检测内容编辑界面中的操作,并在检测到光标控制区域的第一控制区域中的第二触控操作时,响应于该第二触控操作,控制内容编辑区域中的光标进行移动,即控制内容编辑区域中显示的内容中光标所处的位置发生变化,使得内容编辑区域中的输入位置发生变化,由此,可以避免直接于内容编辑区域中显示的内容中进行光标移动操作而导致输入位置的控制效率低的问题。In the embodiment of the present application, after the electronic device displays the cursor control area, it can detect the operation in the content editing interface, and when detecting the second touch operation in the first control area of the cursor control area, respond to the second touch operation in the first control area of the cursor control area. The second touch operation controls the movement of the cursor in the content editing area, that is, the position of the cursor in the content displayed in the content editing area is controlled to change, causing the input position in the content editing area to change. Thus, it is possible to avoid directly The problem of inefficient control of the input position caused by cursor movement in the content displayed in the content editing area.
在一些实施方式中,第一控制区域为用于检测触控操作的触控区域的情况下,电子设备可以响应于第一控制区域中的滑动操作,而控制光标进行移动;第一控制区域为包括光标控制控件的区域的情况下,则可以响应于针对光标控制控件的触控操作,控制内容编辑区域中的光标进行移动。In some embodiments, when the first control area is a touch area used to detect a touch operation, the electronic device can control the cursor to move in response to a sliding operation in the first control area; the first control area is In the case of 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.
步骤S140:若检测到所述第二控制区域中的第三触控操作,则选取所述内容编辑区域中的内容作为待处理内容。Step S140: If 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.
在本申请实施例中,电子设备显示光标控制区域后,在检测到光标控制区域的第二控制区域中的第三触控操作时,响应于该第三触控操作,对内容编辑区域中的内容进行选取,并将选取的内容作为待处理内容,由此,可以避免选取内容时直接在内容编辑区域中进行光标移动等而导致内容选取效率低的问题。需要说明的是,内容编辑区域中的内容可以文字,也可以是图文内容,在此不做限定。In this embodiment of the present application, after the electronic device displays the cursor control area, when detecting the third touch operation in the second control area of the cursor control area, in response to the third touch operation, the content editing area is modified. Select the content and use the selected content as the content to be processed. This can avoid 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.
在一些实施方式中,第三触控操作可以是第二控制区域中的滑动操作,通过滑动操作控制内容编辑区域中的内容处于可选取状态,并根据滑动操作控制光标移动,根据光标的移动,从内容编辑区域中的内容中确定出选取的内容作为待处理内容;第三触控操作也可以是第二控制区域中的按压操作,此时,电子设备可以根据按压操作控制内容编辑区域中的内容处于可选取状态,并基于第一控制区域中的滑动操作控制光标移动,根据光标的移动,从内容编辑区域中的内容中确定出选取的内容作为待处理内容,也就是说,电子设备是同时根据第一控制区域以及第二控制区域中的操作,确定内容编辑区域中需要选取的内容。In some embodiments, the third touch operation may be a sliding operation in the second control area. The sliding operation controls the content in the content editing area to be in a selectable state, and controls the movement of the cursor according to the sliding operation. According to the movement of the cursor, The selected content is determined from the content in the content editing area as the content to be processed; the third touch operation can also be a pressing operation in the second control area. In this case, the electronic device can control the content in the content editing area according to the pressing operation. The content is in a selectable state, and the cursor movement is controlled based on the sliding operation in the first control area. According to the movement of the cursor, the selected content is determined as the content to be processed from the content in the content editing area. That is to say, the electronic device is At the same time, according to the operations in the first control area and the second control area, the content to be selected in the content editing area is determined.
在一些实施方式中,电子设备在显示光标控制区域后,可以进行计时,若指定时长内未检测 到针对光标控制区域的操作,则可以取消光标控制区域的显示,使虚拟键盘再次呈现于虚拟键盘区域,以供用户进行键盘输入;电子设备也可以响应于针对光标控制区域中显示的关闭控件的触发操作,取消光标控制区域的显示,使虚拟键盘再次呈现于虚拟键盘区域,以供用户进行键盘输入。In some embodiments, after the electronic device displays the cursor control area, it can time the display. 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 so that the virtual keyboard can be presented to the virtual keyboard again. area for the user to perform keyboard input; the electronic device can also respond to the triggering operation of the close control displayed in the cursor control area, cancel the display of the cursor control area, and make the virtual keyboard appear in the virtual keyboard area again for the user to perform keyboard input. enter.
本申请实施例提供的内容编辑的控制方法,可以快捷实现触发光标控制区域的显示,通过光标控制区域中不同区域的触控操作,可以实现控制内容编辑区域中的光标的移动以及内容的选取,能够避免在内容编辑区域控制输入位置以及选取内容时直接移动光标,手会遮挡部分内容而导致用户控制光标移动和选取内容时效率较低的问题,进而能够方便用户控制输入位置以及内容的选取,提升用户进行内容编辑的效率。The content editing control method provided by the embodiment of the present application can quickly trigger the display of the cursor control area. Through the touch operations of different areas in the cursor control area, the movement of the cursor and the selection of content in the content editing area can be controlled. It can avoid the problem of directly moving the cursor when controlling the input position and selecting content in the content editing area. The hand will block part of the content, resulting in low efficiency when the user controls the cursor movement and selects content. This in turn can facilitate the user to control the input position and content selection. Improve users’ efficiency in content editing.
请参阅图5,图5示出了本申请另一个实施例提供的内容编辑的控制方法的流程示意图。该内容编辑的控制方法应用于上述电子设备,下面将针对图5所示的流程进行详细的阐述,所述内容编辑的控制方法具体可以包括以下步骤:Please refer to FIG. 5 , which shows a schematic flowchart of a content editing control method provided by another embodiment of the present application. The content editing control method is applied to the above-mentioned electronic device. The process shown in Figure 5 will be described in detail below. The content editing control method may specifically include the following steps:
步骤S210:显示内容编辑界面,所述内容编辑界面包括内容编辑区域以及虚拟键盘区域。Step S210: Display a content editing interface, which includes a content editing area and a virtual keyboard area.
在本申请实施例中,步骤S210可以参阅前述实施例的内容,在此不再赘述。In this embodiment of the present application, reference may be made to the content of the foregoing embodiments for step S210, which will not be described again here.
步骤S220:响应于所述虚拟键盘区域中第一位置以及第二位置处同时进行的第一按压操作,于所述虚拟键盘区域显示光标控制区域,其中,所述第一位置以及第二位置分别靠近所述虚拟键盘区域在指定方向上的两侧边界,所述光标控制区域包括第一控制区域以及第二控制区域。Step S220: In response to the simultaneous first pressing operation at the first position and the second position in the virtual keyboard area, display a cursor control area in the virtual keyboard area, wherein the first position and the second position are respectively Close to both sides of the virtual keyboard area in a specified direction, the cursor control area includes a first control area and a second control area.
在本申请实施例中,用于触发显示光标控制区域的触控操作可以是同时进行的两个不同位置处的按压操作,即同时进行的第一位置处以及第二位置处的第一按压操作。另外,第一位置以及第二位置分别靠近虚拟键盘区域在指定方向上的两侧边界,该指定方向可以为虚拟键盘区域的按键所在行的行方向,也就是说,第一位置以及第二位置可以分别是虚拟键盘在行方向上的左右两侧的边缘区域。由此,用户在双手握持电子设备的情况下,通过双手分别在虚拟键盘区域行方向的两侧的边界区域同时进行按压操作,即可触发光标控制区域的显示,能够快捷方便地触发光标控制区域的显示;并且,在同时检测到第一位置以及第二位置处进行的按压操作,才触发光标控制区域的显示,能够避免误触发光标控制区域的显示。In the embodiment of the present application, the touch operation used to trigger the display of the cursor control area may be a pressing operation at two different positions at the same time, that is, a first pressing operation at the first position and a second position at the same time. . In addition, the first position and the second position are respectively close to both sides of the virtual keyboard area in a specified direction. The specified direction may be the row direction of the row of keys in the virtual keyboard area. That is to say, the first position and the second position are They may be respectively the left and right edge areas of the virtual keyboard in the row direction. Therefore, when the user holds the electronic device with both hands, he or she can trigger the display of the cursor control area by simultaneously pressing the boundary areas on both sides of the virtual keyboard area in the row direction with both hands, and can trigger the cursor control quickly and conveniently. and the display of the cursor control area is triggered only when the pressing operation at the first position and the second position is detected at the same time, which can avoid accidentally triggering the display of the cursor control area.
在一种可能的实施方式中,第一位置以及第二位置可以是在指定方向上靠近所述虚拟键盘区域的边界中非虚拟按键所在的位置,也就是说,第一位置以及第二位置不仅在指定方向上靠近虚拟键盘区域的边界,而且还位于虚拟按键所在位置以外的位置,以避免误触控虚拟键盘的按键而导致误输入的情况。In a possible implementation, the first position and the second position may be positions where non-virtual keys are located close to the boundary of the virtual keyboard area in a specified direction. That is to say, the first position and the second position are not only It is close to the boundary of the virtual keyboard area in the specified direction and is also located outside the location of the virtual keys to avoid accidentally touching the keys of the virtual keyboard and causing incorrect input.
在另一种可能的实施方式中,第一位置以及第二位置也可以是在指定方向上靠近虚拟键盘区域的边界中虚拟按键所在的所在位置,并且,在第一位置以及第二位置处的触控区域可以包括至少两个虚拟按键,也就是说,第一按压操作是第一位置以及第二位置处针对至少两个虚拟按键的按压操作。In another possible implementation, the first position and the second position may also be the position where the virtual key is located in the boundary of the virtual keyboard area in the specified direction, and, at the first position and the second position, The touch area may include at least two virtual keys, that is to say, the first pressing operation is a pressing operation for at least two virtual keys at the first position and the second position.
示例性地,请参阅图6,电子设备同时检测到针对虚拟键盘A4在行方向上的第一侧的按键区域中的多个虚拟按键的按压操作,以及针对虚拟键盘A4在行方向上的第二侧的按键区域中的多个虚拟按键的按压操作,则可以触发在虚拟键盘区域A3中显示光标控制区域。Exemplarily, referring to FIG. 6 , the electronic device simultaneously detects a pressing operation of multiple virtual keys in the key area of the first side of the virtual keyboard A4 in the row direction, and detects a pressing operation of multiple virtual keys in the key area of the virtual keyboard A4 on the second side of the row direction. The pressing operation of multiple virtual keys in the key area can trigger the cursor control area to be displayed in the virtual keyboard area A3.
在一些实施方式中,第一按压操作可以是满足预设按压条件的按压操作,也就是说,电子设备可以响应于虚拟键盘区域中第一位置处以及第二位置处的第一按压操作,将第一按压操作与预设按压条件进行匹配。若第一按压操作满足预设按压条件,则于虚拟键盘区域显示光标控制区域。可以理解地,用户双手握持电子设备进行内容编辑时,在利用双手在第一位置以及第二位置进行的第一按压操作满足预设按压条件的情况下,才触发光标控制区域的显示,可以避免误触发光标控制区域的显示。In some embodiments, the first pressing operation may be a pressing operation that satisfies the preset pressing condition. That is to say, the electronic device may respond to the first pressing operation at the first position and the second position in the virtual keyboard area. The first pressing operation matches the preset pressing conditions. 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 for content editing, the display of the cursor control area is triggered only when the first pressing operation performed by both hands at the first position and the second position satisfies the preset pressing conditions. Avoid accidentally triggering the display of the cursor control area.
在一种可能的实施方式中,预设按压条件可以包括:按压时长大于预设时长、按压面积大于预设面积、以及按压力度大于预设力度中的至少一个。可以理解地,预设按压条件可以是第一按压操作的按压时长均大于预设时长;也可以是第一按压操作的按压面积均大于预设面积;还可以是第一按压操作的按压力度均大于预设力度;还可以是第一按压操作同时满足上述条件中的多个条件,例如,需第一按压操作的按压时长大于预设时长,且按压力度大于预设力度。In a possible implementation, the preset pressing condition may include at least one of: pressing duration is greater than the preset duration, pressing area is greater than the preset area, and pressing intensity is greater than the preset intensity. It can be understood that the preset pressing condition can be that the pressing duration of the first pressing operation is greater than the preset duration; it can also be that the pressing area of the first pressing operation is greater than the preset area; it can also be that the pressing force intensity of the first pressing operation is even. Greater than the preset strength; the first pressing operation may also satisfy multiple of the above conditions at the same time. For example, the pressing duration of the first pressing operation needs to be greater than the preset duration, and the pressing strength must be greater than the preset strength.
在一种可能的实施方式中,电子设备在检测到同时于虚拟键盘区域的两个不同位置处进行按压操作的情况下,还可以进行反馈提示,以提示用户将触发显示光标控制区域。例如,电子设备响应于同时进行的第一位置以及第二位置处的第一按压操作时,可以进行振动提示。In a possible implementation, when the electronic device detects simultaneous pressing operations at two different locations in the virtual keyboard area, it can also provide feedback prompts to prompt the user to trigger the display of the cursor control area. For example, the electronic device may perform a vibration prompt in response to simultaneous first pressing operations at the first position and the second position.
在一些实施方式中,电子设备响应于虚拟键盘区域中的第一触控操作,于虚拟键盘区域中显示光标控制区域时,可以将光标控制区域覆盖显示于虚拟键盘区域的部分区域或全部区域,即光 标控制区域完全覆盖于虚拟键盘区域,也可以是光标控制区域仅覆盖部分虚拟键盘区域。其中,电子设备可以控制光标控制区域以不同的图层显示于虚拟键盘区域的上一层,由此实现光标控制区域覆盖于虚拟键盘区域的部分区域或全部区域。示例性地,请参阅图7,电子设备显示光标控制区域A5时,光标控制区域A5可以覆盖于虚拟键盘区域A3中虚拟键盘,并保留其他内容的显示。需要说明的是,该实施方式也可以应用于其他的实施例中。In some embodiments, in response to the first touch operation in the virtual keyboard area, when the electronic device displays the cursor control area in the virtual keyboard area, the cursor control area can be displayed covering part or all of 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 can control the cursor control area to be displayed on a layer above the virtual keyboard area in different layers, thereby realizing that the cursor control area covers part or all of the virtual keyboard area. For example, please refer to FIG. 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 retain the display of other content. It should be noted that this implementation mode can also be applied to other embodiments.
步骤S230:若检测到所述第一控制区域中的第二触控操作,则控制所述内容编辑区域中的光标进行移动。Step S230: If the second touch operation in the first control area is detected, control the cursor in the content editing area to move.
步骤S240:若检测到所述第二控制区域中的第三触控操作,则选取所述内容编辑区域中的内容作为待处理内容。Step S240: If 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.
在本申请实施例中,步骤S230以及步骤S240可以参阅其他实施例的内容,在此不再赘述。In the embodiment of the present application, the contents of steps S230 and S240 may be referred to other embodiments, and will not be described again here.
本申请实施例提供的内容编辑的控制方法,通过同时于分别靠近虚拟键盘区域在指定方向上的两侧边界的两个位置处进行按压操作,即可触发光标控制区域的显示,使用户握持电子设备并通过虚拟键盘进行内容编辑时,可以快速触发光标控制区域的显示,以便用户通过光标控制区域对内容编辑区域中的光标位置进行控制以及对内容进行选取,提升内容编辑效率,并且可以避免误触发光标控制区域的显示。The content editing control method provided by the embodiment of the present application can trigger the display of the cursor control area by simultaneously performing pressing operations at two positions respectively close to the two sides of the virtual keyboard area in the specified direction, allowing the user to hold When editing content on an electronic device through a 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 content editing efficiency and avoiding The display of the cursor control area is accidentally triggered.
请参阅图8,图8示出了本申请又一个实施例提供的内容编辑的控制方法的流程示意图。该内容编辑的控制方法应用于上述电子设备,下面将针对图8所示的流程进行详细的阐述,所述内容编辑的控制方法具体可以包括以下步骤:Please refer to FIG. 8 , which shows a schematic flowchart of a content editing control method provided by yet another embodiment of the present application. The content editing control method is applied to the above-mentioned electronic device. The process shown in Figure 8 will be described in detail below. The content editing control method may specifically include the following steps:
步骤S310:显示内容编辑界面,所述内容编辑界面包括内容编辑区域以及虚拟键盘区域。Step S310: Display a content editing interface, which includes a content editing area and a virtual keyboard area.
在本申请实施例中,步骤S310可以参阅其他实施例的内容,在此不再赘述。In the embodiment of this application, the contents of step S310 may be referred to other embodiments, and will not be described again here.
步骤S320:响应于所述虚拟键盘区域中第三位置以及第四位置处的第一滑动操作,于所述虚拟键盘区域显示光标控制区域,其中,所述第三位置以及第四位置分别靠近所述虚拟键盘区域在指定方向上的两侧边界,所述第一滑动操作以及所述第二滑动操作的起始位置处的触控区域均包括至少两个虚拟按键,所述光标控制区域包括第一控制区域以及第二控制区域。Step S320: In response to the first sliding operation at the third position and the fourth position in the virtual keyboard area, display a cursor control area in the virtual keyboard area, wherein the third position and the fourth position are respectively close to the cursor control area. The two sides of the virtual keyboard area in the designated direction are bounded, 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 third a control area and a second control area.
在本申请实施例中,用于触发光标控制区域的触控操作可以是两个不同位置处的滑动操作,即第三位置处以及第四位置处的第一滑动操作,另外,第三位置以及第四位置分别靠近虚拟键盘区域在指定方向上的两侧边界,该指定方向可以为虚拟键盘区域的按键所在行的行方向,也就是说,第三位置以及第四位置可以分别是虚拟键盘在行方向上的左右两侧的边缘区域。由此,用户在双手握持电子设备的情况下,通过双手分别在虚拟键盘区域行方向的两侧的边界区域进行滑动操作,即可触发光标控制区域的显示,能够快捷方便地触发光标控制区域的显示;并且,在检测到第三位置以及第四位置处进行的滑动操作,才触发光标控制区域的显示,能够避免误触发光标控制区域的显示。其中,由于滑动操作涉及的触控区域相对按压操作较大,因此,第一滑动操作为虚拟键盘中的虚拟按键所在区域的滑动操作,并且第一滑动操作的起始位置处的触控区域均包括至少两个虚拟按键,即用户开始在上述第三位置以及第四位置进行第一滑动操作时,同时触控至少两个虚拟按键,由此避免误触发对虚拟按键的操作,从而避免误触发键盘输入。In this embodiment of the present application, the touch operation used to trigger the cursor control area may be a sliding operation at two different positions, that is, the first sliding operation at the third position and the fourth position. In addition, the third position and The fourth position is respectively close to both sides of the virtual keyboard area in a specified direction. The specified direction may be the row direction of the row of keys in the virtual keyboard area. That is to say, the third position and the fourth position may be respectively the virtual keyboard area in the row direction. The left and right edge areas in the row direction. Thus, while holding the electronic device with both hands, the user can trigger the display of the cursor control area by sliding his hands on the boundary areas on both sides of the virtual keyboard area in the row direction, and can trigger the cursor control area quickly and conveniently. display; and, the display of the cursor control area is triggered only after the sliding operation at the third position and the fourth position is detected, which can avoid accidentally triggering the display of the cursor control area. 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 in 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 is Including at least two virtual buttons, that is, when the user starts to perform the first sliding operation at the above-mentioned third position and the fourth position, he touches at least two virtual buttons at the same time, thereby avoiding false triggering of the operation of the virtual buttons, thereby avoiding false triggering keyboard input.
在一些实施方式中,若电子设备检测到针对至少两个虚拟按键进行触控,则可以忽略由触控位置处开始滑动的过程中对虚拟按键的触控操作,由此,可以避免滑动过程中误触发键盘输入。In some embodiments, if the electronic device detects a touch on at least two virtual keys, the touch operation on the virtual keys during the sliding process starting from the touch position can be ignored. Therefore, the touch operation on the virtual keys during the sliding process can be avoided. Keyboard input is accidentally triggered.
在一种可能的实施方式中,第一滑动操作以可以是同时检测到的滑动操作操作,也就是说,在同时检测到上述第三位置以及第四位置处的第一滑动操作的情况下,则响应该第一滑动操作,于虚拟键盘区域显示光标控制区域。其中,第三位置以及第四位置处的滑动操作起始时刻可以不同,仅需要同时检测到第三位置以及第四位置处的动操作即可,例如,第三位置处的滑动操作可以先于第四位置处的滑动操作进行,也可以是第四位置处的滑动操作先于第三位置处的滑动操作进行。In a possible implementation, the first sliding operation may be a sliding operation detected at the same time, that is, in the case where the first sliding operation at the third position and the fourth position are detected at the same time, In response to the first sliding operation, the cursor control area is displayed in the virtual keyboard area. Wherein, the starting time of the sliding operation at the third position and the fourth position may be different, and it only needs 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 may be preceded by The sliding operation at the fourth position may be performed, or the sliding operation at the fourth position may be performed before the sliding operation at the third position.
可选地,第三位置可以是虚拟键盘中在行方向上的第一侧边界的按键区域中虚拟按键所在位置,第四位置可以是虚拟键盘中在行方向上的第二侧边界的按键区域中虚拟按键所在位置,由此,用户双手握持电子设备时,可以通过双手同时分别于虚拟键盘区域行方向的两侧的边界区域进行滑动操作,触发光标控制区域的显示。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 of the virtual keyboard in the row direction. Therefore, when the user holds the electronic device with both hands, he or she can simultaneously perform sliding operations on the boundary areas on both sides of the virtual keyboard area in the row direction to trigger the display of the cursor control area.
在另一种可能的实施方式中,上述第三位置以及第四位置处的滑动操作也可以是不同时刻检测到的滑动操作,即非同时进行的滑动操作。该方式中,检测到第三位置处的滑动操作的时刻与检测到第四位置处的滑动操作的时刻之间的时间差可以小于预设时长间隔,也就是说,在预设时长间隔内,检测到不同时刻进行的第三位置处的滑动操作以及第四位置处的滑动操作,则可以于虚拟键盘区域显示光标控制区域。同样地,第三位置处的滑动操作可以先于第四位置处的滑动操 作进行,也可以是第四位置处的滑动操作先于第三位置处的滑动操作进行,仅需要保证检测到第三位置以及第四位置处的滑动操作之间的时长间隔小于预设时长间隔即可。In another possible implementation, the sliding operations at the third position and the fourth position may also be sliding operations detected at different times, that is, sliding operations that are not performed at the same time. In this method, the time difference between the moment when the sliding operation is detected at the third position and the moment when the sliding operation is detected at the fourth position may be less than the preset time interval. That is to say, within the preset time interval, the time difference between When the sliding operation at the third position and the sliding operation at the fourth position are performed at different times, the cursor control area can be displayed in the virtual keyboard area. Similarly, 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. It only needs to ensure that the third position is detected. The time interval between the sliding operation at the position and the fourth position only needs to be less than the preset time interval.
在一些实施方式中,第一滑动操作可以是满足预设滑动条件的滑动操作,也就是说,电子设备可以响应于虚拟键盘区域中第三位置以及第四位置处的第一滑动操作,可以将第一滑动操作与预设滑动条件进行匹配,判断第一滑动操作是否满足预设滑动条件,若第一滑动操作满足预设滑动条件,则于虚拟键盘区域显示光标控制区域。可以理解地,用户握持电子设备进行内容编辑时,在利用双手在第三位置以及第四位置处进行的第一滑动操作均满足预设滑动条件的情况下,才触发光标控制区域的显示,可以避免误触发光标控制区域的显示。In some embodiments, the first sliding operation may be a sliding operation that satisfies the preset sliding condition. That is to say, the electronic device may respond to the first sliding operation at the third position and the fourth position in the virtual keyboard area. The first sliding operation is matched with the preset sliding condition to 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 operation performed by both hands at the third position and the fourth position satisfies the preset sliding conditions. This can avoid accidentally triggering the display of the cursor control area.
在一种可能的实施方式中,预设滑动条件可以包括:滑动长度大于预设长度、滑动方向为预设滑动方向、以及滑动轨迹满足预设滑动轨迹中的至少一个。可以理解地,预设滑动条件可以是第一滑动操作的滑动长度大于预设长度;也可以是第一滑动操作的滑动方向为预设滑动方向;还可以是第一滑动操作的滑动轨迹满足预设滑动轨迹;还可以是第一滑动操作同时满足上述滑动条件中的多个条件,例如,需第一滑动操作的滑动长度大于预设长度,且滑动方向为预设滑动方向。In a possible implementation, the preset sliding condition may include at least one of: the sliding length is greater than the preset length, the sliding direction is the preset sliding direction, and the sliding trajectory satisfies the preset sliding trajectory. 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; it may also be that the sliding direction of the first sliding operation is the preset sliding direction; or it may be that the sliding trajectory of the first sliding operation satisfies the preset length. Assume a sliding track; the first sliding operation can also satisfy multiple conditions among the above sliding conditions at the same time. For example, the sliding length of the first sliding operation needs to be greater than the preset length, and the sliding direction is the preset sliding direction.
步骤S330:若检测到所述第一控制区域中的第二触控操作,则控制所述内容编辑区域中的光标进行移动。Step S330: If the second touch operation in the first control area is detected, control the cursor in the content editing area to move.
步骤S340:若检测到所述第二控制区域中的第三触控操作,则选取所述内容编辑区域中的内容作为待处理内容。Step S340: If 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.
在本申请实施例中,步骤S330以及步骤S340可以参阅其他实施例的内容,在此不再赘述。In the embodiment of this application, the contents of steps S330 and S340 may be referred to other embodiments, and will not be described again here.
本申请实施例提供的内容编辑的控制方法,通过于分别靠近虚拟键盘区域在指定方向上的两侧边界的按键区域中进行滑动操作,即可触发光标控制区域的显示,使用户握持电子设备并通过虚拟键盘进行内容编辑时,可以快速触发光标控制区域的显示,以便用户通过光标控制区域对内容编辑区域中的光标位置进行控制以及进行内容的选取,提升内容编辑效率,并且可以避免误触发光标控制区域的显示。The content editing control method provided by the embodiment of the present application can trigger the display of the cursor control area by performing a sliding operation on the key areas respectively close to the two sides of the virtual keyboard area in the specified direction, allowing the user to hold the electronic device When editing content through the virtual keyboard, the display of the cursor control area can be quickly triggered, so that users can control the cursor position in the content editing area and select content through the cursor control area, improving content editing efficiency and avoiding false triggers. The cursor controls the display of the area.
请参阅图9,图9示出了本申请再一个实施例提供的内容编辑的控制方法的流程示意图。该内容编辑的控制方法应用于上述电子设备,下面将针对图9所示的流程进行详细的阐述,所述内容编辑的控制方法具体可以包括以下步骤:Please refer to FIG. 9 , which is a schematic flowchart of a content editing control method provided by yet another embodiment of the present application. The content editing control method is applied to the above-mentioned electronic device. The process shown in Figure 9 will be described in detail below. The content editing control method may specifically include the following steps:
步骤S410:显示内容编辑界面,所述内容编辑界面包括内容编辑区域以及虚拟键盘区域。Step S410: Display a content editing interface, which includes a content editing area and a virtual keyboard area.
在本申请实施例中,步骤S410可以参阅前述实施例的内容,在此不再赘述。In the embodiment of the present application, reference may be made to the content of the previous embodiment for step S410, which will not be described again here.
步骤S420:响应于所述虚拟键盘区域中的第一触控操作,于所述虚拟键盘区域显示光标控制区域,所述光标控制区域包括第一控制区域以及第二控制区域。Step S420: In response to the first touch operation in the virtual keyboard area, display a cursor control area in the virtual keyboard area, where the cursor control area includes a first control area and a second control area.
在一些实施方式中,电子设备显示光标控制区域时,可以控制光标控制区域覆盖于虚拟键盘区域中的虚拟键盘,并且可以将第一控制区域显示于虚拟键盘所在区域的一侧,第二控制区域可以显示于虚拟键盘所在区域的另一侧。第一控制区域与第二控制区域所构成的光标控制区域可以完全覆盖虚拟键盘区域中的虚拟键盘,也可以部分覆盖虚拟键盘,在此不做限定。In some embodiments, when the electronic device displays the cursor control area, it can control the cursor control area to cover the virtual keyboard in the virtual keyboard area, and can display the first control area 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 composed of the first control area and the second control area may completely cover the virtual keyboard in the virtual keyboard area, or may partially cover the virtual keyboard, which is not limited here.
可选地,第一控制区域中可以显示第一提示信息,第二控制区域中可以显示第二提示信息,第一提示信息用于提示第一控制区域可控制光标的移动,第二提示信息用于提示第二控制区域可以选择内容。Optionally, the first prompt information can be displayed in the first control area, and the second prompt information can be displayed in the second control area. The first prompt information is used to prompt that the first control area can control the movement of the cursor, and the second prompt information is used. It prompts that content can be selected in the second control area.
示例性地,请参阅图10,电子设备显示光标控制区域A5时,光标控制区域A5可以覆盖于虚拟键盘区域A3中虚拟键盘,并保留其他内容的显示,光标控制区域A5可以包括第一控制区域A6以及第二控制区域A7,第一控制区域A6中显示有第一提示信息“移动光标”,第二控制区域A7中显示有第二提示信息“选择内容”,并且第一控制区域A6可以位于原虚拟键盘所在区域的左侧,第二控制区域A7可以位于原虚拟键盘所在区域的右侧;又例如,请参阅图11,第一控制区域A6也可以位于原虚拟键盘所在区域的右侧,第二控制区域A7可以位于原虚拟键盘所在区域的左侧。For example, please refer to Figure 10. 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 retain the display of other content. The cursor control area A5 can include the first control area. A6 and the second control area A7, the first prompt information "move cursor" is displayed in the first control area A6, and the second prompt information "select content" is displayed in the second control area A7, and the first control area A6 can be located On the left side of the area where the original virtual keyboard is located, the second control area A7 can be located on the right side of the area where the original virtual keyboard is located; for another example, please refer to Figure 11, the first control area A6 can also be located on the right side of the area where the original virtual keyboard is located. The second control area A7 may be located on the left side of the area where the original virtual keyboard is located.
在一些实施方式中,第一控制区域以及第二控制区域的显示宽度可以被调整。电子设备可以响应于针对光标控制区域的尺寸调整操作,对第一控制区域和/或第二控制区域的显示宽度进行调整,以便满足用户的需求。可选地,电子设备可以响应于针对光标控制区域的编辑操作,控制光标控制区域进入可编辑状态,以供用户针对光标控制区域的显示宽度进行调整。In some implementations, the display widths of the first control area and the second control area may be adjusted. The electronic device may adjust the display width of the first control area and/or the second control area in response to the size adjustment operation for the cursor control area, so as to meet the user's needs. Optionally, the electronic device may control the cursor control area to enter an editable state in response to an editing operation on the cursor control area, so that the user can adjust the display width of the cursor control area.
在一种可能的实施方式中,若第一控制区域显示于虚拟键盘所在区域在行方向上的一侧,第二控制区域可以显示于虚拟键盘所在区域在行方向上的另一侧,即第一控制区域以及第二控制区域中其中一个控制区域显示于虚拟键盘所在区域的左侧,另一个控制区显示于虚拟键盘所在区域的右侧。该情况下,考虑到用户双手握持电子设备时的操作便利性,可以控制第一控制区域以及第二控制区域的行方向上远离屏幕边缘的一侧进行拉伸,以改变第一控制区域以及第二控制区域 的显示宽度。也就是说,可以响应于针对第一控制区域的尺寸调整操作,控制第一控制区域的显示宽度进行改变,并保持第一控制区域显示于虚拟键盘所在区域在行方向上的其中一侧;第二控制区域的显示宽度的调整也可以如此。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, the first control area One of the control areas 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 operational convenience when the user holds the electronic device with both hands, the side of the first control area and the second control area away from the edge of the screen in the row direction can be controlled to be stretched to change the first control area and the second control area. 2. Control the display width of the area. That is to say, in response to the size adjustment operation for 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; second The display width of the control area can also be adjusted in the same way.
示例性地,请参阅图12,第一控制区域A6处于光标控制区域A5的左侧,第二控制区域A7处于光标控制区域A5的右侧的情况下,在控制光标控制区域A5进行可编辑状态后,可以于第一控制区域A6的处于中间区域的边缘位置显示第一调整控件A8,同样地,可以于第二控制区域A7的处于中间区域的边缘位置显示第二调整控件A9;请参阅图13,在检测到针对第一调整控件A8的向左的滑动操作后,则可以控制第一控制区域A6的处于中间区域的边缘往左移动,同样地,在检测到针对第二调整控件A9的向右的滑动操作后,则可以控制第二控制区域A7的处于中间区域的边缘往右移动,由此,可以使第一控制区域A6以及第二控制区域A7的显示宽度缩小,并且使得第一控制区域A6以及第二控制区域A7保持显示于虚拟按键区域中的其中一侧,使用户更容易在第一控制区域A6以及第二控制区域A7中做出触控操作。For example, please refer to Figure 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, the cursor control area A5 is controlled to be in an editable state. Finally, the first adjustment control A8 can be displayed at the edge of the middle area of the first control area A6. Similarly, the second adjustment control A9 can be displayed at the edge of the middle area of the second control area A7; please refer to the figure. 13. After detecting the sliding operation to the left for 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 the sliding operation for the second adjustment control A9, After the sliding operation to the right, the edge of the middle area of the second control area A7 can be controlled to move to the right, thereby reducing the display width of the first control area A6 and the second control area A7, and making the first control area A7 smaller. The control area A6 and the second control area A7 remain displayed on one side of the virtual key area, making it easier for the user to perform touch operations in the first control area A6 and the second control area A7.
步骤S430:若检测到所述第一控制区域中的第二滑动操作,控制所述内容编辑区域中的光标随所述第二滑动操作进行移动。Step S430: If the 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.
在本申请实施例中,电子设备在响应于光标控制区域中的触控操作,控制内容编辑区域中的光标进行移动时,由于第一控制区域用于控制光标的移动,因此在检测到第一控制区域中的滑动操作时,可以响应于第一控制区域中的滑动操作,控制内容编辑区域中的光标随该滑动操作进行滑动。In this embodiment of the present application, when the electronic device controls the cursor in the content editing area to move 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 the first control area is detected, When a sliding operation is performed in the control area, the cursor in the content editing area may be controlled to slide along with the sliding operation in response to the sliding operation in the first control area.
在一些实施方式中,电子设备响应于第一控制区域中的第二滑动操作,根据第三滑动操作的滑动方向以及滑动距离,控制内容编辑区域中的光标进行移动。其中,光标的移动方向可以与滑动方向一致,例如,滑动方向水平向右,则控制光标向右滑动,滑动方向竖直向下,则控制光标向下移动;光标移动的字符数可以与滑动距离呈正相关,即滑动距离越大,则光标移动的字符数越多。由此,可以使用户感受到在内容编辑区域的内容中移动光标同样的效果,提升用户的使用体验。In some embodiments, the electronic device responds to the second sliding operation in the first control area and controls the cursor in the content editing area to move according to the sliding direction and sliding distance of the third sliding operation. Among them, the moving direction of the cursor can 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; if the sliding direction is vertically downward, the cursor is controlled to move downward; the number of characters moved by the cursor can be the same as the sliding distance. There is a positive correlation, that is, the greater the sliding distance, the more characters the cursor moves. As a result, the user can feel the same effect of moving the cursor in the content in the content editing area, thereby improving the user experience.
在一种可能的实施方式中,第二滑动操作的滑动距离可以大于内容编辑区域中光标移动的字符数所对应的距离,由此,可以不必如直接于内容编辑区域的内容中移动光标时,对光标的滑动距离需要与字符之间的距离一致才能控制光标移动至所需的位置,使用户可以更好地控制光标的移动。该实施方式中,由于第一控制区域中实际的滑动距离并不等同于内容编辑区域中光标移动的距离,因此会出现滑动操作滑动至第一控制区域的边缘位置后,光标还未移动至用户所需的位置的情况,该情况下,可以根据重新检测到的滑动操作,继续控制光标进行移动,直至光标移动至用户所需的位置。也就是说,滑动操作滑动至第一控制区域的边缘位置后,用户可以结束该滑动操作,并重新于第一控制区域进行相同的滑动操作,直至光标移动至用户所需的位置。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. Therefore, it is not necessary to directly move the cursor in the content of the content editing area. The sliding distance of the cursor needs to be consistent with the distance between characters to control the cursor to move to the desired position, allowing the user to better control the movement of the cursor. In this embodiment, 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, it may happen that after the sliding operation reaches the edge of the first control area, the cursor has not moved to the user 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 position required by the user. That is to say, 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 on the first control area again until the cursor moves to the position required by the user.
在另一些实施方式中,电子设备响应于第一控制区域中的第二滑动操作,根据第二滑动操作的滑动方向以及滑动速度,控制内容编辑区域中的光标进行移动。其中,光标的移动方向可以与滑动方向一致;光标移动的字符数可以与滑动速度呈正相关,即滑动速度越大,则光标移动的字符数越多。由此,可以使用户感受到在内容编辑区域的内容中移动光标同样的效果,提升用户的使用体验。In other embodiments, the electronic device responds to the second sliding operation in the first control area and controls the cursor in the content editing area to move according to the sliding direction and sliding speed of the second sliding operation. The moving direction of the cursor can be consistent with the sliding direction; the number of characters moved by the cursor can be positively correlated with the sliding speed, that is, the greater the sliding speed, the more characters the cursor moves. As a result, the user can feel the same effect of moving the cursor in the content in the content editing area, thereby improving the user experience.
步骤S440:若检测到所述第二控制区域中的第三触控操作,则选取所述内容编辑区域中的内容作为待处理内容。Step S440: If 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.
在一些实施方式中,电子设备可以单独响应于第二控制区域中的滑动操作,选取内容编辑区域的内容作为待处理内容。其中,电子设备可以响应于第二控制区域中的第三滑动操作,控制内容编辑区域中的光标随第三滑动操作进行移动;获取光标随第三滑动操作移动之前的光标位置作为第一光标位置,以及光标随所述第三滑动操作移动之后的光标位置作为第二光标位置;从内容编辑区域中,获取第一光标位置与第二光标位置之间的内容,作为待处理内容。也就是说,在检测到第三滑动操作之前的光标位置,作为待选取内容的起点,并且根据第三滑动操作结束时光标移动至的位置,作为待选取内容的终点,由此该起点和终点可以构成待选取的内容范围,进而根据该内容范围可以确定出待处理内容。In some implementations, the electronic device can independently respond to the sliding operation in the second control area and select the content in the content editing area as the content to be processed. Wherein, in response to the third sliding operation in the second control area, the electronic device can control the cursor in the content editing area to move with the third sliding operation; and 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 is used as the second cursor position; from the content editing area, the content between the first cursor position and the second cursor position is obtained 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. Therefore, the starting point and the end point are A content range to be selected can be formed, and then the content to be processed can be determined based on the content range.
在该实施方式中,可以于第一控制区域以及第二控制区域显示提示信息,以提示用户第一控制区域以及第二控制区域的功能,以及实现相应功能的操作方式。例如,请参阅图14,第一控制区域A6显示于光标控制区域A5的左侧,第二控制区域A7显示于光标控制区域A5的右侧的情况下,第一控制区域A6中可以显示“手指滑动,选取光标”的提示信息,第二控制区域A7中可以显示“手指滑动,选择内容”。In this embodiment, prompt information may be displayed in the first control area and the second control area to remind the user of the functions of the first control area and the second control area, as well as the operation methods to implement the corresponding functions. For example, please refer to Figure 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 first control area A6 may display "finger". The prompt message "Slide to select the cursor", and the second control area A7 may display "Finger slide to select content".
在另一些实施方式中,电子设备单独响应于第二控制区域中的滑动操作,选取内容编辑区域的内容作为待处理内容,也可以是,若检测到第二控制区域中的第四滑动操作,控制内容编辑区域中的光标随第四滑动操作进行移动;从内容编辑区域中,获取与光标的移动轨迹匹配的内容,作为待处理内容。其中,与上述实施方式不同的是,可以根据光标移动的轨迹,可以确定光标移动过程所经过的内容,并将此作为待处理内容。In other embodiments, the electronic device independently responds to the sliding operation in the second control area 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, Control the cursor in the content editing area to move with the fourth sliding operation; obtain content matching the movement trajectory of the cursor from the content editing area as content to be processed. What is different from the above embodiment is that the content that the cursor moves through can be determined based on the trajectory of the cursor movement, and this can be used as the content to be processed.
在另一些实施方式中,电子设备也可以根据第一控制区域以及第二控制区域中的组合触控操作,选取内容编辑区域的内容作为待处理内容。其中,电子设备可以响应于第一控制区域中的第五滑动操作,以及第二控制区域中的第二按压操作,选取内容编辑区域中的内容作为待处理内容。In other embodiments, the electronic device may also select the content in the content editing area as the content to be processed based on the combined touch operation in the first control area and the second control area. Wherein, 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.
在一种可能的实施方式中,第五滑动操作以及第二按压操作可以是同时进行的操作。也就是说,电子设备检测到第二控制区域中的第二按压操作的情况下,并检测到第一控制区域中的滑动操作,则可以对内容编辑区域中的内容进行选取。In a possible implementation, the fifth sliding operation and the second pressing operation may be simultaneous operations. That is to say, when the electronic device detects the second pressing operation in the second control area and detects the sliding operation in the first control area, the content in the content editing area can be selected.
在一种可能的实施方式中,第二按压操作可以是满足相应按压条件的按压操作。例如,第二按压操作的按压时长可以大于目标时长,由此,在用户长按第二控制区域,并且于第一控制区域中进行滑动的情况下,则可以实现对内容编辑区域的内容的选取。In a possible implementation, the second pressing operation may be a pressing operation that satisfies the corresponding pressing condition. For example, the pressing duration of the second pressing operation can be greater than the target duration. Therefore, when the user long presses the second control area and slides in the first control area, the selection of content in the content editing area can be achieved. .
在一种可能的实施方式中,电子设备可以响应于第一控制区域中的第五滑动操作,以及第二控制区域中的第二按压操作,控制内容编辑区域中的光标随所述第五滑动操作进行移动;获取光标随第五滑动操作移动之前的光标位置作为第三光标位置,以及光标随所述第五滑动操作移动之后的光标位置作为第四光标位置;从内容编辑区域中,获取第一光标位置与第二光标位置之间的内容,作为待处理内容。也就是说,在检测到第二按压操作以及第五滑动操作之前的光标位置,作为待选取内容的起点,并且根据第五滑动操作结束时光标移动至的位置,作为待选取内容的终点,由此该起点和终点可以构成待选取的内容范围,进而根据该内容范围可以确定出待处理内容。当然,在该方式中,也可以如上述实施方式,根据光标的移动轨迹确定待处理内容。In a possible implementation, the electronic device may respond to a fifth sliding operation in the first control area and a second pressing operation in the second control area, and control the cursor in the content editing area to follow the fifth sliding operation. operation to move; 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; from the content editing area, obtain the third cursor position. The content between the first cursor position and the second cursor position is used 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 when the fifth sliding operation ends is used as the end point of the content to be selected, by The starting point and the end point may constitute a content range to be selected, and then the content to be processed may be determined based on the content range. Of course, in this method, the content to be processed may also be determined based on the movement trajectory of the cursor as in the above embodiment.
在一种可能的实施方式中,电子设备可以于第一控制区域中显示第一提示信息,该第一提示信息用于提示第一控制区域用于光标移动,以及光标移动的操作方式;并且,可以于第二控制区域中显示第二提示信息,该第二提示信息用于提示第二控制区域用于选择内容,以及选择内容的操作方式。例如,请参阅图15,第一控制区域A6显示于光标控制区域A5的右侧,第二控制区域A7显示于光标控制区域A5的左侧的情况下,第一控制区域A6中可以显示“手指滑动,选取光标”的提示信息,第二控制区域A7中可以显示“手指长按,选择内容”。In a possible implementation, the electronic device can display first prompt information in the first control area, and the first prompt information is used to prompt the first control area for cursor movement and the operation mode of cursor movement; and, Second prompt information may be displayed in the second control area, and the second prompt information is used to prompt the second control area for selecting content and the operation method for selecting content. For example, please refer to Figure 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 first control area A6 may display "finger". The prompt message "Slide to select the cursor", and the second control area A7 can display "Long press with your finger to select content".
在又一些实施方式中,在结合第一控制区域以及第二控制区域中的操作实现内容选取时,电子设备也可以响应于第一控制区域中的第三按压操作,以及第二控制区域中的第六滑动操作,选取内容编辑区域中的内容作为待处理内容。由此,用户可以通过于第一控制区域内容的按压操作,配合第二控制区域中的滑动操作,实现内容编辑区域中的内容的选取。其中,同前述实施方式,电子设备也可以基于第六滑动操作控制光标进行移动,并根据光标移动前所在位置以及移动后所在的位置确定待处理内容,也可以根据光标的移动轨迹确定待处理内容。In some embodiments, when content selection is implemented in combination with 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 third press operation in the second control area. The sixth sliding operation selects the content in the content editing area as the content to be processed. Therefore, the user can select the content in the content editing area by pressing the content in the first control area in conjunction with the sliding operation in the second control area. Wherein, like the aforementioned embodiments, the electronic device can also control the cursor to move based on the sixth sliding operation, and determine the content to be processed based on the position of the cursor before and after the movement, or can also determine the content to be processed based on the movement trajectory of the cursor. .
在又一些实施方式中,若电子设备响应于虚拟键盘区域中第一位置以及第二位置处同时进行的第一按压操作,对光标控制区域进行显示,则可以在第一位置显示第一控制区域,在第二位置显示第二控制区域;并且,可以在检测到第二位置处的按压操作保持的情况下,根据第一控制区域中的滑动操作,控制光标的移动;另外,以在检测到第一位置处的按压操作保持的情况下,根据第二控制区域中的滑动操作,进行内容的选取。由此,可以方便用户双手握持电子设备时触发光标控制区域的显示,并且基于光标控制区域控制光标的移动以及内容的选取。其中,电子设备响应于所述虚拟键盘区域中第一位置以及第二位置处同时进行的第一按压操作,于所述虚拟键盘区域显示光标控制区域的方式可以参阅前述实施例的内容,在此不再赘述。In some embodiments, if the electronic device displays the cursor control area in response to the first pressing operation at the first position and the second position simultaneously in the virtual keyboard area, the first control area may be displayed at the first position. , display the second control area at the second position; and, when the pressing operation at the second position is detected to be maintained, the movement of the cursor can be controlled according to the sliding operation in the first control area; in addition, to detect the When the pressing operation at the first position is maintained, the content is 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 to control the movement of the cursor and the selection of content based on the cursor control area. Wherein, in response to the simultaneous first pressing operation at the first position and the second position in the virtual keyboard area, the electronic device displays the cursor control area in the virtual keyboard area with reference to the content of the previous embodiments. Herein No longer.
当然,该实施方式中,若在第一位置处显示第二控制区域,在第二位置处显示第一控制区域,则可以在检测到第二位置处的按压操作保持的情况下,根据第二控制区域中的滑动操作,控制光标的移动;另外,以在检测到第一位置处的按压操作保持的情况下,根据第一控制区域中的滑动操作,进行内容的选取。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, when it is detected that the pressing operation at the second position is maintained, the second control area can be displayed according to the second control area. The sliding operation in the control area controls the movement of the cursor; in addition, when the pressing operation at the first position is detected and maintained, the content is selected according to the sliding operation in the first control area.
可以理解地,在上述实施方式中,可以实现通过同时进行的不同位置处的按压操作触发光标控制区域的显示后,可以保持其中一个按压操作,并且根据另一滑动操作实现光标的移动以及内容的选取,进而使得光标的控制以及内容的选取更为方便,也使得整个控制过程更加的连贯。It can be understood that in the above embodiments, after pressing operations at different positions at the same time trigger the display of the cursor control area, one of the pressing operations can be maintained, and the movement of the cursor and content can be realized based on another sliding operation. Selection, which makes cursor control and content selection more convenient, and also makes the entire control process more coherent.
在该实施方式中,可选地,检测到上述第一位置处的按压操作以及第二位置处的按压操作均未保持的情况下,则可以取消光标控制区域的显示,即通过第一位置处以及第二位置处的第一按压操作触发光标控制区域的显示的情况下,只要检测到两个按压操作均未保持,即取消光标控制 区域的显示。例如,用户通过保持其中一个位置处按压操作,并且通过另一滑动操作实现光标的移动或者内容的选择后,则可以取消该保持的按压操作,从而取消光标控制区域的显示,使虚拟键盘呈现于虚拟键盘区域。In this embodiment, optionally, if it is detected that neither the pressing operation at the first position nor the pressing operation at the second position is maintained, the display of the cursor control area can be canceled, that is, by pressing at the first position. And when the first pressing operation at the second position triggers the display of the cursor control area, as long as it is detected that both pressing operations are not maintained, the display of the cursor control area is canceled. For example, after the user maintains the pressing operation at one position and moves the cursor or selects content through another sliding operation, the user can cancel the held pressing operation, thereby canceling the display of the cursor control area, so that the virtual keyboard is presented in Virtual keyboard area.
步骤S450:响应于针对所述处理控件的触发操作,对所述待处理内容进行相应的处理。Step S450: In response to the triggering operation on the processing control, perform corresponding processing on the content to be processed.
在本申请实施例中,光标控制区域中还显示有处理控件,该处理控件用于触发对待处理内容进行相应的处理;电子设备在获取待处理内容后,若检测到针对该处理控件的触发操作,则可以对待处理内容进行相应的处理。其中,对处理控件的触发操作可以是点击操作、长按操作等,具体的操作可以不做限定。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 corresponding processing of the content to be processed; after the electronic device obtains the content to be processed, if the electronic device detects a triggering operation for the processing control , then the content to be processed can be processed accordingly. Among them, the triggering operation for the processing control can be a click operation, a long press operation, etc., and the specific operation is not limited.
在一些实施方式中,对待处理内容进行的处理可以包括:复制、粘贴、剪切、智能识别等处理。当然,具体对待处理内容的处理并不局限于此。In some implementations, the processing of the content to be processed may include: copying, pasting, cutting, intelligent recognition, and other processing. Of course, the specific processing of the content to be processed is not limited to this.
示例性地,请参阅图16,光标控制区域A5的底部可以显示有复制功能对应的复制控件、粘贴功能对应的粘贴控件、剪切功能对应的剪切控件、以及智能识别功能对应的智能识别控件;请参阅图17,若检测到针对复制控件对应的点击操作,则可以对待处理内容进行复制,并且可以显示提示内容,以提示所选内容已存入剪贴板;请参阅图18,若检测到针对粘贴控件对应的点击操作,则可以粘贴剪切板内最近的一条内容;请参阅图19,若检测到针对剪切控件对应的点击操作,则可以对待处理内容进行剪切,并且可以显示提示内容,以提示所选内容已存入剪贴板;请参阅图20,若检测到针对智能识别控件对应的点击操作,则可以对待处理内容进行智能识别,具体的智能识别可以是识别词条。当然,智能识别也可以是识别地址、电话等信息,具体的识别可以不做限定。For example, please refer to Figure 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 an intelligent recognition control corresponding to the intelligent recognition function. ; Please refer to Figure 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 to the clipboard; please refer to Figure 18, if a click operation is detected For the click operation corresponding to the paste control, the most recent content in the clipboard can be pasted; please refer to Figure 19. If the click operation corresponding to the cut control is detected, the content to be processed can be cut, and a prompt can be displayed. content to prompt that the selected content has been saved in the clipboard; please refer to Figure 20. If a click operation corresponding to the intelligent identification control is detected, the content to be processed can be intelligently identified. The specific intelligent identification can be to identify the entry. Of course, intelligent identification can also identify information such as address, phone number, etc., and the specific identification is not limited.
在一些实施方式中,针对上述单独根据第二控制区域的滑动操作选取内容的方式,以及结合第一控制区域以及第二控制区域中的操作选取内容的方式,电子设备可以提供两种光标控制模式,电子设备可以根据用户所选取的光标控制模式,对上述光标控制区域进行显示。示例性地,请参阅图21,虚拟键盘区域中可以显示有光标控制模式的“模式一”对应的控件以及“模式二”对应的控件,在选择“模式一”的情况下,则第一控制区域A6显示于光标控制区域A5的左侧,第二控制区域A7显示于光标控制区域A5的右侧,并且第一控制区域A6中显示有“手指滑动,选取光标”的提示信息,第二控制区域A7中显示有“手指滑动,选择内容”,即电子设备可以根据第一控制区域A6中的滑动操作,控制光标进行移动,以及根据第二控制区域A7中的滑动操作,对内容编辑区域中的内容进行选取;请参阅图22,在选择“模式二”的情况下,则第一控制区域A6显示于光标控制区域A5的右侧,第二控制区域A7显示于光标控制区域A5的左侧,并且第一控制区域A6中显示有“手指滑动,选取光标”的提示信息,第二控制区域A7中显示有“手指长按,选择内容”,即电子设备可以根据第一控制区域A6中的滑动操作,控制光标进行移动,而且,可以根据第二控制区域A7中的长按操作以及第一控制区域A6中的滑动操作,对内容编辑区域中的内容进行选取。当然,上述举例中,第一控制区域A6以及第二控制区域A7的显示位置可以不做限定,即第一控制区域可以显示于光标控制区域的左侧,也可以显示于光标控制区域的右侧。由此,可以满足不同使用习惯的用户需求,提升用户的使用体验。In some embodiments, the electronic device can provide two cursor control modes for the above-mentioned method of selecting content based solely on the sliding operation of the second control area, and the method of selecting content based on operations in the first control area and the second control area. , 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 Figure 21. The virtual keyboard area may display controls corresponding to "Mode One" and controls corresponding to "Mode Two" of the cursor control mode. When "Mode One" is selected, the first control The area A6 is displayed on the left side of the cursor control area A5, the second control area A7 is displayed on the right side of the cursor control area A5, and the first control area A6 displays a prompt message of "slide your finger to select the cursor", and the second control area A7 is displayed on the right side of the cursor control area A5. Area A7 displays “Finger slide, 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 edit the content in the content editing area according to the sliding operation in the second control area A7. Please refer to Figure 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 "Finger slide, select cursor", and the second control area A7 displays "Finger long press, select content", that is, the electronic device can according to the first control area A6. The sliding operation controls the movement of the cursor, 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 or on the right side of the cursor control area. . As a result, the needs of users with different usage habits can be met and the user experience can be improved.
本申请实施例提供的内容编辑的控制方法,通过于虚拟键盘区域的触控操作,即可触发光标控制区域的显示,使用户握持电子设备并通过虚拟键盘进行内容编辑时,可以快速触发光标控制区域的显示,基于显示的光标控制区域中的第一控制区域以及第二控制区域,可以实现光标的移动和内容编辑区域中的内容选取,提升了内容编辑效率,并且针对选取的待处理内容,可以进一步进行相应地处理,更好地满足了用户的编辑需求。The content editing control method provided by the embodiment of the present application can trigger the display of the cursor control area through the touch operation on the virtual keyboard area, so that when the user holds the electronic device and edits content through the virtual keyboard, the cursor can be quickly triggered. The display of the control area, based on the first control area and the second control area in the displayed cursor control area, can realize the movement of the cursor and the selection of content in the content editing area, which improves the efficiency of content editing and targets the selected content to be processed. , which can be further processed accordingly to better meet the user's editing needs.
请参阅图23,其示出了本申请实施例提供的一种内容编辑的控制装置400的结构框图。该内容编辑的控制装置400应用上述的电子设备,该内容编辑的控制装置400包括:界面显示模块410、区域显示模块420、光标控制模块430以及内容选取模块440。其中,所述界面显示模块410用于显示内容编辑界面,所述内容编辑界面包括内容编辑区域以及虚拟键盘区域;所述区域显示模块420用于响应于所述虚拟键盘区域中的第一触控操作,于所述虚拟键盘区域显示光标控制区域,所述光标控制区域包括第一控制区域以及第二控制区域;所述光标控制模块430用于若检测到所述第一控制区域中的第二触控操作,则控制所述内容编辑区域中的光标进行移动;内容选取模块440用于若检测到所述第二控制区域中的第三触控操作,则选取所述内容编辑区域中的内容作为待处理内容。Please refer to FIG. 23 , which shows a structural block diagram of a content editing control device 400 provided by an embodiment of the present application. The content editing control device 400 applies the above-mentioned electronic device. 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. Wherein, the interface display module 410 is used to display a content editing interface, which includes a content editing area and a virtual keyboard area; the area display module 420 is used to respond to the first touch in the virtual keyboard area. Operation, display a cursor control area in the virtual keyboard area, the cursor control area includes a first control area and a second control area; the cursor control module 430 is used to detect the second control area in the first control area. If a touch operation is performed, the cursor in the content editing area is controlled to move; the content selection module 440 is configured to select the content in the content editing area if a third touch operation in the second control area is detected. as pending content.
在一些实施方式中,区域显示模块420可以具体用于:响应于所述虚拟键盘区域中第一位置以及第二位置处同时进行的第一按压操作,于所述虚拟键盘区域显示光标控制区域,其中,所述第一位置以及第二位置分别靠近所述虚拟键盘区域在指定方向上的两侧边界。In some embodiments, the area display module 420 may be specifically configured to: display a cursor control area in the virtual keyboard area in response to simultaneous first pressing operations at the first position and the second position in the virtual keyboard area, Wherein, the first position and the second position are respectively close to both sides of the virtual keyboard area in a specified direction.
在一种可能的实施方式中,区域显示模块420还可以具体用于:响应于所述虚拟键盘区域中第一位置以及第二位置处同时进行的第一按压操作,将所述第一按压操作与预设按压条件进行匹配;若所述第一按压操作满足预设按压条件,于所述虚拟键盘区域显示光标控制区域。In a possible implementation, the area display module 420 may also be specifically configured to: in response to the first pressing operation performed simultaneously at the first position and the second position in the virtual keyboard area, the first pressing operation Match with the preset pressing conditions; if the first pressing operation satisfies the preset pressing conditions, display a cursor control area in the virtual keyboard area.
可选地,所述预设按压条件包括:按压时长大于预设时长、按压面积大于预设面积、以及按压力度大于预设力度中的至少一个。Optionally, the preset pressing condition includes at least one of: pressing duration is greater than the preset duration, pressing area is greater than the preset area, and pressing intensity is greater than the preset intensity.
在一些实施方式中,区域显示模块420可以具体用于:响应于所述虚拟键盘区域中第三位置以及第四位置处的第一滑动操作,于所述虚拟键盘区域显示光标控制区域,其中,所述第三位置不同于所述第四位置,所述第三位置以及第四位置分别靠近所述虚拟键盘区域在指定方向上的两侧边界,所述第一滑动操作以及所述第二滑动操作的起始位置处的触控区域均包括至少两个虚拟按键。In some embodiments, the area display module 420 may be specifically configured to: in response to the first sliding operation at the third position and the fourth position in the virtual keyboard area, display the cursor control area 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 both sides of the virtual keyboard area in the specified direction, the first sliding operation and the second sliding operation are Each touch area at the starting position of the operation includes at least two virtual keys.
在一种可能的实施方式中,区域显示模块420还可以具体用于:响应于所述虚拟键盘区域中第三位置以及第四位置处的第一滑动操作,将所述第一滑动操作与预设滑动条件进行匹配;若所述第一滑动操作满足预设滑动条件,于所述虚拟键盘区域显示光标控制区域。In a possible implementation, the area display module 420 may be specifically configured to: in response to the first sliding operation at the third position and the fourth position in the virtual keyboard area, combine the first sliding operation with the predetermined Sliding conditions are set for matching; if the first sliding operation satisfies the preset sliding conditions, a cursor control area is displayed in the virtual keyboard area.
在一些实施方式中,光标控制模块430可以具体用于:若检测到所述第一控制区域中的第二滑动操作,控制所述内容编辑区域中的光标随所述第二滑动操作进行移动。In some embodiments, 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.
在一些实施方式中,内容选取模块440可以具体用于:若检测到所述第二控制区域中的第三滑动操作,控制所述内容编辑区域中的光标随所述第三滑动操作进行移动;获取所述光标随所述第三滑动操作移动之前的光标位置作为第一光标位置,以及所述光标随所述第三滑动操作移动之后的光标位置作为第二光标位置;从所述内容编辑区域中,获取所述第一光标位置与所述第二光标位置之间的内容,作为待处理内容。In some embodiments, the content selection module 440 may be specifically configured to: if a third sliding operation in the second control area is detected, control the cursor in the content editing area to move along 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.
在另一些实施方式中,内容选取模块440可以具体用于:若检测到所述第二控制区域中的第四滑动操作,控制所述内容编辑区域中的光标随所述第四滑动操作进行移动;从所述内容编辑区域中,获取与所述光标的移动轨迹匹配的内容,作为待处理内容。In other embodiments, the content selection module 440 may be specifically configured to: if a fourth sliding operation in the second control area is detected, control the cursor in the content editing area to move along with the fourth sliding operation. ; Obtain content matching the movement trajectory of the cursor from the content editing area as content to be processed.
在又一些实施方式中,内容选取模块440可以具体用于:若检测到所述第一控制区域中的第五滑动操作,以及所述第二控制区域中的第二按压操作,控制所述内容编辑区域中的光标随所述第五滑动操作进行移动;获取所述光标随所述第五滑动操作移动之前的光标位置作为第三光标位置,以及所述光标随所述第五滑动操作移动之后的光标位置作为第四光标位置;从所述内容编辑区域中,获取所述第三光标位置与所述第四二光标位置之间的内容,作为待处理内容。In some embodiments, the content selection module 440 may be specifically configured 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 content. The cursor in the editing area moves with the fifth sliding operation; the cursor position before the cursor moves with the fifth sliding operation is obtained as the third cursor position, and the cursor position after the cursor moves with the fifth sliding operation is obtained The cursor position is used as the fourth cursor position; the content between the third cursor position and the fourth cursor position is obtained from the content editing area as the content to be processed.
可选地,所述光标控制区域中还包括处理控件。该光标位置的控制装置400还可以包括内容处理模块。内容处理模块用于在所述若检测到所述第二控制区域中的第三触控操作,则选取所述内容编辑区域中的内容作为待处理内容之后,响应于针对所述处理控件的触发操作,对所述待处理内容进行相应的处理。Optionally, the cursor control area also includes processing controls. The cursor position control device 400 may also include a content processing module. The content processing module is configured to respond to a trigger for the processing control after selecting the content in the content editing area as the content to be processed if the third touch operation in the second control area is detected. Operation, perform corresponding processing on the content to be processed.
在一些实施方式中,区域显示模块420可以具体用于:响应于所述虚拟键盘区域中的第一触控操作,将光标控制区域覆盖显示于所述虚拟键盘区域的部分区域或全部区域。In some embodiments, the area display module 420 may be specifically configured to: in response to the first touch operation in the virtual keyboard area, cover and display the cursor control area on part or all of the virtual keyboard area.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the above-described devices and modules can be referred to the corresponding processes in the foregoing method embodiments, and will not be described again here.
在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。In several embodiments provided in this application, the coupling between modules may be electrical, mechanical or other forms of coupling.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in each embodiment of the present application can be integrated into one processing module, or each module can exist physically alone, 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 function modules.
综上所述,本申请提供的方案,通过响应于内容编辑界面的虚拟键盘区域中的第一触控操作,于虚拟键盘区域显示光标控制区域,且该光标控制区域包括第一控制区域以及第二控制区域,若检测到第一控制区域中的第一触控操作,控制内容编辑区域中的光标进行移动,若检测到第二控制区域中的第二触控操作,则选取内容编辑区域中的内容作为待处理内容。由此,可以快捷实现触发光标控制区域的显示,通过光标控制区域中不同区域的触控操作,可以实现控制内容编辑区域中的光标的移动以及内容的选取,能够避免在内容编辑区域控制输入位置以及选取内容时直接移动光标,手会遮挡部分内容而导致用户控制光标移动和选取内容时效率较低的问题,进而能够方便用户控制输入位置以及内容的选取,提升用户进行内容编辑的效率。To sum up, the solution provided by this application displays a cursor control area in the virtual keyboard area in response to the first touch operation in the virtual keyboard area of the content editing interface, and the cursor control area includes the first control area and the third control area. Two control areas. If the first touch operation in the first control area is detected, the cursor in the content editing area is controlled to move. If the second touch operation in the second control area is detected, the cursor in the content editing area is selected. content as pending content. As a result, 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 and the selection of content in the content editing area can be controlled, thereby avoiding the need to control the input position in the content editing area. And if you directly move the cursor when selecting content, your hand will block part of the content, resulting in low efficiency when the user controls the movement of the cursor and selects content. This makes it easier for the user to control the input position and content selection, and improves the user's efficiency in content editing.
请参考图24,其示出了本申请实施例提供的一种电子设备的结构框图。该电子设备100可以是智能手机、平板电脑、电子书等能够运行应用程序的电子设备。本申请中的电子设备100可以包括一个或多个如下部件:处理器110、存储器120、以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器120中并被配置为由一个或多个处理器110执行,一个或多个应用 程序配置用于执行如前述方法实施例所描述的方法。Please refer to FIG. 24 , which shows a structural block diagram of an electronic device provided by an embodiment of the present application. The electronic device 100 may be a smart phone, a tablet computer, an e-book, or other electronic device capable of running applications. 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 application programs, wherein one or more application programs may be stored in the memory 120 and configured by One or more processors 110 execute, and one or more application programs are configured to execute the method as described in the foregoing method embodiments.
处理器110可以包括一个或者多个处理核。处理器110利用各种接口和线路连接整个电子设备100内的各个部分,通过运行或执行存储在存储器120内的指令、程序、代码集或指令集,以及调用存储在存储器120内的数据,执行电子设备100的各种功能和处理数据。可选地,处理器110可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器110可集成中央处理器(Central Processing Unit,CPU)、图形处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作***、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器110中,单独通过一块通信芯片进行实现。 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 by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Various functions and processing data of the electronic device 100 . Optionally, the processor 110 may use at least one of digital signal processing (Digital Signal Processing, DSP), field-programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). implemented in hardware form. The processor 110 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU), a modem, etc. Among them, the CPU mainly handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the display content; and the modem is used to handle wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110 and may be implemented solely through a communication chip.
存储器120可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器120可用于存储指令、程序、代码、代码集或指令集。存储器120可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作***的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储电子设备100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The memory 120 may include random access memory (RAM) or read-only memory (Read-Only Memory). Memory 120 may be used to store instructions, programs, codes, sets of codes, or sets of instructions. The memory 120 may include a program storage area and a data storage area, where the program storage area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing each of the following method embodiments, etc. The storage data area can also store data created during use of the electronic device 100 (such as phone book, audio and video data, chat record data), etc.
请参考图25,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质800中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to FIG. 25 , which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. Program code is stored in the computer-readable medium 800, and the program code can be called by the processor to execute the method described in the above method embodiment.
计算机可读存储介质800可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质800包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质800具有执行上述方法中的任何方法步骤的程序代码810的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码810可以例如以适当形式进行压缩。Computer-readable storage medium 800 may be electronic memory such as flash memory, EEPROM (electrically erasable programmable read-only memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 800 includes non-transitory computer-readable storage medium. The computer-readable storage medium 800 has storage space for program code 810 that performs any method steps in the above-described methods. These program codes can be read from or written into one or more computer program products. Program code 810 may, for example, be compressed in a suitable form.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application, but not to limit it; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that: it can still Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent substitutions are made to some of the technical features; however, these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions in the embodiments of the present application.

Claims (20)

  1. 一种内容编辑的控制方法,其特征在于,应用于电子设备,所述方法包括:A content editing control method, characterized in that it is applied to electronic devices, and the method includes:
    显示内容编辑界面,所述内容编辑界面包括内容编辑区域以及虚拟键盘区域;Display a content editing interface, which includes a content editing area and a virtual keyboard area;
    响应于所述虚拟键盘区域中的第一触控操作,于所述虚拟键盘区域显示光标控制区域,所述光标控制区域包括第一控制区域以及第二控制区域;In response to the first touch operation in the virtual keyboard area, display a cursor control area in the virtual keyboard area, where the cursor control area includes a first control area and a second control area;
    若检测到所述第一控制区域中的第二触控操作,则控制所述内容编辑区域中的光标进行移动;If a second touch operation in the first control area is detected, control the cursor in the content editing area to move;
    若检测到所述第二控制区域中的第三触控操作,则选取所述内容编辑区域中的内容作为待处理内容。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.
  2. 根据权利要求1所述的方法,其特征在于,所述响应于所述虚拟键盘区域中的第一触控操作,于所述虚拟键盘区域显示光标控制区域,包括:The method of claim 1, wherein displaying a cursor control area in the virtual keyboard area in response to a first touch operation in the virtual keyboard area includes:
    响应于所述虚拟键盘区域中第一位置以及第二位置处同时进行的第一按压操作,于所述虚拟键盘区域显示光标控制区域,其中,所述第一位置以及第二位置分别靠近所述虚拟键盘区域在指定方向上的两侧边界。In response to simultaneous first pressing operations 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 the The two sides of the virtual keyboard area in the specified direction.
  3. 根据权利要求2所述的方法,其特征在于,所述响应于所述虚拟键盘区域中第一位置以及第二位置处同时进行的第一按压操作,于所述虚拟键盘区域显示光标控制区域,包括:The method of claim 2, wherein the cursor control area is displayed in the virtual keyboard area in response to simultaneous first pressing operations at the first position and the second position in the virtual keyboard area, include:
    响应于所述虚拟键盘区域中第一位置以及第二位置处同时进行的第一按压操作,将所述第一按压操作与预设按压条件进行匹配;In response to simultaneous first pressing operations at the first position and the second position in the virtual keyboard area, matching the first pressing operation with a preset pressing condition;
    若所述第一按压操作满足预设按压条件,于所述虚拟键盘区域显示光标控制区域。If the first pressing operation satisfies the preset pressing condition, a cursor control area is displayed in the virtual keyboard area.
  4. 根据权利要求3所述的方法,其特征在于,所述预设按压条件包括:The method according to claim 3, characterized in that the preset pressing conditions include:
    按压时长大于预设时长、按压面积大于预设面积、以及按压力度大于预设力度中的至少一个。At least one of the pressing duration is greater than the preset duration, the pressing area is greater than the preset area, and the pressing intensity is greater than the preset intensity.
  5. 根据权利要求2-4任一项所述的方法,其特征在于,所述第一位置以及第二位置是在指定方向上靠近所述虚拟键盘区域的边界中的非虚拟按键所在的位置。The method according to any one of claims 2 to 4, characterized in that the first position and the second position are positions close to the non-virtual keys in the boundary of the virtual keyboard area in the specified direction.
  6. 根据权利要求2-4任一项所述的方法,其特征在于,所述第一位置以及第二位置是在指定方向上靠近所述虚拟键盘区域的边界中虚拟按键所在的所在位置,并且在所述第一位置以及第二位置处的触控区域包括至少两个虚拟按键。The method according to any one of claims 2 to 4, characterized in that the first position and the second position are positions close to the virtual keys in the boundary of the virtual keyboard area in the specified direction, and in The touch areas at the first position and the second position include at least two virtual keys.
  7. 根据权利要求1所述的方法,其特征在于,所述响应于所述虚拟键盘区域中的第一触控操作,于所述虚拟键盘区域显示光标控制区域,包括:The method of claim 1, wherein displaying a cursor control area in the virtual keyboard area in response to a first touch operation in the virtual keyboard area includes:
    响应于所述虚拟键盘区域中第三位置以及第四位置处的第一滑动操作,于所述虚拟键盘区域显示光标控制区域,其中,所述第三位置不同于所述第四位置,所述第三位置以及第四位置分别靠近所述虚拟键盘区域在指定方向上的两侧边界,所述第一滑动操作以及所述第二滑动操作的起始位置处的触控区域均包括至少两个虚拟按键。In response to the 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, and the The third position and the fourth position are respectively close to both sides of the virtual keyboard area in the 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 Key.
  8. 根据权利要求7所述的方法,其特征在于,所述响应于所述虚拟键盘区域中第三位置以及第四位置处的第一滑动操作,于所述虚拟键盘区域显示光标控制区域,包括:The method of claim 7, wherein displaying a cursor control area in the virtual keyboard area in response to the first sliding operation at the third position and the fourth position in the virtual keyboard area includes:
    响应于所述虚拟键盘区域中第三位置以及第四位置处的第一滑动操作,将所述第一滑动操作与预设滑动条件进行匹配;In response to the first sliding operation at the third position and the fourth position in the virtual keyboard area, matching the first sliding operation with a preset sliding condition;
    若所述第一滑动操作满足预设滑动条件,于所述虚拟键盘区域显示光标控制区域。If the first sliding operation satisfies the preset sliding condition, a cursor control area is displayed in the virtual keyboard area.
  9. 根据权利要求7或8所述的方法,其特征在于,所述方法还包括:The method according to claim 7 or 8, characterized in that, the method further includes:
    若检测到针对至少两个虚拟按键进行触控,则忽略由触控位置处开始滑动的过程中对虚拟按键的触控操作。If a touch on at least two virtual keys is detected, the touch operation on the virtual keys during the sliding process starting from the touch position is ignored.
  10. 根据权利要求1-9任一项所述的方法,其特征在于,所述若检测到所述第一控制区域中的第二触控操作,则控制所述内容编辑区域中的光标进行移动,包括:The method according to any one of claims 1 to 9, characterized in that if a second touch operation in the first control area is detected, controlling the cursor in the content editing area to move, include:
    若检测到所述第一控制区域中的第二滑动操作,控制所述内容编辑区域中的光标随所述第二滑动操作进行移动。If the second sliding operation in the first control area is detected, the cursor in the content editing area is controlled to move along with the second sliding operation.
  11. 根据权利要求1-10任一项所述的方法,其特征在于,所述若检测到所述第二控制区域中的第三触控操作,则选取所述内容编辑区域中的内容作为待处理内容,包括:The method according to any one of claims 1 to 10, characterized in that 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. content include:
    若检测到所述第二控制区域中的第三滑动操作,控制所述内容编辑区域中的光标随所述第三滑动操作进行移动;If a third sliding operation in the second control area is detected, control the cursor in the content editing area to move along with the third sliding operation;
    获取所述光标随所述第三滑动操作移动之前的光标位置作为第一光标位置,以及所述光标随所述第三滑动操作移动之后的光标位置作为第二光标位置;Obtain the cursor position before the cursor moves with the third sliding operation as the first cursor position, and obtain the cursor position after the cursor moves with the third sliding operation as the second cursor position;
    从所述内容编辑区域中,获取所述第一光标位置与所述第二光标位置之间的内容,作为待处理内容。From the content editing area, the content between the first cursor position and the second cursor position is obtained as content to be processed.
  12. 根据权利要求1-10任一项所述的方法,其特征在于,所述若检测到所述第二控制区域中的第三触控操作,则选取所述内容编辑区域中的内容作为待处理内容,包括:The method according to any one of claims 1 to 10, characterized in that 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. content include:
    若检测到所述第二控制区域中的第四滑动操作,控制所述内容编辑区域中的光标随所述第四滑动操作进行移动;If a fourth sliding operation in the second control area is detected, control the cursor in the content editing area to move along with the fourth sliding operation;
    从所述内容编辑区域中,获取与所述光标的移动轨迹匹配的内容,作为待处理内容。From the content editing area, content matching the movement trajectory of the cursor is obtained as content to be processed.
  13. 根据权利要求1-10任一项所述的方法,其特征在于,所述若检测到所述第二控制区域中的第三触控操作,则选取所述内容编辑区域中的内容作为待处理内容,包括:The method according to any one of claims 1 to 10, characterized in that 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. content include:
    若检测到所述第一控制区域中的第五滑动操作,以及所述第二控制区域中的第二按压操作,控制所述内容编辑区域中的光标随所述第五滑动操作进行移动;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;
    获取所述光标随所述第五滑动操作移动之前的光标位置作为第三光标位置,以及所述光标随所述第五滑动操作移动之后的光标位置作为第四光标位置;Obtaining 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;
    从所述内容编辑区域中,获取所述第三光标位置与所述第四二光标位置之间的内容,作为待处理内容。From the content editing area, the content between the third cursor position and the fourth second cursor position is obtained as content to be processed.
  14. 根据权利要求1-13任一项所述的方法,其特征在于,所述光标控制区域中还包括处理控件,在所述若检测到所述第二控制区域中的第三触控操作,则选取所述内容编辑区域中的内容作为待处理内容之后,所述方法还包括:The method according to any one of claims 1 to 13, characterized in that the cursor control area further includes a processing control, and if a third touch operation in the second control area is detected, then After selecting the content in the content editing area as the content to be processed, the method further includes:
    响应于针对所述处理控件的触发操作,对所述待处理内容进行相应的处理。In response to the triggering operation on the processing control, the content to be processed is processed accordingly.
  15. 根据权利要求1-14任一项所述的方法,其特征在于,所述响应于所述虚拟键盘区域中的第一触控操作,于所述虚拟键盘区域显示光标控制区域,包括:The method according to any one of claims 1 to 14, characterized in that, in response to a first touch operation in the virtual keyboard area, displaying a cursor control area in the virtual keyboard area includes:
    响应于所述虚拟键盘区域中的第一触控操作,将光标控制区域覆盖显示于所述虚拟键盘区域的部分区域或全部区域。In response to the first touch operation in the virtual keyboard area, the cursor control area is covered and displayed on part or all of the virtual keyboard area.
  16. 根据权利要求1-15任一项所述的方法,其特征在于,所述响应于所述虚拟键盘区域中的第一触控操作,于所述虚拟键盘区域显示光标控制区域,所述光标控制区域包括第一控制区域以及第二控制区域,包括:The method according to any one of claims 1 to 15, characterized in that, in response to the first touch operation in the virtual keyboard area, a cursor control area is displayed in the virtual keyboard area, and the cursor control area The area includes a first control area and a second control area, including:
    响应于所述虚拟键盘区域中的第一触控操作,进行反馈提示;In response to the first touch operation in the virtual keyboard area, provide a feedback prompt;
    于所述虚拟键盘区域显示光标控制区域,所述光标控制区域包括第一控制区域以及第二控制区域。A cursor control area is displayed in the virtual keyboard area, and the cursor control area includes a first control area and a second control area.
  17. 根据权利要求1-16任一项所述的方法,其特征在于,在所述响应于所述虚拟键盘区域中的第一触控操作,于所述虚拟键盘区域显示光标控制区域,所述光标控制区域包括第一控制区域以及第二控制区域之后,所述方法还包括:The method according to any one of claims 1 to 16, wherein in response to the first touch operation in the virtual keyboard area, a cursor control area is displayed in the virtual keyboard area, and the cursor After the control area includes the first control area and the second control area, the method further includes:
    若指定时长内未检测到针对所述光标控制区域的操作,取消所述光标控制区域的显示。If no operation on the cursor control area is detected within a specified period of time, the display of the cursor control area is cancelled.
  18. 一种内容编辑的控制装置,其特征在于,应用于电子设备,所述装置包括:界面显示模块、区域显示模块、光标控制模块以及内容选取模块,其中,A content editing control device, characterized in that it is applied to electronic equipment. 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, which includes a content editing area and a virtual keyboard area;
    所述区域显示模块用于响应于所述虚拟键盘区域中的第一触控操作,于所述虚拟键盘区域显示光标控制区域,所述光标控制区域包括第一控制区域以及第二控制区域;The area display module is configured to display a cursor control area in the virtual keyboard area in response to a first touch operation in the virtual keyboard area, where the cursor control area includes a first control area and a second control area;
    所述光标控制模块用于若检测到所述第一控制区域中的第二触控操作,则控制所述内容编辑区域中的光标进行移动;The cursor control module is configured 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 is configured to select content in the content editing area as content to be processed if a third touch operation in the second control area is detected.
  19. 一种电子设备,其特征在于,包括:An electronic device, characterized by including:
    一个或多个处理器;one or more processors;
    存储器;memory;
    一个或多个程序,其中所述一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行如权利要求1-17任一项所述的方法。one or more programs, wherein said one or more programs are stored in said memory and configured to be executed by said one or more processors, said one or more programs are configured to perform as claimed The method described in any one of 1-17.
  20. 一种计算机可读取存储介质,其特征在于,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求1-17任一项所述的方法。A computer-readable storage medium, characterized in that the computer-readable storage medium stores program code, and the program code can be called by a processor to execute the method according to any one of claims 1-17 .
PCT/CN2022/141625 2022-05-23 2022-12-23 Content editing control method and apparatus, electronic device, and storage medium WO2023226422A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210564732.8A CN114860149A (en) 2022-05-23 2022-05-23 Content editing control method and device, electronic equipment and storage medium
CN202210564732.8 2022-05-23

Publications (1)

Publication Number Publication Date
WO2023226422A1 true WO2023226422A1 (en) 2023-11-30

Family

ID=82639767

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/141625 WO2023226422A1 (en) 2022-05-23 2022-12-23 Content editing control method and apparatus, electronic device, and storage medium

Country Status (2)

Country Link
CN (1) CN114860149A (en)
WO (1) WO2023226422A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114860149A (en) * 2022-05-23 2022-08-05 Oppo广东移动通信有限公司 Content editing control method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016141597A1 (en) * 2015-03-12 2016-09-15 华为技术有限公司 Touch control method, device, terminal and graphical user interface thereof
CN109917973A (en) * 2019-03-12 2019-06-21 广州朗国电子科技有限公司 Touch control method, system and touch apparatus based on electronic white board equipment
CN113821134A (en) * 2017-09-05 2021-12-21 华为终端有限公司 Method for controlling cursor movement, content selection method, method for controlling page scrolling and electronic equipment
CN114860149A (en) * 2022-05-23 2022-08-05 Oppo广东移动通信有限公司 Content editing control method and device, electronic equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103150093B (en) * 2013-02-25 2016-04-13 北京极兴莱博信息科技有限公司 The method of a kind of operation indicating identifier movement, device and terminal
CN103136180A (en) * 2013-02-25 2013-06-05 北京极兴莱博信息科技有限公司 Text segment copying and pasting method and device and terminal for implementing same
KR102217560B1 (en) * 2014-03-20 2021-02-19 엘지전자 주식회사 Mobile terminal and control method therof
CN108762654B (en) * 2018-05-15 2020-09-29 Oppo(重庆)智能科技有限公司 Text editing method, text editing device, text editing terminal and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016141597A1 (en) * 2015-03-12 2016-09-15 华为技术有限公司 Touch control method, device, terminal and graphical user interface thereof
CN113821134A (en) * 2017-09-05 2021-12-21 华为终端有限公司 Method for controlling cursor movement, content selection method, method for controlling page scrolling and electronic equipment
CN113821135A (en) * 2017-09-05 2021-12-21 华为终端有限公司 Method for controlling cursor movement, content selection method, method for controlling page scrolling and electronic equipment
CN109917973A (en) * 2019-03-12 2019-06-21 广州朗国电子科技有限公司 Touch control method, system and touch apparatus based on electronic white board equipment
CN114860149A (en) * 2022-05-23 2022-08-05 Oppo广东移动通信有限公司 Content editing control method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN114860149A (en) 2022-08-05

Similar Documents

Publication Publication Date Title
JP7114633B2 (en) Screen mirroring method, device, terminal and storage medium
US11054988B2 (en) Graphical user interface display method and electronic device
US11650716B2 (en) Operation methods of a smart interactive tablet, storage medium and related equipment
US11650725B2 (en) Screenshot capturing method, electronic device and non-transitory computer-readable medium
US20190302984A1 (en) Method and device for controlling a flexible display device
US9595238B2 (en) Electronic device, cover for electronic device, and method of performing a function in an electronic device
WO2022001472A1 (en) Display method and apparatus, electronic device, and storage medium
CN110515510B (en) Data processing method, device, equipment and storage medium
TWI603254B (en) Method and apparatus for multitasking
US20120289290A1 (en) Transferring objects between application windows displayed on mobile terminal
CN110531920B (en) Display method and device of sidebar, terminal and storage medium
CN109976655B (en) Long screen capturing method, device, terminal and storage medium
US20120096393A1 (en) Method and apparatus for controlling touch screen in mobile terminal responsive to multi-touch inputs
US20130241829A1 (en) User interface method of touch screen terminal and apparatus therefor
CN108881616B (en) Display control method and device, storage medium and terminal
WO2022007541A1 (en) Device control method and apparatus, storage medium, and electronic device
CN108717344A (en) page navigation method, device, terminal and computer readable storage medium
WO2022100275A1 (en) Multi-window processing method and device on mobile terminal, mobile terminal and medium
WO2023226422A1 (en) Content editing control method and apparatus, electronic device, and storage medium
WO2023274067A1 (en) Icon generation method and apparatus, electronic device, and readable storage medium
CN107544740B (en) Application processing method and device, storage medium and electronic equipment
TW202144984A (en) Equipment control method and device, storage medium and electronic equipment
WO2024012136A1 (en) Display method and apparatus for virtual keyboard, and electronic device and storage medium
CN109165626A (en) Stroke writing processing method, device, equipment and the storage medium of electronic whiteboard
CN108874481A (en) Handle the method and device of suspended window

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22943607

Country of ref document: EP

Kind code of ref document: A1