WO2021136183A1 - Paste control method and electronic device - Google Patents

Paste control method and electronic device Download PDF

Info

Publication number
WO2021136183A1
WO2021136183A1 PCT/CN2020/140191 CN2020140191W WO2021136183A1 WO 2021136183 A1 WO2021136183 A1 WO 2021136183A1 CN 2020140191 W CN2020140191 W CN 2020140191W WO 2021136183 A1 WO2021136183 A1 WO 2021136183A1
Authority
WO
WIPO (PCT)
Prior art keywords
content
input
application
electronic device
user
Prior art date
Application number
PCT/CN2020/140191
Other languages
French (fr)
Chinese (zh)
Inventor
周斌
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2021136183A1 publication Critical patent/WO2021136183A1/en

Links

Images

Classifications

    • 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/543User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • the embodiment of the present invention relates to the field of communication technology, and in particular to a sticking control method and electronic equipment.
  • the user can trigger the electronic device to execute the copy and paste function to complete the operation of copying and pasting text.
  • the user can first trigger the electronic device to select the text content, and then the user can click the copy control to trigger the electronic device to copy the text content.
  • the user can trigger the electronic device to display the interface where the input box is located, and trigger the electronic device to move the cursor to the input box, and long press the input box to trigger the electronic device to display the paste control, and then the user can click the paste control to trigger the electronic device in
  • the text content is displayed in the input box, so that the operation of copying and pasting the text content into the input box can be completed.
  • the embodiments of the present invention provide a paste control method and an electronic device, so as to solve the problem that the copy and paste process of the electronic device is complicated and time-consuming, and the human-computer interaction performance is poor.
  • an embodiment of the present invention provides a paste control method, which is applied to an electronic device, and the method includes: receiving a first input from a user when a first interface is displayed; and in response to the first input, Set the first content in the first interface as the content to be pasted corresponding to the target application; and receive a second input from the user; and in response to the second input, display the content to be pasted corresponding to the target application on the second interface And receiving the user's third input of the first content in the content to be pasted; and in response to the third input, displaying the first content in the target input area.
  • the content to be pasted includes the first content.
  • an embodiment of the present invention provides an electronic device that includes a receiving module, a processing module, and a display module.
  • the receiving module is used to receive the first input of the user when the first interface is displayed;
  • the processing module is used to set the first content in the first interface to be in response to the first input received by the receiving module.
  • the content to be pasted corresponding to the target application is also used to receive the second input of the user; the display module is used to display the to-be- pasted corresponding to the target application on the second interface in response to the second input received by the receiving module
  • the content to be pasted includes the first content; the receiving module is also used to receive the user's third input of the first content in the content to be pasted; the display module is also used to respond to the third input received by the receiving module, in the target input
  • the first content is displayed in the area.
  • an embodiment of the present invention provides an electronic device.
  • the electronic device includes a processor, a memory, and a computer program stored in the memory and running on the processor.
  • the computer program is executed by the processor, the above-mentioned The steps of the paste control method in one aspect.
  • an embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the paste control method in the above-mentioned first aspect are implemented.
  • the electronic device when the electronic device displays the first interface, if the electronic device receives the user's first input, the electronic device may respond to the first input and set the first content in the first interface to The content to be pasted corresponding to the target application; thus, when the electronic device receives the second input of the user, the electronic device can automatically display the content to be pasted including the first content corresponding to the target application on the second interface; then After the electronic device receives the user's third input of the first content in the content to be pasted, the electronic device may display the first content in the target input area in response to the third input, thereby completing copying and pasting of the first content.
  • the user can first use an input to trigger the electronic device to set these content to the input area of the application.
  • the content to be pasted corresponding to the program when the electronic device receives the second input of the user, the electronic device can directly display the content to be pasted corresponding to the application program, so that the user can trigger the electronic device to paste and display the content in the input area through another input.
  • the user does not need to repeatedly perform a series of operations to copy and paste the content into the input area, so the process of copying and pasting of the electronic device can be simplified, the efficiency of copying and pasting of the electronic device can be improved, and the human-computer interaction performance can be improved.
  • FIG. 1 is a schematic diagram of the architecture of an Android operating system provided by an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a sticking control method provided by an embodiment of the present invention.
  • FIG. 3 is one of the interface schematic diagrams of the application of a paste control method provided by an embodiment of the present invention
  • FIG. 4 is a second schematic diagram of an application interface of a sticking control method according to an embodiment of the present invention.
  • FIG. 5 is the third schematic diagram of an application interface of a sticking control method provided by an embodiment of the present invention.
  • FIG. 6 is the fourth schematic diagram of the interface of the application of a paste control method provided by an embodiment of the present invention.
  • FIG. 7 is the fifth schematic diagram of the interface of the application of a paste control method provided by an embodiment of the present invention.
  • FIG. 8 is a sixth schematic diagram of an interface of an application of a sticking control method provided by an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of hardware of an electronic device provided by an embodiment of the present invention.
  • first and second in this document are used to distinguish different objects, rather than to describe a specific order of objects.
  • first input and the second input are used to distinguish different inputs, rather than to describe a specific order of input.
  • words such as “exemplary” or “for example” are used to represent examples, illustrations, or illustrations. Any embodiment or design solution described as “exemplary” or “for example” in the embodiments of the present invention should not be construed as being more preferable or advantageous than other embodiments or design solutions. To be precise, words such as “exemplary” or “for example” are used to present related concepts in a specific manner.
  • plural means two or more than two, for example, a plurality of elements means two or more elements, and so on.
  • the embodiments of the present invention provide a sticking control method and an electronic device, and the sticking control method can be applied to the electronic device. Specifically, when the electronic device displays the first interface, if the electronic device receives the user's first input, the electronic device may respond to the first input and set the first content in the first interface to be the same as the target application.
  • Corresponding content to be pasted so that when the electronic device receives the second input of the user, the electronic device can automatically display the content to be pasted including the first content corresponding to the target application on the second interface; then the electronic device receives After the user's third input of the first content in the content to be pasted, the electronic device may display the first content in the target input area in response to the third input, thereby completing the copy and paste of the first content in the target application.
  • the user can first use an input to trigger the electronic device to set the target content to and The content to be pasted corresponding to the target application.
  • the target content to be pasted in the corresponding first interface in the application program can be displayed, so that the user can use An input triggers the electronic device to paste and display the target content in the input area, without requiring the user to repeatedly perform a series of operations to copy and paste the content of the first interface into the input areas of multiple different applications.
  • the process of copying and pasting electronic equipment is simplified, the efficiency of copying and pasting electronic equipment is improved, and the human-computer interaction performance is improved.
  • the electronic device in the embodiment of the invention may be an electronic device with an operating system.
  • the operating system may be an Android operating system, an ios operating system, or other possible operating systems, which is not specifically limited in the embodiment of the present invention.
  • the following takes the Android operating system as an example to introduce the software environment to which the paste control method provided by the embodiment of the present invention is applied.
  • FIG. 1 it is a schematic structural diagram of a possible Android operating system provided by an embodiment of the present invention.
  • the architecture of the Android operating system includes 4 layers, which are: application layer, application framework layer, system runtime library layer, and kernel layer (specifically, it may be the Linux kernel layer).
  • the application layer includes various applications (including system applications and third-party applications) in the Android operating system.
  • the application framework layer is the framework of the application. Developers can develop some applications based on the application framework layer while complying with the development principles of the application framework. For example, an application that displays the first interface in the embodiment of the present invention may be developed based on the application framework, such as a browser application.
  • a browser application can include two parts, one part refers to a service running in the background of the electronic device, which is used to detect various inputs of the user on the first interface; the other part is displayed on the screen of the electronic device
  • the content for example, the content displayed in response to various inputs of the user.
  • the system runtime layer includes a library (also called a system library) and an Android operating system runtime environment.
  • the library mainly provides various resources needed by the Android operating system.
  • the Android operating system operating environment is used to provide a software environment for the Android operating system.
  • the kernel layer is the operating system layer of the Android operating system and belongs to the lowest level of the Android operating system software level.
  • the kernel layer is based on the Linux kernel to provide core system services and hardware-related drivers for the Android operating system.
  • developers can develop a software program that implements the paste control method provided by the embodiment of the present invention based on the system architecture of the Android operating system as shown in FIG.
  • the control method can be run based on the Android operating system as shown in FIG. 1. That is, the processor or the electronic device can implement the paste control method provided by the embodiment of the present invention by running the software program in the Android operating system.
  • the electronic device in the embodiment of the present invention may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle terminal, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). , PDA), etc.
  • the non-mobile electronic device may be a personal computer (PC), a television (television, TV), a teller machine, or a self-service machine, etc., which is not specifically limited in the embodiment of the present invention.
  • the execution subject of the paste control method provided by the embodiment of the present invention may be the above-mentioned electronic device, or may be a functional module and/or functional entity in the electronic device that can implement the paste control method, and the specifics can be determined according to actual usage requirements.
  • the embodiments of the present invention are not limited.
  • an electronic device is taken as an example to illustrate the pasting control method provided by the embodiment of the present invention.
  • the electronic device can be directly triggered to display multiple application identifications (each application identification can indicate an application), and then the user can trigger the electronic device to set the content to be related to the application by inputting the application identification of the application.
  • the corresponding content to be pasted Therefore, when the input cursor of the electronic device is located in the input area of the interface of the application program, the electronic device can display the content to be pasted corresponding to the application program. Then the user can pass another input to trigger the electronic device to paste and display the content in the input area.
  • the user when the user needs to copy and paste multiple content (such as text content) into the input area of an application interface, the user does not need to repeat a series of steps in the traditional way, but can first Trigger the electronic device to select one of the multiple content, and then trigger the electronic device to display multiple application identifiers (each application identifier can indicate an application program), and through the input of the application identifier of the application, trigger the electronic device to display The one content is set as the content to be pasted corresponding to the application; then, the user can trigger the electronic device to select another content of the multiple content, and then trigger the electronic device to display multiple application identifiers, and pass the application again
  • the input of the application identifier of the program triggers the electronic device to set the other content as the content to be pasted corresponding to the application program.
  • the electronic device can be triggered to set multiple content as the content to be pasted corresponding to the application.
  • the user can also trigger the electronic device to select all multiple content at once, and then display multiple application identifiers on the triggering electronic device (each application identifier can indicate an application), and through the application of the application
  • the input of the identification triggers the electronic device to set all multiple contents as the contents to be pasted corresponding to the application. Therefore, in the case that the input cursor of the electronic device is located in the input area of the interface of the application, the electronic device can directly display the content to be pasted corresponding to the application, and then the user can trigger the electronic device to transfer the content through another input. Paste is displayed in the input area.
  • the electronic device displays multiple application identifiers (each application identifier can indicate an application program), and then the user can input the application identifiers of these applications to trigger the electronic device to set the content to be pasted corresponding to these applications. content. Therefore, when the input cursor of the electronic device is located in the input area of the interface of a certain application among these applications, the electronic device can display the content to be pasted corresponding to the application. Then, through another input, the user can trigger the electronic device to paste and display the content in the input area. In this way, by analogy, for each application, the user can trigger the electronic device to paste and display the content in the input area of the interface of the application, so that the electronic device can paste and display the content in these applications respectively. In the input area of the interface.
  • the user when the user needs to copy and paste multiple content (such as text content) into the input of different application interfaces, the user does not need to repeat a series of steps in the traditional way, but can trigger the electronic
  • the device selects one of multiple content, and then triggers the electronic device to display multiple application identifiers (each application identifier can indicate an application program), and triggers by inputting the application identifier of one of these applications
  • the electronic device sets the one content as the content to be pasted corresponding to the one application; then, the user can trigger the electronic device to select another content among the multiple content, and then trigger the electronic device to display multiple application identities and pass Inputting the application identifier of another application among these applications triggers the electronic device to set the other content as the content to be pasted corresponding to the other application.
  • the electronic device can be triggered to set multiple contents as the contents to be pasted corresponding to these applications. Therefore, when the input cursor of the electronic device is located in the input area of the interface of a certain application among these applications, the electronic device can display the content to be pasted corresponding to the application. Then the user can use another input to trigger the electronic device to display the content to be pasted corresponding to the application program in the input area of the interface of the application program. In this way, by analogy, for each application, the user can trigger the electronic device to paste and display the content to be pasted corresponding to the application in the input area of the interface of the application, so that the electronic device can display multiple content Paste and display them in the input area of the interface of these applications.
  • the user can set certain content (for example, a certain content or multiple content) as the content to be pasted corresponding to different applications through one input.
  • the electronic device can directly display the content to be pasted corresponding to the application, and then the user can paste and display the content in In the input area, the user does not need to repeat a series of operations to copy and paste the content into the input area, so the process of copying and pasting electronic devices can be simplified, the efficiency of copying and pasting electronic devices can be improved, and the human-computer interaction can be improved. performance.
  • an embodiment of the present invention provides a sticking control method, and the method may include the following S201-S206.
  • the above-mentioned first input may be the user's input on the first content in the first interface
  • the first content may be the content selected by the user in the first interface. It can be understood that, before the user performs the first input on the first content, the user may perform an input in the first interface to select the first content in the first interface.
  • the above-mentioned first interface may be an interface of a communication application, an interface of a reading application, an interface of a shopping application, or a browser application. Interface and so on. Specifically, it can be determined according to actual use requirements, and the embodiment of the present invention does not limit it.
  • the above-mentioned first content may be text, pictures, or files. Specifically, it can be determined according to actual use requirements, and the embodiment of the present invention does not limit it.
  • the foregoing first input may include a first sub-input and a second sub-input.
  • the first sub-input is the user's sliding input in different directions on the first interface;
  • the second sub-input is the user's input of the identification of the target application in the identification of the at least one candidate application, and is used to select the application identification .
  • the identifier of the application program in the embodiment of the present invention may also be referred to as an application identifier.
  • the above-mentioned first sub-input may specifically be an input of the user sliding "up”, “down”, “left”, or “right” on the first interface. Specifically, it can be determined according to actual use requirements, and the embodiment of the present invention does not limit it.
  • the "up”, “down”, “left”, and “right” directions in the embodiments of the present invention are all described by taking the user's input at the top of the screen when the screen of the electronic device faces the user. That is, the “up”, “down”, “left”, and “right” directions in the embodiment of the present invention are relative to the user when the screen of the electronic device faces the user. It can be understood that the above-mentioned “up”, “down”, “left”, and “right” directions are all exemplary enumerations, which do not impose any limitation on the embodiments of the present invention. In actual implementation, it may also be in any other possible directions, which may be specifically determined according to actual use requirements, which is not limited in the embodiment of the present invention.
  • the above-mentioned second sub-input may be a user's click input on the identification of the target application, or the second sub-input may be a long-press input of the user on the identification of the target application; Alternatively, the second sub-input may be a user's re-press input on the identification of the target application, etc.
  • it can be determined according to actual use requirements, and the embodiment of the present invention does not limit it.
  • the identifier of the above-mentioned target application may be the identifier of one application or the identifiers of multiple applications. Specifically, it can be determined according to actual use requirements, and the embodiment of the present invention does not limit it.
  • the electronic device In response to the first input, the electronic device sets the first content in the first interface as the content to be pasted corresponding to the target application.
  • the electronic device may respond to the first input and set the first content in the first interface as the content to be pasted corresponding to the target application. Specifically, after the electronic device receives the first sub-input of the user, the electronic device may determine at least one application program according to a preset rule in response to the first sub-input, and obtain the identification of the at least one application program, and obtain at least one application program. The identification of the candidate application, and then the electronic device may display the identification of the at least one candidate application in the first interface. After the electronic device receives the second sub-input of the user, the electronic device may respond to the second sub-input and set the first content in the first interface as the content to be pasted corresponding to the target application.
  • the content to be pasted corresponding to the target application may include the first content.
  • the identifier of each candidate application in the identifiers of the at least one candidate application may indicate one application, and the identifiers of different candidate applications may be used to indicate different applications.
  • the electronic device may set the first content as the content to be pasted corresponding to the target application in response to the first input .
  • the electronic device may respectively set the first content as the content to be pasted corresponding to the target application program.
  • the foregoing preset rule may be to obtain an application program running within a preset time period.
  • the identification of the at least one candidate application may be an identification of an application that the electronic device runs within a preset period of time, for example, the identification of an application that is running within the last month is obtained; or the preset rule may be Obtain applications that are used by the user more than the frequency threshold within a preset time period.
  • the identification of the above-mentioned at least one candidate application may be an identification of an application whose frequency of use by the user is greater than the frequency threshold within a preset time period, for example, obtaining an application whose frequency of use by the user is greater than the frequency threshold in the last two months Of the logo.
  • the electronic device when the electronic device displays the identification of at least one candidate application in the first interface, the electronic device may display the original content in the first interface in a reduced scale according to a preset scale (ie, receive the first input) The content displayed on the first interface before).
  • a preset scale ie, receive the first input
  • FIG. 3 it is a schematic diagram of an interface of an electronic device displaying a first interface. It is assumed that the first content is the content shown in 30.
  • the electronic device can select the first content 30.
  • Figure 3 (c) when the user performs the first sub-input on the first content on the first interface, that is, after the user slides in the direction shown by 31 on the first interface, as shown in Figure 3 ( As shown in d), the electronic device can display application identification 32 (indicating a short message application), application identification 33 (indicating a communication application), application identification 34 (indicating a video application), and application identification 35 (indicating a video application) in the first interface.
  • application identification 32 indicating a short message application
  • application identification 33 indicating a communication application
  • application identification 34 indicating a video application
  • application identification 35 indicating a video application
  • the electronic device performing the above S201-S202 may be referred to as copying content by the electronic device.
  • the electronic device receives a second input from the user.
  • the above-mentioned second input may be used to trigger the electronic device to display an input cursor in the target input area in the second interface. That is, the user can trigger the electronic device to control the input cursor to be located in the target input area in the second interface through the second input.
  • the electronic device In response to the second input, displays the content to be pasted corresponding to the target application on the second interface.
  • the electronic device when the electronic device receives the second input from the user, that is, the input cursor is located in the target input area on the second interface, the electronic device may respond to the second input and display the data with the target application on the second interface.
  • the content to be pasted corresponding to the program when the electronic device receives the second input from the user, that is, the input cursor is located in the target input area on the second interface, the electronic device may respond to the second input and display the data with the target application on the second interface.
  • the content to be pasted corresponding to the program when the electronic device receives the second input from the user, that is, the input cursor is located in the target input area on the second interface, the electronic device may respond to the second input and display the data with the target application on the second interface.
  • the content to be pasted corresponding to the program when the electronic device receives the second input from the user, that is, the input cursor is located in the target input area on the second interface, the electronic device may respond to the second input and display the data with the target application on
  • the content to be pasted may include the first content. It can be understood that the above-mentioned content to be pasted may only include the first content; or may also include both the first content and other content.
  • the electronic device may sequentially display each content in the content to be pasted in chronological order.
  • the time sequence can be from the current time, from near to far, or from far to near, etc.
  • the above-mentioned second interface may be an interface of a target application.
  • the user before the user performs the second input, the user can trigger the electronic device to run the target application.
  • the electronic device can display the second interface (ie, the interface of the target application) on the screen. Then the user can trigger the electronic device to control the input cursor to be located in the target input area in the second interface.
  • the electronic device can determine that the user may The content needs to be input.
  • the electronic device can obtain the content to be pasted corresponding to the target application, and display the content to be pasted in the second interface to prompt the user that there is content that can be pasted.
  • the electronic device may keep displaying the content to be pasted corresponding to the target application in the second interface until the user triggers the electronic device to cancel displaying the content to be pasted through input.
  • S205 The electronic device receives a third input of the first content in the content to be pasted by the user.
  • the above-mentioned third input may be a user's click input on the first content, or the third input may be a user's long-press input on the first content; or, the third input may be It is the user's re-press input on the first content, etc. Specifically, it can be determined according to actual use requirements, and the embodiment of the present invention does not limit it.
  • the electronic device may display the first content in the target input area in response to the third input. That is, the electronic device can directly display the content selected by the user through the third input in the target input area, so that the user does not need to manually input the content in the target input area, thereby improving the convenience and efficiency of inputting content.
  • the target application is a communication application
  • FIG. 4 it is a schematic diagram of an interface of an electronic device displaying an interface (ie, a second interface) of the communication application.
  • the electronic device may display the content to be pasted 42 corresponding to the communication application on the second interface.
  • the electronic device may display the first content 43 in the input area 41.
  • the electronic device can cancel the display of the content 42 to be pasted, or continue to display the content 42 to be pasted, which can be determined according to actual usage requirements.
  • the embodiment is not limited.
  • the electronic device cancels the display of the content 42 to be pasted
  • the user still needs to input content other than the first content 43 in the content 42 to be pasted in the input area 41, the user can trigger the electronic device to restart by other input.
  • the content to be pasted 42 is displayed.
  • the electronic device executing the above S203-S206 can be referred to as the electronic device pasting content.
  • the user can first pass an input to trigger the electronic device to transfer these The content is respectively set as the content to be pasted corresponding to the application.
  • the electronic device can directly display the content to be pasted corresponding to the application, so that the user can use another input to trigger the electronic device to paste and display the content in In the input area, the user does not need to repeat a series of operations to copy and paste the content into the input area, so the process of copying and pasting electronic devices can be simplified, the efficiency of copying and pasting electronic devices can be improved, and the human-computer interaction can be improved. performance.
  • the electronic device may also copy the first content to the buffer of the target application in response to the first input.
  • the pasting control method provided by the embodiment of the present invention may further include the following S207.
  • the electronic device copies the first content to the target buffer area.
  • the above-mentioned target buffer area may be a buffer area of a target application program.
  • the target buffer may be the buffer of the short message application indicated by the application identifier 32.
  • each application in the electronic device may correspond to a buffer, and the buffer of each application may be used to store content to be pasted corresponding to the application.
  • the target buffer can be used to store the content to be pasted corresponding to the target application, that is, the aforementioned first content.
  • the electronic device may respond to the first input by setting the first content as the content to be pasted corresponding to the target application, copy the first content, and change
  • the copied first content is stored in the buffer of the target application (ie, the target buffer).
  • each application in the electronic device can correspond to a buffer
  • the electronic device can store different contents in the buffer of each application, so that multiple contents can be copied at the same time.
  • the operation to the buffer of different applications can then realize the operation of pasting multiple content to the input area of the interface of different applications, that is, the operation of copying and pasting multiple content to the input area of the interface of different applications .
  • the electronic device when the input cursor is located in the target input area in the second interface, before the electronic device displays the content to be pasted corresponding to the target application in the second interface, the electronic device may first display A prompt message to prompt the user to determine whether to paste the content to be pasted corresponding to the target application in the target input area.
  • the pasting control method provided by the embodiment of the present invention may include the following S208.
  • the above S204 can be implemented by the following S204a-S204b.
  • the electronic device displays the target prompt information in the second interface.
  • the aforementioned target prompt information may be used to prompt the user to determine whether to paste the content to be pasted corresponding to the target application (that is, the content in the target buffer) in the target input area.
  • the above-mentioned target prompt information may be preset prompt information in the electronic device, or prompt information generated in real time by the electronic device, which can be specifically determined according to actual use requirements, and is not limited in the embodiment of the present invention.
  • the above-mentioned target prompt information may include the first prompt content and the first prompt option.
  • the first prompt content may be used to prompt the user to determine whether to paste the content to be pasted corresponding to the target application program (that is, the content in the target buffer area) in the target input area.
  • the first prompt option may include a first option and a second option; the first option may be used to determine to paste the content to be pasted corresponding to the target application (that is, the content in the target buffer) in the target input area, that is, the user
  • the input of the first option can be used to determine to paste and display the content to be pasted corresponding to the target application in the target input area (that is, the content in the target buffer); the second option can be used to determine not to paste the display target in the target input area
  • the content to be pasted corresponding to the application program that is, the content in the target buffer
  • the user's input to the second option can be used to determine not to paste the content to be pasted corresponding to the target application in the target input area (that is, the content in the target buffer Content).
  • the target prompt message may be "whether to paste the content in the buffer" (as shown by 50 in FIG. 5), and the first option may be the "yes” option (as shown in FIG. 5). As shown in 51), the above-mentioned second option may be a "No” option (as shown in 52 in Figure 5).
  • the electronic device receives the seventh input of the user to the target prompt information.
  • the seventh input may be the user's input to the first option, that is, the seventh input may be used to determine to paste and display the content to be pasted corresponding to the target application in the target input area (that is, the content in the target buffer).
  • the seventh input may be the user's input to the “Yes” option shown in 51 in FIG. 5.
  • the electronic device displays the content to be pasted in the second interface.
  • the electronic device after the electronic device receives the seventh input of the user, the electronic device can display the content to be pasted corresponding to the target application (that is, the content in the target buffer) in the second interface in response to the seventh input. . Therefore, the user can input the first content in the content to be pasted, and trigger the electronic device to display the first content in the target input area.
  • the content to be pasted corresponding to the target application may be all content to be pasted corresponding to the target application.
  • the electronic device when the user performs an input on the above-mentioned second option, the electronic device does not need to perform any operation in response to the input, that is, the electronic device will not display the target application corresponding to the second interface.
  • the content to be pasted when the user performs an input on the above-mentioned second option, the electronic device does not need to perform any operation in response to the input, that is, the electronic device will not display the target application corresponding to the second interface. The content to be pasted.
  • the electronic device before the electronic device displays the content to be pasted corresponding to the target application in the second interface, it may first display a prompt message to prompt the user whether the content to be pasted corresponding to the target application needs to be pasted, and only when the user needs to paste the content to be pasted corresponding to the target application.
  • the electronic device can display the content to be pasted, that is, when the user does not trigger the electronic device to display the content to be pasted corresponding to the target application, the electronic device does not display the content to be pasted. Paste the content, so that the user can continue to perform other operations, thereby improving the flexibility of displaying the content to be pasted, and improving the human-computer interaction performance.
  • the user may also pass an input (for example, the following fourth Enter) to trigger the electronic device to delete the first content from the content to be pasted corresponding to the target application.
  • an input for example, the following fourth Enter
  • the pasting control method provided by the embodiment of the present invention may further include the following S209 and S2010.
  • the electronic device receives the fourth input of the user.
  • the foregoing fourth input may be an input in which the user shakes the electronic device in the first direction once, twice, or a first preset number of times.
  • the first direction may be a clockwise direction, a "left" direction, or a "right” direction.
  • the electronic device deletes the first content from the content to be pasted corresponding to the target application.
  • the electronic device may, in response to the fourth input, determine the most recently set content to be pasted corresponding to the target application (that is, the first content) according to the setting sequence. , Then the electronic device can delete the first content from the content to be pasted corresponding to the target application, that is, the electronic device can delete the first content from the buffer of the target application.
  • the electronic device sets the first content as the content to be pasted corresponding to the target application
  • the user since the user can also use an input to trigger the electronic device to remove the first content from the content to be pasted corresponding to the target application Therefore, it is convenient for the user to quickly delete the content to be pasted corresponding to the target application set last time by the electronic device, thereby improving the flexibility of copying the content (that is, triggering the electronic device to store the content in the buffer).
  • the user can perform an input to the electronic device, for example, shaking the electronic device to trigger the electronic device to set the first content.
  • the content is deleted from the content to be pasted corresponding to the target application.
  • the user can trigger the electronic device to display the content through an input (for example, the eighth input below) Perform related operations on the content to be pasted.
  • the pasting control method provided by the embodiment of the present invention may further include the following S2011-S2012.
  • the electronic device receives the eighth input of the user.
  • the above-mentioned eighth input may be any one of the following: the user's input to the delete option in the second interface (for example, the option 2003 in (b) in FIG. 4), and the user's input to the first Input of the first adjustment option (for example, the option 2001 in (b) in FIG. 4) or the second adjustment option (for example, the option 2002 in (b) in FIG. 4) in the second interface.
  • the electronic device executes the first operation.
  • the electronic device may perform the first operation in response to the eighth input.
  • the foregoing first operation may include any one of the following: the electronic device deletes the content in the content to be pasted, and the electronic device adjusts the display order of different content in the content to be pasted in the second interface.
  • the first operation may be that the electronic device deletes the content in the content to be pasted.
  • the first operation may be for the electronic device to adjust the display order of different content in the content to be pasted in the second interface.
  • the user since the user can trigger the electronic device to adjust the display order of different content in the content to be pasted in the second interface, it is convenient for the user to perform the same operation on multiple content.
  • each content may correspond to a delete option and a first adjustment option.
  • a second adjustment option among the content to be pasted displayed in the second interface, except for the first content and the last content displayed, each content may correspond to a delete option and a first adjustment option.
  • the first content can correspond to a deletion option and a second adjustment option
  • the last content can correspond to a deletion option and a first adjustment option.
  • FIG. 4 it is a schematic diagram of the electronic device displaying the content to be pasted 42 corresponding to the target application in the second interface.
  • the content 42 to be pasted includes content 43, content 44, content 45, and content 46.
  • the content 43 corresponds to the second adjustment option 1001 and the deletion option 1002
  • the content 44 corresponds to the first adjustment option 2001, the second adjustment option 2002, and the deletion option 2003
  • the content 45 corresponds to the first adjustment option 3001, the second adjustment option 3002, and the deletion option 3003.
  • the content 46 corresponds to the first adjustment option 4001 and the deletion option 4002. After the user clicks the delete option 2003, as shown in (a) in FIG.
  • the electronic device can cancel the display of the content 44, that is, delete the content 44 in the content to be pasted.
  • the electronic device can adjust the display order of the content 43 and the content 44, that is, the electronic device can adjust the storage of the content 43 and the content 44 in the target buffer order.
  • the electronic device can adjust the display order of the content 44 and the content 45, that is, the electronic device can adjust the storage of the content 44 and the content 45 in the target buffer order.
  • the user can trigger the electronic device to perform different operations on the content to be pasted in the second interface through different inputs, it is convenient for the user to complete different operations in the same interface, thereby improving human-computer interaction. performance.
  • the user can trigger the electronic device to display at least one application identifier and each application through an input (for example, the fifth input described below).
  • the pasting control method provided by the embodiment of the present invention may further include the following S2013-S2014.
  • the electronic device receives the fifth input of the user.
  • the above-mentioned fifth input may be an input in which the user shakes the electronic device in the second direction once, twice, or a second preset number of times.
  • the second direction may be a direction different from the first direction, for example, it may be a counterclockwise direction, a "rear” direction, or a "left" direction.
  • the electronic device displays the identification of at least one application and the content to be pasted corresponding to each application.
  • the aforementioned at least one application program may include a first application program and a second application program.
  • the electronic device may display the identification of at least one application program and the content to be pasted corresponding to each application program on the third interface.
  • the third interface may be a specific interface for the electronic device to display the identification of the application program and the content to be pasted corresponding to the application program, or it may be an interface of the application program that the electronic device runs before the electronic device receives the fifth input. Specifically, it can be determined according to actual use requirements, and the embodiment of the present invention does not limit it.
  • the electronic device may determine at least one application program whose content is to be pasted in the buffer in response to the fifth input, and obtain the identification of the at least one application program, Obtain the identification of at least one application, and then the electronic device can acquire the content to be pasted in the buffer of these applications (that is, the content to be pasted corresponding to these applications), and display the identification of the at least one application and each other The content to be pasted corresponding to the application.
  • the identifier of the at least one application program described above may be an application program (third-party application program and system application program) of the electronic device, and the buffer includes the identifier of the application program to which the content is to be pasted.
  • the identifier of the aforementioned at least one application program and the identifier of the aforementioned at least one candidate application program may be partly or completely the same.
  • the electronic device may display the application identification 70 and the content to be pasted corresponding to the short message application indicated by the application identification 70 on the third interface.
  • the buffer since the user can trigger the electronic device to display the application of the electronic device through an input, the buffer includes the application identifier of the application to be pasted and the content to be pasted corresponding to each application, so It is convenient for the user to view the current content to be pasted corresponding to each application, that is, the content to be pasted in the buffer of each application.
  • the user may also trigger an input (for example, the sixth input below)
  • the electronic device performs related operations on the content to be pasted corresponding to the first application program and the content to be pasted corresponding to the second application program.
  • S2015 The electronic device receives the user's sixth input of the identification of the first application and the identification of the second application.
  • the above-mentioned sixth input can be used to trigger the electronic device to exchange the content to be pasted corresponding to the first application program and the content to be pasted corresponding to the second application program, or can be used to trigger The electronic device updates both the content to be pasted corresponding to the first application program and the content to be pasted corresponding to the second application program to the target content.
  • the electronic device may execute the following S2016.
  • the electronic device may execute the following S2017.
  • the electronic device exchanges the content to be pasted corresponding to the first application program and the content to be pasted corresponding to the second application program.
  • the above-mentioned sixth input may include a third sub-input and a fourth sub-input.
  • the third sub-input may be an input in which the user drags the identification of the first application to the identification of the second application.
  • the electronic device may display second prompt information (for example, as shown in 80 in FIG. 8).
  • the second prompt information may include a second prompt content (for example, as shown in 81 in FIG. 8) and a second prompt option.
  • the second prompt content may be used to prompt the user to perform related operations on the content to be pasted corresponding to the application indicated by the two application identifiers.
  • the second prompt option may include a third option (for example, as shown in 82 in Figure 8) and a fourth option (for example, as shown in 83 in Figure 8);
  • the third option can be used to exchange content, that is, to trigger electronic device exchange The content to be pasted corresponding to the application indicated by the identifiers of the two applications.
  • the fourth option can be used to synchronize the content, that is, to trigger the electronic device to update the content to be pasted corresponding to the two applications to those corresponding to the two applications. The union of the content to be pasted.
  • the fourth sub-input may be the user's input to the third option. After the user performs the fourth sub-input to the third option, the electronic device can exchange the content in the buffer of the application indicated by the two application identifiers.
  • the electronic device updates the content to be pasted corresponding to the first application program and the content to be pasted corresponding to the second application program to target content.
  • the above-mentioned target content may be a union of the content to be pasted corresponding to the first application program and the content to be pasted corresponding to the second application program.
  • the above-mentioned sixth input may include a fifth sub-input and a sixth sub-input.
  • the fifth sub-input may be an input in which the user drags the identification of the first application to the identification of the second application.
  • the electronic device may display second prompt information (for example, as shown in 80 in FIG. 8).
  • the second prompt information may include a second prompt content (for example, as shown in 81 in FIG. 8) and a second prompt option.
  • the second prompt option may include a third option (for example, as shown in 82 in FIG. 8) and a fourth option (for example, as shown in 83 in FIG. 8).
  • the sixth sub-input may be the user's input for the fourth option.
  • the electronic device may update the content to be pasted corresponding to the two applications to these two applications.
  • the union of the content to be pasted corresponding to the program that is, the target content).
  • the electronic device can update the content to be pasted corresponding to the two applications to: “AAA”, “BBB”, “AAAA” and " CCC”.
  • the electronic device because the user can directly pass an input, trigger the electronic device to exchange the content to be pasted corresponding to the first application program and the content to be pasted corresponding to the second application program, or trigger the electronic device to change the first application
  • the content to be pasted corresponding to the program and the content to be pasted corresponding to the second application program are both updated to the target content. Therefore, it is convenient for the user to adjust the content in the content to be pasted corresponding to the application program and improve the human-computer interaction performance.
  • the user can also trigger the electronic device to perform other operations on the content to be pasted corresponding to the first application program and the content to be pasted corresponding to the second application program through an input (for example, the ninth input).
  • the electronic device can delete the to-be-pased corresponding to the application in response to the ninth input content.
  • the electronic device can cancel the display of the content on the third interface.
  • a deletion option corresponding to the application identifier may be option 75, and the content corresponding to the deletion option may be content 76.
  • the electronic device can delete the waiting list corresponding to the application in response to the ninth input. Paste the content. Wherein, after the electronic device deletes the entire content, the electronic device can cancel displaying the entire content and the identification of the application program on the third interface.
  • the one-click clear option corresponding to the application identification may be option 72, and all the above-mentioned content may be content 76, content 77, and content. 78 and content 79.
  • the user can also trigger the electronic device to delete the content to be pasted corresponding to all applications displayed in the third interface by inputting the one-key clear option shown at 74 in FIG. 7. Wherein, after the electronic device deletes these contents, the electronic device can cancel the display of all the contents and the identifications of all the applications on the third interface.
  • the one-click clear option shown at 74 in FIG. 7 can correspond to the identifiers of all applications displayed in the third interface.
  • the electronic device may respond to the ninth input. Adjust the display order of different content corresponding to the first adjustment option (or second adjustment option) in the content to be pasted corresponding to the application program.
  • a first adjustment option corresponding to the application identifier may be option 710, and different content corresponding to the first adjustment option may be Content 76 and Content 77.
  • the electronic device can, in response to the ninth input, paste the to-be-pasted corresponding to at least one application program displayed in the third interface
  • the content is updated to the union of the content to be pasted corresponding to these applications.
  • the user since the user can trigger the electronic device to perform different operations on the content in the third interface through different inputs, it is convenient for the user to complete different operations in the same interface, thereby improving human-computer interaction performance.
  • the user can trigger the electronic device to set multiple content as the content to be pasted corresponding to an application program (corresponding to the above scenario 2). Specifically, after the user triggers the electronic device to set the first content as the content to be pasted corresponding to the target application through the first input, the user can also trigger the electronic device to set another content to correspond to the target application through another input The content to be pasted, such as the second content below.
  • the pasting control method provided in the embodiment of the present invention may further include the following S2018-S2019.
  • the electronic device receives the tenth input of the user.
  • the aforementioned tenth input may be the user's input for the second content in the fourth interface, and the second content may be the content selected by the user to trigger the electronic device in the fourth interface. It can be understood that before the user performs the tenth input on the second content, the user may perform an input in the fourth interface first to select the second content in the fourth interface.
  • the foregoing fourth interface may be the same as the foregoing first interface, or may be different from the foregoing first interface. Specifically, it can be determined according to actual use requirements, and the embodiment of the present invention does not limit it.
  • the above-mentioned second content may be text, pictures, or files. Specifically, it can be determined according to actual use requirements, and the embodiment of the present invention does not limit it.
  • the above-mentioned tenth input may include a seventh sub-input and an eighth sub-input.
  • the seventh sub-input is the user's sliding input in different directions on the fourth interface; the eighth sub-input is the user's input of the identification of the target application in the identification of the at least one candidate application.
  • the electronic device sets the second content in the fourth interface as the content to be pasted corresponding to the target application.
  • the content to be pasted may include the first content and the second content.
  • the electronic device may respond to the tenth input and set the second content in the fourth interface as the content to be pasted corresponding to the target application.
  • the electronic device may copy the second content, and store the copied second content in the target buffer area.
  • the content to be pasted in the target buffer area may include the first content and the second content.
  • the above S2018-S2019 may also be executed at other timings or scenarios, for example, the above S2018-S2019 may also be executed after S206.
  • the above-mentioned second content and the above-mentioned first content may be content in the same interface, or content in different interfaces.
  • the electronic device executing the above S2018-S2019 may be referred to as copying content by the electronic device.
  • the user can first set multiple content as the content to be pasted corresponding to an application program, that is, store multiple content in the buffer of the target application program, and then the user can pass an input again. These contents are displayed in an input area of the interface of the target application.
  • the user can paste these contents into the input area, that is, the user can trigger the electronic device to copy multiple contents, and then the electronic device can be triggered to paste these contents synchronously.
  • the user needs to trigger After the electronic device copies one content and then triggers the electronic device to paste the one content, it needs to trigger the electronic device to copy another content, and then trigger the electronic device to paste the other content, which improves the efficiency of copying and pasting of the electronic device, and improves people Machine interactive performance.
  • an embodiment of the present invention provides an electronic device 400.
  • the electronic device 400 may include a receiving module 401, a processing module 402, and a display module 403.
  • the receiving module 401 can be used to receive the first input of the user when the first interface is displayed;
  • the processing module 402 can be used to respond to the first input received by the receiving module 401, and to change the first input in the first interface.
  • One content is set as the content to be pasted corresponding to the target application;
  • the receiving module 401 can also be used to receive the second input of the user;
  • the display module 403 can be used to respond to the second input received by the receiving module 401, in the second The interface displays the content to be pasted corresponding to the target application.
  • the content to be pasted can include the first content; the receiving module 401 can also be used to receive the user's third input of the first content in the content to be pasted; the display module 403 can also It is used to display the first content in the target input area in response to the third input received by the receiving module 401.
  • the above-mentioned processing module 402 may also be used to copy the first content to a target buffer area in response to the first input, and the target buffer area may be a buffer area of a target application program.
  • the above-mentioned receiving module 401 may also be used to receive the fourth input of the user after setting the first content in the first interface as the content to be pasted corresponding to the target application; processing;
  • the module 402 can also be used to delete the first content from the content to be pasted corresponding to the target application in response to the fourth input received by the receiving module 401.
  • the above-mentioned receiving module 401 may also be used to receive the fifth input of the user; the display module 403 may also be used to display at least one application program in response to the fifth input received by the receiving module 401 The identification of and the content to be pasted corresponding to each application program; wherein, at least one application program may include a first application program and a second application program.
  • the above-mentioned receiving module 401 may also be used to receive the user’s response to the first application after the display module 403 displays the identification of at least one application and the content to be pasted corresponding to each application.
  • the pasted content is exchanged, or, in response to the sixth input, the content to be pasted corresponding to the first application and the content to be pasted corresponding to the second application are both updated to the target content; wherein the target content may be the first application
  • the electronic device provided in the embodiment of the present invention can implement each process implemented by the electronic device in the foregoing method embodiment. To avoid repetition, details are not described herein again.
  • An embodiment of the present invention provides an electronic device.
  • the electronic device displays a first interface
  • the electronic device can respond to the first input by displaying the first interface in the first interface.
  • the content is set as the content to be pasted corresponding to the target application; thus, when the electronic device receives the second input of the user, the electronic device can automatically display the to-be-pased content corresponding to the target application including the first content on the second interface Content; then after the electronic device receives the user's third input of the first content in the content to be pasted, the electronic device may respond to the third input and display the first content in the target input area, thereby completing the copy and paste of the first content .
  • the user can first use an input to trigger the electronic device to set these content to the input area of the application.
  • the content to be pasted corresponding to the program when the electronic device receives the second input of the user, the electronic device can directly display the content to be pasted corresponding to the application program, so that the user can trigger the electronic device to paste and display the content in the input area through another input.
  • the user does not need to repeatedly perform a series of operations to copy and paste the content into the input area, so the process of copying and pasting of the electronic device can be simplified, the efficiency of copying and pasting of the electronic device can be improved, and the human-computer interaction performance can be improved.
  • Fig. 10 is a schematic diagram of hardware of an electronic device for implementing various embodiments of the present invention.
  • the electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, and a memory 109 , The processor 110, and the power supply 111 and other components.
  • the structure of the electronic device shown in FIG. 10 does not constitute a limitation on the electronic device.
  • the electronic device may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. Layout.
  • electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals, wearable devices, and pedometers.
  • the user input unit 107 can be used to receive the first input of the user when the first interface is displayed; the processor 110 can be used to respond to the first input received by the user input unit 107, The first content of is set as the content to be pasted corresponding to the target application; the user input unit 107 can also be used to receive a second input from the user; the display unit 106 can be used to respond to the second input received by the user input unit 107 , The content to be pasted corresponding to the target application is displayed on the second interface; the user input unit 107 can also be used to receive the user’s third input of the first content in the content to be pasted; the display unit 106 can also be used to respond to The third input received by the user input unit 107 displays the first content in the target input area.
  • the content to be pasted may include the first content.
  • the receiving module 401 in the above-mentioned structural schematic diagram of the electronic device may be implemented by the above-mentioned user input unit 107.
  • the processing module 402 in the above-mentioned structural schematic diagram of the electronic device may be implemented by the above-mentioned processor 110.
  • the display module 403 in the above-mentioned structural schematic diagram of the electronic device may be implemented by the above-mentioned display unit 106.
  • An embodiment of the present invention provides an electronic device.
  • the electronic device displays a first interface
  • the electronic device can respond to the first input by displaying the first interface in the first interface.
  • the content is set as the content to be pasted corresponding to the target application; thus, when the electronic device receives the second input of the user, the electronic device can automatically display the to-be-pased content corresponding to the target application including the first content on the second interface Content; then after the electronic device receives the user's third input of the first content in the content to be pasted, the electronic device may respond to the third input and display the first content in the target input area, thereby completing the copy and paste of the first content .
  • the user can first use an input to trigger the electronic device to set these content to the input area of the application.
  • the content to be pasted corresponding to the program when the electronic device receives the second input of the user, the electronic device can directly display the content to be pasted corresponding to the application program, so that the user can trigger the electronic device to paste and display the content in the input area through another input.
  • the user does not need to repeatedly perform a series of operations to copy and paste the content into the input area, so the process of copying and pasting of the electronic device can be simplified, the efficiency of copying and pasting of the electronic device can be improved, and the human-computer interaction performance can be improved.
  • the radio frequency unit 101 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 110; in addition, Uplink data is sent to the base station.
  • the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency unit 101 can also communicate with the network and other devices through a wireless communication system.
  • the electronic device provides users with wireless broadband Internet access through the network module 102, such as helping users to send and receive emails, browse web pages, and access streaming media.
  • the audio output unit 103 can convert the audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output it as sound. Moreover, the audio output unit 103 may also provide audio output related to a specific function performed by the electronic device 100 (for example, call signal reception sound, message reception sound, etc.).
  • the audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 104 is used to receive audio or video signals.
  • the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042.
  • the graphics processing unit 1041 is used to capture images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed.
  • the processed image frame can be displayed on the display unit 106.
  • the image frame processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or sent via the radio frequency unit 101 or the network module 102.
  • the microphone 1042 can receive sound, and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 101 for output in the case of a telephone call mode.
  • the electronic device 100 further includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light.
  • the proximity sensor can close the display panel 1061 and the display panel 1061 when the electronic device 100 is moved to the ear. / Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 105 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
  • the display unit 106 is used to display information input by the user or information provided to the user.
  • the display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the user input unit 107 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the electronic device.
  • the user input unit 107 includes a touch panel 1071 and other input devices 1072.
  • the touch panel 1071 also called a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 1071 or near the touch panel 1071. operating).
  • the touch panel 1071 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 110, the command sent by the processor 110 is received and executed.
  • the touch panel 1071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 107 may also include other input devices 1072.
  • other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
  • the touch panel 1071 can be overlaid on the display panel 1061.
  • the touch panel 1071 detects a touch operation on or near it, it transmits it to the processor 110 to determine the type of the touch event, and then the processor 110 determines the type of the touch event according to the touch.
  • the type of event provides corresponding visual output on the display panel 1061.
  • the touch panel 1071 and the display panel 1061 are used as two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated
  • the implementation of the input and output functions of the electronic device is not specifically limited here.
  • the interface unit 108 is an interface for connecting an external device with the electronic device 100.
  • the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
  • the interface unit 108 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 100 or can be used to connect to the electronic device 100 and the external device. Transfer data between devices.
  • the memory 109 can be used to store software programs and various data.
  • the memory 109 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc.
  • the memory 109 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the processor 110 is the control center of the electronic device, which uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes software programs and/or modules stored in the memory 109, and calls data stored in the memory 109 , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole.
  • the processor 110 may include one or more processing units; optionally, the processor 110 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, and application programs, etc.
  • the adjustment processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 110.
  • the electronic device 100 may also include a power source 111 (such as a battery) for supplying power to various components.
  • a power source 111 such as a battery
  • the power source 111 may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. Management and other functions.
  • the electronic device 100 includes some functional modules not shown, which will not be repeated here.
  • an embodiment of the present invention also provides an electronic device, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor.
  • the computer program is executed by the processor to implement the above method embodiments.
  • Each process can achieve the same technical effect. In order to avoid repetition, it will not be repeated here.
  • the embodiment of the present invention also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium.
  • the computer-readable storage medium may include read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
  • the technical solution of this application essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to make an electronic device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present application.
  • a storage medium such as ROM/RAM, magnetic disk,
  • the optical disc includes several instructions to make an electronic device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present application.

