CN106126025B - Interactive method and device for copying and pasting - Google Patents

Interactive method and device for copying and pasting Download PDF

Info

Publication number
CN106126025B
CN106126025B CN201610466019.4A CN201610466019A CN106126025B CN 106126025 B CN106126025 B CN 106126025B CN 201610466019 A CN201610466019 A CN 201610466019A CN 106126025 B CN106126025 B CN 106126025B
Authority
CN
China
Prior art keywords
type
content
attribute information
input
copied
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610466019.4A
Other languages
Chinese (zh)
Other versions
CN106126025A (en
Inventor
杨万坤
鲍协浩
王硕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610466019.4A priority Critical patent/CN106126025B/en
Publication of CN106126025A publication Critical patent/CN106126025A/en
Application granted granted Critical
Publication of CN106126025B publication Critical patent/CN106126025B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure relates to the field of computer application, in particular to an interactive method and device for copying and pasting. According to the method and the device, when a copy instruction is received, the content indicated by the copy instruction is copied, first attribute information is determined, the first attribute information is attribute information of the copied content, when a cursor focus is acquired for the first time based on an input edit box and the first attribute information meets second attribute information, the copied content is pasted in the input edit box, the second attribute information is attribute information of the input edit box, namely, in the pasting process, the terminal can automatically paste the copied content into the input edit box, manual operation of a user is not needed, and convenience in operation is improved.

Description

Interactive method and device for copying and pasting
Technical Field
The present disclosure relates to the field of computer applications, and in particular, to an interactive method and apparatus for copy and paste.
Background
With the rapid development of computer application technology, terminals such as mobile phones and the like are widely used. In the process of using the terminal, a copy and paste technology is usually used, for example, in the process of viewing the short message content, if a user wants to forward the short message content to other friends, the user can copy the short message content, and then paste the short message content into a short message input editing box for sending.
Currently, the interactive process of copy-and-paste generally includes: when a user wants to copy a certain part of content displayed by the terminal, the user presses the part of content for a long time to trigger a copy option display instruction, when the terminal receives the copy option display instruction, the copy option is displayed, the user can click the copy option to trigger the copy instruction, and after the terminal receives the copy instruction, the selected part of content is copied. And then, when the user wants to paste the copied content into the input edit box, pressing the input edit box for a long time to trigger a paste option display instruction, when the terminal receives the paste option display instruction, displaying a paste option, wherein the user can click the paste option to trigger the paste instruction, and after the terminal receives the paste instruction, the copied content is pasted into the input edit box.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides an interactive method and apparatus for copy and paste. The technical scheme is as follows:
in a first aspect, an interactive copy-and-paste method is provided, the method including:
when a copying instruction is received, copying the content indicated by the copying instruction;
determining first attribute information, wherein the first attribute information is attribute information of copied content;
when a cursor focus is acquired for the first time based on an input edit box and the first attribute information meets second attribute information, pasting the copied content in the input edit box, wherein the second attribute information is the attribute information of the input edit box.
Optionally, the determining the first attribute information includes:
determining a copy time point at which the content indicated by the copy instruction is copied;
determining a first content type, wherein the first content type is a type to which the copied content belongs;
determining the determined copy time point and the first content type as the first attribute information.
Optionally, the method further comprises:
determining a time difference between a current time point and the copying time point as a first duration;
when the second attribute information comprises a second duration and a second content type, judging whether the first duration is less than or equal to the second duration, and judging whether the first content type is matched with the second content type;
and when the first duration is less than or equal to the second duration and the first content type is matched with the second content type, determining that the first attribute information meets the second attribute information.
Optionally, the first content type includes a text type, a number type, a website type, a mailbox type, a picture type or a custom type, and the second content type includes at least one of a text type, a number type, a website type, a mailbox type, a picture type and a custom type.
Optionally, the method further comprises:
displaying prompt information, wherein the prompt information is used for prompting whether the copied content is pasted or not;
and when a confirmation pasting instruction is received based on the prompt information, executing the step of pasting the copied content in the input edit box.
In a second aspect, a copy-and-paste interactive apparatus is provided, the apparatus comprising:
the copying module is used for copying the content indicated by the copying instruction when the copying instruction is received;
a first determining module, configured to determine first attribute information, where the first attribute information is attribute information of content copied by the copying module;
and the pasting module is used for pasting the copied content in the input edit box when the cursor focus is acquired for the first time based on the input edit box and the first attribute information determined by the first determining module meets second attribute information, wherein the second attribute information is the attribute information of the input edit box.
Optionally, the first determining module includes:
a first determination submodule configured to determine a copy time point at which the content indicated by the copy instruction is copied;
a second determining submodule, configured to determine a first content type, where the first content type is a type to which the copied content belongs;
a third determining sub-module configured to determine the duplication time point determined by the first determining sub-module and the first content type determined by the second determining sub-module as the first attribute information.
Optionally, the apparatus further comprises:
the second determining module is used for determining the time difference between the current time point and the copying time point as a first duration;
a determining module, configured to determine whether the first duration determined by the second determining module is less than or equal to a second duration and determine whether the first content type matches the second content type when the second attribute information includes the second duration and the second content type;
a third determining module, configured to determine that the first attribute information satisfies the second attribute information when the first duration determined by the second determining module is less than or equal to the second duration and the first content type matches the second content type.
Optionally, the first content type includes a text type, a number type, a website type, a mailbox type, a picture type or a custom type, and the second content type includes at least one of a text type, a number type, a website type, a mailbox type, a picture type and a custom type.
Optionally, the apparatus further comprises:
the display module is used for displaying prompt information, and the prompt information is used for prompting whether the copied content is pasted or not;
the pasting module is further used for executing the step of pasting the copied content in the input editing frame when a pasting confirmation instruction is received based on the prompt information displayed by the display module.
In a third aspect, a copy-and-paste interactive apparatus is provided, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when a copying instruction is received, copying the content indicated by the copying instruction;
determining first attribute information, wherein the first attribute information is attribute information of copied content;
when a cursor focus is acquired for the first time based on an input edit box and the first attribute information meets second attribute information, pasting the copied content in the input edit box, wherein the second attribute information is the attribute information of the input edit box.
The technical scheme provided by the embodiment of the disclosure has the beneficial effects that:
in the embodiment of the disclosure, when a copy instruction is received, a terminal copies content indicated by the copy instruction, determines attribute information of the copied content, and when the terminal acquires a cursor focus for the first time based on an input edit box, it indicates that a user may want to paste the copied content in the input edit box, that is, the terminal determines whether the attribute information of the copied content meets the attribute information of the input edit box, and when the attribute information of the copied content meets the attribute information of the input edit box, the terminal automatically pastes the copied content into the input edit box.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow diagram illustrating an interactive method of copy-and-paste, according to an example embodiment.
FIG. 2A is a flow diagram illustrating an interactive method of copy-and-paste according to another exemplary embodiment.
Fig. 2B is a schematic interface diagram of a prompt message according to the embodiment of fig. 2A.
Fig. 3A is a schematic diagram illustrating a structure of a copy-and-paste interactive apparatus according to an exemplary embodiment.
Fig. 3B is a schematic structural diagram illustrating a copy-and-paste interactive apparatus according to another exemplary embodiment.
Fig. 3C is a schematic structural diagram illustrating a copy-and-paste interactive apparatus according to another exemplary embodiment.
FIG. 4 is a block diagram illustrating a copy-and-paste interaction apparatus 400, according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Before explaining the embodiments of the present disclosure in detail, an application scenario of the embodiments of the present disclosure will be described. The method provided by the embodiment of the present disclosure is applied to a terminal, which may be a device such as a Computer, a smart phone, a tablet Computer, a notebook Computer, an Ultra-mobile Personal Computer (UMPC), a netbook, a Personal Digital Assistant (PDA), and the like, and the embodiment of the present disclosure is not limited thereto.
FIG. 1 is a flow diagram illustrating a copy-and-paste interactive method according to an exemplary embodiment, which may include the following steps:
in step 101, when a copy instruction is received, the content indicated by the copy instruction is copied.
In step 102, first attribute information is determined, the first attribute information being attribute information of the copied content.
In step 103, when the cursor focus is acquired for the first time based on the input edit box and the first attribute information satisfies second attribute information, the copied content is pasted in the input edit box, and the second attribute information is the attribute information of the input edit box.
In the embodiment of the disclosure, when a copy instruction is received, a terminal copies content indicated by the copy instruction, determines attribute information of the copied content, and when the terminal acquires a cursor focus for the first time based on an input edit box, it indicates that a user may want to paste the copied content in the input edit box, that is, the terminal determines whether the attribute information of the copied content meets the attribute information of the input edit box, and when the attribute information of the copied content meets the attribute information of the input edit box, the terminal automatically pastes the copied content into the input edit box.
Optionally, determining the first attribute information includes:
determining a copy time point at which the content indicated by the copy instruction is copied;
determining a first content type, wherein the first content type is a type to which the copied content belongs;
the determined copy time point and the first content type are determined as the first attribute information.
In this embodiment of the disclosure, the first attribute information includes a copy time point at which the content indicated by the copy instruction is copied and a type to which the copied content belongs, so that when the subsequent terminal acquires the cursor focus for the first time in the input edit box, the terminal may determine whether the first attribute information satisfies the second attribute information according to the copy time point and the type to which the copied content belongs, that is, determine whether the copied content needs to be pasted in the input edit box.
Optionally, the method further comprises:
determining the time difference between the current time point and the copying time point as a first duration;
when the second attribute information comprises a second duration and a second content type, judging whether the first duration is less than or equal to the second duration, and judging whether the first content type is matched with the second content type;
and when the first duration is less than or equal to the second duration and the first content type is matched with the second content type, determining that the first attribute information meets the second attribute information.
In the embodiment of the present disclosure, when the first duration is less than or equal to the second duration, it is described that the user may want to paste the copied content in the input edit box for a short time before, and further, when the first content type matches the second content type, it is described that the input edit box supports the format or type of the copied content, so that the terminal may determine that the attribute information of the copied content satisfies the attribute information of the input edit box, that is, the terminal determines that the copied content may be automatically pasted in the input edit box.
Optionally, the first content type includes a text type, a number type, a website type, a mailbox type, a picture type or a custom type, and the second content type includes at least one of a text type, a number type, a website type, a mailbox type, a picture type and a custom type.
In the embodiment of the present disclosure, the first content type may include a text type, a number type, a website type, a mailbox type, a picture type, or a custom type, that is, the type of the copied content is specifically divided, so that the copied content is more targeted. In addition, the second content type may include at least one of a text type, a number type, a website type, a mailbox type, a picture type, and a custom type, that is, the types of the content supported by the input edit box are increased.
Optionally, before pasting the copied content in the input edit box, the method further includes:
displaying prompt information for prompting whether to paste the copied content;
and executing the step of pasting the copied contents in the input edit box when a confirmation pasting instruction is received based on the prompt information.
In the embodiment of the disclosure, before pasting the copied content in the input edit box, the terminal further displays a prompt message for the user to prompt the user whether the copied content needs to be pasted in the input edit box, and when the terminal receives a paste confirmation instruction, it indicates that the user confirms that the copied content needs to be pasted in the input edit box, that is, the terminal pastes the copied content into the input edit box, so that the user experience is improved.
All the above optional technical solutions can be combined arbitrarily to form optional embodiments of the present disclosure, and the embodiments of the present disclosure are not described in detail again.
Fig. 2A is a flowchart illustrating an interactive copy-and-paste method according to another exemplary embodiment, where the embodiment of the present disclosure takes as an example that the interactive copy-and-paste method is applied in a terminal, the interactive copy-and-paste method may include the following steps:
in step 201, when a copy instruction is received, the content indicated by the copy instruction is copied.
At present, in the process of using the terminal, the copy and paste technology provides convenience for a user to edit contents in an input edit box, for example, when the user wants to send a telephone number in an address list to a friend, the copy and paste technology can be used for realizing. In the embodiment of the disclosure, aiming at the problem that a user needs to manually operate in the interactive process of copy and paste provided by the related art, a copy and paste interactive method is provided, by which the terminal can automatically paste the copied content into an input edit box.
The copy instruction is used to instruct the terminal to copy the content indicated by the copy instruction, where the copy instruction may be triggered by a user, and the user may trigger the copy instruction through a specified operation, where the specified operation may include a click operation, a sliding operation, and the like, and this is not limited in this disclosure.
For example, in one possible implementation manner, when a user wants to copy a certain content displayed by the terminal, the user may press the content for a long time to trigger a copy option display instruction, the terminal displays the copy option after receiving the copy option display instruction, and then the user may click the copy option to trigger the copy instruction, and accordingly, the terminal copies the content indicated by the copy instruction after receiving the copy instruction.
In addition, in a possible implementation manner, after the terminal copies the content indicated by the copy instruction, the copied content may be stored in the pasting board.
In step 202, first attribute information is determined, the first attribute information being attribute information of the copied content.
The implementation process of determining the first attribute information comprises the following steps: determining a copy time point at which the content indicated by the copy instruction is copied, determining a first content type, the first content type being a type to which the copied content belongs, and determining the determined copy time point and the first content type as the first attribute information.
That is, when the terminal copies the content indicated by the copy instruction, the copy time point is obtained, so that when the subsequent terminal first obtains the cursor focus in the input edit box, it can be determined how long before obtaining the cursor focus the terminal copies the content. In addition, the terminal needs to determine the type of the copied content, and similarly, the purpose of the terminal is to facilitate the subsequent terminal to judge whether the type of the copied content matches with the content type corresponding to the input edit box when the terminal first acquires the cursor focus in the input edit box.
The first content type comprises a character type, a number type, a website type, a mailbox type, a picture type or a self-defined type.
The custom type may be set by a technician in a custom manner according to actual requirements, which is not specifically limited in the embodiment of the present disclosure.
It should be noted that, in this embodiment of the present disclosure, it is only described by taking as an example that the first content type includes a text type, a number type, a website type, a mailbox type, a picture type, or a custom type, in another embodiment, the first content type may further include other content types, for example, the first content type may further include an audio type, a video type, and the like, and for example, when the operating system type of the terminal is Android (Android), the first content type may further include a URI (Uniform Resource Identifier) object type, an Intent (Intent) object type, and the like, which is not limited in this embodiment of the present disclosure.
In addition, it should be further noted that, in the embodiment of the present disclosure, only the example that the first attribute information includes the copy time point and the first content type is taken as an example for description, in another embodiment, the first attribute information may further include other information, and the embodiment of the present disclosure does not limit this.
In step 203, when the cursor focus is acquired for the first time based on the input edit box, it is determined whether the first attribute information satisfies second attribute information, where the second attribute information is attribute information of the input edit box.
When the cursor focus is acquired for the first time based on the input edit box, it is described that the user is likely to edit the content in the input edit box, and further, it is understood that when the cursor focus is acquired for the first time, it is described that the user is likely to want to paste the copied content into the input edit box, and therefore, the terminal determines whether or not the attribute information of the copied content satisfies the attribute information of the input edit box.
The input edit box is an edit-decode box capable of inputting contents such as characters and numbers in the terminal, for example, the input edit box may be an input edit box in a short message, a memo, and an address book, the input edit box may correspond to an input edit control, and the input edit control may be used to implement inputting or editing contents in the input edit box.
Further, the implementation process of acquiring the cursor focus for the first time based on the input edit box may include: and the terminal acquires the cursor focus through the input editing control. That is, the input editing control may obtain the cursor focus, where a specific implementation process of obtaining the cursor focus by the input editing control may refer to related technologies, and this is not limited in this disclosure.
The implementation process of determining whether the first attribute information satisfies the second attribute information may include: determining a time difference between a current time point and the copying time point as a first time length, when the second attribute information comprises a second time length and a second content type, judging whether the first time length is less than or equal to the second time length, judging whether the first content type is matched with the second content type, and when the first time length is less than or equal to the second time length and the first content type is matched with the second content type, determining that the first attribute information meets the second attribute information.
The second duration may be set by a user according to actual needs in a user-defined manner, or may be set by a default of the terminal, which is not limited in the embodiment of the present disclosure.
In addition, the second time duration may be different for different input edit boxes, or the second time duration may also be the same for different input edit boxes, that is, the second time duration may be the same for different input edit boxes, which is not limited in this embodiment of the disclosure.
The second content type may be configured in the terminal in advance, and the second content type includes at least one of a text type, a number type, a website type, a mailbox type, a picture type, and a custom type.
Wherein the second content type is different for different input codec boxes. For example, for an input edit box in a short message, the second content type may include a text type, a number type, a website type, a mailbox type, and a custom type, and for an input edit box in a memo, the second content type may include a text type, a number type, a website type, a mailbox type, a picture type, and a custom type.
That is, when the cursor focus is obtained for the first time based on the input edit box, the terminal determines whether a time difference between the current time and a copy time point of the copied content is less than a second time duration corresponding to the input edit box, and determines whether the input edit box supports a content type to which the copied content belongs, that is, whether the content type to which the copied content belongs matches the content corresponding to the input edit box, and when the time difference is less than or equal to the second time duration and the content type to which the copied content belongs matches the content corresponding to the input edit box, the terminal determines that the first attribute information satisfies the second attribute information.
For example, the second duration is 30 seconds, the second content type may include a text type, a number type, and a website address type, and when the first duration is 20 seconds and the type to which the copied content belongs is the number type, it is determined that the first attribute information satisfies the second attribute information, and when the first duration is 40 seconds, it may be determined that the first attribute information does not satisfy the second attribute information.
The second duration and the second content type may be set through the input editing, which is not limited in the embodiment of the present disclosure.
It should be noted that, in the embodiment of the present invention, the second content type is the same as the first content type, that is, here, the second content type is only described as an example where the second content type includes at least one of a text type, a number type, a website type, a mailbox type, a picture type, and a custom type, in another embodiment, the second content type may also include other content types, for example, the second content type may also include an audio type, a video type, and the like, and of course, when the operating system type of the terminal is Android, the first content type may also include a URI object type and an Intent object type, and the embodiment of the present disclosure is not limited thereto.
In step 204, when the first attribute information satisfies the second attribute information, a prompt message for prompting whether to paste the copied content is displayed.
When the first attribute information meets the second attribute information, the terminal can automatically paste the copied content in the input edit box. However, in an actual application process, even if the first attribute information satisfies the second attribute information, the user may not want to paste the copied content in the input edit box, and for this reason, in the embodiment of the present disclosure, before the automatic pasting, the terminal displays a prompt message in the current display interface to prompt the user whether to paste the copied content.
The interface of the prompt message may be displayed on the input edit box in a floating manner, or may be displayed in any area near the input edit box, which is not limited in the embodiment of the present disclosure.
For example, in one possible implementation, the interface for prompting information is shown as 21 in fig. 2B, and when the copied content of the terminal is the phone number 15963452016, the copied content 15963452016 is included in the interface 21.
In step 205, when a confirmation paste instruction is received based on the prompt information, the copied content is pasted in the input edit box.
The confirmation pasting instruction is used for instructing the terminal to paste the copied content in the input edit box, and the confirmation pasting instruction can be triggered by a user, and the user can be triggered by the specified operation.
For example, with continued reference to fig. 2B, the user may click on the interface 21 to trigger the confirm paste command, and accordingly, the terminal pastes the copied content into the input codec frame after receiving the confirm paste command.
Before pasting the copied content in the input edit box, the terminal displays prompt information for the user to prompt whether the user needs to paste the copied content in the input edit box, and when the terminal receives a paste confirmation instruction, the user confirms that the copied content is to be pasted in the input edit box, namely the terminal pastes the copied content into the input edit box, so that the user experience is improved.
In the embodiment of the disclosure, when a copy instruction is received, a terminal copies content indicated by the copy instruction, determines attribute information of the copied content, and when the terminal acquires a cursor focus for the first time based on an input edit box, it indicates that a user may want to paste the copied content in the input edit box, that is, the terminal determines whether the attribute information of the copied content meets the attribute information of the input edit box, and when the attribute information of the copied content meets the attribute information of the input edit box, the terminal automatically pastes the copied content into the input edit box.
Fig. 3A is a schematic structural diagram illustrating a copy-and-paste interactive apparatus according to an exemplary embodiment, where the copy-and-paste interactive apparatus may be implemented by software, hardware, or a combination of the two, and the apparatus includes:
a copy module 310, configured to copy, when receiving a copy instruction, content indicated by the copy instruction;
a first determining module 320, configured to determine first attribute information, where the first attribute information is attribute information of the content copied by the copying module 310;
a pasting module 330, configured to paste the copied content in the input edit box when the cursor focus is obtained for the first time based on the input edit box and the first attribute information determined by the first determining module 320 satisfies second attribute information, where the second attribute information is attribute information of the input edit box.
Optionally, referring to fig. 3B to 3C, the first determining module 320 includes:
a first determination submodule for determining a copy time point at which the content indicated by the copy instruction is copied;
a second determining submodule, configured to determine a first content type, where the first content type is a type to which the copied content belongs;
a third determining sub-module for determining the duplication time point determined by the first determining sub-module and the first content type determined by the second determining sub-module as the first attribute information.
Optionally, the apparatus further comprises:
a second determining module 340, configured to determine a time difference between the current time point and the copying time point as a first duration;
a determining module 350, configured to determine whether the first duration determined by the second determining module is less than or equal to the second duration and determine whether the first content type is matched with the second content type when the second attribute information includes the second duration and the second content type;
a third determining module 360, configured to determine that the first attribute information satisfies the second attribute information when the first duration determined by the second determining module 340 is less than or equal to the second duration and the first content type matches the second content type.
Optionally, the first content type includes a text type, a number type, a website type, a mailbox type, a picture type or a custom type, and the second content type includes at least one of a text type, a number type, a website type, a mailbox type, a picture type and a custom type.
Optionally, the apparatus further comprises:
a display module 370, configured to display a prompt message, where the prompt message is used to prompt whether to paste the copied content;
the pasting module 330 is further configured to execute the step of pasting the copied content in the input edit box when a confirmation pasting instruction is received based on the prompt information displayed by the display module 370.
In the embodiment of the disclosure, when a copy instruction is received, a terminal copies content indicated by the copy instruction, determines attribute information of the copied content, and when the terminal acquires a cursor focus for the first time based on an input edit box, it indicates that a user may want to paste the copied content in the input edit box, that is, the terminal determines whether the attribute information of the copied content meets the attribute information of the input edit box, and when the attribute information of the copied content meets the attribute information of the input edit box, the terminal automatically pastes the copied content into the input edit box.
FIG. 4 is a block diagram illustrating a copy-and-paste interaction apparatus 400, according to an example embodiment. For example, the apparatus 400 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 4, the apparatus 400 may include one or more of the following components: processing components 402, memory 404, power components 406, multimedia components 408, audio components 410, input/output (I/O) interfaces 412, sensor components 414, and communication components 416.
The processing component 402 generally controls overall operation of the apparatus 400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 402 can include one or more modules that facilitate interaction between the processing component 402 and other components. For example, the processing component 402 can include a multimedia module to facilitate interaction between the multimedia component 404 and the processing component 402.
The memory 404 is configured to store various types of data to support operations at the apparatus 400. Examples of such data include instructions for any application or method operating on the device 400, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 404 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power supply components 406 provide power to the various components of device 400. The power components 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power supplies for the apparatus 400.
The multimedia component 408 includes a screen that provides an output interface between the device 400 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the apparatus 400 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 410 is configured to output and/or input audio signals. For example, audio component 410 includes a Microphone (MIC) configured to receive external audio signals when apparatus 400 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 404 or transmitted via the communication component 416. In some embodiments, audio component 410 also includes a speaker for outputting audio signals.
The I/O interface 412 provides an interface between the processing component 402 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 414 includes one or more sensors for providing various aspects of status assessment for the apparatus 400. For example, the sensor assembly 414 may detect an open/closed state of the apparatus 400, the relative positioning of the components, such as a display and keypad of the apparatus 400, the sensor assembly 414 may also detect a change in the position of the apparatus 400 or a component of the apparatus 400, the presence or absence of user contact with the apparatus 400, orientation or acceleration/deceleration of the apparatus 400, and a change in the temperature of the apparatus 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 416 is configured to facilitate wired or wireless communication between the apparatus 400 and other devices. The apparatus 400 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 404 comprising instructions, executable by the processor 420 of the apparatus 400 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein, which when executed by a processor of a mobile terminal, enable the mobile terminal to perform a copy-and-paste interaction method, the method comprising:
when a copying instruction is received, copying the content indicated by the copying instruction;
determining first attribute information, which is attribute information of the copied content;
when the cursor focus is acquired for the first time based on the input edit box, and the first attribute information meets second attribute information, pasting the copied content in the input edit box, wherein the second attribute information is the attribute information of the input edit box.
Optionally, determining the first attribute information includes:
determining a copy time point at which the content indicated by the copy instruction is copied;
determining a first content type, wherein the first content type is a type to which the copied content belongs;
the determined copy time point and the first content type are determined as the first attribute information.
Optionally, the method further comprises:
determining the time difference between the current time point and the copying time point as a first duration;
when the second attribute information comprises a second duration and a second content type, judging whether the first duration is less than or equal to the second duration, and judging whether the first content type is matched with the second content type;
and when the first duration is less than or equal to the second duration and the first content type is matched with the second content type, determining that the first attribute information meets the second attribute information.
Optionally, the first content type includes a text type, a number type, a website type, a mailbox type, a picture type or a custom type, and the second content type includes at least one of a text type, a number type, a website type, a mailbox type, a picture type and a custom type.
Optionally, the method further comprises:
displaying prompt information for prompting whether to paste the copied content;
and executing the step of pasting the copied contents in the input edit box when a confirmation pasting instruction is received based on the prompt information.
In the embodiment of the disclosure, when a copy instruction is received, a terminal copies content indicated by the copy instruction, determines attribute information of the copied content, and when the terminal acquires a cursor focus for the first time based on an input edit box, it indicates that a user may want to paste the copied content in the input edit box, that is, the terminal determines whether the attribute information of the copied content meets the attribute information of the input edit box, and when the attribute information of the copied content meets the attribute information of the input edit box, the terminal automatically pastes the copied content into the input edit box.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (11)

1. An interactive method of copy-and-paste, the method comprising:
when a copying instruction is received, copying the content indicated by the copying instruction;
determining first attribute information, wherein the first attribute information is attribute information of copied content;
when a cursor focus is acquired for the first time through an input editing control based on an input editing box, and the first attribute information meets second attribute information, pasting the copied content in the input editing box, wherein the input editing box refers to an editing and decoding box capable of inputting content in a terminal, the input editing box corresponds to the input editing control, the input editing control is used for realizing the input or editing of the content in the input editing box, and the second attribute information is the attribute information of the input editing box.
2. The method of claim 1, wherein the determining the first attribute information comprises:
determining a copy time point at which the content indicated by the copy instruction is copied;
determining a first content type, wherein the first content type is a type to which the copied content belongs;
determining the determined copy time point and the first content type as the first attribute information.
3. The method of claim 2, further comprising:
determining a time difference between a current time point and the copying time point as a first duration;
when the second attribute information comprises a second duration and a second content type, judging whether the first duration is less than or equal to the second duration, and judging whether the first content type is matched with the second content type;
and when the first duration is less than or equal to the second duration and the first content type is matched with the second content type, determining that the first attribute information meets the second attribute information.
4. The method of any of claims 1-3, wherein the first content type comprises a text type, a number type, a website type, a mailbox type, a picture type, or a custom type, and wherein the second content type comprises at least one of a text type, a number type, a website type, a mailbox type, a picture type, and a custom type.
5. The method of claim 1, further comprising:
displaying prompt information, wherein the prompt information is used for prompting whether the copied content is pasted or not;
and when a confirmation pasting instruction is received based on the prompt information, executing the step of pasting the copied content in the input edit box.
6. A copy-and-paste interactive apparatus, the apparatus comprising:
the copying module is used for copying the content indicated by the copying instruction when the copying instruction is received;
a first determining module, configured to determine first attribute information, where the first attribute information is attribute information of content copied by the copying module;
the pasting module is used for pasting the copied content in the input edit box when a cursor focus is acquired for the first time through the input edit control based on the input edit box and the first attribute information determined by the first determining module meets second attribute information, wherein the input edit box refers to an edit-decode box capable of inputting content in a terminal, the input edit box corresponds to the input edit control, the input edit control is used for realizing the input or edit of the content in the input edit box, and the second attribute information is the attribute information of the input edit box.
7. The apparatus of claim 6, wherein the first determining module comprises:
a first determination submodule configured to determine a copy time point at which the content indicated by the copy instruction is copied;
a second determining submodule, configured to determine a first content type, where the first content type is a type to which the copied content belongs;
a third determining sub-module configured to determine the duplication time point determined by the first determining sub-module and the first content type determined by the second determining sub-module as the first attribute information.
8. The apparatus of claim 7, further comprising:
the second determining module is used for determining the time difference between the current time point and the copying time point as a first duration;
a determining module, configured to determine whether the first duration determined by the second determining module is less than or equal to a second duration and determine whether the first content type matches the second content type when the second attribute information includes the second duration and the second content type;
a third determining module, configured to determine that the first attribute information satisfies the second attribute information when the first duration determined by the second determining module is less than or equal to the second duration and the first content type matches the second content type.
9. The apparatus of any of claims 6-8, wherein the first content type comprises a text type, a number type, a website type, a mailbox type, a picture type, or a custom type, and wherein the second content type comprises at least one of a text type, a number type, a website type, a mailbox type, a picture type, and a custom type.
10. The apparatus of claim 6, further comprising:
the display module is used for displaying prompt information, and the prompt information is used for prompting whether the copied content is pasted or not;
the pasting module is further used for executing the step of pasting the copied content in the input editing frame when a pasting confirmation instruction is received based on the prompt information displayed by the display module.
11. A copy-and-paste interactive apparatus, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when a copying instruction is received, copying the content indicated by the copying instruction;
determining first attribute information, wherein the first attribute information is attribute information of copied content;
when a cursor focus is acquired for the first time through an input editing control based on an input editing box, and the first attribute information meets second attribute information, pasting the copied content in the input editing box, wherein the input editing box refers to an editing and decoding box capable of inputting content in a terminal, the input editing box corresponds to the input editing control, the input editing control is used for realizing the input or editing of the content in the input editing box, and the second attribute information is the attribute information of the input editing box.
CN201610466019.4A 2016-06-23 2016-06-23 Interactive method and device for copying and pasting Active CN106126025B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610466019.4A CN106126025B (en) 2016-06-23 2016-06-23 Interactive method and device for copying and pasting

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610466019.4A CN106126025B (en) 2016-06-23 2016-06-23 Interactive method and device for copying and pasting

Publications (2)

Publication Number Publication Date
CN106126025A CN106126025A (en) 2016-11-16
CN106126025B true CN106126025B (en) 2020-06-02

Family

ID=57268576

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610466019.4A Active CN106126025B (en) 2016-06-23 2016-06-23 Interactive method and device for copying and pasting

Country Status (1)

Country Link
CN (1) CN106126025B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106598757A (en) * 2016-12-13 2017-04-26 珠海市魅族科技有限公司 Content pasting method and device
CN106598719A (en) * 2016-12-13 2017-04-26 珠海市魅族科技有限公司 Method and device for pasting content
CN107239351B (en) * 2017-05-25 2020-11-10 北京小米移动软件有限公司 Pasting method and device
CN107145286B (en) * 2017-05-27 2020-07-10 北京小米移动软件有限公司 Browsing interaction processing method and device
CN108153469A (en) * 2017-12-20 2018-06-12 珠海市魅族科技有限公司 A kind of duplication method of attaching and electronic equipment
CN108803985B (en) * 2018-05-03 2021-03-02 网易(杭州)网络有限公司 Control data copying method and device
CN114201258B (en) * 2021-12-10 2024-06-07 金蝶软件(中国)有限公司 Copy and paste method, apparatus, computer device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007293801A (en) * 2006-03-28 2007-11-08 Casio Comput Co Ltd Table editing device and program
CN103514147A (en) * 2012-06-29 2014-01-15 腾讯科技(深圳)有限公司 Method and system for copying and pasting webpage content
WO2014059655A1 (en) * 2012-10-19 2014-04-24 东莞宇龙通信科技有限公司 Terminal and method for pasting
CN105224174A (en) * 2015-09-29 2016-01-06 小米科技有限责任公司 The display packing of Paste and device
CN105446625A (en) * 2015-11-26 2016-03-30 努比亚技术有限公司 Picture pasting method and apparatus based on browser

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101694650A (en) * 2009-10-10 2010-04-14 宇龙计算机通信科技(深圳)有限公司 Method, device and mobile terminal for copying and pasting data
CN103064584B (en) * 2012-12-24 2016-01-13 东莞宇龙通信科技有限公司 Pasting method and device
CN105068718A (en) * 2015-08-24 2015-11-18 联想(北京)有限公司 Information processing method and electronic device
CN105553663A (en) * 2015-12-09 2016-05-04 小米科技有限责任公司 Verification code input method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007293801A (en) * 2006-03-28 2007-11-08 Casio Comput Co Ltd Table editing device and program
CN103514147A (en) * 2012-06-29 2014-01-15 腾讯科技(深圳)有限公司 Method and system for copying and pasting webpage content
WO2014059655A1 (en) * 2012-10-19 2014-04-24 东莞宇龙通信科技有限公司 Terminal and method for pasting
CN104769580A (en) * 2012-10-19 2015-07-08 东莞宇龙通信科技有限公司 Terminal and method for pasting
CN105224174A (en) * 2015-09-29 2016-01-06 小米科技有限责任公司 The display packing of Paste and device
CN105446625A (en) * 2015-11-26 2016-03-30 努比亚技术有限公司 Picture pasting method and apparatus based on browser

Also Published As

Publication number Publication date
CN106126025A (en) 2016-11-16

Similar Documents

Publication Publication Date Title
CN106126025B (en) Interactive method and device for copying and pasting
CN104506410B (en) The method and apparatus of instant messaging
JP6322768B2 (en) Call interface display method and apparatus
CN109600303B (en) Content sharing method and device and storage medium
JP2017539101A (en) Image acquisition method and apparatus
CN105786507B (en) Display interface switching method and device
CN105426094B (en) Information pasting method and device
CN107566892B (en) Video file processing method and device and computer readable storage medium
CN105094539B (en) Reference information display methods and device
CN107239351B (en) Pasting method and device
CN104850643B (en) Picture comparison method and device
CN105704286A (en) Communication information display method and device
CN107179837B (en) Input method and device
CN105376318A (en) File transmission method, device and system
CN104780256A (en) Address book management method and device and intelligent terminal
CN106034214A (en) Video data recording method and apparatus thereof
WO2019051836A1 (en) Information reply method and apparatus
CN107885464B (en) Data storage method, device and computer readable storage medium
CN106506808A (en) The method and device pointed out by communication message
CN107832112B (en) Wallpaper setting method and device
CN107277422B (en) Video call method, device and system
CN107193446B (en) Image processing method, device, terminal and storage medium
CN106648392B (en) The method and device of pasting data
CN107241432B (en) Message receiving method and device, electronic equipment and computer storage medium
CN106375744B (en) Information projecting method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant