CN111158503A - Method, device, equipment and storage medium compatible with multi-equipment character input - Google Patents

Method, device, equipment and storage medium compatible with multi-equipment character input Download PDF

Info

Publication number
CN111158503A
CN111158503A CN201911424172.0A CN201911424172A CN111158503A CN 111158503 A CN111158503 A CN 111158503A CN 201911424172 A CN201911424172 A CN 201911424172A CN 111158503 A CN111158503 A CN 111158503A
Authority
CN
China
Prior art keywords
input
character
target
input interface
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911424172.0A
Other languages
Chinese (zh)
Inventor
曾辉云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN201911424172.0A priority Critical patent/CN111158503A/en
Publication of CN111158503A publication Critical patent/CN111158503A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/475End-user interface for inputting end-user data, e.g. personal identification number [PIN], preference data

Abstract

The invention belongs to the technical field of compatible multi-device input methods, and discloses a method, a device, equipment and a storage medium for inputting characters by compatible multi-devices. The method comprises the following steps: acquiring initial characters input by a user based on a current input mode; when an input mode switching instruction is received, switching an input interface corresponding to the current input mode to a target input interface according to the input mode switching instruction; synchronizing the initial characters to the target input interface and receiving editing characters input based on the target input interface; and combining the initial character and the edited character to obtain a target character, and displaying the target character. By the mode, the standard input rule and the unified synchronization rule are established by inputting of different devices, and therefore brand-new and extremely-good experience is brought to the input of the content of the intelligent television.

Description

