CN108646928B - Character input method and terminal equipment - Google Patents

Character input method and terminal equipment Download PDF

Info

Publication number
CN108646928B
CN108646928B CN201810269429.9A CN201810269429A CN108646928B CN 108646928 B CN108646928 B CN 108646928B CN 201810269429 A CN201810269429 A CN 201810269429A CN 108646928 B CN108646928 B CN 108646928B
Authority
CN
China
Prior art keywords
input
character
display state
switching
mode
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
CN201810269429.9A
Other languages
Chinese (zh)
Other versions
CN108646928A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810269429.9A priority Critical patent/CN108646928B/en
Publication of CN108646928A publication Critical patent/CN108646928A/en
Application granted granted Critical
Publication of CN108646928B publication Critical patent/CN108646928B/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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a character input method and terminal equipment. The method comprises the following steps: determining an input mode of a character input interface, wherein the input mode is used for reflecting the number of input areas used for inputting characters in the character input interface and comprises a single input area corresponding to a single input mode or a plurality of discontinuous input areas corresponding to a plurality of input modes; when the received input operation meets a preset condition, switching the input mode and/or the character display state of the character input interface; wherein the character display state includes: a plaintext display state or a ciphertext display state; and displaying the characters input in the character input interface according to the switched input mode and/or character display state. According to the embodiment of the invention, the input operation performed by the user is detected, and when the input operation meets the preset condition, the input mode and/or the character display state of the character input interface are/is switched, so that the character input accuracy and the character input efficiency are balanced.

Description

