CN109521889B - Input method and device, terminal and storage medium - Google Patents

Input method and device, terminal and storage medium Download PDF

Info

Publication number
CN109521889B
CN109521889B CN201811145603.5A CN201811145603A CN109521889B CN 109521889 B CN109521889 B CN 109521889B CN 201811145603 A CN201811145603 A CN 201811145603A CN 109521889 B CN109521889 B CN 109521889B
Authority
CN
China
Prior art keywords
input
character
scene
fault
determining
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
CN201811145603.5A
Other languages
Chinese (zh)
Other versions
CN109521889A (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.)
China Mobile Communications Group Co Ltd
MIGU Music Co Ltd
MIGU Culture Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
MIGU Music Co Ltd
MIGU Culture 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 China Mobile Communications Group Co Ltd, MIGU Music Co Ltd, MIGU Culture Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201811145603.5A priority Critical patent/CN109521889B/en
Publication of CN109521889A publication Critical patent/CN109521889A/en
Priority to PCT/CN2019/107363 priority patent/WO2020063548A1/en
Application granted granted Critical
Publication of CN109521889B publication Critical patent/CN109521889B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/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
    • 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/0238Programmable keyboards

Abstract

The embodiment of the invention discloses an input method and device, a terminal and a storage medium. The method comprises the following steps: when the virtual keyboard is called, determining a current input scene; determining a target character corresponding to the input scene and a fault-tolerant character corresponding to the target character in a virtual keyboard; determining characters to be input based on the detected input operation; and determining input characters according to the characters to be input, the target characters and the fault-tolerant characters.

Description

