CN114860149A - Content editing control method and device, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN114860149A
CN114860149A CN202210564732.8A CN202210564732A CN114860149A CN 114860149 A CN114860149 A CN 114860149A CN 202210564732 A CN202210564732 A CN 202210564732A CN 114860149 A CN114860149 A CN 114860149A
Authority
CN
China
Prior art keywords
area
cursor
content
control
virtual keyboard
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210564732.8A
Other languages
Chinese (zh)
Inventor
陈启
梁可
黎瀚
谷穗子
池卓哲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202210564732.8A priority Critical patent/CN114860149A/en
Publication of CN114860149A publication Critical patent/CN114860149A/en
Priority to PCT/CN2022/141625 priority patent/WO2023226422A1/en
Pending legal-status Critical Current

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

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 application discloses a control method and device for content editing, an electronic device and a storage medium, wherein the control method for content editing comprises the following steps: displaying a content editing interface, wherein the content editing interface comprises a content editing area and a virtual keyboard area; responding to a first touch operation in the virtual keyboard area, and displaying a cursor control area in the virtual keyboard area; if the second touch operation in the first control area is detected, controlling a cursor in the content editing area to move; and if the third touch operation in the second control area is detected, selecting the content in the content editing area as the content to be processed. The method can realize content editing, and is convenient for a user to control the input position and select the content.

Description

