Disclosure of Invention
In view of the above, the present invention is directed to a mobile terminal and a method for locking a keyboard thereof, which effectively avoid misoperation of the mobile terminal.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
a method for locking a keypad of a mobile terminal, the method comprising the steps of:
after entering the functional module, triggering a timer to start timing;
when the timer is up, prompting a user whether to lock the keyboard;
and when the information of the unlocked keyboard input by the user is received, ending the current flow, otherwise, locking the keyboard and returning to the standby interface.
Further, if the function of the misoperation prevention keyboard lock is started, the timer timing step further comprises the following steps:
judging whether a function module where the mobile terminal is currently located is a short message module or a call record module, if so, further judging whether the function module where the mobile terminal is currently located is a short message module;
when the function module where the mobile terminal is located currently is a short message module, whether an empty short message sending request exists currently is further judged, if yes, sending is cancelled, the keyboard is locked and a standby interface is returned, and if not, a user is prompted whether the keyboard is locked after a timer expires.
Further, the step of determining whether the current functional module of the mobile terminal is a short message module or a call recording module further includes: and when the current functional module of the mobile terminal is not one of the short message module and the call recording module, judging whether the key operation is received, if so, stopping timing of the timer, otherwise, prompting a user whether to lock the keyboard after the timer is up.
The step of judging whether the function module where the mobile terminal is currently located is a short message module further comprises the following steps:
when the function module where the mobile terminal is located currently is a call recording module, whether a call exists currently is further judged, if yes, whether the keyboard is locked is prompted to the user, and otherwise, whether the keyboard is locked is prompted to the user after a timer expires.
Further, the method further comprises: and receiving the unlocking information of the misoperation prevention keyboard lock function input by the user, and receiving the time length information of the timer and the setting information of the prompt mode input by the user.
Further, the prompting whether the user locks the keyboard is: and prompting the user whether to lock the keyboard or not in one or more of a ring tone, a light and a vibration mode by displaying a prompt box.
Further, before the step of triggering the timer to start timing, the method further includes: judging whether the function of the misoperation prevention keyboard lock is started, if so, triggering a timer to start timing; if not, executing the function of the automatic keyboard lock.
A mobile terminal, the mobile terminal comprising: the device comprises a function starting judgment module, a timer, a prompt module and an execution module; wherein,
the function starting judging module is used for sending triggering information to the timer after judging that the function module is entered;
the timer is used for starting timing after receiving the trigger information sent by the misoperation prevention keyboard lock function judgment module, and simultaneously sending the trigger information to the prompt module after the timing duration of the timer is up;
the prompting module is used for prompting a user whether to lock the keyboard or not after receiving the trigger message of the timer;
and the execution module is used for ending the current flow when the information of the keyboard which is input by the user and is not locked is received, and otherwise, locking the keyboard and returning to the standby interface.
Further, the mobile terminal further includes: a current function judgment module and an empty short message judgment module; wherein,
the current function judging module is used for judging whether the current function module of the mobile terminal is a short message module or a call recording module, if so, further judging whether the current function module of the mobile terminal is a short message module, and if so, sending triggering information to the empty short message judging module;
the empty short message judging module is used for judging whether an empty short message sending request exists at present after receiving the triggering information sent by the current function judging module, if so, sending the triggering information to the executing module, and otherwise, sending the triggering information to the prompting module;
correspondingly, after receiving the trigger information, the execution module cancels the sending of the empty short message, locks the keyboard and returns to the standby interface; and after receiving the trigger information and the timer is up, the prompting module prompts a user whether to lock the keyboard.
Further, the mobile terminal further comprises a key operation judging module, which is used for judging whether the key operation is received or not when the current function judging module judges that the current function module is not one of the short message module and the call recording module, if so, sending triggering information to the timer, stopping timing of the timer, if not, sending the triggering information to the prompting module, and prompting a user whether to lock the keyboard or not after the timer is up.
Further, the mobile terminal further includes: and the call judging module is used for further judging whether a call exists at present when the function module where the mobile terminal is located is the call recording module, if so, sending triggering information to the prompting module to prompt a user whether to lock the keyboard, otherwise, sending triggering information to the prompting module, and prompting the user whether to lock the keyboard after the timer arrives.
Further, the mobile terminal further includes: the setting module is used for receiving the starting information of the misoperation prevention keyboard lock function input by the user, and receiving the time length information of the timer and the setting information of the prompt mode input by the user; and/or the presence of a gas in the gas,
the function starting judging module is further used for judging whether the function of the misoperation prevention keyboard lock is started, if so, sending triggering information to the timer, and if not, triggering the mobile terminal to execute the function of the automatic keyboard lock.
According to the mobile terminal and the method for locking the keyboard thereof, provided by the invention, the timer is started to time when the mobile terminal enters the function module, and particularly, the keyboard is locked in the short message module and the call recording module through further judgment, so that the purpose of preventing misoperation of the mobile terminal is realized, the misoperation of the mobile terminal is effectively avoided, the inconvenience and unnecessary cost possibly brought to a user are reduced, the use experience of the user is improved, and the practicability is strong.
Detailed Description
The basic idea of the invention is as follows: after the mobile terminal enters the functional module, triggering a timer to start timing; when the timer is up, prompting a user whether to lock the keyboard; and when the information of the unlocked keyboard input by the user is received, ending the current flow, otherwise, locking the keyboard and returning to the standby interface.
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to the accompanying drawings by way of examples.
Fig. 1 shows an implementation flow of a method for locking a mobile terminal keyboard provided by the present invention, as shown in fig. 1, the method includes the following steps:
s101, after receiving the starting information of the misoperation prevention keyboard lock function input by the user, entering a setting interface of the misoperation prevention keyboard lock function, and receiving the time length information of the timer and the setting information of the prompt mode input by the user.
In this step, after receiving the opening information input by the user, the misoperation prevention keyboard lock function is opened, and specifically, a setting option for setting the misoperation prevention keyboard lock function by the user can be added under an "opening" option menu of the misoperation prevention keyboard lock, so that the user can specifically set the time length of the timer and the prompting mode according to actual needs. The setting information of the prompting mode can comprise one or more of ring selection, vibration on/off and light setting, and further, when a prompting frame for prompting a user whether to lock the keyboard is provided with a timer for controlling the display time of the prompting frame, the setting information can also comprise the duration of the display time of the prompting frame; when the prompt box for prompting the user whether to lock the keyboard is not provided with a timer, a waiting time can be set for waiting for the user to input information in the waiting time after the prompt box is displayed.
S102, the mobile terminal judges whether the function of the misoperation prevention keyboard lock is started, if yes, S104 is executed, and if not, S103 is executed;
s103, the mobile terminal executes the automatic keyboard lock function of the mobile terminal and finishes the current process; specifically, a timer with an automatic keyboard locking function is started on a standby interface, and a keyboard is locked after the timer expires; in the non-standby interface, the automatic keyboard lock function does not work;
s104, after the mobile terminal enters the functional module, starting a timer, and starting timing by the timer;
in this embodiment, the functional modules include modules with functions corresponding to other interfaces that enter when the mobile terminal is not in the standby interface, for example, when the mobile terminal is in the setting interface, the mobile terminal is a setting module correspondingly; when the mobile terminal is located at the internet interface, the mobile terminal corresponds to an internet module and the like.
S105, when the timer is up, prompting the user whether to lock the keyboard, if the information of not locking the keyboard input by the user is received, ending the current processing, otherwise, executing S106;
in this step, when the timer expires, a prompt box is displayed to prompt the user whether to lock the keyboard, and meanwhile, the user is prompted according to the setting information received in S101; for example, when the setting information includes selection of a ringtone and vibration on, the prompt box is displayed along with vibration of the ringtone and setting selected by the user.
Specifically, after receiving the information of not locking the keyboard input by the user, the current process is ended, and after receiving the information of locking the keyboard input by the user, S106 is executed, further, when the display time of the prompt box is set in S101, if the information input by the user is not received until the prompt box disappears, S106 is executed; if the waiting time is set in S101 and the information input by the user is not received yet after the waiting time is exceeded, S106 is executed.
And S106, locking the keyboard, returning to a standby interface, and ending the current flow.
Fig. 2 shows an implementation flow of a preferred embodiment of the mobile terminal keyboard locking method provided by the present invention, and as shown in fig. 2, the implementation of the embodiment includes the following steps:
s201, after receiving the opening information of the misoperation prevention keyboard lock function input by the user, entering a setting interface of the misoperation prevention keyboard lock function, and receiving the time length information of the timer and the setting information of the prompt mode input by the user.
In this step, after receiving the opening information input by the user, the misoperation prevention keyboard lock function is opened, and specifically, a setting option for setting the misoperation prevention keyboard lock function by the user can be added under an "opening" option menu of the misoperation prevention keyboard lock, so that the user can specifically set the time length of the timer and the prompting mode according to actual needs. The setting information of the prompting mode can comprise one or more of ring selection, vibration on/off and light setting, and further, when a prompting frame for prompting a user whether to lock the keyboard is provided with a timer for controlling the display time of the prompting frame, the setting information can also comprise the duration of the display time of the prompting frame; when the prompt box for prompting the user whether to lock the keyboard is not provided with a timer, a waiting time can be set for waiting for the user to input information in the waiting time after the prompt box is displayed.
S202, the mobile terminal judges whether the function of the misoperation prevention keyboard lock is started, if so, S204 is executed, and if not, S203 is executed;
s203, the mobile terminal executes the automatic keyboard lock function of the mobile terminal and finishes the current process; specifically, a timer with an automatic keyboard locking function is started on a standby interface, and a keyboard is locked after the timer expires; in the non-standby interface, the automatic keyboard lock function does not work;
s204, after the mobile terminal enters the functional module, starting a timer, and starting timing by the timer;
in this embodiment, the functional modules include modules with functions corresponding to other interfaces that enter when the mobile terminal is not in the standby interface, for example, when the mobile terminal is in the setting interface, the mobile terminal is a setting module correspondingly; when the mobile terminal is located at the internet interface, the mobile terminal corresponds to an internet module and the like.
S205-S206, judging whether the current functional module of the mobile terminal is a short message module or a call recording module, if not, executing S207; if the current function module is one of the short message module and the short message module, further judging whether the current function module of the mobile terminal is the short message module, if so, executing S208, and if not, executing S209;
in this step, specifically, a flag bit may be set in advance for the short message module and the call recording module, and when the mobile terminal enters the function module, whether the current function module is the short message module or the call recording module is determined according to the preset flag bit.
S207, when the current functional module of the mobile terminal is not one of the short message module and the call recording module, judging whether a key operation is received, if so, executing S211, and if not, executing S213;
s208, when the function module where the mobile terminal is located is a short message module, judging whether an empty short message sending request exists currently, if so, executing S212, otherwise, executing S213;
s209, when the function module where the mobile terminal is currently located is a call recording module, judging whether a call exists currently, if so, executing S210, otherwise, executing S213;
s210, prompting a user whether to lock the keyboard, executing S211 if the information of not locking the keyboard input by the user is received, or executing S212 if the information of not locking the keyboard input by the user is not received;
in this step, a prompt box is displayed to prompt the user whether to lock the keyboard, and meanwhile, the user is prompted according to the setting information received in S201; for example, when the setting information includes selection of a ringtone and vibration on, the prompt box is displayed along with vibration of the ringtone and setting selected by the user.
Specifically, after receiving the information of not locking the keyboard input by the user, S211 is executed, and after receiving the information of locking the keyboard input by the user, S212 is executed, further, when the display time of the prompt box is set in S201, if the information input by the user is not received until the prompt box disappears, S212 is executed, and when a waiting time is set in S201, if the waiting time is overtime, the information input by the user is not received, S212 is executed.
S211, stopping timing of the timer and ending the current process;
s212, locking the keyboard, returning to a standby interface, and ending the current process;
in this step, if the mobile terminal has a call currently and does not receive the information of the unlocking keyboard input by the user, the mobile terminal directly hangs up the call, locks the keyboard and returns to the standby interface; and if the mobile terminal has the empty short message sending request currently, the sending is cancelled, the keyboard is locked, and the mobile terminal returns to the standby interface.
S213, when the timer is up, prompting the user whether to lock the keyboard, if the information of not locking the keyboard input by the user is received, ending the current process, otherwise, executing S212;
in this step, when the timer expires, a prompt box is displayed to prompt the user whether to lock the keyboard, and meanwhile, the user is prompted according to the setting information received in S201; for example, when the setting information includes selection of a ringtone and vibration on, the prompt box is displayed along with vibration of the ringtone and setting selected by the user.
Specifically, after receiving the information of not locking the keyboard input by the user, the current process is ended, and after receiving the information of locking the keyboard input by the user, S212 is executed, further, when the display time of the prompt box is set in S201, if the information input by the user is not received until the prompt box disappears, S212 is executed, and when a waiting time is set in S201, if the waiting time is overtime, the information input by the user is not received, S212 is executed.
Fig. 3 shows a structure of a mobile terminal provided by the present invention, and as shown in fig. 3, the mobile terminal includes: the function starting judging module 10, the timer 30, the prompting module 50 and the executing module 90; the function starting judging module 10 is configured to send triggering information to the timer 30 after judging that the function module enters the function module; the timer 30 is configured to start timing after receiving the trigger information sent by the function starting determining module 10, and send a trigger message to the prompting module 50 after a timing duration of the timer 30 expires; a prompting module 50, configured to prompt a user whether to lock the keyboard after receiving a trigger message of the timer 30; and the execution module 90 is configured to end the current process when the information of the unlocked keyboard input by the user is received, and otherwise, lock the keyboard and return to the standby interface. The function module comprises a module with functions corresponding to other interfaces which enter when the mobile terminal is not in the standby interface, for example, when the mobile terminal is in the setting interface, the mobile terminal is correspondingly a setting module; when the mobile terminal is positioned on the internet interface, the mobile terminal corresponds to an internet module and the like; the prompt module 50 may prompt the user whether to lock the keyboard by displaying a prompt box and a preset prompt mode.
Further, the mobile terminal further comprises a current function judgment module 60 and an empty short message judgment module 80; the current function determining module 60 is configured to determine whether a current functional module of the mobile terminal is a short message module or a call record module, if so, further determine whether the current functional module of the mobile terminal is a short message module, and if so, send trigger information to the empty short message determining module 80; the empty short message determining module 80 is configured to determine whether there is an empty short message sending request currently after receiving the triggering information sent by the current function determining module 60, if yes, send the triggering information to the executing module 90, otherwise, send the triggering information to the prompting module 50;
correspondingly, after receiving the trigger information, the execution module 90 cancels the sending of the empty short message, locks the keyboard and returns to the standby interface; after receiving the trigger information, the prompting module 50 prompts the user whether to lock the keyboard after the timer 30 expires.
Further, the mobile terminal further includes a key operation determining module 40, configured to determine whether a key operation is received when the current function determining module 60 determines that the current function module is not one of the short message module and the call recording module, if so, send a trigger message to the timer 30, stop timing of the timer 30, otherwise, send a trigger message to the prompting module 50, and after the prompting module 50 receives the trigger message, prompt the user whether to lock the keyboard after the timer 30 is up.
Further, the mobile terminal further includes a call judging module 70, configured to further judge whether a call exists currently when the current functional module of the mobile terminal is a call recording module, if so, send a trigger message to the prompting module 50 to prompt a user to lock the keyboard, otherwise, send a trigger message to the prompting module 50, and after the prompting module 50 receives the trigger message, and after the timer 30 expires, prompt the user to lock the keyboard.
Further, the mobile terminal further includes a setting module 20, configured to receive opening information of the misoperation prevention keyboard lock function input by the user, and receive time length information of the timer and setting information of the prompt mode input by the user. Specifically, the setting information of the prompt mode may include one or more of selection of a ringtone, turning on/off of vibration, and light setting, and further, the setting information may further include duration information of display time for prompting the user whether to lock a prompt box of the keyboard or wait time for the user to input information after the prompt box is displayed. The function starting judgment module 10 is further configured to judge whether the misoperation prevention keyboard lock function is started, and if yes, send trigger information to the timer 30; if not, triggering the mobile terminal to execute the function of the automatic keyboard lock.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.