Input method and device, terminal and storage medium
Technical Field
The embodiment of the invention relates to an electronic information technology, in particular to but not limited to an input method and device, a terminal and a storage medium.
Background
The display screen that is applied to intelligent terminal at present is mostly the touch-control design, and when carrying out the input, the virtual keyboard that shows on the touch-control display screen is used. The virtual keyboard has no touch feeling of a real keyboard, and is easy to generate false touch in the input process during use, so that the input accuracy is reduced, and the user experience is influenced.
Disclosure of Invention
In view of the above, embodiments of the present invention provide an input method and apparatus, a terminal and a storage medium to solve at least one problem in the prior art.
The embodiment of the invention provides an input method, which comprises the following steps:
when the virtual keyboard is called, determining a current input scene;
determining a target character corresponding to the input scene and a fault-tolerant character corresponding to the target character in a virtual keyboard;
determining characters to be input based on the detected input operation;
and determining input characters according to the characters to be input, the target characters and the fault-tolerant characters.
An embodiment of the present invention further provides an input device, including:
the first determining unit is configured to determine a current input scene when the virtual keyboard is called;
a second determination unit configured to determine a target character corresponding to the input scene and a fault-tolerant character corresponding to the target character in a virtual keyboard;
a third determination unit configured to determine a character to be input based on the detected input operation;
and the fourth determining unit is configured to determine an input character according to the character to be input, the target character and the fault-tolerant character.
The embodiment of the invention also provides a terminal, which comprises a memory and a processor, wherein the memory stores a computer program capable of running on the processor, and the processor realizes the steps in the input method when executing the program.
Embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps in the input method.
According to the technical scheme, the fault-tolerant character corresponding to the target character is determined by determining the input scene and the target character corresponding to the input scene, so that the detected character to be input of the input operation or the target character is determined as the input character. Therefore, input fault tolerance can be realized according to an input scene, correct contents can be rapidly determined as input characters under the condition of input errors, the possibility of input errors is greatly reduced, inconvenience caused by error input is prevented, and the use experience of a user is improved.
Drawings
FIG. 1 is a schematic diagram illustrating an implementation flow of an input method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of another implementation flow of an input method according to an embodiment of the present invention;
FIG. 3A is a schematic diagram illustrating a flow chart of another input method according to an embodiment of the present invention;
FIG. 3B is a schematic diagram of a digital Sudoku keyboard in an embodiment of the invention;
FIG. 3C is a schematic diagram of a full keyboard in an embodiment of the invention;
FIG. 3D is a diagram illustrating an application scenario according to an embodiment of the present invention;
FIG. 3E is a diagram illustrating another application scenario of the present invention;
FIG. 4 is a schematic diagram of an input device according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware entity of the intelligent terminal according to an embodiment of the present invention.
Detailed Description
With the rapid development of internet technology, various applications are gradually increased, and convenience is brought to work and life of people. In the current mobile internet era, intelligent terminals gradually become important tools for people to work and live. In order to use various functional applications, a user often needs to input a mobile phone number to register, log in or receive an authentication code.
The current intelligent terminal usually adopts a touch screen, and when characters need to be input, a virtual keyboard is displayed on the screen for a user to use. And the virtual keyboard is inevitably touched by mistake in the using process. If the user inputs the mobile phone number to acquire the verification code, the mobile phone of the user cannot receive the verification code due to mistaken touch, and the verification code is often used with a validity period, so that the user can input and acquire the verification code again after waiting for several minutes after the mobile phone number of the user is input incorrectly, the use efficiency is reduced, and the user experience is influenced.
The technical solution of the present invention is further elaborated below with reference to the drawings and the embodiments.
The embodiment of the invention provides an input method, which is used in an intelligent terminal, wherein the intelligent terminal can determine a target character and a fault-tolerant character according to a current input scene when executing the method, and determine a final input character according to an input operation.
Fig. 1 is a schematic flow chart of an implementation process of an input method according to an embodiment of the present invention, and as shown in fig. 1, the method includes:
step S101, when a virtual keyboard is called, determining a current input scene;
the virtual keyboard is applied to the intelligent terminal with the touch screen, when the intelligent terminal is in a non-input scene, the virtual keyboard does not need to be displayed generally, and when the intelligent terminal enters a certain input scene, the virtual keyboard is automatically called. For example, when the smart phone enters a short message editing scene, the virtual keyboard is automatically called, so that a user can input short message content and the like.
Different input scenarios may apply to different virtual keyboards or require different content to be input. For example, when an application needs to log in by a user, a user account password input scenario may be entered; it is also possible to enter a mobile phone number input scenario by logging in through a mobile phone number, and when the mobile phone number is input, the application program can send a verification code to the mobile phone number and then enter the verification code input scenario.
In this embodiment, in order to perform input fault tolerance processing in a targeted manner in subsequent steps, the application program needs to determine a current input scenario when the virtual keyboard is called.
Step S102, determining a target character corresponding to the input scene and a fault-tolerant character corresponding to the target character in a virtual keyboard;
after the input scene is determined in the virtual keyboard, the corresponding target character may be determined according to the input scene. The target character here refers to the predicted content that the user is most likely to expect to input in the current input scene. For example, in a scenario of inputting a mobile phone number, especially in a scenario of inputting a mobile phone number to obtain a verification code, at this time, a user is most likely to input a mobile phone number of the mobile phone to obtain the verification code, and then the application program may first obtain the mobile phone number through a related communication interface of the mobile phone, or obtain the mobile phone number according to an existing mobile phone number record, and use the mobile phone number as an input fault tolerance standard. That is, the application can input each digit of the local number as the target character of the current cell phone number input scene.
By the method, a manual input scene can still be provided for the user, the user can input the local number and can input other numbers according to own requirements, and the user is not limited to input by adopting a method of automatically filling the local number.
Here, besides the scenario of inputting a mobile phone number, a mailbox account, a user name, a common short message, a fixed format mail, and the like may also be input. In these scenes, the target characters can be preset to determine the target input content, and when the method is applied to the input scene, the method can be modified according to actual requirements, and can also be used for quickly inputting and avoiding input errors.
After determining the target character corresponding to the input scene, the application program may determine the fault-tolerant character corresponding to the target character according to the target character. The function of the fault-tolerant character is that when the user clicks on the fault-tolerant character, the application may consider the user's input as erroneous and provide the corresponding target character to the user. Of course, the fault-tolerant character can be directly replaced by the target character, and the user can be provided with the selection.
The setting of the fault-tolerant character may be different according to the actual situation, for example, characters of each target character near the position of the virtual keyboard, such as four characters of upper, lower, left, and right, may be used as the fault-tolerant character corresponding to the target character; the fault-tolerant character can also be determined according to the characteristics of input contents, for example, the first digit of the mobile phone number is generally the number '1', that is, the first target character of the input mobile phone number scene is the number '1', and since the first digit of the mobile phone number is hardly any other number, all other characters on the virtual keyboard can be used as the fault-tolerant character of the target character. The setting of the fault-tolerant character also needs to consider the mode of a virtual keyboard, such as a full keyboard or a Sudoku keyboard; the size of the keyboard can be considered, for example, a larger display screen has a larger virtual keyboard, and the nearest adjacent character of the target character can be used as a fault-tolerant character; when the virtual keyboard of the smaller display screen is also smaller, the keys of the virtual keyboard are denser, and then characters adjacent to the target character and characters spaced apart from the target character can be both used as fault-tolerant characters.
Step S103, determining characters to be input based on the detected input operation;
here, the detection of the touch screen can sense the input operation of the user, that is, determine the position of the virtual keyboard clicked by the user. And the application program determines the character clicked by the user as the character to be input according to the position of the virtual keyboard clicked by the user.
And step S104, determining input characters according to the characters to be input, the target characters and the fault-tolerant characters.
The input character is the finally confirmed character, that is, the character accepted by the application program and subjected to subsequent processing, and the character to be input is determined according to the detected touch input of the user. Here, the application program determines an input character by synthesizing the characters to be input, the target character, and the fault-tolerant character. For example, if the character to be input does not touch the fault-tolerant character, the character to be input can be determined as the input character; if the character to be input touches the fault-tolerant character, the target character corresponding to the fault-tolerant character can be used as the input character.
In an embodiment, the method further comprises:
step S11, determining whether the input scene is a preset appointed scene;
and step S12, if not, determining the character to be input as an input character.
Here, the application program may preset a designated scene for performing the input fault-tolerant processing, and when input is required, the application program determines whether the current input scene is the preset designated scene, and if so, performs input fault-tolerant processing for the input in the scene; if not, the character to be input is determined as the input character. That is, when it is not a specified scene, the received user input is directly determined as an input character without performing a process of input tolerance. The designated scene may be an input scene corresponding to the application program, or an input scene determined according to a preset of the user. For example, a scenario of inputting a mobile phone number and acquiring an authentication code, a scenario of inputting an account number and a password, a scenario of inputting a mailbox address, a scenario of inputting a website, and the like.
In practical application, there may be many scenes in which characters need to be input, and not all scenes are suitable for determining the target characters corresponding to the input scenes, and performing subsequent fault-tolerant processing. That is, only in a specific scenario, the subsequent fault tolerance processing can be performed. And when the current scene is determined not to be the preset specified scene, directly determining the character to be input as the input character, namely directly accepting the input of the user without carrying out fault tolerance processing.
An embodiment of the present invention provides another input method, as shown in fig. 2, the method includes:
step S201, when a virtual keyboard is called, determining a current input scene;
step S202, determining a target character corresponding to the input scene and a fault-tolerant character corresponding to the target character in a virtual keyboard;
step S203, determining characters to be input based on the detected input operation;
steps S201 to S203 are the same as steps S101 to S103 in the first embodiment, and are not described again here.
Step S204, determining input characters according to the characters to be input, the target characters and the fault-tolerant characters, wherein the step comprises the following steps:
step S204a, when the character to be input is the same as the target character, determining the target character as the input character;
step S204b, when the character to be input is the same as the fault-tolerant character, determining the target character as the input character;
two similar cases of determining the input character are given here, first, when the character to be input is the same as the target character, the application may consider that the input of the character to be input is correct and determine this target character, and also the character to be input, as the input character, at this time, since the input is correct, no fault-tolerant correction is necessary. Secondly, when the character to be input is the same as the fault-tolerant character, the application program may consider that the character to be input is input incorrectly, and determine the target character corresponding to the fault-tolerant character as the input character, that is, the character to be input is corrected for fault tolerance, and the character to be input is modified into the target character.
Step S204c, when the character to be input is different from the target character, and the character to be input is different from the fault-tolerant character, determining the character to be input as the input character.
Another case of determining the input character is given here, and the detected user input, that is, the determined character to be input, is neither the target character nor the fault-tolerant character corresponding to the target character. At this time, it is shown that the position clicked by the user is far from the target character, and in this case, the possibility of the user touching by mistake is relatively low. Therefore, the application program can think that the user does not input the error at this time, but really needs to input the character which is not identical with the target character, so that the fault-tolerant correction becomes unnecessary, and the character input by the user, namely the character to be input can be directly determined as the input character at this time.
In any case, of course, the user can modify the input by manual modification, and the situation that the application program cannot modify the wrong input because the fault tolerance is determined to be inconsistent with the actual requirement is avoided.
In one embodiment, the determining the target character as the input character when the character to be input is the same as the fault-tolerant character includes:
step S21, when the character to be input is the same as the fault-tolerant character, outputting a selection prompt; the selection prompt is used for prompting whether the character to be input is replaced by the target character or not;
and step S22, when the received selection result input according to the selection prompt is yes, determining the target character as the input character.
Here, when the detected character touched by the input operation is the same as the fault-tolerant character, that is, the character to be input is the same as the fault-tolerant character, there may be several cases:
firstly, when the character to be input is wrong, the user hopes that the input correct character is the target character corresponding to the fault-tolerant character;
secondly, the character to be input is correct, the character which the user wants to input is different from the target character, and the user wants to input the current character to be input;
thirdly, when the character to be input is wrong, the character which the user wants to input is not the current character to be input, namely the fault-tolerant character, or the target character corresponding to the fault-tolerant character, but other characters.
According to the three situations, the application program needs to provide the selection for the user to confirm, namely, output the selection prompt. The selection prompt output here is used to prompt whether to replace the character to be input with the target character, so the selection prompt at least needs to include an option for determining the target character as an input character, that is, an option determined in the first case, and when it is detected that the user selects the option, the target character is determined as an input character. If the user does not select this option, the application may default that the character to be entered is correct, i.e., the second case, where the character to be entered is determined to be the entered character. If the third situation is met, the user can perform deleting operation through a deleting key, a backspace key and the like provided by the virtual keyboard, and when the deleting operation is detected, the current character to be input is deleted, and new input is continuously waited to be received.
In an embodiment, the determining a current input scenario when the virtual keyboard is invoked includes:
step S31a, when the display content on the display interface of the calling virtual keyboard comprises a prompt of inputting a mobile phone number, determining that the current input scene is the input mobile phone number;
step S31b, when the display content on the display interface of the calling virtual keyboard comprises a prompt for inputting a mailbox address, determining that the current input scene is the input mailbox address;
and step S31c, when the display content on the display interface of the calling virtual keyboard comprises a prompt of inputting the website, determining that the current input scene is the input website.
Here, the case of inputting a mobile phone number scene, inputting a mailbox address, or inputting a web address is taken as an example, the application program may determine the current input scene according to the content displayed on the display screen, and when the displayed content includes a prompt for inputting a mobile phone number, inputting a mailbox address, or inputting a web address, determine the current input scene as the input mobile phone number. For example, an input box is displayed on the display interface, and "please input a mobile phone number" is displayed above the input box, at this time, it can be determined that the current input scene is an input mobile phone number.
In an embodiment, the method further comprises:
step S32a, when the input scene is an input mobile phone number, acquiring the mobile phone number of the mobile phone;
step S33a, determining the numeric characters corresponding to each key in the virtual keyboard corresponding to the mobile phone number as the target characters, and determining the characters adjacent to each target character as the fault-tolerant characters;
alternatively, the first and second electrodes may be,
step S32b, when the input scene is an input mailbox address, acquiring a mailbox address of a logged mailbox;
step S33b, determining the numeric characters or the alphabetic characters of the mailbox addresses in the virtual keyboard as the target characters, and determining the adjacent characters of each target character as the fault-tolerant characters;
alternatively, the first and second electrodes may be,
step S32c, when the input scene is an input website, acquiring a preset website;
step S33c, determining the numeric characters or the alphabetic characters of the preset website in the virtual keyboard as the target characters, and determining the adjacent characters of each target character as the fault-tolerant characters.
Here, the scenario of inputting a mobile phone number, the scenario of inputting a mailbox address, or the inputting of a web address in the above embodiments are also taken as examples. When the input scene is a scene of inputting a mobile phone number, the mobile phone number of the mobile phone is firstly acquired, a system interface of the current mobile phone is called to access an SIM (Subscriber identity Module) card on the mobile phone, and the mobile phone number of the mobile phone is acquired through the SIM card. The current mobile phone number may also be determined by a preset setting, for example, when the current application is used for the first time, a preset mobile phone number is input. Then, the virtual key of each digit of the mobile phone number at the corresponding position in the virtual keyboard is used as the target character.
When the input scene is an input mailbox address scene, a mailbox address which is logged in by a local application program can be acquired, and a virtual key at a corresponding position of the mailbox address in a virtual keyboard is used as a target character.
When the input scene is the input website, the website can be input according to the website preset by the user or according to the website of the specific related website, and the virtual key of the corresponding position of the website in the virtual keyboard is used as the target character.
In the above several scenarios, the input content may be determined according to the available information of the mobile terminal that can be acquired, or may be used as the content to be input later in a manner preset in advance according to the content preset by the user.
Of course, the practical application is not limited to the above scenarios, and various scenarios for inputting other contents are also possible, such as inputting an account number, inputting a common short message, and the like.
In one embodiment, the determining, in the virtual keyboard, a target character corresponding to the input scene and a fault-tolerant character corresponding to the target character includes:
step S41, determining the type of the virtual keyboard;
step S42, determining a target character corresponding to the input scene in the virtual keyboard;
step S43, according to the type of the virtual keyboard and the target character, determining the adjacent character of the target character as the fault-tolerant character in the virtual keyboard.
Different intelligent terminal brands and types may correspond to virtual keyboards in different modes, and different input methods or different user settings may correspond to virtual keyboards in different modes. For example, the virtual keyboard may be in a squared mode, a full keyboard mode, or other modes. For different virtual keyboard types, the arrangement of each character in the virtual keyboard is different, and in this case, different input fault tolerance methods need to be customized for different types of virtual keyboards.
Therefore, here, the application program first determines the type of the virtual keyboard, and determines the target character corresponding to the current input scene according to the type of the virtual keyboard. And then finding out adjacent characters of each target character corresponding to the current virtual keyboard type, and determining the adjacent characters as error-tolerant characters.
In order to solve the problem that the virtual keyboard is easy to cause false touch, the embodiment of the invention provides an input method. When the method is applied to inputting the mobile phone number, the application program can acquire the mobile phone number of the user through the terminal or automatically input the mobile phone number by the user to record the mobile phone number of the user, and then fault-tolerant numbers of the mobile phone number of the user are respectively set for different input keyboards, such as a full keyboard or a Sudoku keyboard, according to the recorded mobile phone number of the user. When the user uses the application program to input the mobile phone number, the application program can determine the fault-tolerant character corresponding to the local number of the user in the keyboard mode after determining the input keyboard currently used by the user. In the input process, when the fault-tolerant character is detected to be touched by a user, a correct number prompt can be popped up, and the input wrong number can be automatically replaced by the correct number according to the selection operation of the user, so that the input accuracy of the user number is greatly improved, and the problem that the verification code cannot be quickly received due to the input error of the number is solved.
An embodiment of the present invention provides an input method, as shown in fig. 3A, the method includes:
s301, acquiring and storing the mobile phone number of the terminal local machine;
here, the application program of the terminal may access the SIM card on the mobile phone by calling the system interface, and further obtain the mobile phone number of the terminal through the SIM card. In addition, the application program can guide the user to input the own mobile phone number by popping up the guide information when the user uses the mobile phone for the first time.
Step S302, fault-tolerant characters under different input keyboard modes are respectively set for the mobile phone number;
setting fault-tolerant characters for the mobile phone number of the mobile phone obtained by executing the step S301 respectively aiming at different input keyboards; wherein, the different input keyboard is a number squared figure keyboard as shown in fig. 3B, or a full keyboard as shown in fig. 3C.
In practical applications, when a user inputs numbers through a virtual keyboard of a mobile phone, the user may press the periphery of the expected input numbers due to mistaken touch, so that input errors may be caused. In this embodiment, the application may use the numbers on the keyboard surrounding the desired number as the fault tolerant number for the desired input number. And because on different input keyboards, the numbers around the same number are often different, in this scheme, fault-tolerant characters of the local number are often required to be respectively set for different types of input keyboards.
Taking the input keyboard as a number squared figure keyboard and a full keyboard respectively as an example, in the number squared figure keyboard, the numbers adjacent to the number "1" are respectively "2" and "4", and the numbers adjacent to the number "5" are respectively: "2", "4", "6", "8". Whereas in the right keyboard, the number adjacent to the number "1" is only the number "2"; the numbers adjacent to the number "5" are "4" and "6".
When the application program sets fault-tolerant characters for the local number according to the rules and aiming at different keyboards, the fault-tolerant characters are set for the local number respectively. For example, if the mobile phone number is determined to be "1548" by executing step S301, the fault-tolerant characters of the mobile phone number can be determined to be:
the fault-tolerant characters under the nine-grid keyboard mode are respectively as follows:
the fault tolerant character corresponding to the number 1: "2, 4";
the number 5 corresponds to the fault tolerant character: "2, 4, 6, 8";
number 4 corresponding fault tolerant character: "1, 5, 7";
the number 8 corresponds to the fault tolerant character: "5, 7, 9, 0".
The fault tolerant characters in full keyboard mode are:
the fault tolerant character corresponding to the number 1: "2";
the number 5 corresponds to the fault tolerant character: "4, 6";
number 4 corresponding fault tolerant character: "3, 5";
the number 8 corresponds to the fault tolerant character: "7, 9".
In practical applications, each digit appearing in a mobile phone number may be different, and fault-tolerant characters corresponding to different digits are often different. In this embodiment, in order to avoid confusion of the fault-tolerant characters due to the fact that the sequence positions of the numbers are not distinguished, after the application program determines the fault-tolerant characters corresponding to the local number, the fault-tolerant characters corresponding to the digits in the local number need to be stored according to the sequence of the digits in the local mobile phone number.
For example, taking the case that the local number is determined to be "1548" by executing step S301, the fault-tolerant characters corresponding to the mobile phone number are determined to be: "2", "4, 6", "3, 5", "7, 9", then according to the sequence of the own number, the fault-tolerant character of the number can be recorded as:
the first bit: "2", second bit "4, 6", third bit "3, 5", fourth bit "7, 9".
Step S303, loading fault-tolerant characters according to input characters and a current keyboard mode;
when detecting that the user calls the keyboard to input the mobile phone number through the application program, the application program loads preset fault-tolerant characters according to the type of the current keyboard. The application program can determine the keyboard type currently called by the operating system and determine the fault-tolerant character of the local number corresponding to the keyboard type by calling the system related interface.
In practical application, there are multiple scenarios that require a user to call a numeric keypad to input numbers, such as inputting money, account numbers, passwords, and the like, rather than being limited to a scenario of inputting a mobile phone number. In other application scenarios, the user's input number may not need to be determined using fault tolerant characters. In this embodiment, before the application program determines the fault-tolerant character, it is further required to first determine an application scenario to determine whether a scenario is an input scenario for a mobile phone number.
For example, the application program may determine whether the current scene is a scene for inputting the mobile phone number according to the state displayed on the current interface, such as interfaces of "inputting an account", "inputting a password", "repeating a password", and "inputting a mobile phone number".
And step S304, sending an error prompt according to the detected input characters, and replacing the input characters with correct characters according to a selection instruction of a user.
The application program detects whether the user input is a fault-tolerant character, sends an input error prompt and can automatically replace the fault-tolerant character input by the user with a corresponding correct character based on the selection of the user;
for example, still taking the local number as "1548" as an example, the virtual keyboard currently called by the terminal is a nine-grid numeric keyboard, when the user inputs numbers using the keyboard, the first two numbers are all correctly input, and when the user inputs the third number, the user mistakenly touches the number "7". And the fault-tolerant character corresponding to the third digit is known by the predetermined fault-tolerant character: "1", "5" and "7". At this time, the application program may determine that the character input by the user is incorrect, pop up the correct character "4" according to the input position to prompt the user, as shown in fig. 3D, in the figure, the input scene prompt box 11 prompts to input a mobile phone number, the input box 12 displays the input content of the user, the fault-tolerant prompt box 13 is used for displaying the correct character in the fault-tolerant prompt box 13 when the fault-tolerant character in the input box is detected, the virtual keyboard 14 is a numeric nine-grid keyboard, and the fault-tolerant character key 16 is touched by mistake when the user inputs the desired correct character key 15. As shown in fig. 3E, after the user clicks the character in the fault-tolerant prompt box 13, the fault-tolerant character in the input box 12 is replaced with the correct character in the corresponding fault-tolerant prompt box 13.
By adopting the input method provided by the embodiment, the application program can acquire the mobile phone number of the mobile phone through terminal or user input and store the mobile phone number. And respectively setting fault-tolerant characters of the mobile phone number of the local phone of the user aiming at different input keyboards according to the stored mobile phone number of the local phone. When a user uses the application program to input the mobile phone number, the application program can determine the fault-tolerant character corresponding to the local number of the user in the keyboard mode after determining the input keyboard currently used by the user. In the input process, when the fault-tolerant character touched by the user is detected, the prompt of the correct character can be displayed, and the character with the input error can be replaced by the correct character according to the selection operation of the user. By the method, the input accuracy of the user is greatly improved, and the problem that the verification code cannot be quickly received due to the wrong number input is avoided.
Based on the foregoing embodiments, an embodiment of the present invention provides an input device, where the input device includes units and modules included in the units, and can be implemented by a processor in a terminal; of course, the implementation can also be realized through a specific logic circuit; in implementation, the processor may be a Central Processing Unit (CPU), a Microprocessor (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like.
Fig. 4 is a schematic diagram of a structure of an input device according to an embodiment of the present invention, and as shown in fig. 4, the input device 400 includes:
a first determining unit 401, configured to determine a current input scenario when the virtual keyboard is called;
a second determining unit 402 configured to determine a target character corresponding to the input scene and a fault-tolerant character corresponding to the target character in a virtual keyboard;
a third determination unit 403 configured to determine a character to be input based on the detected input operation;
a fourth determining unit 404 configured to determine an input character according to the character to be input, the target character, and the fault-tolerant character.
In an embodiment, the fourth determining unit includes:
a first determination module configured to determine the target character as the input character when the character to be input is the same as the target character;
a second determination module configured to determine a target character corresponding to the fault-tolerant character as the input character when the character to be input is the same as the fault-tolerant character;
and the third determining module is configured to determine the character to be input as the input character when the character to be input is different from the target character and the character to be input is different from the fault-tolerant character.
In another embodiment, the second determining module includes:
the output submodule is configured to output a selection prompt when the character to be input is the same as the fault-tolerant character; the selection prompt is used for prompting whether the character to be input is replaced by a target character corresponding to the fault-tolerant character or not;
and the determining submodule is configured to determine the target character as an input character when the received selection result input according to the selection prompt is yes.
In another embodiment, the apparatus further comprises:
a fifth determination unit configured to determine whether the input scene is a preset specified scene;
if yes, the second determining unit determines a target character corresponding to the input scene and a fault-tolerant character corresponding to the target character in a virtual keyboard.
In another embodiment, the first determining unit includes:
the fourth determining module is configured to determine that the current input scene is the input mobile phone number when the display content on the display interface of the calling virtual keyboard comprises a prompt for inputting the mobile phone number;
the fifth determining module is configured to determine that the current input scene is the input mailbox address when the display content on the display interface of the calling virtual keyboard comprises a prompt for inputting the mailbox address;
and the sixth determining module is configured to determine that the current input scene is the input website when the display content on the display interface of the virtual keyboard is called and comprises a prompt of the input website.
In another embodiment, the second determining unit includes:
the first acquisition module is configured to acquire the mobile phone number of the mobile phone when the input scene is the input mobile phone number; the second determining unit determines the numeric characters corresponding to each key in the virtual keyboard corresponding to the mobile phone number as the target characters, and determines the characters adjacent to each target character as the fault-tolerant characters; alternatively, the first and second electrodes may be,
the second acquisition module is configured to acquire the mailbox address of the logged mailbox when the input scene is the input mailbox address; the second determining unit determines the numeric characters or the alphabetic characters of the mailbox addresses in the virtual keyboard as the target characters, and determines the adjacent characters of each target character as the fault-tolerant characters; alternatively, the first and second electrodes may be,
the third acquisition module is configured to acquire a preset website when the input scene is an input website; and determining the digital characters or the alphabetic characters of the preset website in a virtual keyboard as the target characters, and determining the characters adjacent to each target character as the fault-tolerant characters.
In another embodiment, the second determining unit further comprises:
a seventh determining module configured to determine a type of the virtual keyboard;
an eighth determining module configured to determine a target character corresponding to the input scene in the virtual keyboard;
a ninth determining module configured to determine adjacent characters of the target character as the fault-tolerant character in the virtual keyboard according to the type of the virtual keyboard and the target character.
The above description of the apparatus embodiments, similar to the above description of the method embodiments, has similar beneficial effects as the method embodiments. For technical details not disclosed in the embodiments of the apparatus according to the invention, reference is made to the description of the embodiments of the method according to the invention for understanding.
It should be noted that, in the embodiment of the present invention, if the input method is implemented in the form of a software functional module and sold or used as a standalone product, the input method may also be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling an intelligent terminal (which may be a personal computer, a mobile phone, a tablet computer, etc.) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a magnetic disk, or an optical disk. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
Correspondingly, an embodiment of the present invention provides a terminal, including a memory and a processor, where the memory stores a computer program operable on the processor, and the processor executes the computer program to implement the input method provided in the above embodiment.
Correspondingly, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps in the input method provided in the above embodiment.
Here, it should be noted that: the above description of the storage medium and device embodiments is similar to the description of the method embodiments above, with similar advantageous effects as the method embodiments. For technical details not disclosed in the embodiments of the storage medium and the apparatus according to the invention, reference is made to the description of the embodiments of the method according to the invention.
It should be noted that fig. 5 is a schematic diagram of a hardware entity of a terminal for implementing the input method in the embodiment of the present invention, as shown in fig. 5, the hardware entity of the terminal 500 includes: a processor 501, a communication interface 502 and a memory 503, wherein
The processor 501 generally controls the overall operation of the terminal 500.
The communication interface 502 may enable the terminal to communicate with other terminals or servers via a network.
The Memory 503 is configured to store instructions and applications executable by the processor 501, and may also buffer data (e.g., image data, audio data, voice communication data, and video communication data) to be processed or already processed by the processor 501 and modules in the terminal 500, and may be implemented by a FLASH Memory (FLASH) or a Random Access Memory (RAM).
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in various embodiments of the present invention, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention. 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.
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 apparatus 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 apparatus. 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 apparatus that comprises the element.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for enabling an intelligent terminal (which may be a personal computer, a smart phone, a tablet device, etc.) to execute all or part of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
The above description is only an embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present invention, and all such changes or substitutions are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (9)

1. An input method, characterized in that the method comprises:
when the virtual keyboard is called, determining a current input scene;
if the input scene is a designated scene for carrying out input fault-tolerant processing, determining a target character corresponding to the input scene and a fault-tolerant character corresponding to the target character in a virtual keyboard, wherein the designated scene for carrying out input fault-tolerant processing comprises a scene for inputting a mobile phone number, a scene for inputting a mailbox address, a scene for inputting a user name, a scene for inputting a website address and/or a scene for inputting a common short message;
determining characters to be input based on the detected input operation;
determining input characters according to the characters to be input, the target characters and the fault-tolerant characters;
and if the input scene is not the designated scene for carrying out input fault-tolerant processing, determining the character to be input as the input character.
2. The method of claim 1, wherein determining input characters from the characters to be input, the target characters, and the fault tolerant characters comprises:
when the character to be input is the same as the target character, determining the target character as the input character;
when the character to be input is the same as the fault-tolerant character, determining a target character corresponding to the fault-tolerant character as the input character;
and when the character to be input is different from the target character and the character to be input is different from the fault-tolerant character, determining the character to be input as the input character.
3. The method of claim 2, wherein determining the target character as the input character when the character to be input is the same as the fault tolerant character comprises:
when the character to be input is the same as the fault-tolerant character, outputting a selection prompt; the selection prompt is used for prompting whether the character to be input is replaced by a target character corresponding to the fault-tolerant character or not;
and when the received selection result input according to the selection prompt is yes, determining the target character as the input character.
4. The method of any one of claims 1 to 3, wherein determining a current input scenario when invoking the virtual keyboard comprises:
when the display content on the display interface of the virtual keyboard is called comprises a prompt of inputting a mobile phone number, determining that the current input scene is the input mobile phone number;
when the display content on the display interface of the virtual keyboard is called comprises a prompt for inputting a mailbox address, determining that the current input scene is the input mailbox address;
and when the display content on the display interface of the virtual keyboard is called and comprises a prompt of inputting the website, determining that the current input scene is the input website.
5. The method of claim 4, wherein determining a target character corresponding to the input scene and a fault tolerant character corresponding to the target character in a virtual keyboard comprises:
when the input scene is an input mobile phone number, acquiring the mobile phone number of the mobile phone; determining the numeric characters corresponding to each key in the virtual keyboard corresponding to the mobile phone number as the target characters, and determining the characters adjacent to each target character as the fault-tolerant characters; alternatively, the first and second electrodes may be,
when the input scene is an input mailbox address, acquiring a mailbox address of a logged mailbox; determining the number characters or the letter characters of the mailbox addresses in a virtual keyboard as the target characters, and determining the adjacent characters of each target character as the fault-tolerant characters; alternatively, the first and second electrodes may be,
when the input scene is an input website, acquiring a preset website; and determining the digital characters or the alphabetic characters of the preset website in a virtual keyboard as the target characters, and determining the characters adjacent to each target character as the fault-tolerant characters.
6. The method of claim 1, wherein determining a target character corresponding to the input scene and a fault tolerant character corresponding to the target character in a virtual keyboard comprises:
determining a type of the virtual keyboard;
determining a target character corresponding to the input scene in the virtual keyboard;
and according to the type of the virtual keyboard and the target character, determining adjacent characters of the target character as the fault-tolerant characters in the virtual keyboard.
7. An input device, the device comprising:
the first determining unit is configured to determine a current input scene when the virtual keyboard is called;
a second determining unit, configured to determine, in a virtual keyboard, a target character corresponding to an input scene and a fault-tolerant character corresponding to the target character if the input scene is a designated scene for performing input fault-tolerant processing, where the designated scene for performing input fault-tolerant processing includes a scene for inputting a mobile phone number, a scene for inputting a mailbox address, a scene for inputting a user name, a scene for inputting a website address, and/or a scene for inputting a common short message;
a third determination unit configured to determine a character to be input based on the detected input operation;
a fourth determining unit, configured to determine an input character according to the character to be input, the target character and the fault-tolerant character; and if the input scene is not the designated scene for carrying out input fault-tolerant processing, determining the character to be input as the input character.
8. A terminal comprising a memory and a processor, the memory storing a computer program operable on the processor, wherein the processor when executing the program performs the steps in the input method of claims 1 to 6.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the input method of claims 1 to 6.
CN201811145603.5A 2018-09-29 2018-09-29 Input method and device, terminal and storage medium Active CN109521889B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811145603.5A CN109521889B (en) 2018-09-29 2018-09-29 Input method and device, terminal and storage medium
PCT/CN2019/107363 WO2020063548A1 (en) 2018-09-29 2019-09-23 Input method and device, terminal, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811145603.5A CN109521889B (en) 2018-09-29 2018-09-29 Input method and device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN109521889A CN109521889A (en) 2019-03-26
CN109521889B true CN109521889B (en) 2021-02-09

Family

ID=65772000

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811145603.5A Active CN109521889B (en) 2018-09-29 2018-09-29 Input method and device, terminal and storage medium

Country Status (2)

Country Link
CN (1) CN109521889B (en)
WO (1) WO2020063548A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109521889B (en) * 2018-09-29 2021-02-09 咪咕音乐有限公司 Input method and device, terminal and storage medium
CN110221708A (en) * 2019-03-29 2019-09-10 北京理工大学 A kind of adaptive key assignments display input system for virtual reality
CN110597712B (en) * 2019-08-27 2023-09-05 北京奇艺世纪科技有限公司 Component attribute verification method, device, terminal and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298672A (en) * 2013-07-16 2015-01-21 北京搜狗科技发展有限公司 Error correction method and device for input

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7030863B2 (en) * 2000-05-26 2006-04-18 America Online, Incorporated Virtual keyboard system with automatic correction
US9552155B2 (en) * 2008-02-04 2017-01-24 Microsoft Technology Liecsnsing, LLC Dynamic soft keyboard
CN101266520B (en) * 2008-04-18 2013-03-27 上海触乐信息科技有限公司 System for accomplishing live keyboard layout
CN101788855B (en) * 2010-03-09 2013-04-17 华为终端有限公司 Method, device and communication terminal for obtaining user input information
CN102207816B (en) * 2010-07-16 2017-04-19 北京搜狗科技发展有限公司 Method for performing adaptive input based on input environment, and input method system
CN103257886B (en) * 2012-02-15 2017-03-01 联想(北京)有限公司 A kind of recalls information inputs method and a kind of electronic equipment of program
US8819574B2 (en) * 2012-10-22 2014-08-26 Google Inc. Space prediction for text input
US8887103B1 (en) * 2013-04-22 2014-11-11 Google Inc. Dynamically-positioned character string suggestions for gesture typing
CN105446516A (en) * 2014-08-27 2016-03-30 阿里巴巴集团控股有限公司 Information input method and device
CN105404401A (en) * 2015-11-23 2016-03-16 小米科技有限责任公司 Input processing method, apparatus and device
CN105511796A (en) * 2015-12-30 2016-04-20 努比亚技术有限公司 Method and device for information inputting of adaptive-switching input method interface
CN107102746B (en) * 2016-02-19 2023-03-24 北京搜狗科技发展有限公司 Candidate word generation method and device and candidate word generation device
CN107562222A (en) * 2017-09-25 2018-01-09 联想(北京)有限公司 A kind of data processing method and system
CN109521889B (en) * 2018-09-29 2021-02-09 咪咕音乐有限公司 Input method and device, terminal and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298672A (en) * 2013-07-16 2015-01-21 北京搜狗科技发展有限公司 Error correction method and device for input

Also Published As

Publication number Publication date
CN109521889A (en) 2019-03-26
WO2020063548A1 (en) 2020-04-02

Similar Documents

Publication Publication Date Title
CN109521889B (en) Input method and device, terminal and storage medium
US10078437B2 (en) Method and apparatus for responding to a notification via a capacitive physical keyboard
US10075430B2 (en) Method and system for efficient password input
CN106682561B (en) Scanning function using method and device
WO2016110217A1 (en) Method, apparatus, terminal and storage medium for saving number during call
WO2017008348A1 (en) Data card switching control method and apparatus, and terminal device
CN105306737A (en) Information management method and user terminal
EP2342618B1 (en) Method, computer program, computer readable medium and device for using sound to differentiate keypresses
US20180349580A1 (en) Information processing method and device, and electronic equipment
EP3422228A1 (en) Icon processing method and device for applications
CN106227413A (en) A kind of application based on mobile terminal starts detection method and system
EP2767921A1 (en) Lock releasing method of electronic device, and apparatus thereof
US10572693B2 (en) Method for hiding personal information on call screen, and device
JP2020523719A (en) Multilingual keyboard system
CN105898053A (en) Communication recording processing device and method and mobile terminal
CN107291698B (en) Information correction method, information correction device, storage medium and electronic equipment
CN107968799A (en) A kind of information acquisition method, terminal device and system
CN107483738B (en) Communication information processing method based on dual systems, mobile terminal and storage medium
US8989819B2 (en) Handheld electronic device and saving number method and digital storage media
US11947732B2 (en) Input control device, input control method, and program
CN107682548B (en) Call processing method and mobile terminal
WO2017161662A1 (en) Terminal communication method and device, terminal, and storage medium
CN113987596A (en) Block chain privacy transaction protection method, device, equipment and readable storage medium
CN115604001A (en) Information prompting method and device and electronic equipment
WO2020113531A1 (en) Data recovery method and device, and electronic device

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