Content editing control method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of electronic device technologies, and in particular, to a method and an apparatus for controlling content editing, an electronic device, and a storage medium.
Background
With the rapid progress of the technology level and the living standard, electronic devices (such as smart phones, tablet computers, etc.) have become one of the electronic products commonly used in people's lives. At present, when a user edits text content by using an electronic device, there are situations that the user needs to move a cursor to adjust a position of character input and select the text content to move the cursor, but the current methods of controlling the input position and selecting the content are inconvenient.
Disclosure of Invention
The application provides a control method and device for content editing, an electronic device and a storage medium, which can facilitate a user to control an input position and select content when the content editing is performed.
In a first aspect, an embodiment of the present application provides a method for controlling content editing, which is applied to an electronic device, and the method includes: displaying a content editing interface, wherein the content editing interface comprises a content editing area and a virtual keyboard area; responding to a first touch operation in the virtual keyboard area, and displaying a cursor control area in the virtual keyboard area, wherein the cursor control area comprises a first control area and a second control area; if the second touch operation in the first control area is detected, controlling a cursor in the content editing area to move; and if the third touch operation in the second control area is detected, selecting the content in the content editing area as the content to be processed.
In a second aspect, an embodiment of the present application provides a control apparatus for content editing, which is applied to an electronic device, and the apparatus includes: the system comprises an interface display module, a region display module, a cursor control module and a content selection module, wherein the interface display module is used for displaying a content editing interface, and the content editing interface comprises a content editing region and a virtual keyboard region; the area display module is used for responding to a first touch operation in the virtual keyboard area and displaying a cursor control area in the virtual keyboard area, wherein the cursor control area comprises a first control area and a second control area; the cursor control module is used for controlling a cursor in the content editing area to move if a second touch operation in the first control area is detected; the content selecting module is used for 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.
In a third aspect, an embodiment of the present application provides an electronic device, including: one or more processors; a memory; 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 being configured to perform the control method for content editing provided by the first aspect described above.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a program code is stored in the computer-readable storage medium, and the program code may be called by a processor to execute the control method for content editing provided in the first aspect.
According to the scheme provided by the application, a cursor control area is displayed in the virtual keyboard area by responding to a first touch operation in the virtual keyboard area of the content editing interface, the cursor control area comprises a first control area and a second control area, if the first touch operation in the first control area is detected, a cursor in the content editing area is controlled to move, and if the second touch operation in the second control area is detected, the content in the content editing area is selected as the content to be processed. Therefore, the display of the cursor control area can be triggered quickly, the cursor in the content editing area can be controlled to move and select the content through touch control operation of different areas in the cursor control area, the problem that the efficiency is low when a user controls the cursor to move and select the content due to the fact that a hand can shield part of the content when the cursor is controlled to input the position and select the content in the content editing area can be avoided, the user can conveniently control the input position and select the content, and the content editing efficiency of the user is improved.
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 are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 shows a schematic diagram of an application scenario provided in an embodiment of the present application.
Fig. 2 shows another schematic diagram of an application scenario provided in an embodiment of the present application.
FIG. 3 shows a flow chart of a method of controlling cursor position according to one embodiment of the present application.
Fig. 4 shows a schematic interface diagram provided by an embodiment of the present application.
FIG. 5 shows a flow chart of a method of controlling cursor position according to another embodiment of the present application.
Fig. 6 shows a schematic interface diagram provided in another embodiment of the present application.
Fig. 7 shows a schematic interface diagram provided in another embodiment of the present application.
FIG. 8 shows a flow chart of a method of controlling cursor position according to yet another embodiment of the present application.
Fig. 9 shows a flowchart of a control method of cursor position according to yet another embodiment of the present application.
Fig. 10 shows a schematic view of an interface provided by another embodiment of the present application.
Fig. 11 shows a schematic interface diagram provided in another embodiment of the present application.
Fig. 12 shows a schematic interface diagram provided in another embodiment of the present application.
Fig. 13 shows a schematic interface diagram provided in another embodiment of the present application.
Fig. 14 shows a schematic interface diagram provided in another embodiment of the present application.
Fig. 15 is a schematic diagram illustrating an interface provided by another embodiment of the present application.
Fig. 16 shows a schematic interface diagram provided in another embodiment of the present application.
Fig. 17 shows a schematic interface diagram provided in another embodiment of the present application.
Fig. 18 shows a schematic interface diagram provided in another embodiment of the present application.
Fig. 19 shows a schematic interface diagram provided in another embodiment of the present application.
Fig. 20 shows a schematic view of an interface provided by another embodiment of the present application.
Fig. 21 shows a schematic interface diagram provided in another embodiment of the present application.
Fig. 22 is a schematic diagram of an interface provided by another embodiment of the present application.
FIG. 23 shows a block diagram of a control device for cursor position according to one embodiment of the present application.
Fig. 24 is a block diagram of an electronic device for executing a control method of a cursor position according to an embodiment of the present application.
Fig. 25 is a storage unit for storing or carrying program codes for implementing a control method of a cursor position according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
Conventionally, cursor control operations such as cursor position movement and content selection are performed on a touch panel, and the cursor position in a text region is generally controlled by directly performing operations such as clicking operations or long-press and then dragging a cursor in the text region. However, in such a scheme, when content editing is performed, a virtual keyboard is usually displayed in the interface, but the virtual keyboard occupies a part of the interface, so that the display area of the text area is limited, and the fingers easily block characters, thereby affecting the sight line operation; meanwhile, as the touch area is fine, the cursor movement and selection operation are not sensitive enough, the fineness is low, and misoperation is easy; particularly, in a touch screen of a large-screen mobile phone, the touch screen is easy to exceed a finger reachable area during control, and the operation is more difficult.
Of course, in some schemes, a setting interface of the virtual keyboard is entered by clicking a function control displayed in the virtual keyboard, and a cursor editing area is triggered to be displayed in the virtual keyboard by clicking a corresponding control in the setting interface, and a cursor is controlled according to an operation on a cursor control in the cursor editing area. However, in such a manner, the operation of triggering the cursor editing area is cumbersome, and the user is not convenient to control the cursor and select the content at the input position when editing the content.
In view of the above problems, the inventor provides a method and an apparatus for controlling content editing, an electronic device, and a storage medium, which are provided by the embodiments of the present application, and can avoid the problem that a user has low efficiency in controlling cursor movement and selecting content due to the fact that a hand can block part of content when controlling an input position and selecting content in a content editing area, so that the user can conveniently control the input position and select content, and the efficiency of editing content by the user is improved. The specific control method for content editing is described in detail in the following embodiments.
The following first introduces a scenario related to an embodiment of the present application.
The method for controlling content editing provided by the embodiment of the application may be executed by an electronic device, where the electronic device may include one display area (e.g., one display screen) or a plurality of display areas, and the plurality of display areas may be foldable with respect to each other (e.g., include a folding screen). For example, as shown in FIG. 1, an electronic device 100 may include 1 display area 101; for another example, as shown in fig. 2, the electronic device 100 shown in fig. 2 may include a first display area 102 and a second display area 103, and the first display area 102 and the second display area 103 may be relatively foldable.
Referring to fig. 3, fig. 3 is a flowchart illustrating a method for controlling content editing according to an embodiment of the present application. In a specific embodiment, the control method of content editing is applied to the display apparatus 400 of a virtual keyboard as shown in fig. 23 and the electronic device 100 (fig. 24) equipped with the control apparatus 400 of content editing. The following will describe a specific flow of the embodiment by taking an electronic device as an example, and it is understood that the electronic device applied in the embodiment may be a smart phone, a tablet computer, an electronic book, and the like, which is not limited herein. As will be described in detail with respect to the flow shown in fig. 3, the method for controlling content editing may specifically include the following steps:
step S110: displaying a content editing interface, wherein the content editing interface comprises a content editing area and a virtual keyboard area.
The content editing interface can be any interface capable of calling a virtual keyboard to input text. For example, when the electronic device runs a memo application, the content editing interface may be an editing interface of memo items of the memo, and when an input operation to the input area is detected, a virtual keyboard may be displayed in the editing interface of the memo items for a user to input by using the virtual keyboard; for another example, when the electronic device runs a chat application, the content editing interface may be a chat interface, and when an input operation for the input area is detected, the virtual keyboard may be displayed in the chat interface. Of course, the specific interface may not be limited.
In the embodiment of the application, the content editing interface comprises a content editing area and a virtual keyboard area, wherein the content editing area is used for displaying content to be edited, and the virtual keyboard area is used for displaying a virtual keyboard. The content to be edited may be text content, or may be image-text content, which is not limited herein; for example, referring to fig. 4, in a case where 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 for editing memo items, and a twenty-six-key keyboard is displayed in the virtual keyboard area A3, and of course, a specific keyboard type may not be limited.
Step S120: and responding to a first touch operation in the virtual keyboard area, and displaying a cursor control area in the virtual keyboard area, wherein the cursor control area comprises a first control area and a second control area.
In this embodiment, in a case where a content editing interface including a content editing area and a virtual keyboard area is displayed, the electronic device may detect an operation in the content editing interface, and in a case where a first touch operation in the virtual keyboard area is detected, display a cursor control area in the virtual keyboard area in response to the first touch operation in the virtual keyboard area, so that a user controls a cursor position in the content editing area through the cursor control area. It can be understood that, through the first touch operation in the virtual keyboard region, the display of the cursor control region is triggered, so that when a user holds the electronic device and edits content through the virtual keyboard, the display of the cursor control region can be triggered quickly, so that the user can control the cursor position in the content editing region through the cursor control region.
In some embodiments, the first touch operation may include touch operations at two different positions in the virtual keyboard region, that is, if the electronic device detects touch operations at two different positions at the same time, the display of the cursor control region in the virtual keyboard region may be triggered, and therefore, in a case that touch operations at two different positions are detected, the display of the cursor control region is triggered, so that the display of the cursor control region may be avoided from being triggered by mistake. Optionally, the two different touch positions may be positions of other areas in the virtual keyboard area except for the virtual keyboard keys, for example, an edge area of the virtual keyboard, and it can be understood that the situation of erroneous input caused by erroneous touch of the keys in the virtual keyboard when the user triggers the display of the cursor control area is avoided; optionally, the first touch operation and the second touch operation may also be operations in an area where virtual keys are located in a virtual keyboard area, at this time, two different touch positions include at least two virtual keys, that is, when a user performs the first touch operation at two different positions, at least two keys need to be touched at both positions, thereby avoiding the occurrence of the erroneous input.
In a possible implementation manner, the touch operations at the two different positions may be touch operations detected at the same time, that is, in a case where touch operations at different positions are detected at the same time, the cursor control area is displayed in the virtual keyboard area in response to the touch operations. The starting time of the touch operations at the two positions may be different, and only the touch operations at the two positions need to be detected at the same time, for example, the touch operation at one position may be performed before the touch operation at the other position.
In another possible implementation manner, the touch operations at the two different positions may also be touch operations detected at different times, that is, touch operations performed non-simultaneously. In this way, the time difference between the operation moments of the touch operations at the two positions may be smaller than the preset time interval, that is, in the preset time interval, if the touch operations at the two different positions performed at different times are detected, the cursor control area may 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 region, so that the display of the cursor control region is triggered only when the at least two touch operations at the same position are detected, and thus, the display of the cursor control region may be prevented from being triggered by mistake. In this embodiment, the at least two touch operations may be touch operations performed at the same position detected at different times, and the position may be a position area. The detected time difference between moments of two adjacent touch operations in the at least two touch operations may be smaller than a preset time interval.
In addition, in this embodiment, the touch positions of the at least two touch operations may also be positions of other areas in the virtual keyboard area except for the virtual keyboard keys; optionally, the at least two touch operations may also be operations in an area where a virtual key is located in a virtual keyboard area, where the touch area when the at least two touch operations are detected includes the at least two virtual keys, that is, when the user performs the at least two touch operations, the at least two keys are required to be touched, so as to avoid the occurrence of the erroneous input.
In some embodiments, the first touch operation may be a pressing operation or a sliding operation, and specifically, the operation type may not be limited, and only needs to be distinguished from an operation that triggers another function in the content editing interface.
In some implementations, a cursor control region displayed by an electronic device can include a first control region and a second control region. The first control area is used for controlling the movement of a cursor, and the second control area is used for selecting the content in the content editing area. In one possible approach, the first control area and the second control area may be a touch area for detecting a touch operation, for example, may be blank areas, so as to control a cursor in the content editing area or perform content selection according to the touch operation performed in the touch area. In another possible manner, the first control area may also be an area including a cursor control, and the second control area may be a blank area, for example, the first control area includes a control for controlling a cursor to move in four directions, i.e., up, down, left, and right, so as to control the cursor in the content editing area according to a touch operation on the control, that is, to implement control over an input position; selection of the content in the content editing area may be triggered according to a slide operation, a press operation, or the like of the second control area.
In some embodiments, when the electronic device displays the cursor control region, the electronic device can control the cursor control region to cover the virtual keyboard; when the electronic device displays the cursor control area, the virtual keyboard can be controlled to reduce the display width and be displayed on one side of the virtual keyboard area in the row direction, and the cursor control area can be displayed on the other side of the virtual keyboard area in the row direction. Of course, the specific display mode of the cursor control region may not be limited.
In some embodiments, the electronic device may further perform a feedback prompt to prompt the user to trigger the display of the cursor control region when the first touch operation in the virtual key region is detected. For example, when the electronic device responds to the first touch operation, a vibration prompt may be performed. It should be noted that this embodiment mode can also be applied to other embodiments.
It should be noted that, in the embodiment of the present application, a manner of triggering the cursor control region through the function control on the virtual keyboard may also be reserved, for example, if the electronic device detects a touch operation on a "toolbox" control on the virtual keyboard, a keyboard setting region may be displayed in the virtual keyboard region, where the keyboard setting region includes a cursor editing control, and when the touch operation on the cursor editing control is detected, the cursor control region is displayed in the virtual keyboard region in response to the touch operation.
Step S130: and if the second touch operation in the first control area is detected, controlling the cursor in the content editing area to move.
In the embodiment of the application, after the electronic device displays the cursor control region, an operation in the content editing interface may be detected, and when a second touch operation in the first control region of the cursor control region is detected, the cursor in the content editing region is controlled to move in response to the second touch operation, that is, a position where the cursor is located in the content displayed in the content editing region is controlled to change, so that an input position in the content editing region is changed, and thus, a problem of low control efficiency of the input position due to the fact that the cursor is directly moved in the content displayed in the content editing region can be avoided.
In some embodiments, in the case that the first control area is a touch area for detecting a touch operation, the electronic device may control the cursor to move in response to a sliding operation in the first control area; when the first control area is an area including a cursor control, the cursor in the content editing area may be controlled to move in response to a touch operation for the cursor control.
Step S140: and if the third touch operation in the second control area is detected, selecting the content in the content editing area as the content to be processed.
In the embodiment of the application, after the electronic device displays the cursor control area, when a third touch operation in the second control area of the cursor control area is detected, the content in the content editing area is selected in response to the third touch operation, and the selected content is used as the content to be processed, so that the problem of low content selection efficiency caused by direct cursor movement in the content editing area when the content is selected can be solved. The content in the content editing area may be text or graphic content, and is not limited herein.
In some embodiments, the third touch operation may be a sliding operation in the second control area, the content in the content editing area is controlled to be in an optional state by the sliding operation, the cursor is controlled to move according to the sliding operation, and the selected content is determined as the content to be processed from the content in the content editing area according to the movement of the cursor; the third touch operation may also be a pressing operation in the second control area, at this time, the electronic device may control the content in the content editing area to be in the selectable state according to the pressing operation, control the cursor to move based on the sliding operation in the first control area, and determine, according to the movement of the cursor, the selected content as the content to be processed from the content in the content editing area, that is, the electronic device determines the content that needs to be selected in the content editing area simultaneously according to the operations in the first control area and the second control area.
In some embodiments, the electronic device may perform timing after displaying the cursor control region, and if the operation for the cursor control region is not detected within a specified duration, the display of the cursor control region may be cancelled, so that the virtual keyboard is again presented in the virtual keyboard region for the user to perform keyboard input; the electronic device may also cancel the display of the cursor control region in response to a trigger operation for closing the control displayed in the cursor control region, so that the virtual keyboard is again presented in the virtual keyboard region for the user to perform keyboard input.
The control method for content editing provided by the embodiment of the application can quickly realize the display of the cursor control area, and can realize the control of the movement of the cursor and the selection of the content in the content editing area through the touch control operation of different areas in the cursor control area, thereby avoiding the problem of low efficiency when a user controls the cursor to move and selects the content due to the fact that a hand can shield part of the content when controlling the input position and selecting the content in the content editing area, further facilitating the user to control the input position and the selection of the content, and improving the efficiency of the user in editing the content.
Referring to fig. 5, fig. 5 is a flowchart illustrating a method for controlling content editing according to another embodiment of the present application. The content editing control method is applied to the electronic device, and will be described in detail with reference to the flow shown in fig. 5, and the content editing control method may specifically include the following steps:
step S210: displaying a content editing interface, wherein the content editing interface comprises a content editing area and a virtual keyboard area.
In the embodiment of the present application, step S210 may refer to the contents of the foregoing embodiments, which are not described herein again.
Step S220: in response to a first pressing operation performed at a first position and a second position in the virtual keyboard area at the same time, a cursor control area is displayed in the virtual keyboard area, wherein the first position and the second position are respectively close to two side boundaries of the virtual keyboard area in a specified direction, and the cursor control area comprises a first control area and a second control area.
In the embodiment of the present application, the touch operation for triggering display of the cursor control region may be a pressing operation at two different positions performed simultaneously, that is, a first pressing operation at a first position and a first pressing operation at a second position performed simultaneously. In addition, the first position and the second position are respectively close to two side boundaries of the virtual keyboard region in a designated direction, the designated direction may be a row direction of a row where keys of the virtual keyboard region are located, that is, the first position and the second position may be respectively edge regions of left and right sides of the virtual keyboard in the row direction. Therefore, when a user holds the electronic equipment by two hands, the display of the cursor control area can be triggered by simultaneously pressing the boundary areas on two sides of the virtual keyboard area in the row direction by two hands, and the display of the cursor control area can be triggered quickly and conveniently; in addition, the display of the cursor control area is triggered only when the pressing operation performed at the first position and the pressing operation performed at the second position are detected at the same time, so that the display of the cursor control area can be prevented from being triggered by mistake.
In a possible implementation manner, the first position and the second position may be positions close to the boundaries of the virtual keyboard region in the designated direction, where the non-virtual keys are located, that is, the first position and the second position are not only close to the boundaries of the virtual keyboard region in the designated direction, but also located at positions other than the positions where the virtual keys are located, so as to avoid a situation that the keys of the virtual keyboard are touched by mistake to cause a mistake in input.
In another possible embodiment, the first position and the second position may also be positions near the virtual key in the boundary of the virtual keyboard region in the designated direction, and the first position and the second position performed at the first position and the second position may include at least two virtual keys, that is, the first pressing operation is a pressing operation for at least two virtual keys at the first position and the second position.
For example, referring to fig. 6, when the electronic device detects pressing operations of a plurality of virtual keys in the key region on the first side of the virtual keyboard a4 in the row direction and pressing operations of a plurality of virtual keys in the key region on the second side of the virtual keyboard a4 in the row direction, the electronic device may trigger the cursor control region to be displayed in the virtual keyboard region A3.
In some embodiments, the first pressing operation may be a pressing operation that satisfies a preset pressing condition, that is, the electronic device may match the first pressing operation with the preset pressing condition in response to the first pressing operation at the first position and at the second position in the virtual keyboard region. And if the first pressing operation meets the preset pressing condition, displaying a cursor control area in the virtual keyboard area. Therefore, when the user holds the electronic device with both hands to edit the content, the display of the cursor control region is triggered only when the first pressing operation performed at the first position and the second position by both hands meets the preset pressing condition, so that the display of the cursor control region can be prevented from being triggered by mistake.
In one possible embodiment, the preset pressing condition may include: the pressing duration is greater than at least one of the preset duration, the pressing area is greater than the preset area, and the pressing force is greater than the preset force. As can be appreciated, the preset pressing condition may be that the pressing durations of the first pressing operations are all greater than a preset duration; the pressing areas of the first pressing operations may be larger than a preset area; the pressing force degrees of the first pressing operation can be larger than the preset force degree; the first pressing operation may also satisfy a plurality of conditions among the above conditions, for example, a pressing duration of the first pressing operation is longer than a preset duration, and the pressing strength is greater than a preset strength.
In a possible implementation manner, in the case that the electronic device detects that the pressing operation is performed at two different positions of the virtual keyboard region at the same time, the electronic device may further perform a feedback prompt to prompt the user that the display of the cursor control region is to be triggered. For example, the electronic device may perform a vibration prompt in response to a first pressing operation at a first position and a second position performed simultaneously.
In some embodiments, in response to the first touch operation in the virtual keyboard region, when the cursor control region is displayed in the virtual keyboard region, the electronic device may cover a part of or all of the cursor control region displayed in the virtual keyboard region, that is, the cursor control region completely covers the virtual keyboard region, or the cursor control region only covers part of the virtual keyboard region. The electronic device can control the cursor control area to be displayed on the upper layer of the virtual keyboard area in different layers, so that the cursor control area is covered on a partial area or all areas of the virtual keyboard area. For example, referring to fig. 7, when the electronic device displays the cursor control region a5, the cursor control region a5 may overlay the virtual keyboard in the virtual keyboard region A3 and retain the display of other content. This embodiment mode can be applied to other embodiments.
Step S230: and if the second touch operation in the first control area is detected, controlling the cursor in the content editing area to move.
Step S240: and if the third touch operation in the second control area is detected, selecting the content in the content editing area as the content to be processed.
In the embodiment of the present application, step S230 and step S240 may refer to contents of other embodiments, which are not described herein again.
According to the control method for content editing, the display of the cursor control area can be triggered by simultaneously pressing the two positions which are respectively close to the two side boundaries of the virtual keyboard area in the designated direction, when a user holds the electronic equipment and edits the content through the virtual keyboard, the display of the cursor control area can be rapidly triggered, so that the user can control the cursor position in the content editing area through the cursor control area and select the content, the content editing efficiency is improved, and the display of the cursor control area can be prevented from being triggered by mistake.
Referring to fig. 8, fig. 8 is a flowchart illustrating a method for controlling content editing according to another embodiment of the present application. The content editing control method is applied to the electronic device, and will be described in detail with respect to the flow shown in fig. 8, where the content editing control method may specifically include the following steps:
step S310: displaying a content editing interface, wherein the content editing interface comprises a content editing area and a virtual keyboard area.
In the embodiment of the present application, step S310 may refer to the contents of other embodiments, which are not described herein again.
Step S320: responding to first sliding operation at a third position and a fourth position in the virtual keyboard area, and displaying a cursor control area in the virtual keyboard area, wherein the third position and the fourth position are respectively close to two side boundaries of the virtual keyboard area in a specified direction, touch areas at initial positions of the first sliding operation and the second sliding operation respectively comprise at least two virtual keys, and the cursor control area comprises a first control area and a second control area.
In this embodiment of the application, the touch operation for triggering the cursor control area may be a sliding operation at two different positions, that is, a first sliding operation at a third position and a fourth position, where the third position and the fourth position are respectively close to two side boundaries of the virtual keyboard area in a specified direction, and the specified direction may be a row direction in which keys of the virtual keyboard area are located, that is, the third position and the fourth position may be edge areas on left and right sides of the virtual keyboard in the row direction. Therefore, when a user holds the electronic equipment with two hands, the display of the cursor control area can be triggered by sliding the two hands in the boundary areas on the two sides of the row direction of the virtual keyboard area, and the display of the cursor control area can be triggered quickly and conveniently; in addition, the display of the cursor control area is triggered only when the sliding operation performed at the third position and the fourth position is detected, so that the display of the cursor control area can be prevented from being triggered by mistake. The touch control area related to the sliding operation is relatively large in pressing operation, so that the first sliding operation is the sliding operation of the area where the virtual keys in the virtual keyboard are located, the touch control area at the initial position of the first sliding operation comprises at least two virtual keys, and when a user starts to perform the first sliding operation at the third position and the fourth position, at least two virtual keys are touched simultaneously, and therefore operation of the virtual keys is prevented from being triggered by mistake, and keyboard input is prevented from being triggered by mistake.
In some embodiments, if the electronic device detects that touch is performed on at least two virtual keys, the touch operation on the virtual keys in the process of starting sliding from the touch position can be ignored, and thus, the keyboard input can be prevented from being triggered by mistake in the sliding process.
In one possible embodiment, the first sliding operation may be a sliding operation detected at the same time, that is, in a case where the first sliding operation at the third position and the fourth position is detected at the same time, the cursor control area is displayed in the virtual keyboard area in response to the first sliding operation. The starting time of the sliding operation at the third position and the starting time of the sliding operation at the fourth position may be different, and only the moving operation at the third position and the moving operation at the fourth position need to be detected at the same time.
Optionally, the third position may be a position of a virtual key in a key area of a first side boundary in the row direction in the virtual keyboard, and the fourth position may be a position of a virtual key in a key area of a second side boundary in the row direction in the virtual keyboard, so that when a user holds the electronic device with both hands, the user can simultaneously perform a sliding operation in boundary areas on both sides of the row direction in the virtual keyboard area by both hands to trigger the display of the cursor control area.
In another possible embodiment, the sliding operations at the third position and the fourth position may be sliding operations detected at different times, that is, sliding operations performed non-simultaneously. In this manner, a time difference between the time when the sliding operation at the third position is detected and the time when the sliding operation at the fourth position is detected may be smaller than a preset time interval, that is, in the preset time interval, when the sliding operation at the third position and the sliding operation at the fourth position performed at different times are detected, the cursor control region may be displayed in the virtual keyboard region. Similarly, the sliding operation at the third position may be performed before the sliding operation at the fourth position, or the sliding operation at the fourth position may be performed before the sliding operation at the third position, and it is only required to ensure that the time interval between the detection of the third position and the sliding operation at the fourth position is less than the preset time interval.
In some embodiments, the first sliding operation may be a sliding operation that satisfies a preset sliding condition, that is, in response to the first sliding operation at the third position and the fourth position in the virtual keyboard region, the electronic device may match the first sliding operation with the preset sliding condition, determine whether the first sliding operation satisfies the preset sliding condition, and display the cursor control region in the virtual keyboard region if the first sliding operation satisfies the preset sliding condition. Therefore, when the user holds the electronic device to edit the content, the display of the cursor control region is triggered only when the first sliding operations performed at the third position and the fourth position by using the two hands meet the preset sliding condition, so that the display of the cursor control region can be prevented from being triggered by mistake.
In one possible embodiment, the preset sliding condition may include: the sliding length is greater than at least one of the preset length, the sliding direction is the preset sliding direction, and the sliding track meets the preset sliding track. It is to be understood that the preset slide condition may be that the slide length of the first slide operation is greater than a preset length; the sliding direction of the first sliding operation can also be a preset sliding direction; the sliding track of the first sliding operation can also meet the preset sliding track; the first sliding operation may also satisfy a plurality of conditions among the above sliding conditions, for example, the sliding length of the first sliding operation is longer than a preset length, and the sliding direction is a preset sliding direction.
Step S330: and if the second touch operation in the first control area is detected, controlling the cursor in the content editing area to move.
Step S340: and if the third touch operation in the second control area is detected, selecting the content in the content editing area as the content to be processed.
In the embodiment of the present application, step S330 and step S340 may refer to the contents of other embodiments, and are not described herein again.
According to the control method for content editing, the display of the cursor control area can be triggered by sliding operation in the key areas respectively close to the boundaries of the two sides of the virtual keyboard area in the designated direction, so that when a user holds the electronic equipment and edits content through the virtual keyboard, the display of the cursor control area can be triggered quickly, the user can control the cursor position in the content editing area through the cursor control area and select the content, the content editing efficiency is improved, and the display of the cursor control area can be prevented from being triggered mistakenly.
Referring to fig. 9, fig. 9 is a schematic flowchart illustrating a control method for content editing according to still another embodiment of the present application. The content editing control method is applied to the electronic device, and will be described in detail with respect to the flow shown in fig. 9, where the content editing control method may specifically include the following steps:
step S410: displaying a content editing interface, wherein the content editing interface comprises a content editing area and a virtual keyboard area.
In the embodiment of the present application, step S410 may refer to the contents of the foregoing embodiments, and is not described herein again.
Step S420: and responding to a first touch operation in the virtual keyboard area, and displaying a cursor control area in the virtual keyboard area, wherein the cursor control area comprises a first control area and a second control area.
In some embodiments, when the electronic device displays the cursor control region, the cursor control region may be controlled to cover a virtual keyboard in the virtual keyboard region, and the first control region may be displayed on one side of the region where the virtual keyboard is located, and the second control region may be displayed on the other side of the region where the virtual keyboard is located. The cursor control area formed by 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 herein.
Optionally, a first prompt message may be displayed in the first control area, a second prompt message may be displayed in the second control area, the first prompt message is used to prompt that the first control area can control the movement of the cursor, and the second prompt message is used to prompt that the second control area can select the content.
For example, referring to fig. 10, when the electronic device displays the cursor control region a5, the cursor control region a5 may cover a virtual keyboard in the virtual keyboard region A3 and keep displaying other content, the cursor control region a5 may include a first control region a6 and a second control region a7, the first control region a6 displays a first prompt message "move cursor", the second control region a7 displays a second prompt message "select content", the first control region a6 may be located on the left side of the region where the original virtual keyboard is located, and the second control region a7 may be located on the right side of the region where the original virtual keyboard is located; for another example, referring to fig. 11, the first control area a6 may be located on the right side of the area where the original virtual keyboard is located, and the second control area a7 may be located on the left side of the area where the original virtual keyboard is located.
In some embodiments, the display widths of the first control region and the second control region may be adjusted. The electronic device may adjust the display width of the first control region and/or the second control region in response to a resizing operation for the cursor control region in order to meet the user's needs. Optionally, the electronic device may control the cursor control region to enter an editable state in response to an editing operation on the cursor control region, so that the user may adjust the display width of the cursor control region.
In one possible implementation manner, 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 may be displayed on the other side of the area where the virtual keyboard is located in the row direction, that is, one of the first control area and the second control area is displayed on the left side of the area where the virtual keyboard is located, and the other control area is displayed on the right side of the area where the virtual keyboard is located. In this case, in consideration of the operation convenience when the user holds the electronic apparatus with both hands, the side of the first control region and the second control region in the row direction away from the edge of the screen may be controlled to be stretched to change the display widths of the first control region and the second control region. That is, the display width of the first control area can be controlled to change in response to the resizing operation for the first control area, 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; this may also be the case for the adjustment of the display width of the second control area.
For example, referring to fig. 12, in a case where the first control area a6 is located at the left side of the cursor control area a5, and the second control area a7 is located at the right side of the cursor control area a5, after the cursor control area a5 is controlled to be in an editable state, the first adjustment control A8 may be displayed at an edge position of the first control area a6 in the middle area, and similarly, the second adjustment control a9 may be displayed at an edge position of the second control area a7 in the middle area; referring to fig. 13, after the leftward sliding operation of the first adjustment control A8 is detected, the edge of the first control area a6 in the middle area may be controlled to move leftward, and similarly, after the rightward sliding operation of the second adjustment control a9 is detected, the edge of the second control area a7 in the middle area may be controlled to move rightward, so that the display widths of the first control area a6 and the second control area a7 may be reduced, and the first control area a6 and the second control area a7 may be kept displayed on one side of the virtual key area, so that the user may more easily perform a touch operation in the first control area a6 and the second control area a 7.
Step S430: and if the second sliding operation in the first control area is detected, controlling the cursor in the content editing area to move along with the second sliding operation.
In the embodiment of the application, when the electronic device controls the cursor in the content editing area to move in response to the touch operation in the cursor control area, since the first control area is used for controlling the movement of the cursor, when the sliding operation in the first control area is detected, the electronic device can control the cursor in the content editing area to slide along with the sliding operation in response to the sliding operation in the first control area.
In some embodiments, the electronic device controls the cursor in the content editing region to move according to the sliding direction and the sliding distance of the third sliding operation in response to the second sliding operation in the first control region. The moving direction of the cursor may be the same as the sliding direction, for example, if the sliding direction is horizontal to the right, the cursor is controlled to slide to the right, and if the sliding direction is vertical to the downward, the cursor is controlled to move downward; the number of characters moved by the cursor can be positively correlated with the sliding distance, i.e., the larger the sliding distance is, the larger the number of characters moved by the cursor is. Therefore, the user can feel the same effect of moving the cursor in the content of the content editing area, and the use experience of the user is improved.
In a possible implementation manner, 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, so that it is not necessary to control the cursor to move to a desired position until the sliding distance of the cursor is consistent with the distance between the characters as in the case of directly moving the cursor in the content editing area, so that a user may 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 moving distance of the cursor in the content editing area, after the sliding operation has slid to the edge position of the first control area, the cursor may not have moved to the position required by the user. That is, after the sliding operation slides to the edge position of the first control area, the user may end the sliding operation and perform the same sliding operation on the first control area again until the cursor moves to the position desired by the user.
In other embodiments, the electronic device controls the cursor in the content editing region to move according to the sliding direction and the sliding speed of the second sliding operation in response to the second sliding operation in the first control region. Wherein, 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, i.e. the larger the sliding speed is, the larger the number of characters moved by the cursor is. Therefore, the user can feel the same effect of moving the cursor in the content of the content editing area, and the use experience of the user is improved.
Step S440: and if the third touch operation in the second control area is detected, selecting the content in the content editing area as the content to be processed.
In some embodiments, the electronic device may select the content of the content editing area as the content to be processed solely in response to the sliding operation in the second control area. The electronic equipment can respond to a third sliding operation in the second control area, and the cursor in the content editing area is controlled to move along with the third sliding operation; acquiring a cursor position before the cursor moves along with the third sliding operation as a first cursor position, and acquiring a cursor position after the cursor moves along with the third sliding operation as a second cursor position; and acquiring the content between the first cursor position and the second cursor position from the content editing area as the content to be processed. That is to say, the position of the cursor 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 is ended is used as the end point of the content to be selected, so that the starting point and the end point can form the content range to be selected, and the content to be processed can be determined according to the content range.
In this embodiment, prompt messages may be displayed in the first control area and the second control area to prompt the user about the functions of the first control area and the second control area and the operation modes for implementing the corresponding functions. For example, referring to fig. 14, when the first control area a6 is displayed on the left side of the cursor control area a5 and the second control area a7 is displayed on the right side of the cursor control area a5, the first control area a6 may display the prompt information "slide finger, select cursor" and the second control area a7 may display "slide finger, select content".
In other embodiments, the electronic device individually 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, or, if a fourth sliding operation in the second control area is detected, controls a cursor in the content editing area to move along with the fourth sliding operation; and acquiring the content matched with the movement track of the cursor from the content editing area as the content to be processed. Different from the foregoing embodiment, the content passed by the cursor moving process may be determined according to the moving track of the cursor, and the determined content is used as the content to be processed.
In other embodiments, the electronic device may also select the content of the content editing area as the content to be processed according to the combined touch operation in the first control area and the second control area. The electronic equipment can respond to the fifth sliding operation in the first control area and the second pressing operation in the second control area, and the content in the content editing area can be selected as the content to be processed.
In one possible embodiment, the fifth sliding operation and the second pressing operation may be simultaneous operations. That is, in the case where 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 one possible embodiment, the second pressing operation may be a pressing operation that satisfies a corresponding pressing condition. For example, the pressing duration of the second pressing operation may be longer than the target duration, so that in the case that the user presses the second control area for a long time and slides in the first control area, the selection of the content editing area may be realized.
In one possible implementation, the electronic device may control the cursor in the content editing area to move with a fifth sliding operation in response to the fifth sliding operation in the first control area and the second pressing operation in the second control area; acquiring a cursor position before the cursor moves along with a fifth sliding operation as a third cursor position, and acquiring a cursor position after the cursor moves along with the fifth sliding operation as a fourth cursor position; and acquiring the content between the first cursor position and the second cursor position from the content editing area as the content to be processed. That is, 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 is finished is used as the end point of the content to be selected, so that the starting point and the end point can form the content range to be selected, and the content to be processed can be determined according to the content range. Of course, in this mode, as in the above-described embodiment, the content to be processed may be determined according to the movement trajectory of the cursor.
In one possible implementation, the electronic device may display first prompt information in the first control area, where the first prompt information is used to prompt the first control area for cursor movement and an operation mode of the cursor movement; and displaying second prompt information in the second control area, wherein the second prompt information is used for prompting the second control area to select the content and the operation mode of the selected content. For example, referring to fig. 15, when the first control area a6 is displayed on the right side of the cursor control area a5 and the second control area a7 is displayed on the left side of the cursor control area a5, the first control area a6 may display the prompt information "slide finger, select cursor" and the second control area a7 may display "long-press finger, select content".
In still other embodiments, when content selection is implemented in conjunction with operations in the first control area and the second control area, the electronic device may also select content in the content editing area as the content to be processed in response to a third pressing operation in the first control area and a sixth sliding operation in the second control area. Therefore, the user can select the content in the content editing area by pressing the content in the first control area and matching with the sliding operation in the second control area. As in the foregoing embodiment, the electronic device may also control the cursor to move based on the sixth sliding operation, and determine the content to be processed according to the position where the cursor is located before moving and the position where the cursor is located after moving, or may determine the content to be processed according to the moving track of the cursor.
In still other embodiments, if the electronic device displays the cursor control region in response to a first pressing operation performed simultaneously at a first position and a second position in the virtual keyboard region, the first control region may be displayed at the first position and the second control region may be displayed at the second position; also, the movement of the cursor may be controlled in accordance with the sliding operation in the first control region in a case where the pressing operation hold at the second position is detected; in addition, in a case where the pressing operation hold at the first position is detected, the selection of the content is performed in accordance with the sliding operation in the second control area. Therefore, the display of the cursor control area can be conveniently triggered when the user holds the electronic equipment by two hands, and the movement of the cursor and the selection of the content are controlled based on the cursor control area. The content of the foregoing embodiment may be referred to in a manner that the electronic device responds to a first pressing operation performed at the first position and the second position in the virtual keyboard region at the same time, and details of the manner in which the electronic device displays the cursor control region in the virtual keyboard region are not repeated herein.
Of course, in this embodiment, if the second control region is displayed at the first position and the first control region is displayed at the second position, the movement of the cursor can be controlled in accordance with the sliding operation in the second control region when the holding of the pressing operation at the second position is detected; in addition, in a case where the pressing operation hold at the first position is detected, the selection of the content is performed in accordance with the sliding operation in the first control area.
It can be understood that, in the above embodiment, after the display of the cursor control region is triggered by the pressing operation at different positions performed simultaneously, one of the pressing operations can be maintained, and the movement of the cursor and the selection of the content can be realized according to the other sliding operation, so that the control of the cursor and the selection of the content are more convenient, and the whole control process is more continuous.
In this embodiment, alternatively, in the case where it is detected that both the pressing operation at the first position and the pressing operation at the second position are not held, the display of the cursor control region may be canceled, that is, in the case where the display of the cursor control region is triggered by the first pressing operation at the first position and the second position, the display of the cursor control region may be canceled as long as it is detected that both the pressing operations are not held. For example, after the user holds the pressing operation at one of the positions and performs the movement of the cursor or the selection of the content by another sliding operation, the held pressing operation may be cancelled, so that the display of the cursor control region is cancelled, and the virtual keyboard is presented in the virtual keyboard region.
Step S450: and responding to the triggering operation aiming at the processing control, and correspondingly processing the content to be processed.
In the embodiment of the application, a processing control is further displayed in the cursor control area, and the processing control is used for triggering corresponding processing on the content to be processed; after the electronic device obtains the content to be processed, if the triggering operation for the processing control is detected, the content to be processed can be correspondingly processed. The triggering operation on the processing control may be a click operation, a long-time press operation, or the like, and the specific operation may not be limited.
In some embodiments, the processing of the content to be processed may include: copying, pasting, cutting, intelligent identification and the like. Of course, the processing of the specific content to be processed is not limited thereto.
For example, referring to fig. 16, a copy control corresponding to a copy function, a paste control corresponding to a paste function, a cut control corresponding to a cut function, and an intelligent recognition control corresponding to an intelligent recognition function may be displayed at the bottom of the cursor control area a 5; referring to fig. 17, if a click operation corresponding to the copy control is detected, the content to be processed may be copied, and a prompt content may be displayed to prompt that the selected content has been stored in the clipboard; referring to fig. 18, if a click operation corresponding to the paste control is detected, a closest piece of content in the clipboard may be pasted; referring to fig. 19, if a click operation corresponding to the clipping control is detected, the content to be processed may be clipped, and the prompt content may be displayed to prompt that the selected content has been stored in the clipboard; referring to fig. 20, if a click operation corresponding to the intelligent recognition control is detected, the content to be processed may be intelligently recognized, and the specific intelligent recognition may be recognizing a term. Of course, the intelligent identification may also be information such as identification address and telephone, and the specific identification may not be limited.
In some embodiments, the electronic device may provide two cursor control modes for the above-mentioned manner of selecting content according to the sliding operation of the second control region alone and the manner of selecting content according to the operation in the first control region and the second control region in combination, and the electronic device may display the cursor control region according to the cursor control mode selected by the user. For example, referring to fig. 21, in the virtual keyboard area, a control corresponding to "mode one" and a control corresponding to "mode two" of the cursor control mode may be displayed, when "mode one" is selected, the first control 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 the prompt information of "finger sliding, cursor selection", and the second control area a7 displays "finger sliding, content selection", that is, the electronic device may control the cursor to move according to the sliding operation in the first control area a6, and select the content in the content editing area according to the sliding operation in the second control area a 7; referring to fig. 22, when the "mode two" is selected, the first control area a6 is displayed on the right side of the cursor control area a5, 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 information of "finger sliding, select cursor", and the second control area a7 displays the "finger long pressing, 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 can select the content in the content editing area according to the long pressing operation in the second control area a7 and the sliding operation in the first control area a 6. Of course, in the above example, the display positions of the first control region a6 and the second control region a7 are not limited, and the first control region may be displayed on the left side of the cursor control region or on the right side of the cursor control region. Therefore, the user requirements of different use habits can be met, and the use experience of the user is improved.
According to the control method for content editing, the display of the cursor control area can be triggered through touch operation in the virtual keyboard area, when a user holds the electronic device and edits content through the virtual keyboard, the display of the cursor control area can be rapidly triggered, based on the first control area and the second control area in the displayed cursor control area, the movement of a cursor and the selection of the content in the content editing area can be achieved, the content editing efficiency is improved, the selected content to be processed can be further processed correspondingly, and the editing requirements of the user are better met.
Referring to fig. 23, a block diagram of a control apparatus 400 for content editing according to an embodiment of the present application is shown. The control apparatus 400 for content editing uses the above-described electronic device, and the control apparatus 400 for content editing 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 configured to display a content editing interface, where the content editing interface includes a content editing area and a virtual keyboard area; the area display module 420 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 430 is configured to control a cursor in the content editing area to move if the second touch operation in the first control area is detected; the content selecting module 440 is configured to select 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.
In some embodiments, the region display module 420 may be specifically configured to: and in response to a first pressing operation performed at a first position and a second position in the virtual keyboard area at the same time, displaying a cursor control area in the virtual keyboard area, wherein the first position and the second position are respectively close to two side boundaries of the virtual keyboard area in a specified direction.
In a possible implementation, the area display module 420 may be further specifically configured to: responding to a first pressing operation performed at a first position and a second position in the virtual keyboard area at the same time, and matching the first pressing operation with a preset pressing condition; and if the first pressing operation meets a preset pressing condition, displaying a cursor control area in the virtual keyboard area.
Optionally, the preset pressing condition includes: the pressing duration is greater than at least one of the preset duration, the pressing area is greater than the preset area, and the pressing force is greater than the preset force.
In some embodiments, the region display module 420 may be specifically configured to: responding to first sliding operations at a third position and a fourth position in the virtual keyboard area, and displaying a 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 two side boundaries of the virtual keyboard area in a specified direction, and touch areas at initial positions of the first sliding operation and the second sliding operation respectively comprise at least two virtual keys.
In a possible implementation, the area display module 420 may be further specifically configured to: responding to a first sliding operation at a third position and a fourth position in the virtual keyboard area, and matching the first sliding operation with a preset sliding condition; and if the first sliding operation meets a preset sliding condition, displaying a cursor control area in the virtual keyboard area.
In some embodiments, the cursor control module 430 may be specifically configured to: and if the second sliding operation in the first control area is detected, controlling the cursor in the content editing area to move along with the second sliding operation.
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, controlling a cursor in the content editing area to move along with the third sliding operation; acquiring a cursor position before the cursor moves along with the third sliding operation as a first cursor position, and acquiring a cursor position after the cursor moves along with the third sliding operation as a second cursor position; and acquiring the content between the first cursor position and the second cursor position from the content editing area as the content to be processed.
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, controlling a cursor in the content editing area to move along with the fourth sliding operation; and acquiring the content matched with the movement track of the cursor from the content editing area as the content to be processed.
In some further embodiments, the content selecting 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, controlling a cursor in the content editing area to move along with the fifth sliding operation; acquiring a cursor position before the cursor moves along with the fifth sliding operation as a third cursor position, and acquiring a cursor position after the cursor moves along with the fifth sliding operation as a fourth cursor position; and acquiring the content between the third cursor position and the fourth cursor position from the content editing area as the content to be processed.
Optionally, a processing control is further included in the cursor control region. The control means 400 of the cursor position may also comprise a content processing module. The content processing module is configured to, after the content in the content editing area is selected as the content to be processed if the third touch operation in the second control area is detected, perform corresponding processing on the content to be processed in response to a trigger operation for the processing control.
In some embodiments, the region display module 420 may be specifically configured to: and responding to a first touch operation in the virtual keyboard area, and displaying a cursor control area in a covering mode in a partial area or a whole area of the virtual keyboard area.
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working processes of the above-described devices and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other type of coupling.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
To sum up, according to the scheme provided by the application, a cursor control area is displayed in a virtual keyboard area by responding to a first touch operation in the virtual keyboard area of a content editing interface, and the cursor control area includes a first control area and a second control area. Therefore, the display of the cursor control area can be triggered quickly, the cursor in the content editing area can be controlled to move and select the content through touch control operation of different areas in the cursor control area, the problem that the efficiency is low when a user controls the cursor to move and select the content due to the fact that a hand can shield part of the content when the cursor is controlled to input the position and select the content in the content editing area can be avoided, the user can conveniently control the input position and select the content, and the content editing efficiency of the user is improved.
Referring to fig. 24, a block diagram of an electronic device according to an embodiment of the present application is shown. The electronic device 100 may be a smart phone, a tablet computer, an electronic book, or other electronic devices capable of running an application. The electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and one or more applications, wherein the one or more applications may be stored in the memory 120 and configured to be executed by the one or more processors 110, the one or more applications configured to perform the methods as described in the aforementioned method embodiments.
Processor 110 may include one or more processing cores. The processor 110 connects various parts within the overall electronic device 100 using various interfaces and lines, and performs various functions of the electronic device 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 120 and calling data stored in the memory 120. Alternatively, the processor 110 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 110 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 110, but may be implemented by a communication chip.
The Memory 120 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 120 may be used to store instructions, programs, code sets, or instruction sets. The memory 120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The data storage area may also store data created by the electronic device 100 during use (e.g., phone book, audio-video data, chat log data), and the like.
Referring to fig. 25, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable medium 800 has stored therein a program code that can be called by a processor to execute the method described in the above-described method embodiments.
The computer-readable storage medium 800 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 800 includes a non-volatile computer-readable storage medium. The computer readable storage medium 800 has storage space for program code 810 to perform any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 810 may be compressed, for example, in a suitable form.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (15)