Character input method and terminal equipment
Technical Field
The invention relates to the field of terminals, in particular to a character input method and terminal equipment.
Background
The character input interface is an interface for inputting characters such as an account number, a password, an authentication code and the like, and taking the interface for inputting the password as an example, the character input interface can be applied to scenes such as registration, login, password change and the like. For some password entry scenarios, for example: in the password modification scenario shown in fig. 1, the user needs to complete the operations of "enter new password" and "enter new password again", and only under the condition that the new passwords entered twice are the same, the old password can be successfully modified into the new password.
However, in the prior art, the password input by the user is generally replaced by the ciphertext, so that the user cannot clearly know whether the currently input new password is consistent with the expected input new password, and the defects of password modification failure and re-input requirement of the user caused by different new passwords input twice exist,
therefore, the prior art has the problem that the character input accuracy and the character input efficiency cannot be guaranteed.
Disclosure of Invention
The embodiment of the invention provides a character input method, which aims to solve the problem of balancing character input accuracy and efficiency.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, a character input method is provided, which includes:
determining an input mode of a character input interface, wherein the input mode is used for reflecting the number of input areas used for inputting characters in the character input interface and comprises a single input area corresponding to a single input mode or a plurality of discontinuous input areas corresponding to a plurality of input modes;
when the received input operation meets a preset condition, switching the input mode and/or the character display state of the character input interface; wherein the character display state includes: a plaintext display state or a ciphertext display state;
and displaying the characters input in the character input interface according to the switched input mode and/or character display state.
In a second aspect, a terminal device is provided, which includes:
the input mode is used for reflecting the number of input areas used for inputting characters in the character input interface and comprises a single input area corresponding to a single input mode or a plurality of discontinuous input areas corresponding to a plurality of input modes;
the switching module is used for switching the input mode and/or the character display state of the character input interface when the received input operation meets the preset condition; wherein the character display state includes: a plaintext display state or a ciphertext display state;
and the display module is used for displaying the characters input in the character input interface according to the switched input mode and/or the character display state.
In a third aspect, a terminal device is provided, the terminal device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the method according to the first aspect.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, realizes the steps of the method according to the first aspect.
In the embodiment of the invention, the input mode and/or the character display state of the character input interface are/is switched by detecting the input operation of inputting characters by a user and when the input operation meets the preset condition. Compared with the scheme of replacing characters by dark texts in the prior art, the method can effectively balance character input accuracy and character input efficiency.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
FIG. 1 is a schematic diagram of a password setup interface in the prior art;
FIGS. 2 a-2 d are schematic diagrams of password setup interfaces in an application scenario of the present invention;
fig. 3 is a schematic flow chart of a character display method according to embodiment 1 of the present invention;
fig. 4 is a schematic flow chart of a character display method according to embodiment 2 of the present invention;
fig. 5 is a schematic flow chart of a character display method according to embodiment 3 of the present invention;
fig. 6a and 6b are schematic diagrams of steps of switching input modes and/or character display states according to embodiment 3 of the present invention;
fig. 7 is a schematic structural diagram of a terminal device according to embodiment 4 of the present invention;
fig. 8 is a schematic structural diagram of a terminal device according to embodiment 5 of the present invention;
fig. 9 is a schematic structural diagram of a terminal device according to embodiment 6 of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As stated in the background art, when a user inputs characters into a character input interface, the characters input by the user are processed into a dark text in a part of scenes, so that the user cannot clearly know what the currently input characters are, and further, a password input error and a user need to input again due to inconsistency between the currently input characters and the characters expected to be input by the user exist.
Based on this, the embodiments of the present specification detect an input operation performed by a user, for example: inputting characters or inputting voice information on a character input interface, and switching an input mode and/or a character display state of the character input interface when an input operation meets a predetermined condition so as to balance character input accuracy and character input efficiency.
For convenience of subsequent description, the following may specifically describe the character input interface as a password setting interface, and describe an application scenario of the present invention as follows:
referring to the password setting interface shown in fig. 2a and 2b, a first application scenario of the present invention may be:
the password setting interface is in a single-input mode, namely an input area (such as a common input box) is arranged in the password setting interface, and a user can input a password once. And a switching button is arranged at the rear part of the input area and is used for switching the display state of the password of the input area and/or switching the input area in the password setting interface into two.
For example: referring to fig. 2a, the display state of the password in the password setting interface is a default ciphertext display state, and before, during or after the user inputs the password, the user clicks to select a switch button, so that the ciphertext display state of the password is switched to a plaintext display state, referring to fig. 2 b;
and/or the presence of a gas in the gas,
before, during or after the user inputs the password, clicking to select a switching button, and switching one input area into two input areas; alternatively, the switching button is deselected to switch two input regions to one input region.
Therefore, the user can clearly know the currently input password, and the problem that the input password is inconsistent with the expected input password is avoided.
Referring to the password setting interface shown in fig. 2c and fig. 2d, a second application scenario of the present invention may be:
the password setting interface is in a multi-input mode, namely the password setting interface is provided with at least two input areas, a user needs to input passwords at least twice, and the input passwords at least twice need to be the same. And a switching button is arranged at the rear part of the first input area and is used for switching the display states of the passwords of all the input areas and/or switching the number of the input areas in the password setting interface to one or less than at least two.
For example: referring to fig. 2c, the display state of the password in each input region in the password setting interface is a default ciphertext display state, and before, during or after the user inputs the password, the user clicks to select a switch button, so that the ciphertext display states of the passwords in all the input regions are switched to a plaintext display state, see fig. 2 d;
and/or the presence of a gas in the gas,
before, during or after the user inputs the password, clicking to select a switching button, and switching the two input areas into one input area; alternatively, the switching button is deselected to switch two input regions to one input region.
For the above two application scenarios, it is understood that the application is applicable to a terminal device as well as a PC terminal and the like. The terminal device includes a mobile terminal, a PC terminal, etc., and the mobile terminal or called mobile communication terminal refers to a computer device that can be used in mobile, and broadly includes a mobile phone, a notebook, a tablet computer, a POS machine, and even a vehicle-mounted computer. But most often refer to cell phones or smart phones and tablets with multiple application functions. For convenience of description, the following description will be given by taking an application to a smartphone as an example.
The technical solutions provided by the embodiments of the present invention are described in detail below with reference to the accompanying drawings.
Example 1
Fig. 3 is a schematic flow chart of a character input method according to embodiment 1 of the present invention, and referring to fig. 1, the method may be executed by a mobile phone processor, and specifically includes the following steps:
step 32, determining an input mode of a character input interface, wherein the input mode is used for reflecting the number of input areas used for inputting characters in the character input interface and comprises a single input area corresponding to a single input mode or a plurality of discontinuous input areas corresponding to a plurality of input modes;
wherein, the multiple input mode preferably corresponds to two input areas under general conditions; the input area may be exemplified as an input box.
Step 34, when the received input operation meets a preset condition, switching the input mode and/or the character display state of the character input interface; wherein the character display state includes: a plaintext display state or a ciphertext display state;
it should be noted that, the first implementation manner of step 34 may be:
with reference to fig. 6a, when the character input interface is in the single input mode, if the input operation includes a character deletion operation, at least one of the following operations is performed:
switching the character input interface to a multi-input mode;
and when the character display state is the ciphertext display state, switching the character display state into a plaintext display state.
A second implementation of step 34 may be:
referring to fig. 6b, when the character input interface is in the multiple input mode, if the input duration in the first input area reaches a predetermined threshold, at least one of the following operations is performed:
switching the character input interface to a single input mode;
and when the character display state is a plaintext display state, switching the character display state to a ciphertext display state.
A third implementation of step 34 may be:
with reference to the first application scenario and the illustrations in fig. 6a and 6b, when an input operation of triggering a switch key performed on the character input interface is detected, an input mode of the character input interface is switched.
For the three implementations of step 34 above, the input operation may be, for example:
example 1, on a character input interface, a touch operation of inputting a character is performed through a touch screen;
example 2, in a character input scene, non-touch operations such as voice information are input to a terminal device based on an information acquisition function of the terminal device.
And step 36, displaying the characters input in the character input interface according to the switched input mode and/or the character display state.
It should be noted that, the implementation manner of step 36 may be, for example:
if the character input interface is switched to a multi-time input mode, displaying the input characters in a first input area in the character input interface; or,
if the character display state is switched to the plaintext display state, processing the input character into plaintext and displaying the plaintext in a character input interface; or,
and if the character display state is switched to the ciphertext display state, processing the input character into a ciphertext and displaying the ciphertext in the character input interface.
It can be seen that, in the present embodiment, the input mode and/or the character display state of the character input interface are switched by detecting the input operation of inputting characters by the user and when the input operation meets the predetermined condition. Compared with the scheme of replacing characters by dark texts in the prior art, the method can effectively balance character input accuracy and character input efficiency.
Example 2
Fig. 4 is a schematic flow chart of a character display method according to embodiment 2 of the present invention, and referring to fig. 4, the method may be executed by a processor of a mobile phone, where a character is specifically a password, and a character input interface is specifically a password setting interface, and the method may exemplarily include the following steps:
step 42, determining the current display state of the password in the input box of the password setting interface, wherein the current display state comprises: a plaintext display state or a ciphertext display state;
it should be noted that, the first implementation manner of step 42 may be:
and based on user operation, after entering a password setting interface, determining the current display state as a default display state.
The default display state is preferably a plaintext display state, so that the user can clearly know what the input password is.
A second implementation of step 42 may be:
detecting whether a user selects a switching button in the application scene;
if so, switching the current display state from the default display state to another display state, for example: and when the default display state is the ciphertext display state, the switched current display state is the plaintext display state.
And if not, determining the current display state as the default display state.
The default display state is preferably a ciphertext display state. Further, in general, the password is displayed as a ciphertext; when a user needs the password (selects a switching button), the password is displayed as a plaintext, and the purpose of avoiding password leakage as much as possible is achieved.
And step 44, displaying the password as a plaintext display state or a ciphertext display state according to the current display state and the received input operation of inputting the password in the input box.
It should be noted that, one implementation manner of step 44 may be:
determining a password corresponding to the input operation of the user;
the password is displayed in the input box in plain text or in the password based on the current display state determined at step 42.
Another implementation of step 44 may be:
determining whether a display state needs to be switched based on input operation of a user;
if yes, the current display state determined in step 42 is switched, for example: switching the ciphertext display state into a plaintext display state as a current display state; if not, the current display state is not switched.
Then, the password is displayed in the input box based on the display state after the switching.
Therefore, in the process of setting the password by the user, the password display state of the password setting interface is defaulted to the plaintext display state, or the current display state of the password is switched to the plaintext display state based on the selection of the user, or the current display state is automatically switched to the plaintext display state based on the input operation of the user, so that the password can be displayed in the input frame in the form of the plaintext. Compared with the scheme that the cipher is replaced by the cipher text such as the graph and the character and displayed in the input box in the prior art, the method and the device can effectively reduce the operation complexity of the user and improve the setting efficiency of the cipher.
Example 3
Fig. 5 is a schematic flow chart of a character display method according to embodiment 3 of the present invention, and referring to fig. 5, the method may be applied to a mobile phone, where a character is specifically a password, and a character input interface is specifically a password setting interface, and the method may exemplarily include the following steps:
step 52, determining an input operation performed on a password setting interface, wherein the input operation is used for inputting a password into an input box in the password setting interface;
it should be noted that, one implementation of step 52 may be:
after entering a password setting interface, determining an input mode and a display state of the password setting interface;
then, the input operation of the user is monitored to collect data related to the input operation, such as: the input content (password), the input time length, whether a deletion operation exists in the input, and the like.
Step 54, if the input operation is judged to meet the preset switching condition, switching the input mode of the password setting interface and/or the display state of the password;
and 56, displaying the password based on the switched input mode and/or display state.
It should be noted that, one implementation manner of the steps 54 and 56 may be:
detecting whether the input operation meets a preset switching condition;
if so, switching the input mode and/or the display state of the password setting interface, and displaying the password based on the switched input mode and/or the display state.
If not, the step of determining the current input mode and the display state based on the predetermined current input mode and the display state display password is referred to as embodiment 1, and is not described herein again.
For this implementation of steps 54 and 56, different switching conditions are set based on the determined current input mode and display state of the password setting interface, which are exemplified as follows:
for example, referring to fig. 6a, when the password setting interface is in the single-input mode and the display state is the ciphertext display state, the switching condition may be that an operation of deleting the password exists in the input operation;
it is understood that, in the single-input mode and the ciphertext display state, if the user performs the delete operation on the inputted password "● ● ● ● ● ● ●", the user obtains "● ● ● ●". Since the password is invisible and the form of the ciphertext is single, it is difficult for the user to clearly know what the password obtained after deletion is, and therefore, a step of switching the input mode and/or the display state is required to ensure that the user clearly knows the input password.
The step of switching the input mode and/or the display state may specifically be as follows:
scheme one, switching the single input mode and the ciphertext display state into the single input mode and the plaintext display state
Therefore, the scheme only switches the display state of the password without increasing the operation amount of the user, can ensure the correctness of password input, and can improve the efficiency of password input.
Scheme two, switching the single input mode into the multiple input mode
The display state of the multiple input mode may be a ciphertext display state or a plaintext display state. Here, the ciphertext display state is preferable.
In the second embodiment, it should be noted that the multiple input mode has a plurality of input boxes, and here, it is preferable that the password input in the single input mode is displayed in the first input box in the multiple input mode.
In addition, it is understood that, by switching the single input mode to the multiple input mode, whether the user clearly inputs the password can be determined based on whether the passwords input by the user multiple times are consistent. The ciphertext display state is preferred to maximize password leakage.
For example, referring to fig. 6b, when the password setting interface is in the multiple-input mode and the display state is the plaintext display state, the switching condition may be that the input duration of the input operation reaches a predetermined threshold;
it is understood that, in the multiple input mode and the plaintext display state, if the input duration exceeds a certain time, it can be inferred that the user has fully known the password of the current input box, and the user does not need to input and determine the password again, so that the step of switching the input mode and/or the display state can be performed to save the time of the user.
The step of switching the input mode and/or the display state may specifically be:
and switching the multi-time input mode into a single-time input mode of a ciphertext display state/a plaintext display state.
Preferably, the mode is switched to the single-input mode of the ciphertext display state, so as to prevent the password from leaking as much as possible.
For example two, there are two ways to determine whether the handover condition is satisfied, the first is: determining whether it is detected that the user presses the switch button for a predetermined time, for example: 3s, if yes, the switching condition is met; and the second method comprises the following steps: judging that a predetermined time period is reached after entering the plaintext display state, for example: and 3s, if so, meeting the switching condition.
Therefore, in the embodiment, the input operation performed by the user is collected, and the input mode and/or the display state are switched when the input operation meets the preset condition, so that on one hand, the user can be ensured to know what the input password is by switching the display state, and the condition that the input is wrong is avoided; on the other hand, by switching the input mode, the situation of unnecessary re-input confirmation can be avoided, and the time of the user is saved; in another aspect, the efficiency of setting the password can be effectively improved by switching the input mode and the display state.
Example 4
Fig. 7 is a schematic structural diagram of a terminal device according to embodiment 4 of the present invention, and referring to fig. 7, the terminal device may include: a determination module 71, a switching module 72 and a display module 73, wherein
A determining module 71, configured to determine an input mode of a character input interface, where the input mode is used to reflect the number of input regions used for character input in the character input interface, and includes a single input region corresponding to a single input mode or multiple non-consecutive input regions corresponding to multiple input modes;
the switching module 72 is configured to switch an input mode and/or a character display state of the character input interface when the received input operation meets a predetermined condition; wherein the character display state includes: a plaintext display state or a ciphertext display state;
and the display module 73 is configured to display the characters input in the character input interface according to the switched input mode and/or character display state.
Wherein, the switching module 72 includes:
the first switching unit is used for executing at least one of the following operations when the character input interface is in a single input mode and if the input operation comprises a character deleting operation:
switching the character input interface to a multi-input mode;
and when the character display state is the ciphertext display state, switching the character display state into a plaintext display state.
The display module 73 includes:
the display unit is used for displaying the input character in a first input area in the character input interface when the character input interface is switched to a multi-time input mode.
Optionally, the switching module 72 further includes:
the second switching unit is used for executing at least one of the following operations when the character input interface is in the multi-time input mode and the input duration in the first input area reaches a preset threshold value:
switching the character input interface to a single input mode;
and when the character display state is a plaintext display state, switching the character display state to a ciphertext display state.
Optionally, the switching module 72 further includes:
and the second switching unit is used for switching the input mode of the character input interface when detecting the input operation of triggering the switching key on the character input interface.
It can be seen that, in the present embodiment, an input operation of inputting a character performed on the character input interface by a user is detected, and when the input operation satisfies a predetermined condition, an input mode and/or a character display state of the character input interface are switched. Compared with the scheme of replacing characters by dark texts in the prior art, the method can effectively reduce the operation complexity of user input operation and improve the character input efficiency.
Example 5
Fig. 8 is a schematic structural diagram of a terminal device according to embodiment 5 of the present invention, and referring to fig. 8, the terminal device may include: a determination module 81 and a display module 82, wherein:
a determining module 81, configured to determine a current display state of a password in an input area of a password setting interface, where the current display state includes: a plaintext display state or a ciphertext display state;
and the display module 82 is configured to display the password as a plaintext display state or a ciphertext display state according to the current display state and the received input operation of inputting the password in the input area.
In one possible implementation, the display module 81 includes: detection unit, switching unit and display element, wherein:
a detection unit configured to detect whether the input operation satisfies a predetermined switching condition;
the switching unit is used for switching the input mode and/or the current display state of the password setting interface when detecting that the input operation meets a preset switching condition; the input mode is used for reflecting the number of input areas in the password setting interface and comprises a single input mode and a multi-time input mode;
and the display unit is used for displaying the password based on the switched input mode and/or display state.
In this implementation, the predetermined switching condition includes: when the password setting interface is in a single-time input mode and the current display state is a ciphertext display state, the input operation comprises password deleting operation;
accordingly, the switching unit includes:
and the first switching subunit is used for switching the password setting interface to a multi-time input mode and/or switching the display state to a plaintext display state.
The display unit includes:
and the display subunit is used for displaying the password in a first input area in the password setting interface when the password setting interface is switched to a multi-input mode.
In this implementation, the predetermined switching condition includes: when the password setting interface is in a multi-time input mode and the display state is a plaintext display state, the input duration of the input operation reaches a preset threshold;
accordingly, the switching unit includes:
and the second switching subunit is used for switching the password setting interface to a single-time input mode.
Optionally, the switching unit further includes:
and the third switching subunit is used for switching the display state into a ciphertext display state when the password setting interface is switched to a single-time input mode.
The terminal device provided in the embodiment of the present invention can implement each process implemented by the terminal device in the method embodiments of fig. 3 to fig. 4, and is not described herein again to avoid repetition.
Therefore, in the process of setting the password by the user, the display state of the password is determined to be the plaintext display state or the ciphertext display state based on the display state of the password in the input area in the password setting interface and the input operation of the user, and the password is displayed in the input area in the determined display state. Compared with the scheme that the cipher is replaced by the cipher text such as the graph and the character and displayed in the input area in the prior art, the method and the device can effectively reduce the operation complexity of the user and improve the setting efficiency of the cipher.
Example 6
Fig. 9 is a schematic structural diagram of a terminal device proposed in embodiment 6 of the present invention, and referring to fig. 9, the terminal device 100 includes but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the terminal device configuration shown in fig. 9 does not constitute a limitation of the terminal device, and that the terminal device may include more or fewer components than shown, or combine certain components, or a different arrangement of components. In the embodiment of the present invention, the terminal device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 110 is configured to determine an input mode of a character input interface, where the input mode is used to reflect the number of input areas used for character input in the character input interface, and includes a single input area corresponding to a single input mode or multiple discontinuous input areas corresponding to multiple input modes; when the received input operation meets a preset condition, switching the input mode and/or the character display state of the character input interface; wherein the character display state includes: a plaintext display state or a ciphertext display state; and displaying the characters input in the character input interface according to the switched input mode and/or character display state.
Or,
determining a current display state of a password in an input box of a password setting interface, wherein the current display state comprises: a plaintext display state or a ciphertext display state; and displaying the password as a plaintext display state or a ciphertext display state according to the current display state and the received input operation of inputting the password in the input box.
Therefore, the embodiment of the invention detects the input operation of inputting characters on the character input interface by a user, and switches the input mode and/or the character display state of the character input interface when the input operation meets the preset condition. Compared with the scheme of replacing characters by dark texts in the prior art, the method can effectively reduce the operation complexity of user input operation and improve the character input efficiency. In addition, in the process of setting the password by the user, the password display state of the password setting interface is defaulted to be the plaintext display state, or the password display state is switched to be the plaintext display state based on the selection of the user, so that the password can be displayed in the input area in the form of the plaintext. Compared with the scheme that the cipher is replaced by the cipher text such as the graph and the character and the like and is displayed in the input area in the prior art, the method can effectively balance the character input accuracy and the character input efficiency.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The terminal device provides wireless broadband internet access to the user through the network module 102, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the terminal device 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The terminal device 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or the backlight when the terminal device 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 9, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the terminal device, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the terminal apparatus 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal apparatus 100 or may be used to transmit data between the terminal apparatus 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the terminal device, connects various parts of the entire terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by running or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the terminal device. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The terminal device 100 may further include a power supply 111 (such as a battery) for supplying power to each component, and preferably, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the terminal device 100 includes some functional modules that are not shown, and are not described in detail here.
Preferably, an embodiment of the present invention further provides a terminal device, which includes a processor 110, a memory 109, and a computer program stored in the memory 109 and capable of running on the processor 110, where the computer program, when executed by the processor 110, implements each process of the above-mentioned character input method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned character input method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
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.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A character input method, comprising:
determining an input mode of a character input interface, wherein the input mode is used for reflecting the number of input areas used for inputting characters in the character input interface and comprises a single input area corresponding to a single input mode or a plurality of discontinuous input areas corresponding to a plurality of input modes;
when the received input operation meets a preset condition, switching the input mode and/or the character display state of the character input interface; wherein the character display state includes: a plaintext display state or a ciphertext display state;
displaying the characters input in the character input interface according to the switched input mode and/or character display state;
wherein, when the received input operation meets a predetermined condition, switching the input mode and/or the character display state of the character input interface comprises:
when the character input interface is in a multi-input mode, if the input duration in the first input area reaches a preset threshold, executing at least one of the following steps:
switching the character input interface to a single input mode;
and when the character display state is a plaintext display state, switching the character display state to a ciphertext display state.
2. The method according to claim 1, wherein when the received input operation meets a predetermined condition, switching the input mode and/or the character display state of the character input interface comprises:
when the character input interface is in a single input mode, if the input operation comprises a character deleting operation, executing at least one of the following operations:
switching the character input interface to a multi-input mode;
and when the character display state is the ciphertext display state, switching the character display state into a plaintext display state.
3. The method according to claim 2, wherein displaying the characters input in the character input interface according to the switched input mode and/or character display state comprises:
when the character input interface is switched to a multi-input mode, displaying the input character in a first input area in the character input interface.
4. The method according to claim 1, wherein when the received input operation meets a predetermined condition, switching the input mode and/or the character display state of the character input interface comprises:
and when the input operation of triggering a switching key on the character input interface is detected, switching the input mode of the character input interface.
5. A terminal device, comprising:
the input mode is used for reflecting the number of input areas used for inputting characters in the character input interface and comprises a single input area corresponding to a single input mode or a plurality of discontinuous input areas corresponding to a plurality of input modes;
the switching module is used for switching the input mode and/or the character display state of the character input interface when the received input operation meets the preset condition; wherein the character display state includes: a plaintext display state or a ciphertext display state;
the display module is used for displaying the characters input in the character input interface according to the switched input mode and/or the character display state;
wherein the switching module comprises:
the second switching unit is used for executing at least one of the following operations when the character input interface is in the multi-time input mode and the input duration in the first input area reaches a preset threshold value:
switching the character input interface to a single input mode;
and when the character display state is a plaintext display state, switching the character display state to a ciphertext display state.
6. The terminal device of claim 5, wherein the switching module comprises:
the first switching unit is used for executing at least one of the following operations when the character input interface is in a single input mode and if the input operation comprises a character deleting operation:
switching the character input interface to a multi-input mode;
and when the character display state is the ciphertext display state, switching the character display state into a plaintext display state.
7. The terminal device of claim 6, wherein the display module comprises:
the display unit is used for displaying the input character in a first input area in the character input interface when the character input interface is switched to a multi-time input mode.
8. The terminal device of claim 5, wherein the switching module comprises:
and the second switching unit is used for switching the input mode of the character input interface when detecting the input operation of triggering the switching key on the character input interface.
9. A terminal device, comprising: memory, processor and computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the method according to any one of claims 1 to 4.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
CN201810269429.9A 2018-03-29 2018-03-29 Character input method and terminal equipment Active CN108646928B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810269429.9A CN108646928B (en) 2018-03-29 2018-03-29 Character input method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810269429.9A CN108646928B (en) 2018-03-29 2018-03-29 Character input method and terminal equipment