Abstract

Provided in embodiments of the present invention are a paste control method and an electronic device. The solution comprises: receiving a first input of a user when displaying a first interface; in response to the first input, configuring first content in the first interface as content to be pasted that corresponds to a target application program; receiving a second input of the user; in response to the second input, displaying in a second interface said content to be pasted, which comprises the first content; receiving a third input of the user on the first content in the content to be pasted; and in response to the third input, displaying the first content in a target input area.

Description

粘贴控制方法及电子设备Pasting control method and electronic equipment
相关申请的交叉引用Cross-references to related applications
本申请主张在2019年12月31日在中国提交的中国专利申请号No.201911424555.8的优先权,其全部内容通过引用包含于此。This application claims the priority of Chinese Patent Application No. 201911424555.8 filed in China on December 31, 2019, the entire content of which is incorporated herein by reference.
技术领域Technical field
本发明实施例涉及通信技术领域,尤其涉及一种粘贴控制方法及电子设备。The embodiment of the present invention relates to the field of communication technology, and in particular to a sticking control method and electronic equipment.
背景技术Background technique
随着通信技术的不断发展,电子设备支持的功能越来越多。With the continuous development of communication technology, more and more functions are supported by electronic devices.
目前,用户可以触发电子设备执行复制粘贴功能,以完成复制粘贴文本的操作。具体的,当用户需求将某个文本内容复制粘贴到某个输入框时,用户可以先触发电子设备选中该文本内容,然后用户可以点击复制控件触发电子设备复制该文本内容。接着用户可以再触发电子设备显示该输入框所在的界面,并触发电子设备将光标移动至该输入框中,以及长按输入框触发电子设备显示粘贴控件,然后用户可以点击粘贴控件触发电子设备在输入框中显示该文本内容,从而即可完成将该文本内容复制粘贴到该输入框中的操作。Currently, the user can trigger the electronic device to execute the copy and paste function to complete the operation of copying and pasting text. Specifically, when the user needs to copy and paste a certain text content into a certain input box, the user can first trigger the electronic device to select the text content, and then the user can click the copy control to trigger the electronic device to copy the text content. Then the user can trigger the electronic device to display the interface where the input box is located, and trigger the electronic device to move the cursor to the input box, and long press the input box to trigger the electronic device to display the paste control, and then the user can click the paste control to trigger the electronic device in The text content is displayed in the input box, so that the operation of copying and pasting the text content into the input box can be completed.
然而,上述过程中,若用户需求将多个文本内容复制粘贴到某个界面的输入框中,那么用户需要多次重复执行上述步骤,才可以将这些文本内容均复制到该输入框中,因此上述复制粘贴的过程比较繁琐且耗时,人机交互性能差。However, in the above process, if the user needs to copy and paste multiple text content into the input box of an interface, the user needs to repeat the above steps several times before they can copy all the text content into the input box. Therefore, The foregoing copy and paste process is cumbersome and time-consuming, and the human-computer interaction performance is poor.
发明内容Summary of the invention
本发明实施例提供一种粘贴控制方法及电子设备,以解决电子设备复制粘贴的过程比较繁琐且耗时,人机交互性能差的问题。The embodiments of the present invention provide a paste control method and an electronic device, so as to solve the problem that the copy and paste process of the electronic device is complicated and time-consuming, and the human-computer interaction performance is poor.
为了解决上述技术问题,本申请是这样实现的:In order to solve the above technical problems, this application is implemented as follows:
第一方面,本发明实施例提供了一种粘贴控制方法,该方法应用于电子设备,该方法包括:在显示第一界面的情况下,接收用户的第一输入;并响应于第一输入,将第一界面中的第一内容设置为与目标应用程序对应的待粘贴内容;以及接收用户的第二输入;并响应于第二输入,在第二界面显示与目标应用程序对应的待粘贴内容;以及接收用户对待粘贴内容中的第一内容的第三输入;并响应于第三输入,在目标输入 区域中显示第一内容。其中,待粘贴内容包括第一内容。In a first aspect, an embodiment of the present invention provides a paste control method, which is applied to an electronic device, and the method includes: receiving a first input from a user when a first interface is displayed; and in response to the first input, Set the first content in the first interface as the content to be pasted corresponding to the target application; and receive a second input from the user; and in response to the second input, display the content to be pasted corresponding to the target application on the second interface And receiving the user's third input of the first content in the content to be pasted; and in response to the third input, displaying the first content in the target input area. Wherein, the content to be pasted includes the first content.
第二方面,本发明实施例提供一种电子设备,该电子设备包括接收模块、处理模块和显示模块。其中,接收模块,用于在显示第一界面的情况下,接收用户的第一输入;处理模块,用于响应于接收模块接收的第一输入,将第一界面中的第一内容设置为与目标应用程序对应的待粘贴内容;接收模块,还用于接收用户的第二输入;显示模块,用于响应于接收模块接收的第二输入,在第二界面显示与目标应用程序对应的待粘贴内容,待粘贴内容包括第一内容;接收模块,还用于接收用户对待粘贴内容中的第一内容的第三输入;显示模块,还用于响应于接收模块接收的第三输入,在目标输入区域中显示第一内容。In a second aspect, an embodiment of the present invention provides an electronic device that includes a receiving module, a processing module, and a display module. Wherein, the receiving module is used to receive the first input of the user when the first interface is displayed; the processing module is used to set the first content in the first interface to be in response to the first input received by the receiving module. The content to be pasted corresponding to the target application; the receiving module is also used to receive the second input of the user; the display module is used to display the to-be- pasted corresponding to the target application on the second interface in response to the second input received by the receiving module The content to be pasted includes the first content; the receiving module is also used to receive the user's third input of the first content in the content to be pasted; the display module is also used to respond to the third input received by the receiving module, in the target input The first content is displayed in the area.
第三方面,本发明实施例提供一种电子设备,该电子设备包括处理器、存储器及存储在存储器上并可在处理器上运行的计算机程序,该计算机程序被处理器执行时实现如上述第一方面中的粘贴控制方法的步骤。In a third aspect, an embodiment of the present invention provides an electronic device. The electronic device includes a processor, a memory, and a computer program stored in the memory and running on the processor. When the computer program is executed by the processor, the above-mentioned The steps of the paste control method in one aspect.
第四方面,本发明实施例提供一种计算机可读存储介质,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现如上述第一方面中的粘贴控制方法的步骤。In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the paste control method in the above-mentioned first aspect are implemented.
在本发明实施例中,在电子设备显示第一界面的情况下,若电子设备接收到用户的第一输入,则电子设备可以响应于第一输入,将第一界面中的第一内容设置为与目标应用程序对应的待粘贴内容;从而在电子设备接收到用户的第二输入的情况下,电子设备可以自动在第二界面显示与目标应用程序对应的包括第一内容的待粘贴内容;然后在电子设备接收到用户对待粘贴内容中的第一内容的第三输入之后,电子设备可以响应于第三输入,在目标输入区域中显示第一内容,从而完成第一内容的复制粘贴。通过该方案,若用户需求将某些内容(例如文本内容)复制粘贴到某个应用程序的界面的输入区域中,则用户可以先通过一个输入,触发电子设备将这些内容分别设置为与该应用程序对应的待粘贴内容。然后,当电子设备接收到用户的第二输入时,电子设备可以直接显示该应用程序对应的待粘贴内容,从而用户可以再通过一个输入,触发电子设备将这些内容粘贴显示在该输入区域中,而无需用户多次重复执行一系列操作才可以将这些内容复制粘贴到该输入区域中,因此可以简化电子设备复制粘贴的过程,提高电子设备复制粘贴的效率,提高人机交互性能。In the embodiment of the present invention, when the electronic device displays the first interface, if the electronic device receives the user's first input, the electronic device may respond to the first input and set the first content in the first interface to The content to be pasted corresponding to the target application; thus, when the electronic device receives the second input of the user, the electronic device can automatically display the content to be pasted including the first content corresponding to the target application on the second interface; then After the electronic device receives the user's third input of the first content in the content to be pasted, the electronic device may display the first content in the target input area in response to the third input, thereby completing copying and pasting of the first content. With this solution, if the user needs to copy and paste some content (such as text content) into the input area of an application interface, the user can first use an input to trigger the electronic device to set these content to the input area of the application. The content to be pasted corresponding to the program. Then, when the electronic device receives the second input of the user, the electronic device can directly display the content to be pasted corresponding to the application program, so that the user can trigger the electronic device to paste and display the content in the input area through another input. The user does not need to repeatedly perform a series of operations to copy and paste the content into the input area, so the process of copying and pasting of the electronic device can be simplified, the efficiency of copying and pasting of the electronic device can be improved, and the human-computer interaction performance can be improved.
附图说明Description of the drawings
图1为本发明实施例提供的一种安卓操作系统的架构示意图;FIG. 1 is a schematic diagram of the architecture of an Android operating system provided by an embodiment of the present invention;
图2为本发明实施例提供的一种粘贴控制方法的示意图;2 is a schematic diagram of a sticking control method provided by an embodiment of the present invention;
图3为本发明实施例提供的一种粘贴控制方法应用的界面示意图之一;FIG. 3 is one of the interface schematic diagrams of the application of a paste control method provided by an embodiment of the present invention;
图4为本发明实施例提供的一种粘贴控制方法应用的界面示意图之二;FIG. 4 is a second schematic diagram of an application interface of a sticking control method according to an embodiment of the present invention;
图5为本发明实施例提供的一种粘贴控制方法应用的界面示意图之三;FIG. 5 is the third schematic diagram of an application interface of a sticking control method provided by an embodiment of the present invention;
图6为本发明实施例提供的一种粘贴控制方法应用的界面示意图之四;6 is the fourth schematic diagram of the interface of the application of a paste control method provided by an embodiment of the present invention;
图7为本发明实施例提供的一种粘贴控制方法应用的界面示意图之五;FIG. 7 is the fifth schematic diagram of the interface of the application of a paste control method provided by an embodiment of the present invention;
图8为本发明实施例提供的一种粘贴控制方法应用的界面示意图之六;FIG. 8 is a sixth schematic diagram of an interface of an application of a sticking control method provided by an embodiment of the present invention;
图9为本发明实施例提供的电子设备的结构示意图;FIG. 9 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention;
图10为本发明实施例提供的电子设备的硬件示意图。FIG. 10 is a schematic diagram of hardware of an electronic device provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
本文中的术语“和/或”,是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。本文中符号“/”表示关联对象是或者的关系,例如A/B表示A或者B。The term "and/or" in this article refers to an association relationship that describes associated objects, which means that there can be three relationships, for example, A and/or B, which can mean: A alone exists, A and B exist at the same time, exist alone B these three situations. The symbol "/" in this document represents the relationship that the associated object is or, for example, A/B represents A or B.
本文中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一输入和第二输入等是用于区别不同的输入,而不是用于描述输入的特定顺序。The terms "first" and "second" in this document are used to distinguish different objects, rather than to describe a specific order of objects. For example, the first input and the second input are used to distinguish different inputs, rather than to describe a specific order of input.
在本发明实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本发明实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present invention, words such as "exemplary" or "for example" are used to represent examples, illustrations, or illustrations. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of the present invention should not be construed as being more preferable or advantageous than other embodiments or design solutions. To be precise, words such as "exemplary" or "for example" are used to present related concepts in a specific manner.
在本发明实施例的描述中,除非另有说明,“多个”的含义是指两个或者两个以上,例如,多个元件是指两个或者两个以上的元件等。In the description of the embodiments of the present invention, unless otherwise specified, the meaning of "plurality" means two or more than two, for example, a plurality of elements means two or more elements, and so on.
本发明实施例提供一种粘贴控制方法及电子设备,该粘贴控制方法可以应用于电子设备。具体的,在电子设备显示第一界面的情况下,若电子设备接收到用户的第一输入,则电子设备可以响应于第一输入,将第一界面中的第一内容设置为与目标应用程序对应的待粘贴内容;从而在电子设备接收到用户的第二输入的情况下,电子设备可以自动在第二界面显示与目标应用程序对应的包括第一内容的待粘贴内容;然后在电子设备接收到用户对待粘贴内容中的第一内容的第三输入之后,电子设备可以响应 于第三输入,在目标输入区域中显示第一内容,从而完成第一内容在目标应用程序内的复制粘贴。通过该方案,若用户需求将第一界面中的某些内容(例如文本内容)一次性复制到多个应用程序中去,则用户可以先通过一个输入,触发电子设备将目标内容分别设置为与目标应用程序对应的待粘贴内容。然后,当用户进入对应的应用程序界面的时候,在电子设备接收到用户的第二输入的情况下,可以显示该应用程序中对应的第一界面中的待粘贴目标内容,从而用户可以再通过一个输入,触发电子设备将目标内容粘贴显示在该输入区域中,而无需用户多次重复执行一系列操作才可以将第一界面的内容复制粘贴到多个不同应用程序的输入区域中,因此可以简化电子设备复制粘贴的过程,提高电子设备复制粘贴的效率,提高人机交互性能。The embodiments of the present invention provide a sticking control method and an electronic device, and the sticking control method can be applied to the electronic device. Specifically, when the electronic device displays the first interface, if the electronic device receives the user's first input, the electronic device may respond to the first input and set the first content in the first interface to be the same as the target application. Corresponding content to be pasted; so that when the electronic device receives the second input of the user, the electronic device can automatically display the content to be pasted including the first content corresponding to the target application on the second interface; then the electronic device receives After the user's third input of the first content in the content to be pasted, the electronic device may display the first content in the target input area in response to the third input, thereby completing the copy and paste of the first content in the target application. With this solution, if the user needs to copy some content (such as text content) in the first interface to multiple applications at once, the user can first use an input to trigger the electronic device to set the target content to and The content to be pasted corresponding to the target application. Then, when the user enters the corresponding application program interface, in the case that the electronic device receives the user's second input, the target content to be pasted in the corresponding first interface in the application program can be displayed, so that the user can use An input triggers the electronic device to paste and display the target content in the input area, without requiring the user to repeatedly perform a series of operations to copy and paste the content of the first interface into the input areas of multiple different applications. The process of copying and pasting electronic equipment is simplified, the efficiency of copying and pasting electronic equipment is improved, and the human-computer interaction performance is improved.
发明实施例中的电子设备可以为具有操作系统的电子设备。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本发明实施例不作具体限定。The electronic device in the embodiment of the invention may be an electronic device with an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, which is not specifically limited in the embodiment of the present invention.
下面以安卓操作系统为例,介绍一下本发明实施例提供的粘贴控制方法所应用的软件环境。The following takes the Android operating system as an example to introduce the software environment to which the paste control method provided by the embodiment of the present invention is applied.
如图1所示,为本发明实施例提供的一种可能的安卓操作系统的架构示意图。在图1中,安卓操作系统的架构包括4层,分别为:应用程序层、应用程序框架层、系统运行库层和内核层(具体可以为Linux内核层)。As shown in FIG. 1, it is a schematic structural diagram of a possible Android operating system provided by an embodiment of the present invention. In Figure 1, the architecture of the Android operating system includes 4 layers, which are: application layer, application framework layer, system runtime library layer, and kernel layer (specifically, it may be the Linux kernel layer).
其中,应用程序层包括安卓操作系统中的各个应用程序(包括系统应用程序和第三方应用程序)。Among them, the application layer includes various applications (including system applications and third-party applications) in the Android operating system.
应用程序框架层是应用程序的框架,开发人员可以在遵守应用程序的框架的开发原则的情况下,基于应用程序框架层开发一些应用程序。例如,可以基于应用程序框架开发本发明实施例中显示第一界面的应用程序,例如浏览器应用程序。The application framework layer is the framework of the application. Developers can develop some applications based on the application framework layer while complying with the development principles of the application framework. For example, an application that displays the first interface in the embodiment of the present invention may be developed based on the application framework, such as a browser application.
一般,浏览器应用程序可以包括两部分,一部分是指运行在电子设备后台的服务(service),用于检测用户在第一界面上的各种输入;另一部分是显示在电子设备的屏幕上的内容,例如,响应于用户的各种输入显示的内容。Generally, a browser application can include two parts, one part refers to a service running in the background of the electronic device, which is used to detect various inputs of the user on the first interface; the other part is displayed on the screen of the electronic device The content, for example, the content displayed in response to various inputs of the user.
系统运行库层包括库(也称为系统库)和安卓操作系统运行环境。库主要为安卓操作系统提供其所需的各类资源。安卓操作系统运行环境用于为安卓操作系统提供软件环境。The system runtime layer includes a library (also called a system library) and an Android operating system runtime environment. The library mainly provides various resources needed by the Android operating system. The Android operating system operating environment is used to provide a software environment for the Android operating system.
内核层是安卓操作系统的操作系统层,属于安卓操作系统软件层次的最底层。内核层基于Linux内核为安卓操作系统提供核心系统服务和与硬件相关的驱动程序。The kernel layer is the operating system layer of the Android operating system and belongs to the lowest level of the Android operating system software level. The kernel layer is based on the Linux kernel to provide core system services and hardware-related drivers for the Android operating system.
以安卓操作系统为例,本发明实施例中,开发人员可以基于上述如图1所示的安卓操作系统的系统架构,开发实现本发明实施例提供的粘贴控制方法的软件程序,从 而使得该粘贴控制方法可以基于如图1所示的安卓操作系统运行。即处理器或者电子设备可以通过在安卓操作系统中运行该软件程序实现本发明实施例提供的粘贴控制方法。Taking the Android operating system as an example, in the embodiment of the present invention, developers can develop a software program that implements the paste control method provided by the embodiment of the present invention based on the system architecture of the Android operating system as shown in FIG. The control method can be run based on the Android operating system as shown in FIG. 1. That is, the processor or the electronic device can implement the paste control method provided by the embodiment of the present invention by running the software program in the Android operating system.
本发明实施例中的电子设备可以为移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本发明实施例不作具体限定。The electronic device in the embodiment of the present invention may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle terminal, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). , PDA), etc. The non-mobile electronic device may be a personal computer (PC), a television (television, TV), a teller machine, or a self-service machine, etc., which is not specifically limited in the embodiment of the present invention.
本发明实施例提供的粘贴控制方法的执行主体可以为上述的电子设备,也可以为该电子设备中能够实现该粘贴控制方法的功能模块和/或功能实体,具体的可以根据实际使用需求确定,本发明实施例不作限定。下面以电子设备为例,对本发明实施例提供的粘贴控制方法进行示例性的说明。The execution subject of the paste control method provided by the embodiment of the present invention may be the above-mentioned electronic device, or may be a functional module and/or functional entity in the electronic device that can implement the paste control method, and the specifics can be determined according to actual usage requirements. The embodiments of the present invention are not limited. In the following, an electronic device is taken as an example to illustrate the pasting control method provided by the embodiment of the present invention.
本发明实施例中,第一种场景中,当用户需求将一个内容(例如文本内容)复制粘贴到某个应用程序的界面的输入区域,用户无需按照传统的方式多次重复执行一系列步骤,而是可以直接触发电子设备显示多个应用标识(每个应用标识可以指示一个应用程序),然后用户可以通过对该应用程序的应用标识的输入,触发电子设备将该内容设置为与该应用程序对应的待粘贴内容。从而,在电子设备的输入光标位于该应用程序的界面的输入区域的情况下,电子设备可以显示该应用程序对应的待粘贴内容。然后用户可以再通过一个输入,即可触发电子设备将该内容粘贴显示在该输入区域中。In the embodiment of the present invention, in the first scenario, when the user needs to copy and paste a content (such as text content) into the input area of an application interface, the user does not need to repeat a series of steps in the traditional way. Instead, the electronic device can be directly triggered to display multiple application identifications (each application identification can indicate an application), and then the user can trigger the electronic device to set the content to be related to the application by inputting the application identification of the application. The corresponding content to be pasted. Therefore, when the input cursor of the electronic device is located in the input area of the interface of the application program, the electronic device can display the content to be pasted corresponding to the application program. Then the user can pass another input to trigger the electronic device to paste and display the content in the input area.
第二种场景中,当用户需求将多个内容(例如文本内容)复制粘贴到某个应用程序的界面的输入区域时,用户无需按照传统的方式多次重复执行一系列步骤,而是可以先触发电子设备选中多个内容中的一个内容,然后再触发电子设备显示多个应用标识(每个应用标识可以指示一个应用程序),并通过对该应用程序的应用标识的输入,触发电子设备将该一个内容设置为与该应用程序对应的待粘贴内容;然后,用户可以再触发电子设备选中多个内容中的另一个内容,然后再触发电子设备显示多个应用标识,并再次通过对该应用程序的应用标识的输入,触发电子设备将该另一个内容设置为与该应用程序对应的待粘贴内容。如此,依次类推,可以触发电子设备将多个内容分别设置为与该应用程序对应的待粘贴内容。除此之外,用户还可以先触发电子设备一下子选中全部多个内容,然后在触发电子设备显示多个应用标识(每个应用标识可以指示一个应用程序),并通过对该应用程序的应用标识的输入,触发电子设备将全部多个内容设置为与该应用程序对应的待粘贴内容。从而,在电子设备的输入光标位 于该应用程序的界面的输入区域的情况下,电子设备可以直接显示该应用程序对应的待粘贴内容,然后用户再通过一个输入,即可触发电子设备将这些内容粘贴显示在该输入区域中。In the second scenario, when the user needs to copy and paste multiple content (such as text content) into the input area of an application interface, the user does not need to repeat a series of steps in the traditional way, but can first Trigger the electronic device to select one of the multiple content, and then trigger the electronic device to display multiple application identifiers (each application identifier can indicate an application program), and through the input of the application identifier of the application, trigger the electronic device to display The one content is set as the content to be pasted corresponding to the application; then, the user can trigger the electronic device to select another content of the multiple content, and then trigger the electronic device to display multiple application identifiers, and pass the application again The input of the application identifier of the program triggers the electronic device to set the other content as the content to be pasted corresponding to the application program. In this way, by analogy, the electronic device can be triggered to set multiple content as the content to be pasted corresponding to the application. In addition, the user can also trigger the electronic device to select all multiple content at once, and then display multiple application identifiers on the triggering electronic device (each application identifier can indicate an application), and through the application of the application The input of the identification triggers the electronic device to set all multiple contents as the contents to be pasted corresponding to the application. Therefore, in the case that the input cursor of the electronic device is located in the input area of the interface of the application, the electronic device can directly display the content to be pasted corresponding to the application, and then the user can trigger the electronic device to transfer the content through another input. Paste is displayed in the input area.
第三种场景中,当用户需求将某个内容(例如文本内容)复制粘贴到不同应用程序的界面的输入区域时,用户无需按照传统的方式多次重复执行一系列步骤,而是直接可以触发电子设备显示多个应用标识(每个应用标识可以指示一个应用程序),然后用户可以通过对这些应用程序的应用标识的输入,触发电子设备将该内容分别设置为与这些应用程序对应的待粘贴内容。从而,在电子设备的输入光标位于这些应用程序中的某个应用程序的界面的输入区域的情况下,电子设备可以显示该应用程序对应的待粘贴内容。然后用户再通过一个输入,即可触发电子设备将该内容粘贴显示在该输入区域中。如此,以此类推,对于每个应用程序,用户都可以触发电子设备将该内容粘贴显示在该应用程序的界面的输入区域中,从而,电子设备即可将该内容分别粘贴显示在这些应用程序的界面的输入区域中。In the third scenario, when the user needs to copy and paste a certain content (such as text content) into the input area of the interface of a different application, the user does not need to repeat a series of steps in the traditional way, but can directly trigger it The electronic device displays multiple application identifiers (each application identifier can indicate an application program), and then the user can input the application identifiers of these applications to trigger the electronic device to set the content to be pasted corresponding to these applications. content. Therefore, when the input cursor of the electronic device is located in the input area of the interface of a certain application among these applications, the electronic device can display the content to be pasted corresponding to the application. Then, through another input, the user can trigger the electronic device to paste and display the content in the input area. In this way, by analogy, for each application, the user can trigger the electronic device to paste and display the content in the input area of the interface of the application, so that the electronic device can paste and display the content in these applications respectively. In the input area of the interface.
第四种场景中,当用户需求将多个内容(例如文本内容)复制粘贴到不同应用程序的界面的输入时,用户无需按照传统的方式多次重复执行一系列步骤,而是可以先触发电子设备选中多个内容中的一个内容,然后再触发电子设备显示多个应用标识(每个应用标识可以指示一个应用程序),并通过对这些应用程序中的一个应用程序的应用标识的输入,触发电子设备将该一个内容设置为与该一个应用程序对应的待粘贴内容;然后,用户可以再触发电子设备选中多个内容中的另一个内容,然后再触发电子设备显示多个应用标识,并通过对这些应用程序中的另一个应用程序的应用标识的输入,触发电子设备将该另一个内容设置为与该另一个应用程序对应的待粘贴内容。如此,依次类推,可以触发电子设备将多个内容分别设置为与这些应用程序对应的待粘贴内容。从而,在电子设备的输入光标位于这些应用程序中的某个应用程序的界面的输入区域的情况下,电子设备可以显示该应用程序对应的待粘贴内容。然后用户可以再通过一个输入,即可触发电子设备将该应用程序对应的待粘贴内容显示在该一个应用程序的界面的输入区域中。如此,以此类推,对于每个应用程序,用户都可以触发电子设备将该应用程序对应的待粘贴内容粘贴显示在该应用程序的界面的输入区域中,从而,电子设备即可将多个内容分别粘贴显示在这些应用程序的界面的输入区域中。In the fourth scenario, when the user needs to copy and paste multiple content (such as text content) into the input of different application interfaces, the user does not need to repeat a series of steps in the traditional way, but can trigger the electronic The device selects one of multiple content, and then triggers the electronic device to display multiple application identifiers (each application identifier can indicate an application program), and triggers by inputting the application identifier of one of these applications The electronic device sets the one content as the content to be pasted corresponding to the one application; then, the user can trigger the electronic device to select another content among the multiple content, and then trigger the electronic device to display multiple application identities and pass Inputting the application identifier of another application among these applications triggers the electronic device to set the other content as the content to be pasted corresponding to the other application. In this way, by analogy, the electronic device can be triggered to set multiple contents as the contents to be pasted corresponding to these applications. Therefore, when the input cursor of the electronic device is located in the input area of the interface of a certain application among these applications, the electronic device can display the content to be pasted corresponding to the application. Then the user can use another input to trigger the electronic device to display the content to be pasted corresponding to the application program in the input area of the interface of the application program. In this way, by analogy, for each application, the user can trigger the electronic device to paste and display the content to be pasted corresponding to the application in the input area of the interface of the application, so that the electronic device can display multiple content Paste and display them in the input area of the interface of these applications.
根据上述四种场景,由于用户可以通过一个输入,将某些内容(例如某个内容或多个内容)分别设置为与不同应用程序对应的待粘贴内容。并且,当电子设备的输入光标位于一个应用程序的界面的输入区域的情况下,电子设备可以直接显示该应用程 序对应的待粘贴内容,然后用户再通过一个输入,即可将这些内容粘贴显示在该输入区域中,而无需用户多次重复执行一系列操作才可以将这些内容复制粘贴到该输入区域中,因此可以简化电子设备复制粘贴的过程,提高电子设备复制粘贴的效率,提高人机交互性能。According to the above four scenarios, the user can set certain content (for example, a certain content or multiple content) as the content to be pasted corresponding to different applications through one input. Moreover, when the input cursor of the electronic device is located in the input area of the interface of an application, the electronic device can directly display the content to be pasted corresponding to the application, and then the user can paste and display the content in In the input area, the user does not need to repeat a series of operations to copy and paste the content into the input area, so the process of copying and pasting electronic devices can be simplified, the efficiency of copying and pasting electronic devices can be improved, and the human-computer interaction can be improved. performance.
下面具体结合各个附图对本发明实施例提供的粘贴控制方法进行示例性的说明。Hereinafter, the pasting control method provided by the embodiments of the present invention will be exemplarily described in detail with reference to the respective drawings.
如图2所示,本发明实施例提供一种粘贴控制方法,该方法可以包括下述的S201-S206。As shown in FIG. 2, an embodiment of the present invention provides a sticking control method, and the method may include the following S201-S206.
S201、在电子设备显示第一界面的情况下,电子设备接收用户的第一输入。S201: When the electronic device displays the first interface, the electronic device receives the first input of the user.
其中,上述第一输入可以为用户针对第一界面中的第一内容的输入,第一内容可以为用户在第一界面中被选中的内容。可以理解,在用户对第一内容执行第一输入之前,用户可以先在第一界面中执行一个输入,以选中第一界面中的第一内容。The above-mentioned first input may be the user's input on the first content in the first interface, and the first content may be the content selected by the user in the first interface. It can be understood that, before the user performs the first input on the first content, the user may perform an input in the first interface to select the first content in the first interface.
可选的,本发明实施例中,上述第一界面可以为通讯类应用程序的界面,也可以为阅读类应用程序的界面,也可以为购物类应用程序的界面,还可以为浏览器应用程序的界面等。具体可以根据实际使用需求确定,本发明实施例不作限定。Optionally, in the embodiment of the present invention, the above-mentioned first interface may be an interface of a communication application, an interface of a reading application, an interface of a shopping application, or a browser application. Interface and so on. Specifically, it can be determined according to actual use requirements, and the embodiment of the present invention does not limit it.
可选的,本发明实施例中,上述第一内容可以为文字,也可以为图片,还可以为文件等。具体可以根据实际使用需求确定,本发明实施例不作限定。Optionally, in this embodiment of the present invention, the above-mentioned first content may be text, pictures, or files. Specifically, it can be determined according to actual use requirements, and the embodiment of the present invention does not limit it.
可选的,本发明实施例中,上述第一输入可以包括第一子输入和第二子输入。其中,第一子输入为用户在第一界面上沿不同方向的滑动输入;第二子输入为用户对至少一个候选应用程序的标识中的目标应用程序的标识的输入,用于选中应用程序标识。Optionally, in this embodiment of the present invention, the foregoing first input may include a first sub-input and a second sub-input. Wherein, the first sub-input is the user's sliding input in different directions on the first interface; the second sub-input is the user's input of the identification of the target application in the identification of the at least one candidate application, and is used to select the application identification .
需要说明的是,对至少一个候选应用程序的标识的描述可以参见下述的S202中的相关描述,此处不予赘述。另外,本发明实施例中的应用程序的标识也可以称为应用标识。It should be noted that, for the description of the identification of at least one candidate application program, reference may be made to the related description in S202 below, which will not be repeated here. In addition, the identifier of the application program in the embodiment of the present invention may also be referred to as an application identifier.
可选的,本发明实施例中,上述第一子输入具体可以为用户在第一界面上沿“上”滑动、沿“下”滑动、沿“左”滑动或者沿“右”滑动的输入,具体可以根据实际使用需求确定,本发明实施例不作限定。Optionally, in the embodiment of the present invention, the above-mentioned first sub-input may specifically be an input of the user sliding "up", "down", "left", or "right" on the first interface. Specifically, it can be determined according to actual use requirements, and the embodiment of the present invention does not limit it.
需要说明的是,本发明实施例中的“上”、“下”、“左”、“右”方向均是以电子设备的屏幕朝向用户时,用户在屏幕上方的输入为例进行描述的。即本发明实施例中的“上”、“下”、“左”、“右”方向均是电子设备的屏幕朝向用户时,相对于用户而言的。可以理解,上述“上”、“下”、“左”、“右”方向均是示例性的列举,其并不对本发明实施例造成任何限定。实际实现中,还可以为其他任意可能的方向,具体可以根据实际使用需求确定,本发明实施例不作限定。It should be noted that the "up", "down", "left", and "right" directions in the embodiments of the present invention are all described by taking the user's input at the top of the screen when the screen of the electronic device faces the user. That is, the "up", "down", "left", and "right" directions in the embodiment of the present invention are relative to the user when the screen of the electronic device faces the user. It can be understood that the above-mentioned "up", "down", "left", and "right" directions are all exemplary enumerations, which do not impose any limitation on the embodiments of the present invention. In actual implementation, it may also be in any other possible directions, which may be specifically determined according to actual use requirements, which is not limited in the embodiment of the present invention.
可选的,本发明实施例中,上述第二子输入可以为用户在目标应用程序的标识上 的点击输入,或者,第二子输入可以为用户在目标应用程序的标识上的长按输入;或者,第二子输入可以为用户在目标应用程序的标识上的重按输入等。具体可以根据实际使用需求确定,本发明实施例不作限定。Optionally, in this embodiment of the present invention, the above-mentioned second sub-input may be a user's click input on the identification of the target application, or the second sub-input may be a long-press input of the user on the identification of the target application; Alternatively, the second sub-input may be a user's re-press input on the identification of the target application, etc. Specifically, it can be determined according to actual use requirements, and the embodiment of the present invention does not limit it.
可选的,上述目标应用程序的标识可以为一个应用程序的标识或多个应用程序的标识。具体可以根据实际使用需求确定,本发明实施例不作限定。Optionally, the identifier of the above-mentioned target application may be the identifier of one application or the identifiers of multiple applications. Specifically, it can be determined according to actual use requirements, and the embodiment of the present invention does not limit it.
S202、电子设备响应于第一输入,将第一界面中的第一内容设置为与目标应用程序对应的待粘贴内容。S202: In response to the first input, the electronic device sets the first content in the first interface as the content to be pasted corresponding to the target application.
本发明实施例中,在电子设备接收到用户的第一输入之后,电子设备可以响应于第一输入,将第一界面中的第一内容设置为与目标应用程序对应的待粘贴内容。具体的,在电子设备接收到用户的第一子输入之后,电子设备可以响应于第一子输入,根据预设规则,确定至少一个应用程序,并获取该至少一个应用程序的标识,得到至少一个候选应用程序的标识,然后电子设备可以在第一界面中显示该至少一个候选应用程序的标识。在电子设备接收到用户的第二子输入之后,电子设备可以响应于第二子输入,将第一界面中的第一内容设置为与目标应用程序对应的待粘贴内容。In the embodiment of the present invention, after the electronic device receives the user's first input, the electronic device may respond to the first input and set the first content in the first interface as the content to be pasted corresponding to the target application. Specifically, after the electronic device receives the first sub-input of the user, the electronic device may determine at least one application program according to a preset rule in response to the first sub-input, and obtain the identification of the at least one application program, and obtain at least one application program. The identification of the candidate application, and then the electronic device may display the identification of the at least one candidate application in the first interface. After the electronic device receives the second sub-input of the user, the electronic device may respond to the second sub-input and set the first content in the first interface as the content to be pasted corresponding to the target application.
本发明实施例中,在电子设备将第一内容设置为与目标应用程序对应的待粘贴内容之后,目标应用程序对应的待粘贴内容中可以包括第一内容。In the embodiment of the present invention, after the electronic device sets the first content as the content to be pasted corresponding to the target application, the content to be pasted corresponding to the target application may include the first content.
可选的,本发明实施例中,上述至少一个候选应用程序的标识中的每个候选应用程序的标识分别可以指示一个应用程序,且不同的候选应用程序的标识可以用于指示不同的应用程序。Optionally, in the embodiment of the present invention, the identifier of each candidate application in the identifiers of the at least one candidate application may indicate one application, and the identifiers of different candidate applications may be used to indicate different applications. .
可选的,本发明实施例中,在目标应用程序的标识为一个应用程序的标识的情况下,电子设备响应于第一输入,可以将第一内容设置为与目标应用程序对应的待粘贴内容。在目标应用程序的标识多个应用程序的标识的情况下,电子设备可以将第一内容分别设置为与目标应用程序对应的待粘贴内容。Optionally, in the embodiment of the present invention, in the case where the identification of the target application is the identification of an application, the electronic device may set the first content as the content to be pasted corresponding to the target application in response to the first input . In the case where the target application program identifies multiple application programs, the electronic device may respectively set the first content as the content to be pasted corresponding to the target application program.
可选的,本发明实施中,上述预设规则可以为获取预设时间段内运行的应用程序。相应的,上述至少一个候选应用程序的标识可以为电子设备在预设时间段内运行的应用程序的标识,例如,获取最近一个月内运行的应用程序的标识;或者,上述预设规则可以为获取预设时间段内,用户使用频率大于频率阈值的应用程序。相应的,上述至少一个候选应用程序的标识可以为在预设时间段内,用户使用频率大于频率阈值的应用程序的标识,例如,获取最近两个月内,用户使用频率大于频率阈值的应用程序的标识。Optionally, in the implementation of the present invention, the foregoing preset rule may be to obtain an application program running within a preset time period. Correspondingly, the identification of the at least one candidate application may be an identification of an application that the electronic device runs within a preset period of time, for example, the identification of an application that is running within the last month is obtained; or the preset rule may be Obtain applications that are used by the user more than the frequency threshold within a preset time period. Correspondingly, the identification of the above-mentioned at least one candidate application may be an identification of an application whose frequency of use by the user is greater than the frequency threshold within a preset time period, for example, obtaining an application whose frequency of use by the user is greater than the frequency threshold in the last two months Of the logo.
可选的,本发明实施例中,当电子设备在第一界面中显示至少一个候选应用程序的标识时,电子设备可以按照预设比例缩小显示第一界面中的原始内容(即接收第一 输入之前第一界面显示的内容)。Optionally, in this embodiment of the present invention, when the electronic device displays the identification of at least one candidate application in the first interface, the electronic device may display the original content in the first interface in a reduced scale according to a preset scale (ie, receive the first input) The content displayed on the first interface before).
下面结合图3对上述S201和S202进行示例性的说明。The above S201 and S202 will be exemplarily described below in conjunction with FIG. 3.
示例性的,如图3中的(a)所示,为电子设备显示第一界面的界面示意图,假设第一内容为30所示的内容。当用户对第一内容30执行选中输入时,如图3中的(b)所示,电子设备可以选中第一内容30。如图3中的(c)所示,当用户在第一界面上对第一内容执行第一子输入,即用户在第一界面上沿31所示的方向滑动之后,如图3中的(d)所示,电子设备可以在第一界面中显示应用标识32(指示短消息应用程序)、应用标识33(指示通讯应用程序)、应用标识34(指示视频应用程序)、应用标识35(指示购物1应用程序)和应用标识36(指示地图应用程序),并缩小显示第一界面中的原始内容。假设目标应用程序为通讯应用程序,当用户对应用标识33执行第二子输入时,电子设备响应于第二子输入,可以将第一内容30设置为与应用标识33指示的通讯应用程序对应的待粘贴内容。Exemplarily, as shown in (a) of FIG. 3, it is a schematic diagram of an interface of an electronic device displaying a first interface. It is assumed that the first content is the content shown in 30. When the user performs a selection input on the first content 30, as shown in (b) of FIG. 3, the electronic device can select the first content 30. As shown in Figure 3 (c), when the user performs the first sub-input on the first content on the first interface, that is, after the user slides in the direction shown by 31 on the first interface, as shown in Figure 3 ( As shown in d), the electronic device can display application identification 32 (indicating a short message application), application identification 33 (indicating a communication application), application identification 34 (indicating a video application), and application identification 35 (indicating a video application) in the first interface. Shopping 1 application) and application identification 36 (indicating a map application), and display the original content in the first interface in a reduced size. Assuming that the target application is a communication application, when the user performs a second sub-input on the application identifier 33, the electronic device responds to the second sub-input and can set the first content 30 to correspond to the communication application indicated by the application identifier 33 Content to be pasted.
需要说明的是,上述图3中的(c)中,为了清楚地示意用户第一输入的方向,图3中的(c)显示的第一界面的内容未在图中示出,实际实现中,图3中的(c)显示的第一界面的内容与图3中的(b)所示的内容相同。It should be noted that, in (c) of FIG. 3, in order to clearly indicate the direction of the user's first input, the content of the first interface shown in (c) of FIG. 3 is not shown in the figure. In actual implementation , The content of the first interface displayed in (c) in FIG. 3 is the same as the content shown in (b) in FIG. 3.
需要说明的是,本发明实施例中,电子设备执行上述S201-S202可以称为电子设备复制内容。It should be noted that, in this embodiment of the present invention, the electronic device performing the above S201-S202 may be referred to as copying content by the electronic device.
S203、电子设备接收用户的第二输入。S203. The electronic device receives a second input from the user.
其中,上述第二输入可以用于触发电子设备在第二界面中的目标输入区域显示输入光标。即用户可以通过第二输入触发电子设备控制输入光标位于第二界面中的目标输入区域。The above-mentioned second input may be used to trigger the electronic device to display an input cursor in the target input area in the second interface. That is, the user can trigger the electronic device to control the input cursor to be located in the target input area in the second interface through the second input.
S204、电子设备响应于第二输入,在第二界面显示与目标应用程序对应的待粘贴内容。S204. In response to the second input, the electronic device displays the content to be pasted corresponding to the target application on the second interface.
本发明实施例中,在电子设备接收到用户的第二输入,即输入光标位于第二界面中的目标输入区域的情况下,电子设备可以响应于第二输入,在第二界面显示与目标应用程序对应的待粘贴内容。In the embodiment of the present invention, when the electronic device receives the second input from the user, that is, the input cursor is located in the target input area on the second interface, the electronic device may respond to the second input and display the data with the target application on the second interface. The content to be pasted corresponding to the program.
其中,上述待粘贴内容中可以包括第一内容。可以理解,上述待粘贴内容中可以只包括第一内容;或者也可以既包括第一内容,还包括其他内容。Wherein, the content to be pasted may include the first content. It can be understood that the above-mentioned content to be pasted may only include the first content; or may also include both the first content and other content.
可选的,本发明实施例中,电子设备可以按照待粘贴内容中每个内容时间顺序依次显示待粘贴内容中的每个内容。其中,该时间顺序可以为距离当前时间,从近到远或从远到近等。Optionally, in this embodiment of the present invention, the electronic device may sequentially display each content in the content to be pasted in chronological order. Among them, the time sequence can be from the current time, from near to far, or from far to near, etc.
可选的,本发明实施例中,上述第二界面可以为目标应用程序的界面。Optionally, in this embodiment of the present invention, the above-mentioned second interface may be an interface of a target application.
本发明实施例中,在用户执行第二输入之前,用户可以触发电子设备运行目标应用程序。在用户触发电子设备运行目标应用程序之后,电子设备可以在屏幕上显示第二界面(即目标应用程序的界面)。然后用户可以触发电子设备控制输入光标位于第二界面中的目标输入区域中,这种情况下,当电子设备检测到输入光标位于第二界面中的目标输入区域中时,电子设备可确定用户可能需要输入内容,此时电子设备可以获取与目标应用程序对应的待粘贴内容,并将该待粘贴内容显示在第二界面中,用于提示用户有可粘贴的内容。In the embodiment of the present invention, before the user performs the second input, the user can trigger the electronic device to run the target application. After the user triggers the electronic device to run the target application, the electronic device can display the second interface (ie, the interface of the target application) on the screen. Then the user can trigger the electronic device to control the input cursor to be located in the target input area in the second interface. In this case, when the electronic device detects that the input cursor is located in the target input area in the second interface, the electronic device can determine that the user may The content needs to be input. At this time, the electronic device can obtain the content to be pasted corresponding to the target application, and display the content to be pasted in the second interface to prompt the user that there is content that can be pasted.
可选的,本发明实施例中,电子设备可以在第二界面中保持显示目标应用程序对应的待粘贴内容,直至用户通过输入触发电子设备取消显示该待粘贴内容。Optionally, in this embodiment of the present invention, the electronic device may keep displaying the content to be pasted corresponding to the target application in the second interface until the user triggers the electronic device to cancel displaying the content to be pasted through input.
S205、电子设备接收用户对待粘贴内容中的第一内容的第三输入。S205: The electronic device receives a third input of the first content in the content to be pasted by the user.
可选的,本发明实施例中,上述第三输入可以为用户在第一内容上的点击输入,或者,第三输入可以为用户在第一内容上的长按输入;或者,第三输入可以为用户在第一内容上的重按输入等。具体可以根据实际使用需求确定,本发明实施例不作限定。Optionally, in this embodiment of the present invention, the above-mentioned third input may be a user's click input on the first content, or the third input may be a user's long-press input on the first content; or, the third input may be It is the user's re-press input on the first content, etc. Specifically, it can be determined according to actual use requirements, and the embodiment of the present invention does not limit it.
S206、电子设备响应于第三输入,在目标输入区域中显示第一内容。S206: In response to the third input, the electronic device displays the first content in the target input area.
本发明实施例中,在电子设备接收到用户的第三输入之后,电子设备可以响应于第三输入,在目标输入区域中显示第一内容。即电子设备可以将用户通过第三输入选中的内容直接显示在目标输入区域中,从而使得用户无需在目标输入区域中再手动输入该内容,进而可以提高输入内容的便捷性和输入效率。In the embodiment of the present invention, after the electronic device receives the third input of the user, the electronic device may display the first content in the target input area in response to the third input. That is, the electronic device can directly display the content selected by the user through the third input in the target input area, so that the user does not need to manually input the content in the target input area, thereby improving the convenience and efficiency of inputting content.
下面结合图4对上述S203-S206进行示例性的说明。The above S203-S206 will be exemplarily described below in conjunction with FIG. 4.
示例性的,假设目标应用程序为通讯应用程序,如图4中的(a)所示,为电子设备显示通讯应用程序的界面(即第二界面)的界面示意图。在电子设备检测到输入光标40位于第二界面中的输入区域41的情况下,如图4中的(b)所示,电子设备可以在第二界面显示通讯应用程序对应的待粘贴内容42。当用户对待粘贴内容42中的第一内容43执行第三输入时,如图4中的(c)所示,电子设备可以在输入区域41中显示第一内容43。Exemplarily, assuming that the target application is a communication application, as shown in (a) of FIG. 4, it is a schematic diagram of an interface of an electronic device displaying an interface (ie, a second interface) of the communication application. When the electronic device detects that the input cursor 40 is located in the input area 41 in the second interface, as shown in (b) of FIG. 4, the electronic device may display the content to be pasted 42 corresponding to the communication application on the second interface. When the user performs the third input of the first content 43 in the content to be pasted 42, as shown in (c) of FIG. 4, the electronic device may display the first content 43 in the input area 41.
需要说明的是,当上述电子设备在输入区域41中显示第一内容43之后,电子设备可以取消显示待粘贴内容42,也可以继续显示待粘贴内容42,具体可以根据实际使用需求确定,本发明实施例不作限定。It should be noted that after the above-mentioned electronic device displays the first content 43 in the input area 41, the electronic device can cancel the display of the content 42 to be pasted, or continue to display the content 42 to be pasted, which can be determined according to actual usage requirements. The embodiment is not limited.
进一步的,当电子设备取消显示待粘贴内容42时,如果用户还需求在输入区域41中输入待粘贴内容42中除第一内容43之外的其他内容,则用户可以通过其他输入触发电子设备重新显示待粘贴内容42。Further, when the electronic device cancels the display of the content 42 to be pasted, if the user still needs to input content other than the first content 43 in the content 42 to be pasted in the input area 41, the user can trigger the electronic device to restart by other input. The content to be pasted 42 is displayed.
需要说明的是,本发明实施例中,电子设备执行上述S203-S206可以称为电子设 备粘贴内容。It should be noted that, in the embodiment of the present invention, the electronic device executing the above S203-S206 can be referred to as the electronic device pasting content.
本发明实施例提供的粘贴控制方法中,若用户需求将某些内容(例如文本内容)复制粘贴到某个应用程序的界面的输入区域中,则用户可以先通过一个输入,触发电子设备将这些内容分别设置为与该应用程序对应的待粘贴内容。然后,当电子设备的输入光标位于该应用程序的界面的输入区域时,电子设备可以直接显示该应用程序对应的待粘贴内容,从而用户可以再通过一个输入,触发电子设备将这些内容粘贴显示在该输入区域中,而无需用户多次重复执行一系列操作才可以将这些内容复制粘贴到该输入区域中,因此可以简化电子设备复制粘贴的过程,提高电子设备复制粘贴的效率,提高人机交互性能。In the paste control method provided by the embodiment of the present invention, if the user needs to copy and paste some content (such as text content) into the input area of the interface of a certain application, the user can first pass an input to trigger the electronic device to transfer these The content is respectively set as the content to be pasted corresponding to the application. Then, when the input cursor of the electronic device is located in the input area of the interface of the application, the electronic device can directly display the content to be pasted corresponding to the application, so that the user can use another input to trigger the electronic device to paste and display the content in In the input area, the user does not need to repeat a series of operations to copy and paste the content into the input area, so the process of copying and pasting electronic devices can be simplified, the efficiency of copying and pasting electronic devices can be improved, and the human-computer interaction can be improved. performance.
可选的,本发明实施例中,在电子设备接收到用户的第一输入之后,电子设备响应于第一输入,还可以将第一内容复制到目标应用程序的缓冲区。Optionally, in this embodiment of the present invention, after the electronic device receives the user's first input, the electronic device may also copy the first content to the buffer of the target application in response to the first input.
示例性的,在上述S201之后,本发明实施例提供的粘贴控制方法还可以包括下述的S207。Exemplarily, after the above S201, the pasting control method provided by the embodiment of the present invention may further include the following S207.
S207、电子设备响应于第一输入,将第一内容复制至目标缓冲区。S207. In response to the first input, the electronic device copies the first content to the target buffer area.
其中,上述目标缓冲区可以为目标应用程序的缓冲区。例如,如图3中的(d)所示,假设目标应用程序的标识为应用标识32,则目标缓冲区可以为应用标识32指示的短消息应用程序的缓冲区。Wherein, the above-mentioned target buffer area may be a buffer area of a target application program. For example, as shown in (d) of FIG. 3, assuming that the identifier of the target application is the application identifier 32, the target buffer may be the buffer of the short message application indicated by the application identifier 32.
可选的,本发明实施例中,电子设备中的每个应用程序均可以对应一个缓冲区,每个应用程序的缓冲区可以用于存储与该应用程序对应的待粘贴的内容。例如,目标缓冲区可以用于存储与目标应用程序对应的待粘贴内容,即上述的第一内容。Optionally, in this embodiment of the present invention, each application in the electronic device may correspond to a buffer, and the buffer of each application may be used to store content to be pasted corresponding to the application. For example, the target buffer can be used to store the content to be pasted corresponding to the target application, that is, the aforementioned first content.
本发明实施例中,在电子设备接收到用户的第一输入之后,电子设备可以响应于第一输入,将第一内容设置为与目标应用程序对应的待粘贴内容,并复制第一内容,将复制的第一内容存储至目标应用程序的缓冲区(即目标缓冲区)。In the embodiment of the present invention, after the electronic device receives the user's first input, the electronic device may respond to the first input by setting the first content as the content to be pasted corresponding to the target application, copy the first content, and change The copied first content is stored in the buffer of the target application (ie, the target buffer).
本发明实施例中,由于电子设备中的每个应用程序均可以对应一个缓冲区,因此电子设备可以将不同的内容分别存储在每个应用程序的缓冲区,从而可以实现将多个内容同时复制到不同应用程序的缓冲区的操作,进而可以实现将多个内容粘贴到不同应用程序的界面的输入区域的操作,即可以实现将多个内容复制粘贴到不同应用程序的界面的输入区域的操作。In the embodiment of the present invention, since each application in the electronic device can correspond to a buffer, the electronic device can store different contents in the buffer of each application, so that multiple contents can be copied at the same time. The operation to the buffer of different applications can then realize the operation of pasting multiple content to the input area of the interface of different applications, that is, the operation of copying and pasting multiple content to the input area of the interface of different applications .
可选的,本发明实施例中,在输入光标位于第二界面中的目标输入区域的情况下,在电子设备在第二界面中显示目标应用程序对应的待粘贴内容之前,电子设备可以先显示一个提示信息,以提示用户确定是否在目标输入区域中粘贴显示目标应用程序对应的待粘贴内容。Optionally, in the embodiment of the present invention, when the input cursor is located in the target input area in the second interface, before the electronic device displays the content to be pasted corresponding to the target application in the second interface, the electronic device may first display A prompt message to prompt the user to determine whether to paste the content to be pasted corresponding to the target application in the target input area.
示例性的,在上述S203之后,本发明实施例提供的粘贴控制方法可以包括下述的S208。并且上述S204可以通过下述的S204a-S204b实现。Exemplarily, after the above S203, the pasting control method provided by the embodiment of the present invention may include the following S208. And the above S204 can be implemented by the following S204a-S204b.
S208、电子设备在第二界面中显示目标提示信息。S208. The electronic device displays the target prompt information in the second interface.
其中,上述目标提示信息可以用于提示用户确定是否在目标输入区域中粘贴显示目标应用程序对应的待粘贴内容(即目标缓冲区中的内容)。上述目标提示信息可以为电子设备中预设的提示信息,也可以为电子设备实时生成的提示信息,具体可以根据实际使用需求确定,本发明实施例不作限定。Wherein, the aforementioned target prompt information may be used to prompt the user to determine whether to paste the content to be pasted corresponding to the target application (that is, the content in the target buffer) in the target input area. The above-mentioned target prompt information may be preset prompt information in the electronic device, or prompt information generated in real time by the electronic device, which can be specifically determined according to actual use requirements, and is not limited in the embodiment of the present invention.
可选的,本发明实施例中,上述目标提示信息可以包括第一提示内容和第一提示选项。第一提示内容可以用于提示用户确定是否在目标输入区域中粘贴显示目标应用程序对应的待粘贴内容(即目标缓冲区中的内容)。第一提示选项可以包括第一选项和第二选项;其中,第一选项可以用于确定在目标输入区域中粘贴显示目标应用程序对应的待粘贴内容(即目标缓冲区中的内容),即用户对第一选项的输入可以用于确定在目标输入区域中粘贴显示目标应用程序对应的待粘贴内容(即目标缓冲区中的内容);第二选项可以用于确定不在目标输入区域中粘贴显示目标应用程序对应的待粘贴内容(即目标缓冲区中的内容),即用户对第二选项的输入可以用于确定不在目标输入区域中粘贴显示目标应用程序对应的待粘贴内容(即目标缓冲区中的内容)。Optionally, in this embodiment of the present invention, the above-mentioned target prompt information may include the first prompt content and the first prompt option. The first prompt content may be used to prompt the user to determine whether to paste the content to be pasted corresponding to the target application program (that is, the content in the target buffer area) in the target input area. The first prompt option may include a first option and a second option; the first option may be used to determine to paste the content to be pasted corresponding to the target application (that is, the content in the target buffer) in the target input area, that is, the user The input of the first option can be used to determine to paste and display the content to be pasted corresponding to the target application in the target input area (that is, the content in the target buffer); the second option can be used to determine not to paste the display target in the target input area The content to be pasted corresponding to the application program (that is, the content in the target buffer), that is, the user's input to the second option can be used to determine not to paste the content to be pasted corresponding to the target application in the target input area (that is, the content in the target buffer Content).
示例性的,如图5所示,上述目标提示信息可以为“是否粘贴缓冲区中的内容”(如图5中的50所示),上述第一选项可以为“是”选项(如图5中的51所示),上述第二选项可以为“否”选项(如图5中的52所示)。Exemplarily, as shown in FIG. 5, the target prompt message may be "whether to paste the content in the buffer" (as shown by 50 in FIG. 5), and the first option may be the "yes" option (as shown in FIG. 5). As shown in 51), the above-mentioned second option may be a "No" option (as shown in 52 in Figure 5).
S204a、电子设备接收用户对目标提示信息的第七输入。S204a. The electronic device receives the seventh input of the user to the target prompt information.
其中,上述第七输入可以为用户对上述第一选项的输入,即第七输入可以用于确定在目标输入区域中粘贴显示目标应用程序对应的待粘贴内容(即目标缓冲区中的内容)。The seventh input may be the user's input to the first option, that is, the seventh input may be used to determine to paste and display the content to be pasted corresponding to the target application in the target input area (that is, the content in the target buffer).
示例性的,第七输入可以为用户对上述如图5中的51所示的“是”选项的输入。Exemplarily, the seventh input may be the user's input to the “Yes” option shown in 51 in FIG. 5.
S204b、电子设备响应于第七输入,在第二界面中显示待粘贴内容。S204b. In response to the seventh input, the electronic device displays the content to be pasted in the second interface.
本发明实施例中,在电子设备接收到用户的第七输入之后,电子设备响应于第七输入,可以在第二界面中显示目标应用程序对应的待粘贴内容(即目标缓冲区中的内容)。从而用户可以对待粘贴内容中的第一内容输入,触发电子设备在目标输入区域中显示第一内容。其中,目标应用程序对应的待粘贴内容可以为目标应用程序对应的全部待粘贴内容。In the embodiment of the present invention, after the electronic device receives the seventh input of the user, the electronic device can display the content to be pasted corresponding to the target application (that is, the content in the target buffer) in the second interface in response to the seventh input. . Therefore, the user can input the first content in the content to be pasted, and trigger the electronic device to display the first content in the target input area. The content to be pasted corresponding to the target application may be all content to be pasted corresponding to the target application.
需要说明的是,本发明实施例中,当用户对上述第二选项执行一个输入时,电子设备响应于该输入,无需执行任何操作,即电子设备不会在第二界面中显示目标应用 程序对应的待粘贴内容。It should be noted that, in the embodiment of the present invention, when the user performs an input on the above-mentioned second option, the electronic device does not need to perform any operation in response to the input, that is, the electronic device will not display the target application corresponding to the second interface. The content to be pasted.
本发明实施例中,由于电子设备在第二界面中显示目标应用程序对应的待粘贴内容之前,可以先显示一个提示消息,提示用户是否需要粘贴目标应用程序对应的待粘贴内容,且只有在用户触发电子设备显示目标应用程序对应的待粘贴内容的情况下,电子设备才可以显示待粘贴内容,即在用户未触发电子设备显示目标应用程序对应的待粘贴内容的情况下,电子设备不显示待粘贴内容,从而用户可以继续执行其他操作,进而可以提高显示待粘贴内容的灵活性,提高人机交互性能。In the embodiment of the present invention, before the electronic device displays the content to be pasted corresponding to the target application in the second interface, it may first display a prompt message to prompt the user whether the content to be pasted corresponding to the target application needs to be pasted, and only when the user needs to paste the content to be pasted corresponding to the target application. When the electronic device is triggered to display the content to be pasted corresponding to the target application, the electronic device can display the content to be pasted, that is, when the user does not trigger the electronic device to display the content to be pasted corresponding to the target application, the electronic device does not display the content to be pasted. Paste the content, so that the user can continue to perform other operations, thereby improving the flexibility of displaying the content to be pasted, and improving the human-computer interaction performance.
可选的,本发明实施例中,在用户触发电子设备将第一界面中的第一内容设置为与目标应用程序对应的待粘贴内容之后,用户还可以通过一个输入(例如下述的第四输入),触发电子设备将第一内容从目标应用程序对应的待粘贴内容中删除。Optionally, in this embodiment of the present invention, after the user triggers the electronic device to set the first content in the first interface as the content to be pasted corresponding to the target application, the user may also pass an input (for example, the following fourth Enter) to trigger the electronic device to delete the first content from the content to be pasted corresponding to the target application.
示例性的,在上述S202之后,本发明实施例提供的粘贴控制方法还可以包括下述的S209和S2010。Exemplarily, after the above S202, the pasting control method provided by the embodiment of the present invention may further include the following S209 and S2010.
S209、电子设备接收用户的第四输入。S209. The electronic device receives the fourth input of the user.
可选的,本发明实施例中,上述第四输入可以为用户沿第一方向甩动电子设备一次、两次或第一预设次数的输入。例如,第一方向可以为顺时针方向、“左”方向或“右”方向。Optionally, in this embodiment of the present invention, the foregoing fourth input may be an input in which the user shakes the electronic device in the first direction once, twice, or a first preset number of times. For example, the first direction may be a clockwise direction, a "left" direction, or a "right" direction.
S2010、电子设备响应于第四输入,将第一内容从目标应用程序对应的待粘贴内容中删除。S2010. In response to the fourth input, the electronic device deletes the first content from the content to be pasted corresponding to the target application.
本发明实施例中,在电子设备接收到用户的第四输入之后,电子设备可以响应于第四输入,根据设置顺序确定最近一次设置的与目标应用程序对应的待粘贴内容(即第一内容),然后电子设备可以将第一内容从目标应用程序对应的待粘贴内容中删除,即电子设备可以将第一内容从目标应用程序的缓冲区中删除。In the embodiment of the present invention, after the electronic device receives the fourth input of the user, the electronic device may, in response to the fourth input, determine the most recently set content to be pasted corresponding to the target application (that is, the first content) according to the setting sequence. , Then the electronic device can delete the first content from the content to be pasted corresponding to the target application, that is, the electronic device can delete the first content from the buffer of the target application.
本发明实施例中,在电子设备将第一内容设置为与目标应用程序对应的待粘贴内容之后,由于用户还可以通过一个输入,触发电子设备将第一内容从目标应用程序对应的待粘贴内容中删除,因此可以便于用户快捷地删除电子设备最近一次设置的与目标应用程序对应的待粘贴内容,从而提高复制内容(即触发电子设备将内容存储至缓冲区)的灵活性。In the embodiment of the present invention, after the electronic device sets the first content as the content to be pasted corresponding to the target application, since the user can also use an input to trigger the electronic device to remove the first content from the content to be pasted corresponding to the target application Therefore, it is convenient for the user to quickly delete the content to be pasted corresponding to the target application set last time by the electronic device, thereby improving the flexibility of copying the content (that is, triggering the electronic device to store the content in the buffer).
具体的,本发明实施例中,在电子设备将第一内容设置为与目标应用程序对应的待粘贴内容之后,用户可以对电子设备执行一个输入,例如:晃动电子设备,触发电子设备将第一内容从目标应用程序对应的待粘贴内容中删除。Specifically, in the embodiment of the present invention, after the electronic device sets the first content as the content to be pasted corresponding to the target application, the user can perform an input to the electronic device, for example, shaking the electronic device to trigger the electronic device to set the first content. The content is deleted from the content to be pasted corresponding to the target application.
可选的,本发明实施例中,在电子设备在第二界面中显示与目标应用程序对应的待粘贴内容之后,用户可以通过一个输入(例如下述的第八输入),触发电子设备对 显示的待粘贴内容执行相关操作。Optionally, in this embodiment of the present invention, after the electronic device displays the content to be pasted corresponding to the target application in the second interface, the user can trigger the electronic device to display the content through an input (for example, the eighth input below) Perform related operations on the content to be pasted.
示例性的,在上述S204之后,本发明实施例提供的粘贴控制方法还可以包括下述的S2011-S2012。Exemplarily, after the above S204, the pasting control method provided by the embodiment of the present invention may further include the following S2011-S2012.
S2011、电子设备接收用户的第八输入。S2011. The electronic device receives the eighth input of the user.
可选的,本发明实施例中,上述第八输入可以为以下任意一项:用户对第二界面中的删除选项(例如图4中的(b)中的选项2003)的输入、用户对第二界面中的第一调整选项(例如图4中的(b)中的选项2001)或第二调整选项(例如图4中的(b)中的选项2002)的输入。Optionally, in the embodiment of the present invention, the above-mentioned eighth input may be any one of the following: the user's input to the delete option in the second interface (for example, the option 2003 in (b) in FIG. 4), and the user's input to the first Input of the first adjustment option (for example, the option 2001 in (b) in FIG. 4) or the second adjustment option (for example, the option 2002 in (b) in FIG. 4) in the second interface.
S2012、电子设备响应于第八输入,执行第一操作。S2012. In response to the eighth input, the electronic device executes the first operation.
本发明实施例中,在电子设备接收到用户的第八输入之后,电子设备可以响应于第八输入,执行第一操作。In the embodiment of the present invention, after the electronic device receives the eighth input of the user, the electronic device may perform the first operation in response to the eighth input.
可选的,本发明实施例中,上述第一操作可以包括以下任意一项:电子设备删除待粘贴内容中的内容、电子设备调整待粘贴内容中不同内容在第二界面中的显示顺序。具体的,在第八输入为用户对第二界面中的删除选项的输入的情况下,第一操作可以为电子设备删除待粘贴内容中的内容。在第八输入为用户对第二界面中的第一调整选项或第二调整选项的输入的情况下,第一操作可以为电子设备调整待粘贴内容中不同内容在第二界面中的显示顺序。Optionally, in the embodiment of the present invention, the foregoing first operation may include any one of the following: the electronic device deletes the content in the content to be pasted, and the electronic device adjusts the display order of different content in the content to be pasted in the second interface. Specifically, in the case where the eighth input is the user's input to the delete option in the second interface, the first operation may be that the electronic device deletes the content in the content to be pasted. In the case where the eighth input is the user's input to the first adjustment option or the second adjustment option in the second interface, the first operation may be for the electronic device to adjust the display order of different content in the content to be pasted in the second interface.
本发明实施例中,由于用户可以触发电子设备调整待粘贴内容中不同内容在第二界面中的显示顺序,因此可以便于用户对多个内容执行同一操作。In the embodiment of the present invention, since the user can trigger the electronic device to adjust the display order of different content in the content to be pasted in the second interface, it is convenient for the user to perform the same operation on multiple content.
可选的,本发明实施例中,第二界面中显示的待粘贴内容中,除显示的第一个内容和最后一个内容之外,每个内容均可以对应一个删除选项、一个第一调整选项和一个第二调整选项。第一个内容可以对应一个删除选项和一个第二调整选项,最后一个内容可以对应一个删除选项和一个第一调整选项。Optionally, in this embodiment of the present invention, among the content to be pasted displayed in the second interface, except for the first content and the last content displayed, each content may correspond to a delete option and a first adjustment option. And a second adjustment option. The first content can correspond to a deletion option and a second adjustment option, and the last content can correspond to a deletion option and a first adjustment option.
下面结合图4中的(b)和图6对上述S2011和S2012进行示例性的说明。The above S2011 and S2012 will be exemplarily described below in conjunction with (b) in FIG. 4 and FIG. 6.
示例性的,如图4中的(b)所示,为电子设备在第二界面中显示目标应用程序对应的待粘贴内容42的示意图。其中,待粘贴内容42包括内容43、内容44、内容45和内容46。内容43对应第二调整选项1001和删除选项1002,内容44对应第一调整选项2001、第二调整选项2002和删除选项2003,内容45对应第一调整选项3001、第二调整选项3002和删除选项3003,内容46对应第一调整选项4001和删除选项4002。在用户点击删除选项2003之后,如图6中的(a)所示,电子设备可以取消显示内容44,即删除待粘贴内容中的内容44。在用户点击第一调整选项2001之后,如图6中的(b)所示,电子设备可以调整内容43和内容44的显示顺序,即电子设备可以调整 内容43和内容44在目标缓冲区的存储顺序。在用户点击第二调整选项2002之后,如图6中的(c)所示,电子设备可以调整内容44和内容45的显示顺序,即电子设备可以调整内容44和内容45在目标缓冲区的存储顺序。Exemplarily, as shown in (b) of FIG. 4, it is a schematic diagram of the electronic device displaying the content to be pasted 42 corresponding to the target application in the second interface. The content 42 to be pasted includes content 43, content 44, content 45, and content 46. The content 43 corresponds to the second adjustment option 1001 and the deletion option 1002, the content 44 corresponds to the first adjustment option 2001, the second adjustment option 2002, and the deletion option 2003, and the content 45 corresponds to the first adjustment option 3001, the second adjustment option 3002, and the deletion option 3003. , The content 46 corresponds to the first adjustment option 4001 and the deletion option 4002. After the user clicks the delete option 2003, as shown in (a) in FIG. 6, the electronic device can cancel the display of the content 44, that is, delete the content 44 in the content to be pasted. After the user clicks the first adjustment option 2001, as shown in Figure 6(b), the electronic device can adjust the display order of the content 43 and the content 44, that is, the electronic device can adjust the storage of the content 43 and the content 44 in the target buffer order. After the user clicks on the second adjustment option 2002, as shown in (c) in FIG. 6, the electronic device can adjust the display order of the content 44 and the content 45, that is, the electronic device can adjust the storage of the content 44 and the content 45 in the target buffer order.
本发明实施例中,由于用户可以通过不同的输入,触发电子设备对第二界面中的待粘贴内容执行不同的操作,因此可以便于用户在同一界面中完成不同的操作,进而可以提高人机交互性能。In the embodiment of the present invention, since the user can trigger the electronic device to perform different operations on the content to be pasted in the second interface through different inputs, it is convenient for the user to complete different operations in the same interface, thereby improving human-computer interaction. performance.
可选的,本发明实施例中,在电子设备在目标输入区域中显示第一内容之后,用户可以通过一个输入(例如下述的第五输入)触发电子设备显示至少一个应用程序的标识和每个应用程序对应的待粘贴内容。Optionally, in this embodiment of the present invention, after the electronic device displays the first content in the target input area, the user can trigger the electronic device to display at least one application identifier and each application through an input (for example, the fifth input described below). The content to be pasted corresponding to each application.
示例性的,在上述S206之后,本发明实施例提供的粘贴控制方法还可以包括下述的S2013-S2014。Exemplarily, after the above S206, the pasting control method provided by the embodiment of the present invention may further include the following S2013-S2014.
S2013、电子设备接收用户的第五输入。S2013. The electronic device receives the fifth input of the user.
可选的,本发明实施例中,上述第五输入可以为用户沿第二方向甩动电子设备一次、两次或第二预设次数的输入。例如,第二方向可以为与第一方向不同的方向,例如可以为逆时针方向、“后”方向或“左”方向。Optionally, in this embodiment of the present invention, the above-mentioned fifth input may be an input in which the user shakes the electronic device in the second direction once, twice, or a second preset number of times. For example, the second direction may be a direction different from the first direction, for example, it may be a counterclockwise direction, a "rear" direction, or a "left" direction.
S2014、电子设备响应于第五输入,显示至少一个应用程序的标识和与每个应用程序对应的待粘贴内容。S2014. In response to the fifth input, the electronic device displays the identification of at least one application and the content to be pasted corresponding to each application.
其中,上述至少一个应用程序可以包括第一应用程序和第二应用程序。Wherein, the aforementioned at least one application program may include a first application program and a second application program.
可选的,本发明实施例中,电子设备可以在第三界面显示至少一个应用程序的标识和与每个应用程序对应的待粘贴内容。其中,第三界面可以为电子设备显示应用程序的标识和应用程序对应的待粘贴内容的特定界面,也可以为电子设备在接收第五输入之前,电子设备运行的应用程序的界面。具体可以根据实际使用需求确定,本发明实施例不作限定。Optionally, in this embodiment of the present invention, the electronic device may display the identification of at least one application program and the content to be pasted corresponding to each application program on the third interface. The third interface may be a specific interface for the electronic device to display the identification of the application program and the content to be pasted corresponding to the application program, or it may be an interface of the application program that the electronic device runs before the electronic device receives the fifth input. Specifically, it can be determined according to actual use requirements, and the embodiment of the present invention does not limit it.
本发明实施例中,在电子设备接收到用户的第五输入之后,电子设备可以响应于第五输入,确定缓冲区中有待粘贴内容的至少一个应用程序,并获取该至少一个应用程序的标识,得到至少一个应用程序的标识,然后电子设备可以获取这些应用程序的缓冲区中的待粘贴内容(即与这些应用程序对应的待粘贴内容),并显示该至少一个应用程序的标识和与每个应用程序对应的待粘贴内容。In the embodiment of the present invention, after the electronic device receives the fifth input of the user, the electronic device may determine at least one application program whose content is to be pasted in the buffer in response to the fifth input, and obtain the identification of the at least one application program, Obtain the identification of at least one application, and then the electronic device can acquire the content to be pasted in the buffer of these applications (that is, the content to be pasted corresponding to these applications), and display the identification of the at least one application and each other The content to be pasted corresponding to the application.
可选的,本发明实施例中,上述至少一个应用程序的标识可以为电子设备的应用程序(第三方应用程序和系统应用程序)中,缓冲区包括待粘贴内容的应用程序的标识。Optionally, in the embodiment of the present invention, the identifier of the at least one application program described above may be an application program (third-party application program and system application program) of the electronic device, and the buffer includes the identifier of the application program to which the content is to be pasted.
可选的,本发明实施例中,上述至少一个应用程序的标识与上述至少一个候选应 用程序的标识可以部分相同,也可以全部相同。Optionally, in this embodiment of the present invention, the identifier of the aforementioned at least one application program and the identifier of the aforementioned at least one candidate application program may be partly or completely the same.
示例性的,在用户沿逆时针方向甩动电子设备一次之后,如图7所示,电子设备可以在第三界面显示应用标识70以及与应用标识70指示的短消息应用程序对应的待粘贴内容、应用标识71以及与应用标识71指示的地图应用程序对应的待粘贴内容。Exemplarily, after the user shakes the electronic device in the counterclockwise direction once, as shown in FIG. 7, the electronic device may display the application identification 70 and the content to be pasted corresponding to the short message application indicated by the application identification 70 on the third interface. , The application identifier 71 and the content to be pasted corresponding to the map application indicated by the application identifier 71.
本发明实施例中,由于用户通过一个输入,即可触发电子设备显示电子设备的应用程序中,缓冲区包括待粘贴内容的应用程序的应用标识和与每个应用程序对应待粘贴内容,因此可以便于用户查看当前与每个应用程序对应待粘贴内容,即每个应用程序的缓冲区的待粘贴内容。In the embodiment of the present invention, since the user can trigger the electronic device to display the application of the electronic device through an input, the buffer includes the application identifier of the application to be pasted and the content to be pasted corresponding to each application, so It is convenient for the user to view the current content to be pasted corresponding to each application, that is, the content to be pasted in the buffer of each application.
可选的,本发明实施例中,在电子设备显示至少一个应用程序的标识和与每个应用程序对应的待粘贴内容之后,用户还可以通过一个输入(例如下述的第六输入),触发电子设备对第一应用程序对应的待粘贴内容和第二应用程序对应的待粘贴内容执行相关操作。Optionally, in this embodiment of the present invention, after the electronic device displays the identification of at least one application and the content to be pasted corresponding to each application, the user may also trigger an input (for example, the sixth input below) The electronic device performs related operations on the content to be pasted corresponding to the first application program and the content to be pasted corresponding to the second application program.
S2015、电子设备接收用户对第一应用程序的标识和第二应用程序的标识的第六输入。S2015: The electronic device receives the user's sixth input of the identification of the first application and the identification of the second application.
可选的,本发明实施例中,上述第六输入可以用于触发电子设备对第一应用程序对应的待粘贴内容和第二应用程序对应的待粘贴内容进行互换,或者,可以用于触发电子设备将第一应用程序对应的待粘贴内容和第二应用程序对应的待粘贴内容均更新为目标内容。具体的,在第六输入用于触发电子设备对第一应用程序对应的待粘贴内容和第二应用程序对应的待粘贴内容进行互换的情况下,电子设备可以执行下述的S2016。在第六输入用于触发电子设备将第一应用程序对应的待粘贴内容和第二应用程序对应的待粘贴内容均更新为目标内容的情况下,电子设备可以执行下述的S2017。Optionally, in this embodiment of the present invention, the above-mentioned sixth input can be used to trigger the electronic device to exchange the content to be pasted corresponding to the first application program and the content to be pasted corresponding to the second application program, or can be used to trigger The electronic device updates both the content to be pasted corresponding to the first application program and the content to be pasted corresponding to the second application program to the target content. Specifically, in the case where the sixth input is used to trigger the electronic device to exchange the content to be pasted corresponding to the first application program and the content to be pasted corresponding to the second application program, the electronic device may execute the following S2016. In the case that the sixth input is used to trigger the electronic device to update the content to be pasted corresponding to the first application program and the content to be pasted corresponding to the second application program to the target content, the electronic device may execute the following S2017.
S2016、电子设备响应于第六输入,对第一应用程序对应的待粘贴内容和第二应用程序对应的待粘贴内容进行互换。S2016: In response to the sixth input, the electronic device exchanges the content to be pasted corresponding to the first application program and the content to be pasted corresponding to the second application program.
可选的,本发明实施例中,上述第六输入可以包括第三子输入和第四子输入。第三子输入可以为用户将第一应用程序的标识拖动至第二应用程序的标识上的输入。在用户执行第三子输入之后,电子设备可以显示第二提示信息(例如图8中的80所示)。第二提示信息可以包括第二提示内容(例如图8中的81所示)和第二提示选项。第二提示内容可以用于提示用户对上述两个应用程序标识指示的应用程序对应的待粘贴内容执行相关操作。第二提示选项可以包括第三选项(例如图8中的82所示)和第四选项(例如图8中的83所示);第三选项可以用于互换内容,即触发电子设备互换上述两个应用程序的标识指示的应用程序对应的待粘贴内容,第四选项可以用于同步内容,即触发电子设备将上述两个应用程序对应的待粘贴内容更新为这两个应用程序对应的 待粘贴内容的并集。其中,第四子输入可以为用户对第三选项的输入,在用户对第三选项执行第四子输入之后,电子设备可以互换上述两个应用标识指示的应用程序的缓冲区中的内容。Optionally, in this embodiment of the present invention, the above-mentioned sixth input may include a third sub-input and a fourth sub-input. The third sub-input may be an input in which the user drags the identification of the first application to the identification of the second application. After the user performs the third sub-input, the electronic device may display second prompt information (for example, as shown in 80 in FIG. 8). The second prompt information may include a second prompt content (for example, as shown in 81 in FIG. 8) and a second prompt option. The second prompt content may be used to prompt the user to perform related operations on the content to be pasted corresponding to the application indicated by the two application identifiers. The second prompt option may include a third option (for example, as shown in 82 in Figure 8) and a fourth option (for example, as shown in 83 in Figure 8); the third option can be used to exchange content, that is, to trigger electronic device exchange The content to be pasted corresponding to the application indicated by the identifiers of the two applications. The fourth option can be used to synchronize the content, that is, to trigger the electronic device to update the content to be pasted corresponding to the two applications to those corresponding to the two applications. The union of the content to be pasted. The fourth sub-input may be the user's input to the third option. After the user performs the fourth sub-input to the third option, the electronic device can exchange the content in the buffer of the application indicated by the two application identifiers.
S2017、电子设备响应于第六输入,将第一应用程序对应的待粘贴内容和第二应用程序对应的待粘贴内容均更新为目标内容。S2017: In response to the sixth input, the electronic device updates the content to be pasted corresponding to the first application program and the content to be pasted corresponding to the second application program to target content.
其中,上述目标内容可以为第一应用程序对应的待粘贴内容和第二应用程序对应的待粘贴内容的并集。The above-mentioned target content may be a union of the content to be pasted corresponding to the first application program and the content to be pasted corresponding to the second application program.
可选的,本发明实施例中,上述第六输入可以包括第五子输入和第六子输入。第五子输入可以为用户将第一应用程序的标识拖动至第二应用程序的标识上的输入。在用户执行第五子输入之后,电子设备可以显示第二提示信息(例如图8中的80所示)。第二提示信息可以包括第二提示内容(例如图8中的81所示)和第二提示选项。第二提示选项可以包括第三选项(例如图8中的82所示)和第四选项(例如图8中的83所示)。其中,第六子输入可以为用户对第四选项的输入,在用户对第四选项执行第六子输入之后,电子设备可以将这两个应用程序对应的待粘贴内容均更新为这两个应用程序对应的待粘贴内容的并集(即目标内容)。Optionally, in this embodiment of the present invention, the above-mentioned sixth input may include a fifth sub-input and a sixth sub-input. The fifth sub-input may be an input in which the user drags the identification of the first application to the identification of the second application. After the user performs the fifth sub-input, the electronic device may display second prompt information (for example, as shown in 80 in FIG. 8). The second prompt information may include a second prompt content (for example, as shown in 81 in FIG. 8) and a second prompt option. The second prompt option may include a third option (for example, as shown in 82 in FIG. 8) and a fourth option (for example, as shown in 83 in FIG. 8). The sixth sub-input may be the user's input for the fourth option. After the user performs the sixth sub-input for the fourth option, the electronic device may update the content to be pasted corresponding to the two applications to these two applications. The union of the content to be pasted corresponding to the program (that is, the target content).
示例性的,假设第一应用程序对应的待粘贴内容为“AAA”和“BBB”,第二应用程序对应的待粘贴内容为“AAAA”和“CCC”,在用户针对第一应用程序的标识和第二应用程序的标识执行第五子输入和第六子输入之后,电子设备可以将这两个应用程序对应的待粘贴内容均更新为:“AAA”、“BBB”、“AAAA”和“CCC”。Exemplarily, suppose that the content to be pasted corresponding to the first application is "AAA" and "BBB", and the content to be pasted corresponding to the second application is "AAAA" and "CCC". After performing the fifth sub-input and the sixth sub-input with the identifier of the second application, the electronic device can update the content to be pasted corresponding to the two applications to: "AAA", "BBB", "AAAA" and " CCC".
本发明实施例中,由于用户可以直接通过一个输入,触发电子设备对第一应用程序对应的待粘贴内容和第二应用程序对应的待粘贴内容进行互换,或者,触发电子设备将第一应用程序对应的待粘贴内容和第二应用程序对应的待粘贴内容均更新为目标内容,因此可以方便用户调整应用程序对应的待粘贴内容中的内容,提高人机交互性能。In the embodiment of the present invention, because the user can directly pass an input, trigger the electronic device to exchange the content to be pasted corresponding to the first application program and the content to be pasted corresponding to the second application program, or trigger the electronic device to change the first application The content to be pasted corresponding to the program and the content to be pasted corresponding to the second application program are both updated to the target content. Therefore, it is convenient for the user to adjust the content in the content to be pasted corresponding to the application program and improve the human-computer interaction performance.
可选的,本发明实施例中,用户还可以通过一个输入(例如第九输入),触发电子设备对第一应用程序对应的待粘贴内容和第二应用程序对应的待粘贴内容执行其他操作。Optionally, in this embodiment of the present invention, the user can also trigger the electronic device to perform other operations on the content to be pasted corresponding to the first application program and the content to be pasted corresponding to the second application program through an input (for example, the ninth input).
下面具体针对不同的第九输入,对电子设备执行其他操作进行示例性的说明。Specific examples of other operations performed by the electronic device are described below for different ninth inputs.
(1)在第九输入为用户对第三界面中,某个应用程序的标识对应的一个删除选项的输入的情况下,电子设备响应于该第九输入,可以删除该应用程序对应的待粘贴内容。其中,电子设备删除与该删除选项对应的内容之后,电子设备可以在第三界面上取消显示该内容。(1) In the case where the ninth input is the user's input to a delete option corresponding to the identification of a certain application in the third interface, the electronic device can delete the to-be-pased corresponding to the application in response to the ninth input content. Wherein, after the electronic device deletes the content corresponding to the deletion option, the electronic device can cancel the display of the content on the third interface.
例如,如图7所示,在上述某个应用程序的标识为应用标识70的情况下,该应用标识对应的一个删除选项可以为选项75,该删除选项对应的内容可以为内容76。For example, as shown in FIG. 7, in the case where the identifier of a certain application program described above is the application identifier 70, a deletion option corresponding to the application identifier may be option 75, and the content corresponding to the deletion option may be content 76.
(2)在第九输入为用户对第三界面中,某个应用程序的标识对应的一键清空选项的输入的情况下,电子设备响应于该第九输入,可以删除该应用程序对应的待粘贴内容。其中,电子设备删除该全部内容之后,电子设备可以在第三界面上取消显示该全部内容和该应用程序的标识。(2) In the case where the ninth input is the user’s input to the one-click clear option corresponding to the identification of a certain application in the third interface, the electronic device can delete the waiting list corresponding to the application in response to the ninth input. Paste the content. Wherein, after the electronic device deletes the entire content, the electronic device can cancel displaying the entire content and the identification of the application program on the third interface.
例如,如图7所示,在上述某个应用程序的标识为应用标识70的情况下,该应用标识对应的一键清空选项可以为选项72,上述全部内容可以为内容76、内容77、内容78和内容79。For example, as shown in FIG. 7, in the case where the identification of a certain application is application identification 70, the one-click clear option corresponding to the application identification may be option 72, and all the above-mentioned content may be content 76, content 77, and content. 78 and content 79.
需要说明的是,本发明实施例中,用户还可以通过对图7中的74所示的一键清空选项的输入,触发电子设备删除第三界面中显示的所有应用程序对应的待粘贴内容。其中,电子设备删除这些内容之后,电子设备可以在第三界面取消显示全部内容和全部应用程序的标识。It should be noted that, in this embodiment of the present invention, the user can also trigger the electronic device to delete the content to be pasted corresponding to all applications displayed in the third interface by inputting the one-key clear option shown at 74 in FIG. 7. Wherein, after the electronic device deletes these contents, the electronic device can cancel the display of all the contents and the identifications of all the applications on the third interface.
可以理解,图7中的74所示的一键清空选项可以对应第三界面中显示的所有应用程序的标识。It can be understood that the one-click clear option shown at 74 in FIG. 7 can correspond to the identifiers of all applications displayed in the third interface.
(3)在第九输入为用户对第三界面中,某个应用程序的标识对应的第一调整选项(或第二调整选项)的输入的情况下,电子设备响应于该第九输入,可以调整该应用程序对应的待粘贴内容中,与该第一调整选项(或第二调整选项)对应的不同内容的显示顺序。(3) In the case where the ninth input is the user's input to the first adjustment option (or second adjustment option) corresponding to the identifier of a certain application in the third interface, the electronic device may respond to the ninth input. Adjust the display order of different content corresponding to the first adjustment option (or second adjustment option) in the content to be pasted corresponding to the application program.
例如,如图7所示,在上述某个应用程序的标识为应用标识70的情况下,该应用标识对应的一个第一调整选项可以为选项710,该第一调整选项对应的不同内容可以为内容76和内容77。For example, as shown in FIG. 7, in the case where the identifier of a certain application program described above is the application identifier 70, a first adjustment option corresponding to the application identifier may be option 710, and different content corresponding to the first adjustment option may be Content 76 and Content 77.
(4)在第九输入为用户对第三界面中的一键同步选项的输入的情况下,电子设备响应于该第九输入,可以将第三界面中显示的至少一个应用程序对应的待粘贴内容均更新为这些应用程序对应的待粘贴内容的并集。(4) In the case where the ninth input is the user’s input to the one-key synchronization option in the third interface, the electronic device can, in response to the ninth input, paste the to-be-pasted corresponding to at least one application program displayed in the third interface The content is updated to the union of the content to be pasted corresponding to these applications.
本发明实施例中,由于用户可以通过不同的输入,触发电子设备对第三界面中的内容执行不同的操作,因此可以便于用户在同一界面中完成不同的操作,进而可以提高人机交互性能。In the embodiment of the present invention, since the user can trigger the electronic device to perform different operations on the content in the third interface through different inputs, it is convenient for the user to complete different operations in the same interface, thereby improving human-computer interaction performance.
可选的,本发明实施例中,用户可以触发电子设备将多个内容分别设置为与一个应用程序对应的待粘贴内容(对应上述场景二)。具体的,在用户通过第一输入触发电子设备将第一内容设置为与目标应用程序对应的待粘贴内容之后,用户还可以通过另一个输入触发电子设备将另一个内容设置为与目标应用程序对应的待粘贴内容,例 如下述的第二内容。Optionally, in this embodiment of the present invention, the user can trigger the electronic device to set multiple content as the content to be pasted corresponding to an application program (corresponding to the above scenario 2). Specifically, after the user triggers the electronic device to set the first content as the content to be pasted corresponding to the target application through the first input, the user can also trigger the electronic device to set another content to correspond to the target application through another input The content to be pasted, such as the second content below.
示例性的,在上述S202之后,本发明实施例提供的粘贴控制方法还可以包括下述的S2018-S2019。Exemplarily, after the above S202, the pasting control method provided in the embodiment of the present invention may further include the following S2018-S2019.
S2018、电子设备接收用户的第十输入。S2018. The electronic device receives the tenth input of the user.
其中,上述第十输入可以为用户针对第四界面中的第二内容的输入,第二内容可以为用户在第四界面中触发电子设备选中的内容。可以理解,在用户对第二内容执行第十输入之前,用户可以先在第四界面中执行一个输入,以选中第四界面中的第二内容。The aforementioned tenth input may be the user's input for the second content in the fourth interface, and the second content may be the content selected by the user to trigger the electronic device in the fourth interface. It can be understood that before the user performs the tenth input on the second content, the user may perform an input in the fourth interface first to select the second content in the fourth interface.
可选的,本发明实施例中,上述第四界面可以与上述第一界面相同,也可以与上述第一界面不同。具体可以根据实际使用需求确定,本发明实施例不作限定。Optionally, in this embodiment of the present invention, the foregoing fourth interface may be the same as the foregoing first interface, or may be different from the foregoing first interface. Specifically, it can be determined according to actual use requirements, and the embodiment of the present invention does not limit it.
可选的,本发明实施例中,上述第二内容可以为文字,也可以为图片,还可以为文件等。具体可以根据实际使用需求确定,本发明实施例不作限定。Optionally, in this embodiment of the present invention, the above-mentioned second content may be text, pictures, or files. Specifically, it can be determined according to actual use requirements, and the embodiment of the present invention does not limit it.
可选的,本发明实施例中,上述第十输入可以包括第七子输入和第八子输入。其中,第七子输入为用户在第四界面上沿不同方向的滑动输入;第八子输入为用户对至少一个候选应用程序的标识中的目标应用程序的标识的输入。Optionally, in this embodiment of the present invention, the above-mentioned tenth input may include a seventh sub-input and an eighth sub-input. The seventh sub-input is the user's sliding input in different directions on the fourth interface; the eighth sub-input is the user's input of the identification of the target application in the identification of the at least one candidate application.
对S2018的其他描述可以参照上述S201中的相关描述,为避免重复,此处不再赘述。For other descriptions of S2018, reference may be made to the relevant descriptions in S201 above. To avoid repetition, details are not repeated here.
S2019、电子设备响应于第十输入,将第四界面中的第二内容设置为与目标应用程序对应的待粘贴内容。S2019. In response to the tenth input, the electronic device sets the second content in the fourth interface as the content to be pasted corresponding to the target application.
其中,上述待粘贴内容可以包括上述第一内容和第二内容。Wherein, the content to be pasted may include the first content and the second content.
本发明实施例中,在电子设备接收到用户的第十输入之后,电子设备可以响应于第十输入,将第四界面中的第二内容设置为与目标应用程序对应的待粘贴内容。In the embodiment of the present invention, after the electronic device receives the tenth input of the user, the electronic device may respond to the tenth input and set the second content in the fourth interface as the content to be pasted corresponding to the target application.
进一步地,电子设备可以复制第二内容,并将复制的第二内容存储至目标缓冲区。从而,目标缓冲区中的待粘贴内容可以包括第一内容和第二内容。Further, the electronic device may copy the second content, and store the copied second content in the target buffer area. Thus, the content to be pasted in the target buffer area may include the first content and the second content.
需要说明的是,本发明实施例中,上述S2018-S2019也可以在其他时机或场景执行,例如上述S2018-S2019也可以在S206之后执行。并且,上述第二内容和上述第一内容可以为同一界面中的内容,也可以为不同界面中的内容。It should be noted that, in the embodiment of the present invention, the above S2018-S2019 may also be executed at other timings or scenarios, for example, the above S2018-S2019 may also be executed after S206. In addition, the above-mentioned second content and the above-mentioned first content may be content in the same interface, or content in different interfaces.
需要说明的是,本发明实施例中,电子设备执行上述S2018-S2019可以称为电子设备复制内容。It should be noted that, in this embodiment of the present invention, the electronic device executing the above S2018-S2019 may be referred to as copying content by the electronic device.
本发明实施例中,由于用户可以先将多个内容分别设置为与一个应用程序对应的待粘贴内容,即将多个内容存储至目标应用程序的缓冲区,然后用户可以再通过一个输入,即可在目标应用程序的界面的某个输入区域中显示这些内容。这种情况下,用 户可以将这些内容均粘贴到该输入区域中,即用户可以触发电子设备复制多个内容,然后可以触发电子设备同步粘贴这些内容,相比于现有技术中,用户需要触发电子设备复制一个内容,然后触发电子设备粘贴该一个内容之后,需要再触发电子设备复制另一个内容,然后再触发电子设备粘贴该另一个内容的操作,提高了电子设备复制粘贴的效率,提高人机交互性能。In the embodiment of the present invention, since the user can first set multiple content as the content to be pasted corresponding to an application program, that is, store multiple content in the buffer of the target application program, and then the user can pass an input again. These contents are displayed in an input area of the interface of the target application. In this case, the user can paste these contents into the input area, that is, the user can trigger the electronic device to copy multiple contents, and then the electronic device can be triggered to paste these contents synchronously. Compared with the prior art, the user needs to trigger After the electronic device copies one content and then triggers the electronic device to paste the one content, it needs to trigger the electronic device to copy another content, and then trigger the electronic device to paste the other content, which improves the efficiency of copying and pasting of the electronic device, and improves people Machine interactive performance.
需要说明的是,本发明实施例中,上述各个方法附图所示的粘贴控制方法均是以结合本发明实施例中的一个附图为例示例性的说明的。具体实现时,上述各个方法附图所示的粘贴控制方法还可以结合上述实施例中示意的其它可以结合的任意附图实现,此处不再赘述。It should be noted that, in the embodiments of the present invention, the pasting control methods shown in the drawings of the above methods are all exemplified in conjunction with one of the drawings in the embodiment of the present invention. In specific implementation, the pasting control method shown in the drawings of the above methods can also be implemented in combination with any other drawings that can be combined as illustrated in the above embodiments, and details are not described herein again.
如图9所示,本发明实施例提供一种电子设备400,该电子设备400可以包括接收模块401、处理模块402和显示模块403。其中,接收模块401,可以用于在显示第一界面的情况下,接收用户的第一输入;处理模块402,可以用于响应于接收模块401接收的第一输入,将第一界面中的第一内容设置为与目标应用程序对应的待粘贴内容;接收模块401,还可以用于接收用户的第二输入;显示模块403,可以用于响应于接收模块401接收的第二输入,在第二界面显示与目标应用程序对应的待粘贴内容,待粘贴内容可以包括第一内容;接收模块401,还可以用于接收用户对待粘贴内容中的第一内容的第三输入;显示模块403,还可以用于响应于接收模块401接收的第三输入,在目标输入区域中显示第一内容。As shown in FIG. 9, an embodiment of the present invention provides an electronic device 400. The electronic device 400 may include a receiving module 401, a processing module 402, and a display module 403. Wherein, the receiving module 401 can be used to receive the first input of the user when the first interface is displayed; the processing module 402 can be used to respond to the first input received by the receiving module 401, and to change the first input in the first interface. One content is set as the content to be pasted corresponding to the target application; the receiving module 401 can also be used to receive the second input of the user; the display module 403 can be used to respond to the second input received by the receiving module 401, in the second The interface displays the content to be pasted corresponding to the target application. The content to be pasted can include the first content; the receiving module 401 can also be used to receive the user's third input of the first content in the content to be pasted; the display module 403 can also It is used to display the first content in the target input area in response to the third input received by the receiving module 401.
可选的,本发明实施例中,上述处理模块402,还可以用于响应于第一输入,将第一内容复制至目标缓冲区,目标缓冲区可以为目标应用程序的缓冲区。Optionally, in the embodiment of the present invention, the above-mentioned processing module 402 may also be used to copy the first content to a target buffer area in response to the first input, and the target buffer area may be a buffer area of a target application program.
可选的,本发明实施例中,上述接收模块401,还可以用于在将第一界面中的第一内容设置为与目标应用程序对应的待粘贴内容之后,接收用户的第四输入;处理模块402,还可以用于响应于接收模块401接收的第四输入,将第一内容从目标应用程序对应的待粘贴内容中删除。Optionally, in the embodiment of the present invention, the above-mentioned receiving module 401 may also be used to receive the fourth input of the user after setting the first content in the first interface as the content to be pasted corresponding to the target application; processing; The module 402 can also be used to delete the first content from the content to be pasted corresponding to the target application in response to the fourth input received by the receiving module 401.
可选的,本发明实施例中,上述接收模块401,还可以用于接收用户的第五输入;显示模块403,还可以用于响应于接收模块401接收的第五输入,显示至少一个应用程序的标识和与每个应用程序对应的待粘贴内容;其中,至少一个应用程序可以包括第一应用程序和第二应用程序。Optionally, in the embodiment of the present invention, the above-mentioned receiving module 401 may also be used to receive the fifth input of the user; the display module 403 may also be used to display at least one application program in response to the fifth input received by the receiving module 401 The identification of and the content to be pasted corresponding to each application program; wherein, at least one application program may include a first application program and a second application program.
可选的,本发明实施例中,上述接收模块401,还可以用于在显示模块403显示至少一个应用程序的标识和与每个应用程序对应的待粘贴内容之后,接收用户对第一应用程序的标识和第二应用程序的标识的第六输入;处理模块402,还用于响应于接收模块401接收的第六输入,对第一应用程序对应的待粘贴内容和第二应用程序对应 的待粘贴内容进行互换,或者,响应于第六输入,将第一应用程序对应的待粘贴内容和第二应用程序对应的待粘贴内容均更新为目标内容;其中,目标内容可以为第一应用程序对应的待粘贴内容和第二应用程序对应的待粘贴内容的并集。Optionally, in the embodiment of the present invention, the above-mentioned receiving module 401 may also be used to receive the user’s response to the first application after the display module 403 displays the identification of at least one application and the content to be pasted corresponding to each application. The sixth input of the identification of the second application and the identification of the second application; the processing module 402 is further configured to respond to the sixth input received by the receiving module 401, to determine the content to be pasted corresponding to the first application and the to-be-pasted content corresponding to the second application The pasted content is exchanged, or, in response to the sixth input, the content to be pasted corresponding to the first application and the content to be pasted corresponding to the second application are both updated to the target content; wherein the target content may be the first application The union of the corresponding content to be pasted and the content to be pasted corresponding to the second application.
本发明实施例提供的电子设备能够实现上述方法实施例中电子设备实现的各个过程,为避免重复,这里不再赘述。The electronic device provided in the embodiment of the present invention can implement each process implemented by the electronic device in the foregoing method embodiment. To avoid repetition, details are not described herein again.
本发明实施例提供一种电子设备,在电子设备显示第一界面的情况下,若电子设备接收到用户的第一输入,则电子设备可以响应于第一输入,将第一界面中的第一内容设置为与目标应用程序对应的待粘贴内容;从而在电子设备接收到用户的第二输入的情况下,电子设备可以自动在第二界面显示与目标应用程序对应的包括第一内容的待粘贴内容;然后在电子设备接收到用户对待粘贴内容中的第一内容的第三输入之后,电子设备可以响应于第三输入,在目标输入区域中显示第一内容,从而完成第一内容的复制粘贴。通过该方案,若用户需求将某些内容(例如文本内容)复制粘贴到某个应用程序的界面的输入区域中,则用户可以先通过一个输入,触发电子设备将这些内容分别设置为与该应用程序对应的待粘贴内容。然后,当电子设备接收到用户的第二输入时,电子设备可以直接显示该应用程序对应的待粘贴内容,从而用户可以再通过一个输入,触发电子设备将这些内容粘贴显示在该输入区域中,而无需用户多次重复执行一系列操作才可以将这些内容复制粘贴到该输入区域中,因此可以简化电子设备复制粘贴的过程,提高电子设备复制粘贴的效率,提高人机交互性能。An embodiment of the present invention provides an electronic device. When the electronic device displays a first interface, if the electronic device receives a user's first input, the electronic device can respond to the first input by displaying the first interface in the first interface. The content is set as the content to be pasted corresponding to the target application; thus, when the electronic device receives the second input of the user, the electronic device can automatically display the to-be-pased content corresponding to the target application including the first content on the second interface Content; then after the electronic device receives the user's third input of the first content in the content to be pasted, the electronic device may respond to the third input and display the first content in the target input area, thereby completing the copy and paste of the first content . With this solution, if the user needs to copy and paste some content (such as text content) into the input area of an application interface, the user can first use an input to trigger the electronic device to set these content to the input area of the application. The content to be pasted corresponding to the program. Then, when the electronic device receives the second input of the user, the electronic device can directly display the content to be pasted corresponding to the application program, so that the user can trigger the electronic device to paste and display the content in the input area through another input. The user does not need to repeatedly perform a series of operations to copy and paste the content into the input area, so the process of copying and pasting of the electronic device can be simplified, the efficiency of copying and pasting of the electronic device can be improved, and the human-computer interaction performance can be improved.
图10为实现本发明各个实施例的一种电子设备的硬件示意图。如图10所示,该电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、处理器110、以及电源111等部件。本领域技术人员可以理解,图10中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。Fig. 10 is a schematic diagram of hardware of an electronic device for implementing various embodiments of the present invention. As shown in FIG. 10, the electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, and a memory 109 , The processor 110, and the power supply 111 and other components. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 10 does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. Layout. In the embodiment of the present invention, electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals, wearable devices, and pedometers.
其中,用户输入单元107,可以用于在显示第一界面的情况下,接收用户的第一输入;处理器110,可以用于响应于用户输入单元107接收的第一输入,将第一界面中的第一内容设置为与目标应用程序对应的待粘贴内容;用户输入单元107,还可以用于接收用户的第二输入;显示单元106,可以用于响应于用户输入单元107接收的第二输入,在第二界面显示与目标应用程序对应的待粘贴内容;用户输入单元107,还可以用于接收用户对待粘贴内容中的第一内容的第三输入;显示单元106,还可以用于响应于用户输入单元107接收的第三输入,在目标输入区域中显示第一内容。其 中,待粘贴内容可以包括第一内容。Among them, the user input unit 107 can be used to receive the first input of the user when the first interface is displayed; the processor 110 can be used to respond to the first input received by the user input unit 107, The first content of is set as the content to be pasted corresponding to the target application; the user input unit 107 can also be used to receive a second input from the user; the display unit 106 can be used to respond to the second input received by the user input unit 107 , The content to be pasted corresponding to the target application is displayed on the second interface; the user input unit 107 can also be used to receive the user’s third input of the first content in the content to be pasted; the display unit 106 can also be used to respond to The third input received by the user input unit 107 displays the first content in the target input area. Among them, the content to be pasted may include the first content.
可以理解,本发明实施例中,上述电子设备的结构示意图(例如上述图9)中的接收模块401可以通过上述用户输入单元107实现。上述电子设备的结构示意图(例如上述图9)中的处理模块402可以通过上述处理器110实现。上述电子设备的结构示意图(例如上述图9)中的显示模块403可以通过上述显示单元106实现。It can be understood that, in the embodiment of the present invention, the receiving module 401 in the above-mentioned structural schematic diagram of the electronic device (for example, the above-mentioned FIG. 9) may be implemented by the above-mentioned user input unit 107. The processing module 402 in the above-mentioned structural schematic diagram of the electronic device (for example, the above-mentioned FIG. 9) may be implemented by the above-mentioned processor 110. The display module 403 in the above-mentioned structural schematic diagram of the electronic device (for example, the above-mentioned FIG. 9) may be implemented by the above-mentioned display unit 106.
本发明实施例提供一种电子设备,在电子设备显示第一界面的情况下,若电子设备接收到用户的第一输入,则电子设备可以响应于第一输入,将第一界面中的第一内容设置为与目标应用程序对应的待粘贴内容;从而在电子设备接收到用户的第二输入的情况下,电子设备可以自动在第二界面显示与目标应用程序对应的包括第一内容的待粘贴内容;然后在电子设备接收到用户对待粘贴内容中的第一内容的第三输入之后,电子设备可以响应于第三输入,在目标输入区域中显示第一内容,从而完成第一内容的复制粘贴。通过该方案,若用户需求将某些内容(例如文本内容)复制粘贴到某个应用程序的界面的输入区域中,则用户可以先通过一个输入,触发电子设备将这些内容分别设置为与该应用程序对应的待粘贴内容。然后,当电子设备接收到用户的第二输入时,电子设备可以直接显示该应用程序对应的待粘贴内容,从而用户可以再通过一个输入,触发电子设备将这些内容粘贴显示在该输入区域中,而无需用户多次重复执行一系列操作才可以将这些内容复制粘贴到该输入区域中,因此可以简化电子设备复制粘贴的过程,提高电子设备复制粘贴的效率,提高人机交互性能。An embodiment of the present invention provides an electronic device. When the electronic device displays a first interface, if the electronic device receives a user's first input, the electronic device can respond to the first input by displaying the first interface in the first interface. The content is set as the content to be pasted corresponding to the target application; thus, when the electronic device receives the second input of the user, the electronic device can automatically display the to-be-pased content corresponding to the target application including the first content on the second interface Content; then after the electronic device receives the user's third input of the first content in the content to be pasted, the electronic device may respond to the third input and display the first content in the target input area, thereby completing the copy and paste of the first content . With this solution, if the user needs to copy and paste some content (such as text content) into the input area of an application interface, the user can first use an input to trigger the electronic device to set these content to the input area of the application. The content to be pasted corresponding to the program. Then, when the electronic device receives the second input of the user, the electronic device can directly display the content to be pasted corresponding to the application program, so that the user can trigger the electronic device to paste and display the content in the input area through another input. The user does not need to repeatedly perform a series of operations to copy and paste the content into the input area, so the process of copying and pasting of the electronic device can be simplified, the efficiency of copying and pasting of the electronic device can be improved, and the human-computer interaction performance can be improved.
应理解的是,本发明实施例中,射频单元101可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器110处理;另外,将上行的数据发送给基站。通常,射频单元101包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元101还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 110; in addition, Uplink data is sent to the base station. Generally, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with the network and other devices through a wireless communication system.
电子设备通过网络模块102为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The electronic device provides users with wireless broadband Internet access through the network module 102, such as helping users to send and receive emails, browse web pages, and access streaming media.
音频输出单元103可以将射频单元101或网络模块102接收的或者在存储器109中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元103还可以提供与电子设备100执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元103包括扬声器、蜂鸣器以及受话器等。The audio output unit 103 can convert the audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output it as sound. Moreover, the audio output unit 103 may also provide audio output related to a specific function performed by the electronic device 100 (for example, call signal reception sound, message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
输入单元104用于接收音频或视频信号。输入单元104可以包括图形处理器(graphics processing unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像 数据进行处理。处理后的图像帧可以显示在显示单元106上。经图形处理器1041处理后的图像帧可以存储在存储器109(或其它存储介质)中或者经由射频单元101或网络模块102进行发送。麦克风1042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元101发送到移动通信基站的格式输出。The input unit 104 is used to receive audio or video signals. The input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The graphics processing unit 1041 is used to capture images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed. The processed image frame can be displayed on the display unit 106. The image frame processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or sent via the radio frequency unit 101 or the network module 102. The microphone 1042 can receive sound, and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 101 for output in the case of a telephone call mode.
电子设备100还包括至少一种传感器105,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1061的亮度,接近传感器可在电子设备100移动到耳边时,关闭显示面板1061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器105还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The electronic device 100 further includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light. The proximity sensor can close the display panel 1061 and the display panel 1061 when the electronic device 100 is moved to the ear. / Or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 105 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
显示单元106用于显示由用户输入的信息或提供给用户的信息。显示单元106可包括显示面板1061,可以采用液晶显示器(liquid crystal display,LCD)、有机发光二极管(organic light-emitting diode,OLED)等形式来配置显示面板1061。The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
用户输入单元107可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1071上或在触控面板1071附近的操作)。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器110,接收处理器110发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1071。除了触控面板1071,用户输入单元107还可以包括其他输入设备1072。具体地,其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 107 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the electronic device. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071, also called a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 1071 or near the touch panel 1071. operating). The touch panel 1071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 110, the command sent by the processor 110 is received and executed. In addition, the touch panel 1071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may also include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
进一步的,触控面板1071可覆盖在显示面板1061上,当触控面板1071检测到在其上或附近的触摸操作后,传送给处理器110以确定触摸事件的类型,随后处理器110根据触摸事件的类型在显示面板1061上提供相应的视觉输出。虽然在图10中,触控 面板1071与显示面板1061是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板1071与显示面板1061集成而实现电子设备的输入和输出功能,具体此处不做限定。Further, the touch panel 1071 can be overlaid on the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits it to the processor 110 to determine the type of the touch event, and then the processor 110 determines the type of the touch event according to the touch. The type of event provides corresponding visual output on the display panel 1061. Although in FIG. 10, the touch panel 1071 and the display panel 1061 are used as two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated The implementation of the input and output functions of the electronic device is not specifically limited here.
接口单元108为外部装置与电子设备100连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元108可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备100内的一个或多个元件或者可以用于在电子设备100和外部装置之间传输数据。The interface unit 108 is an interface for connecting an external device with the electronic device 100. For example, the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc. The interface unit 108 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 100 or can be used to connect to the electronic device 100 and the external device. Transfer data between devices.
存储器109可用于存储软件程序以及各种数据。存储器109可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器109可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 109 can be used to store software programs and various data. The memory 109 may mainly include a program storage area and a data storage area. The program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc. In addition, the memory 109 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
处理器110是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器109内的软件程序和/或模块,以及调用存储在存储器109内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器110可包括一个或多个处理单元;可选的,处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。The processor 110 is the control center of the electronic device, which uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes software programs and/or modules stored in the memory 109, and calls data stored in the memory 109 , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole. The processor 110 may include one or more processing units; optionally, the processor 110 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, and application programs, etc. The adjustment processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 110.
电子设备100还可以包括给各个部件供电的电源111(比如电池),可选的,电源111可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The electronic device 100 may also include a power source 111 (such as a battery) for supplying power to various components. Optionally, the power source 111 may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. Management and other functions.
另外,电子设备100包括一些未示出的功能模块,在此不再赘述。In addition, the electronic device 100 includes some functional modules not shown, which will not be repeated here.
可选的,本发明实施例还提供一种电子设备,包括处理器,存储器,存储在存储器上并可在处理器上运行的计算机程序,该计算机程序被处理器执行时实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, an embodiment of the present invention also provides an electronic device, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor. The computer program is executed by the processor to implement the above method embodiments. Each process can achieve the same technical effect. In order to avoid repetition, it will not be repeated here.
可选的,本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,该计算机可读存储介 质可以包括只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等。Optionally, the embodiment of the present invention also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the foregoing method embodiment is implemented, and the same can be achieved. In order to avoid repetition, I won’t repeat them here. Wherein, the computer-readable storage medium may include read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that in this article, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, It also includes other elements that are not explicitly listed, or elements inherent to the process, method, article, or device. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article, or device that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台电子设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above implementation manners, those skilled in the art can clearly understand that the above-mentioned embodiment method can be implemented by means of software plus the necessary general hardware platform, of course, it can also be implemented by hardware, but in many cases the former is better.的实施方式。 Based on this understanding, the technical solution of this application essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to make an electronic device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the application are described above with reference to the accompanying drawings, but the application is not limited to the above-mentioned specific embodiments. The above-mentioned specific embodiments are only illustrative and not restrictive. Those of ordinary skill in the art are Under the enlightenment of this application, many forms can be made without departing from the purpose of this application and the scope of protection of the claims, all of which fall within the protection of this application.