1. A control method for content editing, which is applied to an electronic device, the method comprising:
displaying a content editing interface, wherein the content editing interface comprises a content editing area and a virtual keyboard area;
responding to a first touch operation in the virtual keyboard area, and displaying a cursor control area in the virtual keyboard area, wherein the cursor control area comprises a first control area and a second control area;
if the second touch operation in the first control area is detected, controlling a cursor in the content editing area to move;
and if the third touch operation in the second control area is detected, selecting the content in the content editing area as the content to be processed.
2. The method of claim 1, wherein the displaying a cursor control area in the virtual keyboard area in response to the first touch operation in the virtual keyboard area comprises:
and in response to a first pressing operation performed at a first position and a second position in the virtual keyboard area at the same time, displaying a cursor control area in the virtual keyboard area, wherein the first position and the second position are respectively close to two side boundaries of the virtual keyboard area in a specified direction.
3. The method of claim 2, wherein displaying a cursor control area in the virtual keyboard region in response to a first press operation performed simultaneously at a first location and a second location in the virtual keyboard region comprises:
responding to a first pressing operation performed at a first position and a second position in the virtual keyboard area at the same time, and matching the first pressing operation with a preset pressing condition;
and if the first pressing operation meets a preset pressing condition, displaying a cursor control area in the virtual keyboard area.
4. The method of claim 3, wherein the preset pressing conditions comprise:
the pressing duration is greater than at least one of the preset duration, the pressing area is greater than the preset area, and the pressing force is greater than the preset force.
5. The method of claim 1, wherein the displaying a cursor control area in the virtual keyboard area in response to the first touch operation in the virtual keyboard area comprises:
responding to first sliding operations at a third position and a fourth position in the virtual keyboard area, and displaying a 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 two side boundaries of the virtual keyboard area in a specified direction, and touch areas at initial positions of the first sliding operation and the second sliding operation respectively comprise at least two virtual keys.
6. The method of claim 5, wherein the displaying a cursor control area in the virtual keyboard area in response to a first sliding operation at a third location and a fourth location in the virtual keyboard area comprises:
responding to a first sliding operation at a third position and a fourth position in the virtual keyboard area, and matching the first sliding operation with a preset sliding condition;
and if the first sliding operation meets a preset sliding condition, displaying a cursor control area in the virtual keyboard area.
7. The method according to any one of claims 1 to 6, wherein the controlling the cursor in the content editing area to move if the second touch operation in the first control area is detected comprises:
and if the second sliding operation in the first control area is detected, controlling the cursor in the content editing area to move along with the second sliding operation.
8. The method according to any one of claims 1 to 6, wherein the 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 comprises:
if a third sliding operation in the second control area is detected, controlling a cursor in the content editing area to move along with the third sliding operation;
acquiring a cursor position before the cursor moves along with the third sliding operation as a first cursor position, and acquiring a cursor position after the cursor moves along with the third sliding operation as a second cursor position;
and acquiring the content between the first cursor position and the second cursor position from the content editing area as the content to be processed.
9. The method according to any one of claims 1 to 6, wherein the 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 comprises:
if a fourth sliding operation in the second control area is detected, controlling a cursor in the content editing area to move along with the fourth sliding operation;
and acquiring the content matched with the movement track of the cursor from the content editing area as the content to be processed.
10. The method according to any one of claims 1 to 6, wherein the 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 comprises:
if a fifth sliding operation in the first control area and a second pressing operation in the second control area are detected, controlling a cursor in the content editing area to move along with the fifth sliding operation;
acquiring a cursor position before the cursor moves along with the fifth sliding operation as a third cursor position, and acquiring a cursor position after the cursor moves along with the fifth sliding operation as a fourth cursor position;
and acquiring the content between the third cursor position and the fourth cursor position from the content editing area as the content to be processed.
11. The method according to any one of claims 1 to 6, wherein the cursor control region further includes a processing control, and after the selecting, if the third touch operation in the second control region is detected, the content in the content editing region as the content to be processed, the method further includes:
and responding to the trigger operation aiming at the processing control, and correspondingly processing the content to be processed.
12. The method of any of claims 1-6, wherein the displaying a cursor control area in the virtual keyboard area in response to the first touch operation in the virtual keyboard area comprises:
and responding to a first touch operation in the virtual keyboard area, and displaying a cursor control area in a covering mode in a partial area or a whole area of the virtual keyboard area.
13. A control device for content editing, which is applied to an electronic device, the device comprising: an interface display module, a region display module, a cursor control module and a content selection module, wherein,
the interface display module is used for displaying a content editing interface, and the content editing interface comprises a content editing area and a virtual keyboard area;
the area display module is used for responding to a first touch operation in the virtual keyboard area and displaying a cursor control area in the virtual keyboard area, wherein the cursor control area comprises a first control area and a second control area;
the cursor control module is used for controlling a cursor in the content editing area to move if a second touch operation in the first control area is detected;
the content selecting module is used for 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.
14. An electronic device, comprising:
one or more processors;
a memory;
one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of any of claims 1-12.
15. A computer-readable storage medium, having stored thereon program code that can be invoked by a processor to perform the method according to any one of claims 1 to 12.
CN202210564732.8A 2022-05-23 2022-05-23 Content editing control method and device, electronic equipment and storage medium Pending CN114860149A (en)