Publications (2)

Publication Number Publication Date
CN108646928A CN108646928A (en) 2018-10-12
CN108646928B true CN108646928B (en) 2020-06-30

Family

ID=63744746

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810269429.9A Active CN108646928B (en) 2018-03-29 2018-03-29 Character input method and terminal equipment

Country Status (1)

Country Link
CN (1) CN108646928B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113138675B (en) * 2021-03-23 2023-07-04 维沃移动通信有限公司 Information display method and device and electronic equipment

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101901312A (en) * 2009-05-27 2010-12-01 鸿富锦精密工业(深圳)有限公司 Password protection method
CN103714301B (en) * 2012-10-09 2017-11-21 腾讯科技(深圳)有限公司 Cipher-code input method and device
CN104917740B (en) * 2014-03-14 2018-09-04 中国移动通信集团广东有限公司 A kind of password remapping method, method of password authentication and device
CN105468960B (en) * 2014-09-11 2019-12-06 阿里巴巴集团控股有限公司 method and device for displaying password plaintext, mobile equipment and computer
CN104331668B (en) * 2014-09-28 2018-05-18 小米科技有限责任公司 Bad password reminding method and device
US10042998B2 (en) * 2015-06-04 2018-08-07 International Business Machines Corporation Automatically altering and encrypting passwords in systems
CN106293439A (en) * 2015-06-04 2017-01-04 阿里巴巴集团控股有限公司 Interface alternation method and device
CN105701396A (en) * 2016-01-14 2016-06-22 科泰乐讯(北京)通信设备有限公司 Password setting method and apparatus
CN107577391A (en) * 2017-09-13 2018-01-12 广东欧珀移动通信有限公司 The method, apparatus and terminal device of a kind of Cipher Processing