Claims (14)

  1. 一种粘贴控制方法,所述方法包括:A sticking control method, the method includes:
    在显示第一界面的情况下,接收用户的第一输入;In the case of displaying the first interface, receiving the first input of the user;
    响应于所述第一输入,将所述第一界面中的第一内容设置为与目标应用程序对应的待粘贴内容;In response to the first input, setting the first content in the first interface as the content to be pasted corresponding to the target application;
    接收用户的第二输入;Receiving a second input from the user;
    响应于所述第二输入,在第二界面显示与所述目标应用程序对应的待粘贴内容,所述待粘贴内容包括所述第一内容;In response to the second input, displaying content to be pasted corresponding to the target application on a second interface, where the content to be pasted includes the first content;
    接收用户对所述待粘贴内容中的所述第一内容的第三输入;Receiving a user's third input of the first content in the content to be pasted;
    响应于所述第三输入,在目标输入区域中显示所述第一内容。In response to the third input, the first content is displayed in the target input area.
  2. 根据权利要求1所述的方法,其中,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    响应于所述第一输入,将所述第一内容复制至目标缓冲区,所述目标缓冲区为所述目标应用程序的缓冲区。In response to the first input, the first content is copied to a target buffer, where the target buffer is a buffer of the target application.
  3. 根据权利要求1或2所述的方法,其中,在将所述第一界面中的第一内容设置为与目标应用程序对应的待粘贴内容之后,所述方法还包括:The method according to claim 1 or 2, wherein after setting the first content in the first interface as the content to be pasted corresponding to the target application, the method further comprises:
    接收用户的第四输入;Receive the user's fourth input;
    响应于所述第四输入,将所述第一内容从所述目标应用程序对应的待粘贴内容中删除。In response to the fourth input, the first content is deleted from the content to be pasted corresponding to the target application.
  4. 根据权利要求1所述的方法,其中,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    接收用户的第五输入;Receive the user's fifth input;
    响应于所述第五输入,显示至少一个应用程序的标识和与每个应用程序对应的待粘贴内容;In response to the fifth input, displaying the identification of at least one application and the content to be pasted corresponding to each application;
    其中,所述至少一个应用程序包括第一应用程序和第二应用程序。Wherein, the at least one application program includes a first application program and a second application program.
  5. 根据权利要求4所述的方法,其中,在显示至少一个应用程序的标识和与每个应用程序对应的待粘贴内容之后,所述方法还包括:The method according to claim 4, wherein after displaying the identification of at least one application and the content to be pasted corresponding to each application, the method further comprises:
    接收用户对所述第一应用程序的标识和所述第二应用程序的标识的第六输入;Receiving a user's sixth input of the identifier of the first application program and the identifier of the second application program;
    响应于所述第六输入,对所述第一应用程序对应的待粘贴内容和所述第二应用程序对应的待粘贴内容进行互换,In response to the sixth input, swapping the content to be pasted corresponding to the first application and the content to be pasted corresponding to the second application,
    或者,or,
    响应于所述第六输入,将所述第一应用程序对应的待粘贴内容和所述第二应用程序对应的待粘贴内容均更新为目标内容;In response to the sixth input, updating the content to be pasted corresponding to the first application program and the content to be pasted corresponding to the second application program to target content;
    其中,所述目标内容为所述第一应用程序对应的待粘贴内容和所述第二应用程序 对应的待粘贴内容的并集。Wherein, the target content is the union of the content to be pasted corresponding to the first application and the content to be pasted corresponding to the second application.
  6. 一种电子设备,所述电子设备包括接收模块、处理模块和显示模块;An electronic device including a receiving module, a processing module, and a display module;
    所述接收模块,用于在显示第一界面的情况下,接收用户的第一输入;The receiving module is configured to receive the first input of the user when the first interface is displayed;
    所述处理模块,用于响应于所述接收模块接收的所述第一输入,将所述第一界面中的第一内容设置为与目标应用程序对应的待粘贴内容;The processing module is configured to, in response to the first input received by the receiving module, set the first content in the first interface as the content to be pasted corresponding to the target application;
    所述接收模块,还用于接收用户的第二输入;The receiving module is also used to receive a second input from the user;
    所述显示模块,用于响应于所述接收模块接收的所述第二输入,在第二界面显示与所述目标应用程序对应的待粘贴内容,所述待粘贴内容包括所述第一内容;The display module is configured to display the content to be pasted corresponding to the target application on a second interface in response to the second input received by the receiving module, and the content to be pasted includes the first content;
    所述接收模块,还用于接收用户对所述待粘贴内容中的所述第一内容的第三输入;The receiving module is further configured to receive a user's third input of the first content in the content to be pasted;
    所述显示模块,还用于响应于所述接收模块接收的所述第三输入,在目标输入区域中显示所述第一内容。The display module is further configured to display the first content in the target input area in response to the third input received by the receiving module.
  7. 根据权利要求6所述的电子设备,其中,The electronic device according to claim 6, wherein:
    所述处理模块,还用于响应于所述第一输入,将所述第一内容复制至目标缓冲区,所述目标缓冲区为所述目标应用程序的缓冲区。The processing module is further configured to copy the first content to a target buffer area in response to the first input, and the target buffer area is a buffer area of the target application program.
  8. 根据权利要求6或7所述的电子设备,其中,The electronic device according to claim 6 or 7, wherein:
    所述接收模块,还用于在将所述第一界面中的所述第一内容设置为与所述目标应用程序对应的待粘贴内容之后,接收用户的第四输入;The receiving module is further configured to receive a fourth input of the user after setting the first content in the first interface as the content to be pasted corresponding to the target application;
    所述处理模块,还用于响应于所述接收模块接收的所述第四输入,将所述第一内容从所述目标应用程序对应的待粘贴内容中删除。The processing module is further configured to delete the first content from the content to be pasted corresponding to the target application in response to the fourth input received by the receiving module.
  9. 根据权利要求6所述的电子设备,其中,The electronic device according to claim 6, wherein:
    所述接收模块,还用于接收用户的第五输入;The receiving module is also used to receive the fifth input of the user;
    所述显示模块,还用于响应于所述接收模块接收的所述第五输入,显示至少一个应用程序的标识和与每个应用程序对应的待粘贴内容;The display module is further configured to display the identifier of at least one application program and the content to be pasted corresponding to each application program in response to the fifth input received by the receiving module;
    其中,所述至少一个应用程序包括第一应用程序和第二应用程序。Wherein, the at least one application program includes a first application program and a second application program.
  10. 根据权利要求9所述的电子设备,其中,The electronic device according to claim 9, wherein:
    所述接收模块,还用于在显示模块显示所述至少一个应用程序的标识和与每个应用程序对应的待粘贴内容之后,接收用户对所述第一应用程序的标识和所述第二应用程序的标识的第六输入;The receiving module is further configured to receive the user's identification of the first application and the second application after the display module displays the identification of the at least one application and the content to be pasted corresponding to each application The sixth input of the identity of the program;
    所述处理模块,还用于响应于所述接收模块接收的所述第六输入,对所述第一应用程序对应的待粘贴内容和所述第二应用程序对应的待粘贴内容进行互换,或者,响应于所述第六输入,将所述第一应用程序对应的待粘贴内容和所述第二应用程序对应的待粘贴内容均更新为目标内容;The processing module is further configured to exchange the content to be pasted corresponding to the first application program and the content to be pasted corresponding to the second application program in response to the sixth input received by the receiving module, Or, in response to the sixth input, update the content to be pasted corresponding to the first application program and the content to be pasted corresponding to the second application program to target content;
    其中,所述目标内容为所述第一应用程序对应的待粘贴内容和所述第二应用程序对应的待粘贴内容的并集。Wherein, the target content is a union of the content to be pasted corresponding to the first application program and the content to be pasted corresponding to the second application program.
  11. 一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至5中任一项所述的粘贴控制方法的步骤。An electronic device, comprising a processor, a memory, and a computer program stored on the memory and capable of running on the processor, the computer program being executed by the processor to implement any of claims 1 to 5 One of the steps of the pasting control method.
  12. 一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1至5中任一项所述的粘贴控制方法的步骤。A computer-readable storage medium storing a computer program on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the paste control method according to any one of claims 1 to 5 are realized.
  13. 一种计算机程序产品,其特征在于,所述程序产品被至少一个处理器执行以实现如权利要求1至5任一项所述的粘贴控制方法。A computer program product, wherein the program product is executed by at least one processor to implement the paste control method according to any one of claims 1 to 5.
  14. 一种粘贴控制装置,其特征在于,包括所述装置被配置成用于执行如权利要求1至5中任一项所述的粘贴控制方法。A sticking control device, comprising the device configured to execute the sticking control method according to any one of claims 1 to 5.
