CN111158503B - Method, device, equipment and storage medium for inputting characters by compatible multiple equipment - Google Patents

Method, device, equipment and storage medium for inputting characters by compatible multiple equipment Download PDF

Info

Publication number
CN111158503B
CN111158503B CN201911424172.0A CN201911424172A CN111158503B CN 111158503 B CN111158503 B CN 111158503B CN 201911424172 A CN201911424172 A CN 201911424172A CN 111158503 B CN111158503 B CN 111158503B
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.)
Active
Application number
CN201911424172.0A
Other languages
Chinese (zh)
Other versions
CN111158503A (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.)
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/CN111158503B/en
Publication of CN111158503A publication Critical patent/CN111158503A/en
Application granted granted Critical
Publication of CN111158503B publication Critical patent/CN111158503B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Input From Keyboards Or The Like (AREA)

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 using compatible multi-device. The method comprises the following steps: acquiring an initial character 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 character to the target input interface and receiving an edit character input based on the target input interface; and combining the initial character with the editing character to obtain a target character, and displaying the target character. By the method, the standard input rules and the unified synchronization rules are established for different equipment inputs, so that the full-new and extreme experience is brought for the input of the intelligent television content.

Description

Method, device, equipment and storage medium for inputting characters by compatible multiple equipment
Technical Field
The present invention relates to the field of a compatible multi-device input method, and in particular, to a method, an apparatus, a device, and a storage medium for inputting characters with a compatible multi-device.
Background
At present, intelligent televisions gradually enter thousands of households, and people are more and more used to search network contents on the intelligent televisions to enjoy the pleasure brought by a large screen, but the televisions are not more inconvenient than computers and mobile phones in input. For example, the television typing is slow, the default input method is complex and intelligent, and the input method is a hard injury of the intelligent television.
In the prior art, with the importance of large companies, the input modes of equipment such as mobile phones, keyboards, remote controllers and the like are gradually introduced, but the serious problem that the input contents are covered or the input contents are not synchronous occurs after the multi-input mode occurs, and the user experience of intelligent television input is still seriously affected.
The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present invention and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
The invention mainly aims to provide a method, a device, equipment and a storage medium for inputting characters by compatible multiple equipment, and aims to solve the technical problems that input contents are covered or the input contents are not synchronous when the multiple equipment is input in the prior art.
To achieve the above object, the present invention provides a method for inputting characters compatible with multiple devices, the method comprising the steps of:
acquiring an initial character 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 character to the target input interface and receiving an edit character input based on the target input interface;
and combining the initial character with the editing character to obtain a target character, and displaying the target character.
Preferably, after the step of obtaining 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 or not;
And if the current input mode is in the editing state, detecting whether an input mode switching instruction is received.
Preferably, when receiving an input mode switching instruction, the step of switching the input interface corresponding to the current input mode to a target input interface according to 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 the 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 the edited 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 includes an external device input interface;
the step of synchronizing the initial character to the target input interface and receiving the edited character input based on the target input interface further comprises:
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 the editing character input by the external equipment input interface based on the focus position.
Preferably, the step of combining the initial character and the editing character to obtain a target character and displaying the target character includes:
combining the initial character and the editing character to obtain a target character;
and displaying the target character when a candidate word switching selection confirmation instruction input by a user based on the target character is received.
In addition, in order to achieve the above object, the present invention also proposes a compatible multi-device character input apparatus, 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 editing character to obtain a target character and displaying the target character.
In addition, to achieve the above object, the present invention also proposes 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 described in any one of the preceding claims.
In addition, in order to achieve the above object, the present invention also proposes a storage medium having stored thereon a compatible multi-device input character program which, when executed by a processor, implements the steps of the compatible multi-device input character method as set forth in any one of the above.
According to the method, an initial character input by a user based on a current input mode is obtained, 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 editing character input based on the target input interface is received, finally the initial character and the editing 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 method, when multiple devices are input, the problems that the input content is covered and the input content is not synchronous are avoided, and therefore user experience is improved.
Drawings
FIG. 1 is a schematic diagram of an electronic device of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flow chart of a first embodiment of a compatible multi-device character input method according to the present invention;
FIG. 3 is a flow chart of a second embodiment of a compatible multi-device character input method according to the present invention;
fig. 4 is a block diagram illustrating a first embodiment of a compatible multi-device character input apparatus according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an electronic device in a hardware running 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 (Ce ntral Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further 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 high-speed random access memory (Random Access Memory, RAM) memory or a stable Non-volatile memory (Non-Volatile Me mory, NVM), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Those skilled in the art will appreciate that the structure shown in fig. 1 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or may be arranged in different components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a compatible multi-device input character program may be included in the memory 1005 as one type of storage medium.
In the electronic device 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 in the electronic device of the present invention may be provided in the electronic device, where the electronic device invokes the compatible multi-device character input program stored in the memory 1005 through the processor 1001, and executes the compatible multi-device character input method provided by the embodiment of the present invention.
Referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of a method for inputting characters by multiple compatible devices according to the present invention.
In this embodiment, the method for inputting characters by using multiple compatible devices includes the following steps:
step S10: and acquiring an initial character input by the user based on the current input mode.
It should be noted that, receiving an input instruction triggered by a user, acquiring a current input interface according to the input instruction, and acquiring a corresponding current input mode according to the current input interface, so as to acquire an initial character input by the current input mode.
In addition, the input mode may be a terminal input mode, an external device input mode, or a television input mode, where the current input mode is an input mode in an operating state.
The initial character is edited by the user by the current input mode.
It should be understood that when receiving an input instruction triggered by a user, the current interface of the television and the input method management service of the television are notified that the input method has entered an editing state, then the input method call interface (InputMethodSession) is used for controlling hiding and disappearance of the input method, and session connection between the client application program and the input method is established through InputM ethodSession, so that interaction between the client application program and the input method can be processed.
After the step of acquiring the initial character input by the user based on the current input mode, detecting whether the current input mode is in an editing state, and if so, detecting whether an input mode switching instruction is received.
Step S20: 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.
It should be noted that, whether the television terminal receives a user switching instruction is detected, the user switching instruction is an input mode switching instruction, and if the television terminal 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 may 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, etc., where 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, etc., and the embodiment is not limited.
In this embodiment, if the current input interface is a remote control input interface, the current input interface may be switched to a mobile phone input interface and a keyboard input interface according to a user input mode switching instruction, and each input interface corresponds to a different input mode.
When the user inputs the content by utilizing the input mode of the television end, and 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 end needs to determine the input equipment corresponding to the 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 the steps of firstly 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 input device, a keyboard input device, a remote controller driving device, and the like, and the target input interface may be a mobile phone input interface, a keyboard input interface, a remote controller input interface, and the like, which is not limited in this embodiment.
Step S30: and synchronizing the initial character to the target input interface and receiving the editing character input based on the target input interface.
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, meanwhile, the initial character needs to be synchronized to the terminal input interface, 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 the 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 in the external device input interface is updated, and subsequent character editing is performed at the current focus position, where the edited character is a character 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 with the editing character to obtain a target character, and displaying the target character.
And combining the initial character with the editing character, obtaining a target character in the input interface of the mobile phone end or the input interface of the keyboard end, and displaying the target character when receiving a candidate word switching selection confirmation instruction input by a user based on the target character.
Further, for ease of understanding, the following is an illustration of the present embodiment:
1. When an application program calls the television input method, a current interface (View) and the television IMS are informed of the fact that the input method is in an editing state, 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 InputMe thodSession, and when characters are input through the input method interface and input is confirmed, the input content is input to the View interface of the application program;
2. the input mode of the mobile phone end is different from the input method of the television end in that the input UI interface is realized on the mobile phone end, meanwhile, the television end realizes an invisible (no input UI) input method (InputMet hodService is realized), the content is input on the mobile phone end, the content is transmitted to the invisible input method of the television end, and then the commit input content is submitted to the application program View interface as the input method of the television end;
3. The keyboard input mode is based on the realization of the television input method, key events of a keyboard are received, the current input mode is distinguished through equipment information carried by the key events, and the input method content is transmitted to an application program View interface by multiplexing the flow of the television input method;
4. When a user inputs content to an application program View through an input method, the input method is firstly in a writing composing state, and when the input method is in a composing state, the user can select and switch through candidate words, and the user determines that the input content is input to the application program View after finishing inputting;
5. When a user inputs content by using a television input method, the input content is in a writing composing state, and then is input by using a remote controller or a keyboard mode, when the television detects the equipment type input by the current event, if the detection is 'remote controller or keyboard', the television automatically firstly compiles the content of the input method of the television input method, updates and updates the current focus position, and then continuously completes the input method content of the 'remote controller or keyboard';
6. when a user starts an input method UI of a mobile phone terminal, the invisible (non-input UI) input method of the television terminal informs the television terminal of exiting the input method through an IMM input method manager, and acquires the input content of the television terminal and synchronizes the input content to the UI of the mobile phone terminal, so that the UI of the mobile phone terminal can continuously input on the basis of the input content, and the switching and synchronization from the input of the television terminal to the input of the mobile phone terminal are realized;
7. At this time, when the user calls out the input method at the television end, the television end stealth (no input UI) knows that the input method is switched to the television end input method through the IMM, the mobile phone end UI is informed to exit, at this time, the mobile phone end UI can input the content commit to the application program View through the television end stealth (no input UI) when exiting, and therefore the television end input method can continue to input on the basis of the content input by the mobile phone end, and switching and synchronization from the mobile phone end to the television end input method are completed.
According to the method, an initial character input by a user based on a current input mode is obtained, 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 editing character input based on the target input interface is received, finally the initial character and the editing character are combined to obtain a target character, and the target character is displayed. By the method, the standard input rules and the unified synchronization rules are established for different equipment input through the identification of different equipment, the problem that input contents are covered and input contents are not synchronous when multiple equipment are input is solved, and therefore the full-new and extremely-high experience is brought to the input of intelligent television contents.
Referring to fig. 3, fig. 3 is a flowchart illustrating a method for inputting characters with multiple devices according to a second embodiment of the present invention.
Based on the first embodiment, the method for inputting characters by multiple devices compatible with the present embodiment includes the following steps:
Step S301: the target input interface comprises a terminal input interface, and the initial characters are synchronized to the terminal input interface and hidden from the current input mode.
The target input interface may be a mobile phone input interface, a keyboard input interface, a remote controller input interface, etc., which is not limited in this embodiment.
In the embodiment of the invention, if the terminal input interface is a mobile phone receiving terminal input interface, the initial character is synchronized to the mobile phone 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 input mode, 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 editing the initial character.
In addition, the step of hiding the current input method may be understood as that, if the current input method is switched to the target input interface, the target input method corresponding to the target input interface needs to be invoked, and when the target input method is used, input methods other than the target input method 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, if the terminal input interface receives the initial character, the focal position needs to be updated to a 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 focal position.
Step S401: and combining the initial character and the editing character to obtain a target character.
Step S402: and displaying the target character when a candidate word switching selection confirmation instruction input by a user based on the target character is received.
After the target character is input, the target character can be sent to the television end only when a candidate word switching selection confirmation instruction input by the user based on the target character is required to be received.
In this embodiment, assuming that when a target character is completed on the terminal input interface or the external device input interface, the target character needs to be sent to the television end, when a candidate word switching selection confirmation instruction input by the user based on the target character needs to be received, the target character may be sent to the television end, and the target character is displayed on the television end; and if the target character is completed by the television end through the remote controller, the target character is required to be sent to the television end, a candidate word switching selection confirmation instruction input by a user based on the target character is not required to be received, the target character can be directly sent to the television end, and the target character is displayed on the television end.
According to the embodiment, the initial character is synchronized to the terminal input interface, the current input mode is hidden, then the focus position corresponding to the initial character is obtained according to the terminal input interface, the editing characters input by the terminal input interface are synchronized based on the focus position, the initial character and the editing characters 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, and therefore user experience is improved.
In addition, the embodiment of the invention also provides a storage medium, wherein the storage medium is stored with a compatible multi-device input character program, and the compatible multi-device input character program realizes the steps of the compatible multi-device input character method when being executed by a processor.
Referring to fig. 4, fig. 4 is a block diagram illustrating a first embodiment of a multi-device compatible input character device according to the present invention.
As shown in fig. 4, the apparatus for inputting characters with multiple compatible 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, when an input mode switching instruction is received, an input interface corresponding to the current input mode to a target input interface according to the input mode switching instruction; an input module 4003 for synchronizing the initial character to the target input interface and receiving an edit character input based on the target input interface; and the display module 4004 is used for combining the initial character and the editing character to obtain a target character and displaying the target character.
The acquisition module 4001 acquires an operation of an initial character input by a user based on a current input method.
It should be noted that, receiving an input instruction triggered by a user, acquiring a current input interface according to the input instruction, and acquiring a corresponding current input mode according to the current input interface, so as to acquire an initial character input by the current input mode.
In addition, the input mode may be a terminal input mode, an external device input mode, or a television input mode, where the current input mode is an input mode in an operating state.
The initial character is edited by the user by the current input mode.
It should be understood that when receiving an input instruction triggered by a user, the current interface of the television and the input method management service of the television are notified that the input method has entered an editing state, then the input method call interface (InputMethodSession) is used for controlling hiding and disappearance of the input method, and session connection between the client application program and the input method is established through InputM ethodSession, so that interaction between the client application program and the input method can be processed.
After the step of acquiring the initial character input by the user based on the current input mode, detecting whether the current input mode is in an editing state, and if so, detecting whether an input mode switching instruction is received.
When receiving an input mode switching instruction, the switching module 4002 switches an 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, whether the television terminal receives a user switching instruction is detected, the user switching instruction is an input mode switching instruction, and if the television terminal 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 may 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, etc., where 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, etc., and the embodiment is not limited.
In this embodiment, if the current input interface is a remote control input interface, the current input interface may be switched to a mobile phone input interface and a keyboard input interface according to a user input mode switching instruction, and each input interface corresponds to a different input mode.
When the user inputs the content by utilizing the input mode of the television end, and 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 end needs to determine the input equipment corresponding to the 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 the steps of firstly 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 input device, a keyboard input device, a remote controller driving device, and the like, and the target input interface may be a mobile phone 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 character to the target input interface and receives an operation of editing a character input based on the target input interface.
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, meanwhile, the initial character needs to be synchronized to the terminal input interface, 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 the 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 in the external device input interface is updated, and subsequent character editing is performed at the current focus position, where the edited character is a character 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 edit character to obtain a target character, and performs an operation of displaying the target character.
And combining the initial character with the editing character, obtaining a target character in the input interface of the mobile phone end or the input interface of the keyboard end, and displaying the target character when receiving a candidate word switching selection confirmation instruction input by a user based on the target character.
Further, for ease of understanding, the following is an illustration of the present embodiment:
1. When an application program calls the television input method, a current interface (View) and the television IMS are informed of the fact that the input method is in an editing state, 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 InputMe thodSession, and when characters are input through the input method interface and input is confirmed, the input content is input to the View interface of the application program;
2. the input mode of the mobile phone end is different from the input method of the television end in that the input UI interface is realized on the mobile phone end, meanwhile, the television end realizes an invisible (no input UI) input method (InputMet hodService is realized), the content is input on the mobile phone end, the content is transmitted to the invisible input method of the television end, and then the commit input content is submitted to the application program View interface as the input method of the television end;
3. The keyboard input mode is based on the realization of the television input method, key events of a keyboard are received, the current input mode is distinguished through equipment information carried by the key events, and the input method content is transmitted to an application program View interface by multiplexing the flow of the television input method;
4. When a user inputs content to an application program View through an input method, the input method is firstly in a writing composing state, and when the input method is in a composing state, the user can select and switch through candidate words, and the user determines that the input content is input to the application program View after finishing inputting;
5. When a user inputs content by using a television input method, the input content is in a writing composing state, and then is input by using a remote controller or a keyboard mode, when the television detects the equipment type input by the current event, if the detection is 'remote controller or keyboard', the television automatically firstly compiles the content of the input method of the television input method, updates and updates the current focus position, and then continuously completes the input method content of the 'remote controller or keyboard';
6. when a user starts an input method UI of a mobile phone terminal, the invisible (non-input UI) input method of the television terminal informs the television terminal of exiting the input method through an IMM input method manager, and acquires the input content of the television terminal and synchronizes the input content to the UI of the mobile phone terminal, so that the UI of the mobile phone terminal can continuously input on the basis of the input content, and the switching and synchronization from the input of the television terminal to the input of the mobile phone terminal are realized;
7. At this time, when the user calls out the input method at the television end, the television end stealth (no input UI) knows that the input method is switched to the television end input method through the IMM, the mobile phone end UI is informed to exit, at this time, the mobile phone end UI can input the content commit to the application program View through the television end stealth (no input UI) when exiting, and therefore the television end input method can continue to input on the basis of the content input by the mobile phone end, and switching and synchronization from the mobile phone end to the television end input method are completed.
It should be understood that the foregoing is illustrative only and is not limiting, and that in specific applications, those skilled in the art may set the invention as desired, and the invention is not limited thereto.
According to the method, an initial character input by a user based on a current input mode is obtained, 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 editing character input based on the target input interface is received, finally the initial character and the editing character are combined to obtain a target character, and the target character is displayed. By the method, the standard input rules and the unified synchronization rules are established for different equipment input through the identification of different equipment, the problem that input contents are covered and input contents are not synchronous when multiple equipment are input is solved, and therefore the full-new and extremely-high experience is brought to the input of intelligent television contents.
It should be noted that the above-described working procedure is merely illustrative, and does not limit the scope of the present invention, and in practical application, a person skilled in the art may select part or all of them according to actual needs to achieve the purpose of the embodiment, which is not limited herein.
In addition, technical details not described in detail in this embodiment may refer to the method for inputting characters by multiple compatible devices provided in any embodiment of the present invention, which is not described herein.
Furthermore, it should 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 one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. read-only memory (Read Onl y Memory, ROM)/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (6)

1. A method for compatible multi-device character entry, the method comprising:
acquiring an initial character 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 into a target input interface according to the input mode switching instruction, wherein the target input interface comprises a terminal input interface and an external device input interface, the terminal input interface comprises a mobile phone terminal input interface, and the external device input interface comprises a keyboard input interface;
Synchronizing the initial character to the target input interface and receiving an edit character input based on the target input interface;
Combining the initial character and the editing character to obtain a target character, and displaying the target character;
When receiving an input mode switching instruction, the step of switching the input interface corresponding to the current input mode to a target input interface according to the input mode switching instruction comprises the following steps:
When an input mode switching instruction is received, determining input equipment corresponding to a target input mode according to the input mode switching instruction;
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;
Determining a target input interface according to the target input mode;
switching an input interface corresponding to the current input mode to the target input interface;
The step of synchronizing the initial character to the target input interface and receiving the edited character input based on the target input interface includes:
synchronizing the initial character to the terminal input interface and hiding the current input mode;
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;
the step of synchronizing the initial character to the target input interface and receiving the edited character input based on the target input interface further comprises:
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 the editing character input by the external equipment input interface based on the focus position.
2. The method of claim 1, wherein after the step of obtaining the initial character input by the user based on the current input mode, further comprising:
Detecting whether the current input mode is in an editing state or not;
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 combining the initial character with the edit character to obtain a target character and displaying the target character comprises:
combining the initial character and the editing character to obtain a target character;
and displaying the target character when a candidate word switching selection confirmation instruction input by a user based on the target character is received.
4. A multi-device compatible input character device, the device 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 an input interface corresponding to the current input mode into a target input interface according to the input mode switching instruction when receiving the input mode switching instruction, wherein the target input interface comprises a terminal input interface and an external equipment input interface, the terminal input interface comprises a mobile phone terminal input interface, and the external equipment input interface comprises a keyboard input interface;
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;
The display module is used for combining the initial character and the editing character to obtain a target character and displaying the target character;
The switching module is further used for determining input equipment corresponding to a target input mode according to the input mode switching instruction when the input mode switching instruction is received; 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; determining a target input interface according to the target input mode; switching an input interface corresponding to the current input mode to the target input interface;
The input module is further used for synchronizing the initial character to the terminal input interface and hiding the current input mode; 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;
The input module is further used for synchronizing the initial character to the external equipment input interface; and acquiring a focus position corresponding to the initial character according to the external equipment input interface, and displaying the editing character input by the external equipment input interface based on the focus position.
5. An electronic device, the device comprising: 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 one of claims 1 to 3.
6. A storage medium having stored thereon a compatible multi-device input character program which when executed by a processor performs the steps of the compatible multi-device input character method of any one of claims 1 to 3.
CN201911424172.0A 2019-12-31 2019-12-31 Method, device, equipment and storage medium for inputting characters by compatible multiple equipment Active CN111158503B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911424172.0A CN111158503B (en) 2019-12-31 2019-12-31 Method, device, equipment and storage medium for inputting characters by compatible multiple equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911424172.0A CN111158503B (en) 2019-12-31 2019-12-31 Method, device, equipment and storage medium for inputting characters by compatible multiple equipment

Publications (2)

Publication Number Publication Date
CN111158503A CN111158503A (en) 2020-05-15
CN111158503B true CN111158503B (en) 2024-07-09

Family

ID=70560658

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911424172.0A Active CN111158503B (en) 2019-12-31 2019-12-31 Method, device, equipment and storage medium for inputting characters by compatible multiple equipment

Country Status (1)

Country Link
CN (1) CN111158503B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103648001A (en) * 2013-11-29 2014-03-19 乐视致新电子科技(天津)有限公司 Switching method and apparatus
CN106375814A (en) * 2016-09-22 2017-02-01 深圳创维数字技术有限公司 Input method and system

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009117842A1 (en) * 2008-03-24 2009-10-01 中山大学 Remote controller integrating information input and display function and application method thereof
KR20150005354A (en) * 2013-07-05 2015-01-14 삼성전자주식회사 Method for inputting characters in electronic device
CN103957442A (en) * 2014-05-13 2014-07-30 南京睿悦信息技术有限公司 Cross-screen input program and cross-screen input method of far-end equipment
JP6417894B2 (en) * 2014-11-26 2018-11-07 コニカミノルタ株式会社 Character input system, character input method, portable terminal device, and character input program
US10089056B2 (en) * 2015-06-07 2018-10-02 Apple Inc. Device, method, and graphical user interface for collaborative editing in documents
CN105530528B (en) * 2015-11-27 2018-10-02 深圳Tcl数字技术有限公司 Data synchronize sharing method and device
CN108989554B (en) * 2018-06-29 2021-01-15 维沃移动通信有限公司 Information processing method and terminal
CN109086088A (en) * 2018-08-15 2018-12-25 南昌华勤电子科技有限公司 A kind of setting method and device for realizing that multi-input device cooperates

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103648001A (en) * 2013-11-29 2014-03-19 乐视致新电子科技(天津)有限公司 Switching method and apparatus
CN106375814A (en) * 2016-09-22 2017-02-01 深圳创维数字技术有限公司 Input method and system

Also Published As

Publication number Publication date
CN111158503A (en) 2020-05-15

Similar Documents

Publication Publication Date Title
EP3382520B1 (en) Method and apparatus for operating a display of a mobile terminal
US20220385613A1 (en) Message reminding method and electronic device
JP6169590B2 (en) Adaptive input language switching
US8078993B2 (en) Operating multiple views on a computing device in connection with a wireless communication session
AU2011312743B2 (en) Multiple-access-level lock screen
CN111857500B (en) Message display method and device, electronic equipment and storage medium
US20180365527A1 (en) Method and device for controlling expression classification identifier, and a storage medium
WO2023005920A1 (en) Screen splitting method and apparatus, and electronic device
CN112751971A (en) Voice playing method and device and electronic equipment
CN105681542A (en) Information processing method and system and terminal
WO2022156668A1 (en) Information processing method and electronic device
WO2022057791A1 (en) Message reply method and apparatus, and electronic device
US20170316011A1 (en) Method and apparatus for searching resource
CN111651110A (en) Group chat message display method and device, electronic equipment and storage medium
CN112835485A (en) Application interface processing method and device, electronic equipment and readable storage medium
US20230104250A1 (en) Application icon display method and apparatus, and electronic device
CN112565063A (en) Message processing method and device and electronic equipment
US10721281B2 (en) Method, system and non-transitory computer-readable recording medium for providing a multilateral communication service
CN112068764B (en) Language switching method and device for language switching
CN111158503B (en) Method, device, equipment and storage medium for inputting characters by compatible multiple equipment
JP2015162040A (en) Electronic apparatus
CN106708369A (en) Application switching method for mobile terminal, and mobile terminal
CN108170365B (en) Smart television input method and device and computer readable storage medium
CN112969147B (en) Call method and device
CN112596883B (en) Application switching method and device, storage medium and electronic equipment

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
GR01 Patent grant