Also Published As

Publication number Publication date
CN108646928A (en) 2018-10-12

Similar Documents

Publication Publication Date Title
CN108845853B (en) Application program starting method and mobile terminal
CN110062105B (en) Interface display method and terminal equipment
CN108446058B (en) Mobile terminal operation method and mobile terminal
CN108391008B (en) Message reminding method and mobile terminal
CN110308834B (en) Setting method of application icon display mode and terminal
CN105653220B (en) Screen data display method and device in remote control
CN108282759B (en) Service processing method and mobile communication terminal
CN108668328B (en) Network switching method and mobile terminal
CN110096203B (en) Screenshot method and mobile terminal
CN109831359B (en) Method for detecting connection state of data network and terminal equipment thereof
CN109544172B (en) Display method and terminal equipment
CN111130989A (en) Information display and sending method and electronic equipment
CN109062634A (en) A kind of application starting method and mobile terminal
CN110597437A (en) Screen capturing method and terminal equipment
CN110719319A (en) Resource sharing method, device, terminal equipment and storage medium
CN111597540B (en) Login method of application program, electronic device and readable storage medium
CN108009031B (en) Application program control method and mobile terminal
CN110225040B (en) Information processing method and terminal equipment
CN111061446A (en) Display method and electronic equipment
CN108419283B (en) WIFI hotspot scanning method and mobile terminal
CN110796438A (en) Message sending method and mobile terminal
CN108093119B (en) Strange incoming call number marking method and mobile terminal
CN110366182A (en) A kind of data transmission method and terminal device
CN111343591B (en) Session information processing method and electronic equipment
CN110740265B (en) Image processing method and terminal 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
GR01 Patent grant