Embodiments of the present application disclose a text information input method and apparatus, where the method includes: firstly, invoking a first edit box of a handheld device; afterwards, updating display content of the first edit box according to an editing operation performed by an operator on the first edit box; and then, detecting whether first display content of the first edit box at a current moment and second display content of the first edit box at a previous moment are the same, and if they are different, sending the first display content to a set top box, so that the set top box updates display content of a second edit box.
Legal claims defining the scope of protection, as filed with the USPTO.
1. A text information input method, applied in a handheld device that is used to enable a virtual input method in a set top box, wherein the method comprises: sending, by the handheld device, a forward invoking input request message to the set top box to enable the set top box to acquire information about a second edit box displayed by the set top box; receiving a forward invoking input response message from the set top box, the forward invoking input response message including the information about the second edit box; setting an attribute of the first edit box according to the information about the second edit box; invoking the first edit box of the handheld device, wherein the invoking the first edit box of the handheld device comprises: receiving a backward invoking input request message sent by the set top box, wherein the backward invoking input request message is a request message generated by the set top box according to information about the second edit box after the set top box acquires the information about the second edit box in response to detecting that a cursor position is in the second edit box, and the information about the second edit box comprises text display content, the cursor position, and attribute information of the second edit box; setting the attribute of the first edit box according to the information about the second edit box; obtaining a backward invoking input response message; and sending the backward invoking input response message to the set top box; acquiring an editing operation of text editing performed by an operator on the first edit box; updating a display content of the first edit box according to the editing operation, wherein the display content comprises text information and cursor position information that are displayed in the first edit box; and detecting whether a first display content of the first edit box at a current moment and a second display content of the first edit box at a previous moment are the same, and if they are different, sending the first display content to the set top box to enable content of the second edit box correspondingly displayed by the set top box to be updated.
2. The method according to claim 1 , further comprising: generating an end-of-editing message according to end-of-editing operation information of the operator, wherein the end-of-editing message carries information about an executable operation of the set top box; and sending the end-of-editing message to the set top box, wherein the end-of-editing message is used to enable the set top box to obtain the information about the executable operation and execute the executable operation.
3. The method according to claim 1 , wherein the detecting whether the first display content of the first edit box at the current moment and the second display content of the first edit box at the previous moment are the same comprises: acquiring the first display content that is displayed in the first edit box at the current moment, wherein the first display content comprises first text information and a first cursor position; and determining whether the first display content and the second display content that is displayed in the first edit box at the previous moment are the same, wherein the second display content comprises second text information and a second cursor position, and if the first text information and the second text information are the same and the first cursor position and the second cursor position are the same, it is determined that the first display content and the second display content are the same; if the first text information and the second text information are different and/or the first cursor position and the second cursor position are different, it is determined that the first display content and the second display content are different.
4. The method according to claim 1 , further comprising enabling the virtual input method of the set top box by: establishing a wireless communication channel between the handheld device and the set top box; generating an enabling message according to operation information about enabling virtual input, and sending the enabling message to the set top box through the wireless communication channel, wherein the enabling message is used to enable the set top box to set the virtual input method to a default input method and obtain an enabling success result; and receiving the enabling success result sent by the set top box, and displaying prompt information that the virtual input is available.
5. The method according to claim 4 , further comprising: generating a disabling message according to operation information about disabling the virtual input, and providing the disabling message for the set top box, wherein the disabling message is used by the set top box to set a system input method of the set top box to the default input method and obtain a disabling success result; and receiving the disabling success result sent by the set top box, and displaying prompt information that the virtual input is unavailable.
6. A text information input method, applied in a set top box in which a virtual input method is enabled, wherein the method comprises: receiving a forward invoking input request message sent by a handheld device to the set top box; sending a forward invoking input response message from the set top box, the forward invoking input response message including information about a second edit box displayed by the set top box, wherein the forward invoking input response message is used to enable the handheld device to set an attribute of a first edit box displayed by the handheld device according to the information about the second edit box; acquiring display content sent by the handheld device, wherein the display content is display content of the first edit box of the handheld device at a current moment; and updating, according to the display content, display content of the second edit box correspondingly displayed by the set top box, wherein the acquiring display content sent by the handheld device comprises: detecting whether a cursor position is in the second edit box, and if the cursor position is in the second edit box, acquiring information about the second edit box, wherein the information about the second edit box comprises text display content, the cursor position, and attribute information of the second edit box; generating a backward invoking input request message that carries the information about the second edit box, and sending the backward invoking input request message to the handheld device, wherein the backward invoking input request message is used to enable the handheld device to set the attribute of the first edit box according to the information about the second edit box and to obtain a backward invoking input response message; and receiving the display content of the first edit box at the current moment that is sent by the handheld device when the handheld device returns the backward invoking input response message.
7. The method according to claim 6 , further comprising: receiving an end-of-editing message sent by the handheld device, wherein the end-of-editing message is generated when the handheld device receives end-of-editing operation information of an operator, and the end-of-editing message carries an executable operation of the set top box; and parsing the end-of-editing message to obtain the executable operation, and executing the executable operation.
8. The method according to claim 6 , wherein a process of enabling the virtual input method of the set top box comprises: establishing a wireless communication channel between the set top box and the handheld device according to a connection request sent by the handheld device; receiving an enabling message that is used to enable the virtual input method and sent by the handheld device through the wireless communication channel; and setting the virtual input method to a default input method according to the enabling message, obtaining an enabling success result, and returning the enabling success result to the handheld device to enable the handheld device to display prompt information that virtual input is available.
9. The method according to claim 8 , further comprising: receiving a disabling message generated by the handheld device according to operation information about disabling the virtual input; and setting a system input method of the set top box to the default input method according to the disabling message, obtaining a disabling success result, and sending the disabling success result to the handheld device, so that the handheld device displays prompt information that the virtual input is unavailable.
10. A text information input apparatus, comprising a processor and a non-transitory processor-readable medium having processor-executable instructions stored thereon, the processor-executable instructions including a plurality of units, the units including: a first sending unit, configured to send a forward invoking input request message to a set top box to enable the set top box to acquire information about a second edit box displayed by the set top box; a first receiving unit configured to receive a forward invoking input response message from the set top box, the forward invoking input response message including the information about the second edit box; a first setting unit configured to set an attribute of a first edit box displayed by the text information input apparatus according to the information about the second edit box; an invoking unit, configured to invoke the first edit box; wherein the invoking unit comprises: a second receiving unit, configured to receive a backward invoking input request message sent by the set top box, wherein the backward invoking input request message is a request message generated by the set top box according to information about the second edit box after the set top box acquires the information about the second edit box in response to detecting that a cursor position is in the second edit box, and the information about the second edit box comprises text display content, the cursor position, and attribute information of the second edit box; a second setting unit, configured to set the attribute of the first edit box according to the information about the second edit box and to obtain a backward invoking input response message; and a second sending unit, configured to send the backward invoking input response message to the set top box; a first acquiring unit, configured to acquire an editing operation of text editing performed by an operator on the first edit box; an updating unit, configured to update display content of the first edit box according to the editing operation; a first detecting unit, configured to detect whether first display content of the first edit box at a current moment and second display content of the first edit box at a previous moment are the same, wherein the display content comprises text information and cursor position information that are displayed in the first edit box; and a third sending unit, configured to send the first display content to the set top box when the first display content of the first edit box at the current moment and the second display content of the first edit box at the previous moment are different to enable content of the second edit box correspondingly displayed by the set top box to be updated.
11. The apparatus according to claim 10 , further comprising: a third receiving unit, configured to receive end-of-editing operation information of an operator; a first message generating unit, configured to generate an end-of-editing message according to the end-of-editing operation information, wherein the end-of-editing message carries an executable operation of the set top box; and a fourth sending unit, configured to send the end-of-editing message to the set top box, wherein the end-of-editing message is used to enable the set top box to obtain information about the executable operation and execute the executable operation.
12. A text information input apparatus, comprising a processor and a non-transitory processor-readable medium having processor-executable instructions stored thereon, the processor-executable instructions including a plurality of units, the units including: a first receiving unit configured to receive a forward invoking input request message sent by a handheld device to the text information input apparatus; a sending unit configured to send a forward invoking input response message, the forward invoking input response message including information about a second edit box displayed by the text information input apparatus, wherein the forward invoking input response message is used to enable the handheld device to set an attribute of a first edit box displayed by the handheld device according to the information about the second edit box; a first acquiring unit, configured to acquire display content sent by the handheld device, wherein the display content is display content of the first edit box of the handheld device at a current moment; and an updating unit, configured to update, according to the display content, display content in the second edit box correspondingly displayed by the set top box, wherein the first acquiring unit comprises: a first detecting unit, configured to detect whether a cursor position is in the second edit box; a second acquiring unit, configured to acquire information about the second edit box when the cursor position is in the second edit box, wherein the information about the second edit box comprises text display content, the cursor position, and attribute information of the second edit box; a request message generating unit, configured to generate a backward invoking input request message, wherein the backward invoking input request message carries the information about the second edit box; a second sending unit, configured to send the backward invoking input request message to the handheld device, wherein the backward invoking input request message is used to enable the handheld device to set the attribute of the first edit box according to the information about the second edit box and to obtain a backward invoking input response message; and a second receiving unit, configured to receive the display content of the first edit box at the current moment that is sent by the handheld device when the handheld device returns the backward invoking input response message.
13. The apparatus according to claim 12 , further comprising: a third receiving unit, configured to receive an end-of-editing message sent by the handheld device, wherein the end-of-editing message is generated when the handheld device receives end-of-editing operation information of an operator, and the end-of-editing message carries an executable operation of the set top box; a parsing unit, configured to parse the end-of-editing message to obtain the executable operation; and an execution unit, configured to execute the executable operation.
Cooperative Patent Classification codes for this invention. Click any code to explore related patents in that topic.
October 31, 2014
November 21, 2017
Browse 5M+ US patents with plain-English claim translations and AI-generated analysis.