PCT/CN2020/140191 2019-12-31 2020-12-28 Paste control method and electronic device WO2021136183A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911424555.8A CN111104236B (en) 2019-12-31 2019-12-31 Paste control method and electronic equipment
CN201911424555.8 2019-12-31

Publications (1)

Publication Number Publication Date
WO2021136183A1 true WO2021136183A1 (en) 2021-07-08

Family

ID=70426561

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/140191 WO2021136183A1 (en) 2019-12-31 2020-12-28 Paste control method and electronic device

Country Status (2)

Country Link
CN (1) CN111104236B (en)
WO (1) WO2021136183A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110286991B (en) * 2019-06-30 2021-08-17 联想(北京)有限公司 Information processing method and device
CN111104236B (en) * 2019-12-31 2024-01-23 维沃移动通信有限公司 Paste control method and electronic equipment
CN111913592A (en) * 2020-07-30 2020-11-10 维沃移动通信有限公司 Information input method and device, electronic equipment and readable storage medium
CN113282424B (en) * 2021-04-08 2022-11-25 维沃移动通信有限公司 Information reference method and device and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120204127A1 (en) * 2011-02-07 2012-08-09 Research In Motion Limited Portable electronic device and method of controlling same
CN105302784A (en) * 2014-07-16 2016-02-03 腾讯科技(深圳)有限公司 Method and system for copying/ cutting and pasting data
CN105373326A (en) * 2014-09-01 2016-03-02 深圳富泰宏精密工业有限公司 Data processing system and method
CN106055227A (en) * 2016-05-20 2016-10-26 维沃移动通信有限公司 Method for text editing and mobile equipment
CN106201187A (en) * 2016-06-28 2016-12-07 维沃移动通信有限公司 A kind of Contents of clipboard processing method and mobile terminal
CN106776082A (en) * 2017-01-17 2017-05-31 维沃移动通信有限公司 The method of attaching and device of text
CN108780400A (en) * 2017-06-07 2018-11-09 华为技术有限公司 Data processing method and electronic equipment
CN111104236A (en) * 2019-12-31 2020-05-05 维沃移动通信有限公司 Paste control method and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105511862A (en) * 2015-11-30 2016-04-20 用友优普信息技术有限公司 Information copy paste method and copy paste device
CN106055254A (en) * 2016-05-30 2016-10-26 珠海市魅族科技有限公司 Information processing method and relevant device
US20180335998A1 (en) * 2017-05-16 2018-11-22 Microsoft Technology Licensing, Llc Roaming clipboard copy/paste
CN109976640A (en) * 2019-03-29 2019-07-05 维沃移动通信有限公司 A kind of content copying methods and terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120204127A1 (en) * 2011-02-07 2012-08-09 Research In Motion Limited Portable electronic device and method of controlling same
CN105302784A (en) * 2014-07-16 2016-02-03 腾讯科技(深圳)有限公司 Method and system for copying/ cutting and pasting data
CN105373326A (en) * 2014-09-01 2016-03-02 深圳富泰宏精密工业有限公司 Data processing system and method
CN106055227A (en) * 2016-05-20 2016-10-26 维沃移动通信有限公司 Method for text editing and mobile equipment
CN106201187A (en) * 2016-06-28 2016-12-07 维沃移动通信有限公司 A kind of Contents of clipboard processing method and mobile terminal
CN106776082A (en) * 2017-01-17 2017-05-31 维沃移动通信有限公司 The method of attaching and device of text
CN108780400A (en) * 2017-06-07 2018-11-09 华为技术有限公司 Data processing method and electronic equipment
CN111104236A (en) * 2019-12-31 2020-05-05 维沃移动通信有限公司 Paste control method and electronic equipment

Also Published As

Publication number Publication date
CN111104236A (en) 2020-05-05
CN111104236B (en) 2024-01-23

Similar Documents

Publication Publication Date Title
WO2021115329A1 (en) Method for controlling application, and electronic device
WO2021098678A1 (en) Screencast control method and electronic device
WO2019174611A1 (en) Application configuration method and mobile terminal
WO2021218902A1 (en) Display control method and apparatus, and electronic device
WO2021136183A1 (en) Paste control method and electronic device
WO2021136133A1 (en) Application switching method and electronic device
WO2020258929A1 (en) Folder interface switching method and terminal device
WO2020151525A1 (en) Message sending method, and terminal device
WO2021083087A1 (en) Screen capturing method and terminal device
CN109614061B (en) Display method and terminal
WO2021115278A1 (en) Group management method and electronic device
WO2021098695A1 (en) Information sharing method and electronic device
WO2021083132A1 (en) Icon moving method and electronic device
WO2020215949A1 (en) Object processing method and terminal device
WO2021129536A1 (en) Icon moving method and electronic device
WO2021093844A1 (en) Sharing control method and electronic device
WO2021057290A1 (en) Information control method and electronic device
WO2020182035A1 (en) Image processing method and terminal device
WO2021083058A1 (en) Image processing method, server, and terminal device
WO2019149028A1 (en) Application download method and terminal
WO2020181954A1 (en) Application program control method and terminal device
WO2020215969A1 (en) Content input method and terminal device
WO2021012908A1 (en) Message sending method and mobile terminal
WO2021057301A1 (en) File control method and electronic device
WO2021129850A1 (en) Voice message playback method and electronic device

Legal Events

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

Ref document number: 20909795

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20909795

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20909795

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 090123)

122 Ep: pct application non-entry in european phase

Ref document number: 20909795

Country of ref document: EP

Kind code of ref document: A1