Method, device, equipment and storage medium compatible with multi-equipment character input
Technical Field
The invention relates to the technical field of compatible multi-device input methods, in particular to a method, a device, equipment and a storage medium for inputting characters by compatible multi-devices.
Background
At present, the smart television gradually enters thousands of households, people are more and more accustomed to searching network contents on the smart television and enjoy the pleasure brought by a large screen, but the television is not more inconvenient to input than a computer and a mobile phone. For example, the television is slow to type, tedious and intelligent, and the default input method is not intelligent, and the input method is always a brute force of the intelligent television.
In the prior art, with the attention of various large companies to the intelligent television input method, input modes of devices such as a mobile phone, a keyboard and a remote controller are gradually introduced, but after the multi-input mode appears, the serious problem that input contents are covered or the input contents are not synchronous still exists, and the user experience of the intelligent television input is still seriously influenced.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a method, a device, equipment and a storage medium compatible with multi-equipment input characters, and aims to solve the technical problem that input contents are covered or the input contents are not synchronous when multi-equipment is input in the prior art.
In order to achieve the above object, the present invention provides a method for inputting characters compatible with multiple devices, comprising the following steps:
acquiring initial characters input by a user based on a current input mode;
when an input mode switching instruction is received, switching an input interface corresponding to the current input mode to a target input interface according to the input mode switching instruction;
synchronizing the initial characters to the target input interface and receiving editing characters input based on the target input interface;
and combining the initial character and the edited character to obtain a target character, and displaying the target character.
Preferably, after the step of acquiring the initial character input by the user based on the current input mode, the method further includes:
detecting whether the current input mode is in an editing state;
and if the current input mode is in the editing state, detecting whether an input mode switching instruction is received.
Preferably, the step of switching the input interface corresponding to the current input mode to the target input interface according to the input mode switching instruction when receiving the input mode switching instruction includes:
when an input mode switching instruction is received, determining input equipment corresponding to a target input mode according to the input mode switching instruction;
determining a target input interface according to the input equipment corresponding to the target input mode;
and switching the input interface corresponding to the current input mode to the target input interface.
Preferably, the step of determining a target input interface according to the input device corresponding to the target input mode includes:
acquiring equipment information corresponding to the input equipment according to the input equipment corresponding to the target input mode;
acquiring a target input mode according to the equipment information;
and determining a target input interface according to the target input mode.
Preferably, the target input interface comprises a terminal input interface;
the step of synchronizing the initial character to the target input interface and receiving an edit character input based on the target input interface includes:
synchronizing the initial character to the terminal input interface and hiding the current input mode;
and acquiring a focus position corresponding to the initial character according to the terminal input interface, and synchronizing the editing character input by the terminal input interface based on the focus position.
Preferably, the target input interface comprises an external device input interface;
the step of synchronizing the initial character to the target input interface and receiving an edit character input based on the target input interface further includes:
synchronizing the initial character to the external device input interface;
and acquiring a focus position corresponding to the initial character according to the external equipment input interface, and displaying an editing character input by the external equipment input interface based on the focus position.
Preferably, the step of combining the initial character and the edit character to obtain a target character and displaying the target character includes:
combining the initial character and the edited character to obtain a target character;
and displaying the target character when a candidate word switching selection confirmation instruction input by the user based on the target character is received.
In addition, in order to achieve the above object, the present invention further provides an apparatus compatible with multiple device input characters, the apparatus comprising: the acquisition module is used for acquiring initial characters input by a user based on a current input mode;
the switching module is used for switching the input interface corresponding to the current input mode to a target input interface according to the input mode switching instruction when receiving the input mode switching instruction;
the input module is used for synchronizing the initial characters to the target input interface and receiving editing characters input based on the target input interface;
and the display module is used for combining the initial character and the edited character to obtain a target character and displaying the target character.
In addition, to achieve the above object, the present invention also provides an electronic device, including: a memory, a processor, and a compatible multi-device input character program stored on the memory and executable on the processor, the compatible multi-device input character program configured to implement the steps of the compatible multi-device input character method as recited in any of the above.
Furthermore, to achieve the above object, the present invention further provides a storage medium, which stores a compatible multi-device input character program, and when the compatible multi-device input character program is executed by a processor, the compatible multi-device input character program implements the steps of the compatible multi-device input character method according to any one of the above items.
According to the method, an initial character input by a user based on a current input mode is obtained, when an input mode switching instruction is received, an input interface corresponding to the current input mode is switched to a target input interface according to the input mode switching instruction, then the initial character is synchronized to the target input interface, an edit character input based on the target input interface is received, finally the initial character and the edit character are combined to obtain a target character, and the target character is displayed according to an operation rule corresponding to the target character. By the mode, the problems that the input content is covered and the input content is not synchronous are avoided when the input is carried out by multiple devices, and therefore user experience is improved.
Drawings
Fig. 1 is a schematic structural diagram of an electronic device in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a method for inputting characters compatible with multiple devices according to the present invention;
FIG. 3 is a flowchart illustrating a second embodiment of a method for inputting characters compatible with multiple devices according to the present invention;
FIG. 4 is a block diagram of a first embodiment of the apparatus for inputting characters compatible with multiple devices according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an electronic device in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the electronic device may include: a processor 1001 such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 1005 may be a Random Access Memory (RAM) Memory, or a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and a multi-device compatible input character program.
In the electronic apparatus shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 of the electronic device according to the present invention may be disposed in the electronic device, and the electronic device calls the program for inputting characters compatible with multiple devices stored in the memory 1005 through the processor 1001 and executes the method for inputting characters compatible with multiple devices provided by the embodiment of the present invention.
An embodiment of the present invention provides a method for inputting characters compatible with multiple devices, and referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of the method for inputting characters compatible with multiple devices according to the present invention.
In this embodiment, the method for inputting characters compatible with multiple devices includes the following steps:
step S10: and acquiring initial characters input by a user based on the current input mode.
It should be noted that an input instruction triggered by a user is received, a current input interface is obtained according to the input instruction, a corresponding current input mode is obtained according to the current input interface, and an initial character input by the current input mode is obtained.
In addition, the input mode may be a terminal input mode, an external device input mode, or a television terminal input mode, where the current input mode is an input mode in an operating state.
The initial character is the character edited by the user by using the current input mode.
It should be understood that, when an input instruction triggered by a user is received, the current interface of the television terminal and the television terminal input method management service are notified that the input method has entered an editing state, then the hiding, disappearing and the like of the input method are controlled through an input method call interface (InputMethodSession), a session connection between the client application program and the input method is established through the InputM ethodSession, and interaction between the client application program and the input method can be processed.
After the step of obtaining the initial character input by the user based on the current input mode, whether the current input mode is in an editing state needs to be detected, and if the current input mode is in the editing state, whether an input mode switching instruction is received is detected.
Step S20: and when an input mode switching instruction is received, switching the input interface corresponding to the current input mode to a target input interface according to the input mode switching instruction.
It should be noted that, it is detected whether the television end receives a user switching instruction, where the user switching instruction is an input mode switching instruction, and if the television end receives the input mode switching instruction, the input interface corresponding to the current input mode is switched to the target input interface according to the input mode switching instruction.
It can be understood that the input interface and the target input interface corresponding to the current input mode may be a terminal input interface, an external device input interface, a television input interface, and the like, the terminal input interface may be a mobile phone input interface, the external device input interface may be a keyboard input interface, the television input interface may be a remote controller input interface, and the like, and the embodiment is not limited.
In this embodiment, if the current input interface is a remote controller input interface, the current input interface may be switched to a mobile phone-side input interface and a keyboard-side input interface according to a user input mode switching instruction, and each input interface corresponds to a different input mode.
When a user inputs content by using a television input mode, the input content is in an editing state, and then the remote controller or the keyboard input mode is switched to carry out payment editing, the television needs to determine input equipment corresponding to a target input mode, determine a target input interface according to the input equipment corresponding to the target input mode, and switch the input interface corresponding to the current input mode to the target input interface.
Further, the step of determining the target input interface according to the input device corresponding to the target input mode includes first obtaining device information corresponding to the input device according to the input device corresponding to the target input mode, then obtaining the target input mode according to the device information, then obtaining the target input mode according to the target input mode, and finally determining the target input interface according to the target input mode.
The input device includes a mobile phone end input device, a keyboard input device, a remote controller entry device, and the like, and the target input interface may be a mobile phone end input interface, a keyboard input interface, a remote controller input interface, and the like, which is not limited in this embodiment.
Step S30: synchronizing the initial characters to the target input interface and receiving edit characters input based on the target input interface.
It should be noted that, when the switching is completed, if the switching interface is a terminal input interface, the input mode corresponding to the current input interface needs to be hidden, and at the same time, the initial character needs to be synchronized to the terminal input interface, and when the terminal input interface receives the initial character, the current focus position is updated in the input mode corresponding to the terminal input interface, and subsequent character editing is performed at the current focus position.
Further, in the embodiment of the present invention, if the switching interface is an external device input interface, the initial character is synchronized to the external device input interface, then the current focus position is updated in the external device input interface, and subsequent character editing is performed at the current focus position, where the edited character is a character that is input in the external device input interface by using an input mode corresponding to the external device input interface.
Step S40: and combining the initial character and the edited character to obtain a target character, and displaying the target character.
And combining the initial character and the edited character, obtaining a target character in the input interface of the mobile phone terminal or the input interface of the keyboard terminal, and displaying the target character when receiving a candidate word switching selection confirmation instruction input by the user based on the target character.
In addition, for ease of understanding, the following is an illustration of the present embodiment:
1. the method comprises the steps that a television-side input method realizes service (input method service, IMS) corresponding to the input method, when the application program calls the television-side input method, a current interface (View) and the television-side IMS are informed that the input method enters an editing state, the hiding, disappearance and the like of the input method are controlled, session connection between a client application program and the input method is established through an input Me thodSession, and when characters are input and input is confirmed on an input method interface, contents are input to the application program View interface;
2. the input mode of the mobile phone end is different from that of the television end in that an input UI interface is realized at the mobile phone end, and meanwhile, the television end also realizes an invisible (non-input UI) input method (the input Met hodService is realized), the content is input at the mobile phone end and is transmitted to the invisible input method of the television end, and then the commit input content is submitted to an application program View interface as the input method of the television end;
3. the keyboard input mode is realized by depending on a television input method, receiving a key event of the keyboard, distinguishing the current input mode through equipment information carried by the key event, and multiplexing a flow of the television input method to transmit the content of the input method to an application program View interface;
4. when a user inputs content to an application program View through an input method, the content of the input method is in a composition state firstly, the user can select and switch through candidate words in the composition state, and only when the user determines that the input content is input, the commit is sent to the application program View;
5. when a user inputs content by using the television end input method, the input content is in a composition state, and then the input content is input by using a remote controller or a keyboard mode, the television end detects the equipment type input by the current event, if the equipment type input by the current event is detected to be the remote controller or the keyboard, the content commit of the input method of the television end input method is automatically firstly updated, the current focal position is updated, and then the content of the input method of the remote controller or the keyboard is continuously finished;
6. when a user starts an input method UI of a mobile phone end, a television end invisible (non-input UI) input method informs the television end of exit of the input method through an IMM input method manager, and the input content of the television end is acquired and synchronized to the mobile phone end UI, so that the mobile phone end UI can continue to input on the basis of the input content, and the input from the television end to the mobile phone end is switched and synchronized;
7. when the user calls the input method at the television end, the invisible television end (without input UI) learns that the input method is switched to the input method at the television end through the IMM, the user can inform the mobile phone end of quitting the UI, and when the mobile phone end is quitted, the input content commit is sent to the application program View through the invisible television end (without input UI), so that the input method at the television end can be continuously input on the basis of the input content at the mobile phone end, and the switching and synchronization from the mobile phone end to the input method at the television end are completed.
In the embodiment, an initial character input by a user based on a current input mode is acquired, then when an input mode switching instruction is received, an input interface corresponding to the current input mode is switched to a target input interface according to the input mode switching instruction, then the initial character is synchronized to the target input interface, an edit character input based on the target input interface is received, finally, the initial character and the edit character are combined to obtain a target character, and the target character is displayed. By the method, the standard input rule and the uniform synchronization rule are established for the input of different equipment by identifying the different equipment, and the problems of input content coverage and input content asynchronism in multi-equipment input are solved, so that brand-new and extremely-good experience is brought for the input of the content of the intelligent television.
Referring to fig. 3, fig. 3 is a flowchart illustrating a method for inputting characters compatible with multiple devices according to a second embodiment of the present invention.
Based on the first embodiment, the step S30 and the step S40 in the method for inputting characters by multiple devices in this embodiment specifically include:
step S301: the target input interface comprises a terminal input interface, the initial character is synchronized to the terminal input interface, and the current input mode is hidden.
The target input interface may be a mobile phone input interface, a keyboard input interface, a remote controller input interface, and the like, and this embodiment is not limited.
In the embodiment of the invention, if the terminal input interface is a mobile phone receiving end input interface, the initial character is synchronized to the mobile phone end input interface, and the current input mode is hidden.
The current input mode is any input mode except the target input mode, and if the target input mode is a mobile phone end input mode, both the keyboard input mode and the remote controller input mode can be the current input mode, that is, the current input mode is the input mode used when the initial character is edited.
In addition, the step of hiding the current input mode may be understood as that if the current input mode is switched to the target input interface, a target input mode corresponding to the target input interface needs to be called, and when the target input mode is used, input modes other than the target input mode need to be hidden.
Step S302: and acquiring a focus position corresponding to the initial character according to the terminal input interface, and synchronizing the editing character input by the terminal input interface based on the focus position.
It should be noted that, when the terminal input interface receives the initial character, the focus position needs to be updated to the position corresponding to the initial character, so that the user can perform a subsequent editing state, and then the editing character input by the terminal input interface can be displayed at the focus position.
Step S401: and combining the initial character and the edited character to obtain a target character.
Step S402: and displaying the target character when a candidate word switching selection confirmation instruction input by the user based on the target character is received.
It should be noted that after the target character is input, the target character may be sent to the television only when a candidate word switching selection confirmation instruction input by the user based on the target character needs to be accepted.
In this embodiment, assuming that the target character needs to be sent to the television terminal when the target character is completed on the terminal input interface or the external device input interface, the target character may be sent to the television terminal only when a candidate word switching selection confirmation instruction input by a user based on the target character needs to be received, and the target character is displayed on the television terminal; supposing that when the television end completes the target character by using a remote controller, the target character needs to be sent to the television end, a candidate word switching selection confirmation instruction input by a user based on the target character does not need to be received, the target character can be directly sent to the television end, and the target character is displayed on the television end.
In this embodiment, the initial character is synchronized to the terminal input interface, the current input mode is hidden, then a focus position corresponding to the initial character is obtained according to the terminal input interface, an edit character input by the terminal input interface is synchronized based on the focus position, then the initial character and the edit character are combined to obtain a target character, and finally the target character is displayed when a candidate word switching selection confirmation instruction input by a user based on the target character is received. By the method, seamless switching among the multi-device input methods is realized, so that the user experience is improved.
In addition, an embodiment of the present invention further provides a storage medium, where the storage medium stores a multi-device compatible input character program, and the multi-device compatible input character program, when executed by a processor, implements the steps of the multi-device compatible input character method described above.
Referring to fig. 4, fig. 4 is a block diagram illustrating a first embodiment of the apparatus for inputting characters compatible with multiple devices according to the present invention.
As shown in fig. 4, the apparatus for inputting characters compatible with multiple devices according to the embodiment of the present invention includes: an obtaining module 4001, configured to obtain an initial character input by a user based on a current input mode; the switching module 4002 is configured to switch an input interface corresponding to the current input mode to a target input interface according to an input mode switching instruction when the input mode switching instruction is received; an input module 4003, configured to synchronize the initial characters to the target input interface and receive edit characters input based on the target input interface; a display module 4004, configured to combine the initial character and the edited character to obtain a target character, and display the target character.
The obtaining module 4001 obtains an operation of an initial character input by a user based on a current input mode.
It should be noted that an input instruction triggered by a user is received, a current input interface is obtained according to the input instruction, a corresponding current input mode is obtained according to the current input interface, and an initial character input by the current input mode is obtained.
In addition, the input mode may be a terminal input mode, an external device input mode, or a television terminal input mode, where the current input mode is an input mode in an operating state.
The initial character is the character edited by the user by using the current input mode.
It should be understood that, when an input instruction triggered by a user is received, the current interface of the television terminal and the television terminal input method management service are notified that the input method has entered an editing state, then the hiding, disappearing and the like of the input method are controlled through an input method call interface (InputMethodSession), a session connection between the client application program and the input method is established through the InputM ethodSession, and interaction between the client application program and the input method can be processed.
After the step of obtaining the initial character input by the user based on the current input mode, whether the current input mode is in an editing state needs to be detected, and if the current input mode is in the editing state, whether an input mode switching instruction is received is detected.
And when receiving an input mode switching instruction, the switching module 4002 switches the input interface corresponding to the current input mode to a target input interface according to the input mode switching instruction.
It should be noted that, it is detected whether the television end receives a user switching instruction, where the user switching instruction is an input mode switching instruction, and if the television end receives the input mode switching instruction, the input interface corresponding to the current input mode is switched to the target input interface according to the input mode switching instruction.
It can be understood that the input interface and the target input interface corresponding to the current input mode may be a terminal input interface, an external device input interface, a television input interface, and the like, the terminal input interface may be a mobile phone input interface, the external device input interface may be a keyboard input interface, the television input interface may be a remote controller input interface, and the like, and the embodiment is not limited.
In this embodiment, if the current input interface is a remote controller input interface, the current input interface may be switched to a mobile phone-side input interface and a keyboard-side input interface according to a user input mode switching instruction, and each input interface corresponds to a different input mode.
When a user inputs content by using a television input mode, the input content is in an editing state, and then the remote controller or the keyboard input mode is switched to carry out payment editing, the television needs to determine input equipment corresponding to a target input mode, determine a target input interface according to the input equipment corresponding to the target input mode, and switch the input interface corresponding to the current input mode to the target input interface.
Further, the step of determining the target input interface according to the input device corresponding to the target input mode includes first obtaining device information corresponding to the input device according to the input device corresponding to the target input mode, then obtaining the target input mode according to the device information, then obtaining the target input mode according to the target input mode, and finally determining the target input interface according to the target input mode.
The input device includes a mobile phone end input device, a keyboard input device, a remote controller entry device, and the like, and the target input interface may be a mobile phone end input interface, a keyboard input interface, a remote controller input interface, and the like, which is not limited in this embodiment.
The input module 4003 synchronizes the initial characters to the target input interface and receives an operation of editing characters input based on the target input interface.
It should be noted that, when the switching is completed, if the switching interface is a terminal input interface, the input mode corresponding to the current input interface needs to be hidden, and at the same time, the initial character needs to be synchronized to the terminal input interface, and when the terminal input interface receives the initial character, the current focus position is updated in the input mode corresponding to the terminal input interface, and subsequent character editing is performed at the current focus position.
Further, in the embodiment of the present invention, if the switching interface is an external device input interface, the initial character is synchronized to the external device input interface, then the current focus position is updated in the external device input interface, and subsequent character editing is performed at the current focus position, where the edited character is a character that is input in the external device input interface by using an input mode corresponding to the external device input interface.
The display module 4004 combines the initial character and the edited character to obtain a target character, and displays the target character.
And combining the initial character and the edited character, obtaining a target character in the input interface of the mobile phone terminal or the input interface of the keyboard terminal, and displaying the target character when receiving a candidate word switching selection confirmation instruction input by the user based on the target character.
In addition, for ease of understanding, the following is an illustration of the present embodiment:
1. the method comprises the steps that a television-side input method realizes service (input method service, IMS) corresponding to the input method, when the application program calls the television-side input method, a current interface (View) and the television-side IMS are informed that the input method enters an editing state, the hiding, disappearance and the like of the input method are controlled, session connection between a client application program and the input method is established through an input Me thodSession, and when characters are input and input is confirmed on an input method interface, contents are input to the application program View interface;
2. the input mode of the mobile phone end is different from that of the television end in that an input UI interface is realized at the mobile phone end, and meanwhile, the television end also realizes an invisible (non-input UI) input method (the input Met hodService is realized), the content is input at the mobile phone end and is transmitted to the invisible input method of the television end, and then the commit input content is submitted to an application program View interface as the input method of the television end;
3. the keyboard input mode is realized by depending on a television input method, receiving a key event of the keyboard, distinguishing the current input mode through equipment information carried by the key event, and multiplexing a flow of the television input method to transmit the content of the input method to an application program View interface;
4. when a user inputs content to an application program View through an input method, the content of the input method is in a composition state firstly, the user can select and switch through candidate words in the composition state, and only when the user determines that the input content is input, the commit is sent to the application program View;
5. when a user inputs content by using the television end input method, the input content is in a composition state, and then the input content is input by using a remote controller or a keyboard mode, the television end detects the equipment type input by the current event, if the equipment type input by the current event is detected to be the remote controller or the keyboard, the content commit of the input method of the television end input method is automatically firstly updated, the current focal position is updated, and then the content of the input method of the remote controller or the keyboard is continuously finished;
6. when a user starts an input method UI of a mobile phone end, a television end invisible (non-input UI) input method informs the television end of exit of the input method through an IMM input method manager, and the input content of the television end is acquired and synchronized to the mobile phone end UI, so that the mobile phone end UI can continue to input on the basis of the input content, and the input from the television end to the mobile phone end is switched and synchronized;
7. when the user calls the input method at the television end, the invisible television end (without input UI) learns that the input method is switched to the input method at the television end through the IMM, the user can inform the mobile phone end of quitting the UI, and when the mobile phone end is quitted, the input content commit is sent to the application program View through the invisible television end (without input UI), so that the input method at the television end can be continuously input on the basis of the input content at the mobile phone end, and the switching and synchronization from the mobile phone end to the input method at the television end are completed.
It should be understood that the above is only an example, and the technical solution of the present invention is not limited in any way, and in a specific application, a person skilled in the art may set the technical solution as needed, and the present invention is not limited thereto.
In the embodiment, an initial character input by a user based on a current input mode is acquired, then when an input mode switching instruction is received, an input interface corresponding to the current input mode is switched to a target input interface according to the input mode switching instruction, then the initial character is synchronized to the target input interface, an edit character input based on the target input interface is received, finally, the initial character and the edit character are combined to obtain a target character, and the target character is displayed. By the method, the standard input rule and the uniform synchronization rule are established for the input of different equipment by identifying the different equipment, and the problems of input content coverage and input content asynchronism in multi-equipment input are solved, so that brand-new and extremely-good experience is brought for the input of the content of the intelligent television.
It should be noted that the above-described work flows are only exemplary, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of them to achieve the purpose of the solution of the embodiment according to actual needs, and the present invention is not limited herein.
In addition, the technical details that are not described in detail in this embodiment may be referred to a method for inputting characters compatible with multiple devices provided in any embodiment of the present invention, and are not described herein again.
Further, it is to be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g. Read Only Memory (ROM)/RAM, magnetic disk, optical disk), and includes several instructions for enabling a terminal device (e.g. a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method for inputting characters compatible with multiple devices, the method comprising:
acquiring initial characters input by a user based on a current input mode;
when an input mode switching instruction is received, switching an input interface corresponding to the current input mode to a target input interface according to the input mode switching instruction;
synchronizing the initial characters to the target input interface and receiving editing characters input based on the target input interface;
and combining the initial character and the edited character to obtain a target character, and displaying the target character.
2. The method of claim 1, wherein the step of obtaining the initial character entered by the user based on the current input mode is followed by the step of:
detecting whether the current input mode is in an editing state;
and if the current input mode is in the editing state, detecting whether an input mode switching instruction is received.
3. The method of claim 1, wherein the step of switching the input interface corresponding to the current input mode to the target input interface according to the input mode switching instruction when receiving the input mode switching instruction comprises:
when an input mode switching instruction is received, determining input equipment corresponding to a target input mode according to the input mode switching instruction;
determining a target input interface according to the input equipment corresponding to the target input mode;
and switching the input interface corresponding to the current input mode to the target input interface.
4. The method of claim 3, wherein the step of determining a target input interface according to the input device corresponding to the target input mode comprises:
acquiring equipment information corresponding to the input equipment according to the input equipment corresponding to the target input mode;
acquiring a target input mode according to the equipment information;
and determining a target input interface according to the target input mode.
5. The method of claim 1, wherein the target input interface comprises a terminal input interface;
the step of synchronizing the initial character to the target input interface and receiving an edit character input based on the target input interface includes:
synchronizing the initial character to the terminal input interface and hiding the current input mode;
and acquiring a focus position corresponding to the initial character according to the terminal input interface, and synchronizing the editing character input by the terminal input interface based on the focus position.
6. The method of claim 1, wherein the target input interface comprises an external device input interface;
the step of synchronizing the initial character to the target input interface and receiving an edit character input based on the target input interface further includes:
synchronizing the initial character to the external device input interface;
and acquiring a focus position corresponding to the initial character according to the external equipment input interface, and displaying an editing character input by the external equipment input interface based on the focus position.
7. The method of any one of claims 5-6, wherein the step of combining the initial character with the edited character to obtain a target character and displaying the target character comprises:
combining the initial character and the edited character to obtain a target character;
and displaying the target character when a candidate word switching selection confirmation instruction input by the user based on the target character is received.
8. An apparatus for inputting characters compatible with multiple devices, the apparatus comprising:
the acquisition module is used for acquiring initial characters input by a user based on a current input mode;
the switching module is used for switching the input interface corresponding to the current input mode to a target input interface according to the input mode switching instruction when receiving the input mode switching instruction;
the input module is used for synchronizing the initial characters to the target input interface and receiving editing characters input based on the target input interface;
and the display module is used for combining the initial character and the edited character to obtain a target character and displaying the target character.
9. An electronic device, characterized in that the device comprises: a memory, a processor, and a compatible multi-device input character program stored on the memory and executable on the processor, the compatible multi-device input character program configured to implement the steps of the compatible multi-device input character method of any of claims 1-7.
10. A storage medium having stored thereon a multi-device compatible input character program which, when executed by a processor, performs the steps of the multi-device compatible input character method of any one of claims 1 to 7.
CN201911424172.0A 2019-12-31 2019-12-31 Method, device, equipment and storage medium compatible with multi-equipment character input Pending CN111158503A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911424172.0A CN111158503A (en) 2019-12-31 2019-12-31 Method, device, equipment and storage medium compatible with multi-equipment character input

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911424172.0A CN111158503A (en) 2019-12-31 2019-12-31 Method, device, equipment and storage medium compatible with multi-equipment character input

Publications (1)

Publication Number Publication Date
CN111158503A true CN111158503A (en) 2020-05-15

Family

ID=70560658

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911424172.0A Pending CN111158503A (en) 2019-12-31 2019-12-31 Method, device, equipment and storage medium compatible with multi-equipment character input

Country Status (1)

Country Link
CN (1) CN111158503A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103957442A (en) * 2014-05-13 2014-07-30 南京睿悦信息技术有限公司 Cross-screen input program and cross-screen input method of far-end equipment
CN105530528A (en) * 2015-11-27 2016-04-27 深圳Tcl数字技术有限公司 Data synchronizing and sharing method and device
JP2016099912A (en) * 2014-11-26 2016-05-30 コニカミノルタ株式会社 Character input system, character input method, portable terminal device and character input program
US20160357720A1 (en) * 2015-06-07 2016-12-08 Apple Inc. Device, Method, and Graphical User Interface for Collaborative Editing in Documents
CN106375814A (en) * 2016-09-22 2017-02-01 深圳创维数字技术有限公司 Input method and system
CN109086088A (en) * 2018-08-15 2018-12-25 南昌华勤电子科技有限公司 A kind of setting method and device for realizing that multi-input device cooperates

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103957442A (en) * 2014-05-13 2014-07-30 南京睿悦信息技术有限公司 Cross-screen input program and cross-screen input method of far-end equipment
JP2016099912A (en) * 2014-11-26 2016-05-30 コニカミノルタ株式会社 Character input system, character input method, portable terminal device and character input program
US20160357720A1 (en) * 2015-06-07 2016-12-08 Apple Inc. Device, Method, and Graphical User Interface for Collaborative Editing in Documents
CN105530528A (en) * 2015-11-27 2016-04-27 深圳Tcl数字技术有限公司 Data synchronizing and sharing method and device
CN106375814A (en) * 2016-09-22 2017-02-01 深圳创维数字技术有限公司 Input method and system
CN109086088A (en) * 2018-08-15 2018-12-25 南昌华勤电子科技有限公司 A kind of setting method and device for realizing that multi-input device cooperates

Similar Documents

Publication Publication Date Title
CN105278799B (en) Interface switching method and device
CN103607660A (en) Intelligent television interface switching control method and control apparatus
CN106162364B (en) Intelligent television system input method and device and terminal auxiliary input method and device
CN106802762B (en) Synchronizing server-side keyboard layout with client-side layout in virtual session
CN112751971A (en) Voice playing method and device and electronic equipment
CN112511412B (en) Information sending method and device, electronic equipment and readable storage medium
CN112416200A (en) Display method, display device, electronic equipment and readable storage medium
CN103596058A (en) Control method and control device for interface switching of intelligent television
CN112148178A (en) Application switching method and device, electronic equipment and readable storage medium
CN112565063A (en) Message processing method and device and electronic equipment
CN112711366A (en) Image generation method and device and electronic equipment
US10721281B2 (en) Method, system and non-transitory computer-readable recording medium for providing a multilateral communication service
CN110933772A (en) Connection method of wireless device, mobile terminal and computer readable storage medium
CN112235412B (en) Message processing method and device
CN112764633B (en) Information processing method and device and electronic equipment
CN111324262B (en) Application interface control method, device, terminal and medium
CN111158503A (en) Method, device, equipment and storage medium compatible with multi-equipment character input
CN112596883B (en) Application switching method and device, storage medium and electronic equipment
CN112272223B (en) Application running method and device, server and computer readable storage medium
CN114416248A (en) Conversation method and device thereof
CN113625921A (en) Method, device, storage medium and electronic equipment for displaying target message
CN113872849A (en) Message interaction method and device and electronic equipment
CN113835577A (en) Display method, display device, electronic equipment and storage medium
CN113318437A (en) Interaction method, device, equipment and medium
CN113031890A (en) Method and device for controlling mobile terminal to perform screen projection interaction

Legal Events

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