Priority Applications (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
PCT/CN2022/141625 WO2023226422A1 (en) 2022-05-23 2022-12-23 Content editing control method and apparatus, electronic device, and storage medium

Applications Claiming Priority (1)

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

Publications (1)

Publication Number Publication Date
CN114860149A true CN114860149A (en) 2022-08-05

Family

ID=82639767

Family Applications (1)

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

Country Status (2)

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

Cited By (1)

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

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103136180A (en) * 2013-02-25 2013-06-05 北京极兴莱博信息科技有限公司 Text segment copying and pasting method and device and terminal for implementing same
CN103150093A (en) * 2013-02-25 2013-06-12 北京极兴莱博信息科技有限公司 Operation prompt identifier moving method, device and terminal
US20150268854A1 (en) * 2014-03-20 2015-09-24 Lg Electronics Inc. Mobile terminal and control method thereof
CN108762654A (en) * 2018-05-15 2018-11-06 Oppo(重庆)智能科技有限公司 Method, apparatus, terminal and the computer readable storage medium of text editing
CN113821134A (en) * 2017-09-05 2021-12-21 华为终端有限公司 Method for controlling cursor movement, content selection method, method for controlling page scrolling and electronic equipment

Family Cites Families (3)

* 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
CN109917973B (en) * 2019-03-12 2021-08-27 广州朗国电子科技有限公司 Touch method and system based on electronic whiteboard equipment and touch equipment
CN114860149A (en) * 2022-05-23 2022-08-05 Oppo广东移动通信有限公司 Content editing control method and device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103136180A (en) * 2013-02-25 2013-06-05 北京极兴莱博信息科技有限公司 Text segment copying and pasting method and device and terminal for implementing same
CN103150093A (en) * 2013-02-25 2013-06-12 北京极兴莱博信息科技有限公司 Operation prompt identifier moving method, device and terminal
US20150268854A1 (en) * 2014-03-20 2015-09-24 Lg Electronics Inc. Mobile terminal and control method 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
CN108762654A (en) * 2018-05-15 2018-11-06 Oppo(重庆)智能科技有限公司 Method, apparatus, terminal and the computer readable storage medium of text editing

Cited By (1)

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

Also Published As

Publication number Publication date
WO2023226422A1 (en) 2023-11-30

Similar Documents

Publication Publication Date Title
US11487426B2 (en) Apparatus and method for cursor control and text selection and editing based on gesture-based touch inputs received in a virtual keyboard display area
US11650716B2 (en) Operation methods of a smart interactive tablet, storage medium and related equipment
WO2022001472A1 (en) Display method and apparatus, electronic device, and storage medium
JP5094158B2 (en) Terminal and control method of terminal with touch screen
KR101862123B1 (en) Input device and method on terminal equipment having a touch module
CN110531920B (en) Display method and device of sidebar, terminal and storage medium
US9400567B2 (en) Explicit touch selection and cursor placement
CN105302784B (en) Method and system for copying/cutting and pasting data
JP2021508881A (en) Icon management method and equipment
US9990109B2 (en) Information display terminal
CN112148170B (en) Desktop element adjusting method and device and electronic equipment
US20120289290A1 (en) Transferring objects between application windows displayed on mobile terminal
KR20140136500A (en) Touch screen hover input handling
CN118113204A (en) Long screen capturing method, device, terminal and storage medium
CN111061409A (en) Function triggering method and device, electronic equipment and storage medium
KR20150005436A (en) Editing device and storage medium for storing editing program
CN110568990B (en) Screen splitting method and device, electronic equipment and storage medium
CN115357158A (en) Message processing method and device, electronic equipment and storage medium
WO2023226422A1 (en) Content editing control method and apparatus, electronic device, and storage medium
CN107544740B (en) Application processing method and device, storage medium and electronic equipment
CN115640782A (en) Method, device, equipment and storage medium for document demonstration
CN113436297A (en) Picture processing method and electronic equipment
CN113835578A (en) Display method and device and electronic equipment
KR101418922B1 (en) Method and apparatus for controlling plural objects
JP2014071755A (en) Editing device and method for controlling editing device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination