Embodiment
At present, be mostly to reach the purpose that reduces the keystroke mis-operation probability of happening by optimal design to keyboard structure.But because mobile phone etc. need the volume of the electronic equipment of keyboard constantly to reduce, the size of keyboard also needs constantly to dwindle accordingly.Thus, under the restriction of keyboard size, the optimal design of keyboard structure can not well reduce the probability of happening of keystroke mis-operation.
In view of the above, the embodiment of the invention provides a kind of keyboard error correction method and device, reduces the probability of happening of keystroke mis-operation with software mode.
Below, be described with reference to the accompanying drawings the realization of embodiment of the invention keyboard error correction method and device.
Fig. 2 is an embodiment of the invention keyboard error correction method schematic flow sheet, as shown in Figure 2, comprising:
Step 201: scanning key assignments that the user pushed button, and according to time that is scanned of key assignments ordering obtains the key assignments sequence to key assignments.
Wherein, the method for the key assignments of scanning user key-press can use the method for scanning button value of the prior art to realize, does not give unnecessary details here.
For the scanning key assignments, the key of any " pressing simultaneously " all is free sequencing, and is corresponding, and also all corresponding the different time that is scanned, the described time that is scanned is called the time that is scanned of this key assignments below.The time that is scanned of key assignments can be differentiated out by scan method, and concrete scan method can realize by driving code.General, carrying out the scanning of key assignments finishes in Drive Layer, the pairing information of the key assignments of the button that scans then generally sends to application layer and carries out subsequent treatment, for example follow-up step 202 and 203 etc. may influence press key response speed because if carry out follow-up operations such as judgement by Drive Layer.
Step 202: according in the key assignments sequence up-to-date be confirmed as the key assignments of normal key assignments and key assignments after described normal key assignments be scanned time interval between the time and/or key assignments the position relation between the corresponding button, determine whether the key assignments that the time that is scanned is positioned at after the described normal key assignments is the user misoperation key assignments.
Step 203: abandon described user misoperation key assignments.
Embodiment of the invention keyboard error correction method shown in Figure 2, with the up-to-date key assignments of normal key assignments that is confirmed as judgment standard, according to key assignments be scanned time interval between the time and/or key assignments the position relation between the corresponding button, determine the user misoperation key assignments and abandon, thereby reduced the probability of happening of user key-press misoperation.
Fig. 3 is the another kind of keyboard error correction method schematic flow sheet of the embodiment of the invention, as shown in Figure 3, comprising:
Step 301: scan the key assignments that the user pushed button, according to the time that is scanned of key assignments key assignments being sorted obtains the key assignments sequence.
But this step refer step 201 is not given unnecessary details here.
Step 302: judge whether the up-to-date pairing button of key assignments that is confirmed as normal key assignments is adjacent on the position with the back pairing button of key assignments of this normal key assignments in the described key assignments sequence, if, execution in step 303; Otherwise, execution in step 305.
Wherein, when the user begins to carry out button operation, first key assignments in the resulting key assignments sequence can be defined as the resulting normal key assignments of user's normal running, and this normal key assignments is to be judgment standard for normal key assignments or misoperation key assignments as being positioned at key assignments after this normal key assignments.
In this step, judge that two key assignments are whether on the position when adjacent, shown in Fig. 3 a, can judge in the corresponding button of described two key assignments institute, whether button is positioned at going up of another button or down or on a left side or right maximum 4 positions (may have only three as the button around the button on the limit, also may have only two etc.).Perhaps, in this step, shown in Fig. 3 b, also can judge in two pairing buttons of key assignments, button whether be positioned at another button on, or down, an or left side, or it is right, or it is upper left, or lower-left, or it is upper right, or it is (same on maximum 8 positions, bottom right, key number around the button on the keyboard limit not necessarily), but judge whether two buttons are in 8 kinds of positions listed above relation, may the response speed of button be exerted an influence, and generally speaking, the user is for the possibility of four button generation misoperations outside four buttons is also lower up and down around the desired target button of pressing, therefore, judge in general this step that four positions up and down whether a button is positioned at another button get final product, like this, with respect to 8 positions relations judging between two buttons, only judge that 4 position relations between two buttons can reduce decision operation in this step greatly for the influence of press key response speed.
In the described position of specific implementation during whether adjacent judgement, can set in advance a table come on the storage keyboard might have the pairing adjacent key of button of misoperation, wherein, can not be arranged in this table, not limit here for the very low button of some misoperation possibilities.
Step 303: whether the time interval that is scanned between the time of judging described two key assignments is not more than Preset Time at interval, if, execution in step 304, otherwise, execution in step 305.
Wherein, described Preset Time concrete numerical value at interval can specifically be set according to practical application, can not be excessive or too small, the key assignments erroneous judgement of user's normal button may be abandoned for the user misoperation key assignments because the numerical value in the time interval is excessive, the numerical value in the time interval is crossed the young pathbreaker can't play the effect of judging the user misoperation key assignments, therefore, when being provided with, need consider specifically to be provided with according to user's key scroll.In actual applications, can provide standard, by the autonomous concrete numerical value of setting the described time interval of user for the user; Perhaps, also can in device, set in advance concrete time interval numerical value.Preferably, special statistic unit can be set, user's key scroll is added up, thereby calculate time interval of suitable user, so that the described keyboard error correction method of the embodiment of the invention can be adaptive to each different user, concrete statistical method repeats no more here.
Step 304: abandon a back key assignments of described normal key assignments, returning step 302 continuation is that benchmark is judged next key assignments in the key assignments sequence with this normal key assignments.
Wherein, if the result who judges described in the step 303 is when being, can determine that then a back key assignments is the user misoperation key assignments in described two key assignments, thereby the user misoperation key assignments then abandons (being a back key assignments), return step 302 afterwards and continue to judge next key assignments.For example, the key assignments sequence is A, B, four key assignments of C, D, and A is up-to-date definite normal key assignments, is judgment standard; Two key assignments judging in the current step 302 are A, B, and B is confirmed as the user misoperation key assignments, then abandons B, and returning step 302 continuation afterwards is that benchmark judges whether C is the user misoperation key assignments with A.
Step 305: a back key assignments of determining described normal key assignments is normal key assignments, and to return step 302 be that benchmark judges whether next key assignments is the user misoperation key assignments in the key assignments sequence with the current up-to-date key assignments that is defined as normal key assignments.
For example, the key assignments sequence is A, B, four key assignments of C, D, and two key assignments judging in the current step 302 are A, B, and normal key assignments A is a judgment standard; Show A to the user in this step, and abandon B that returning step 302 continuation afterwards is that benchmark judges whether C is the user misoperation key assignments with A.
If judged result described in the step 303 is for denying, can determine that then described back one key assignments is user's normal running key assignments, it is normal key assignments, therefore, when returning step 302, be judged as normal key assignments according to up-to-date again, a promptly described back key assignments judges whether the next key assignments of a back key assignments described in the key assignments sequence is the misoperation key assignments.So circulation, last key assignments in the key assignments sequence.For example, the key assignments sequence is A, B, four key assignments of C, D, and A is up-to-date definite normal key assignments, is judgment standard; Two key assignments judging in the current step 302 are A, B, and B is confirmed as normal key assignments, and returning step 302 continuation afterwards is that benchmark judges whether C is the user misoperation key assignments with B.
In specific implementation, to on display screen, show normal key assignments, and corresponding key assignments in can corresponding delete key value sequence, thereby reduce the quantity of key assignments in the key assignments sequence, and then minimizing improves the data-handling efficiency of keyboard error correction device to the resource occupation of keyboard error correction device.
In the embodiment of the invention shown in Figure 3, concern earlier and judge according to the position between the corresponding button of key assignments institute, afterwards, the time interval that is scanned between the time according to key assignments is judged again, obtain the user misoperation key assignments according to judged result and abandon, reduced the probability of happening of user key-press misoperation.
In the embodiment of the invention shown in Figure 3, also execution in step 303 not, at this moment, the judged result of step 302 when being, direct execution in step 304; Judged result for not the time, direct execution in step 305; At this moment, can finish determining equally for the user misoperation button, but, concern the method for determining the user misoperation button with respect to the time interval and the key assignments institute correspondence position that are scanned between the time according to key assignments shown in Figure 3, determine that the accuracy of user misoperation button is lower.
Fig. 4 is the another kind of keyboard error correction method schematic flow sheet of the embodiment of the invention, as described in Figure 4, comprising:
Step 40l: scan the key assignments that the user pushed button, according to the time that is scanned of key assignments key assignments being sorted obtains the key assignments sequence.
But this step refer step 201 is not given unnecessary details here.
Step 402: judge whether the time that is scanned of a back key assignments of the up-to-date key assignments that is confirmed as normal key assignments and the time interval that is scanned between the time of described normal key assignments are not more than Preset Time at interval, if, execution in step 403, otherwise, execution in step 405.
Wherein, describedly up-to-dately be confirmed as normal key assignments and be divided into two kinds of situations: detected user's the pairing key assignments of first button was normal key assignments when the user initially carried out button operation; Perhaps, the normal key assignments that obtains by step 404 or step 405 judged result in the cycle criterion process.In the present embodiment, this key assignments is generally in the key assignments sequence, do not show to the user, be scanned the most forward key assignments of time.
Step 403: judge whether the described time interval is not more than the Preset Time pairing button of key assignments at interval adjacent on the position with the up-to-date pairing button of key assignments that is confirmed as normal key assignments, if, execution in step 404; Otherwise, execution in step 405.
Step 404: determining that a described back key assignments is the user misoperation key assignments, abandon this user misoperation key assignments, return step 402, is benchmark with described normal key assignments, judges next key assignments in the key assignments sequence.
Wherein, if the result who judges described in the step 403 is when being, then can determine the described time interval be not more than Preset Time at interval and corresponding button and described normal key assignments the adjacent described key assignments of corresponding button be the user misoperation key assignments, thereby abandon described user misoperation key assignments.
Step 405: determining that a described back key assignments is normal key assignments, and return step 402, is benchmark with the current up-to-date key assignments that is defined as normal key assignments, judges whether next key assignments is the user misoperation key assignments in the key assignments sequence.
Wherein, if the result who judges described in the step 403 is not for the time, then can determine not exist the misoperation key assignments relevant with described normal key assignments, therefore, determine that a described back key assignments is normal key assignments, continuing with the up-to-date key assignments (being a described back key assignments) that is confirmed as normal key assignments is benchmark, judges whether next key assignments is the user misoperation key assignments, so circulation, last key assignments in sequence.
In specific implementation, to on display screen, show normal key assignments, and corresponding key assignments in can corresponding delete key value sequence, thereby reduce the quantity of key assignments in the key assignments sequence, and then minimizing improves the data-handling efficiency of keyboard error correction device to the resource occupation of keyboard error correction device.
In the embodiment of the invention keyboard error correction method shown in Figure 4, the time interval that is scanned between the time according to key assignments is judged earlier, afterwards, again according to key assignments the position relation between the corresponding button judge, obtain the user misoperation key assignments according to judged result and abandon, reduced the probability of happening of user key-press misoperation.
In the embodiment of the invention shown in Figure 4, also execution in step 403 not, at this moment, the judged result of step 402 when being, direct execution in step 404; Judged result for not the time, direct execution in step 405; At this moment, can finish determining equally for the user misoperation button, but, concern the method for determining the user misoperation button with respect to the time interval and the key assignments institute correspondence position that are scanned between the time according to key assignments shown in Figure 4, determine that the accuracy of user misoperation button is lower.
In Fig. 3 and embodiment of the invention keyboard error correction method shown in Figure 4, according to key assignments be scanned time interval between the time and key assignments the position relation between the corresponding button determine the key assignments of user misoperation, the result who at this moment obtains the user misoperation key assignments is comparatively accurate; To user misoperation judged result accuracy when less demanding, also can according to key assignments be scanned time interval between the time or key assignments the position relation between the corresponding button determine the key assignments of user misoperation to repeat no more here.
Fig. 5 is a kind of keyboard error correction device of embodiment of the invention structural representation, as shown in Figure 5, comprising:
Scanning element 510 is used to scan the key assignments that the user pushes button, and ordering obtains the key assignments sequence to key assignments according to time that is scanned of key assignments;
Judging unit 520, be used for according to the key assignments sequence up-to-date be confirmed as the key assignments of normal key assignments and key assignments after described normal key assignments be scanned time interval between the time and/or key assignments the position relation between the corresponding button, whether what determine that the time that is scanned is positioned at key assignments after the described normal key assignments is the user misoperation key assignments;
Discarding unit 530 is used to abandon described user misoperation key assignments.
Further, shown in Fig. 5 a, described keyboard error correction device can also comprise: display unit 540 is used to show normal key assignments.
Wherein, described judging unit 520 can be only according to key assignments the position relation of corresponding button determine the user misoperation key assignments, at this moment, judging unit 520 specifically can be used for:
Judge whether the up-to-date pairing button of key assignments that is confirmed as normal key assignments is adjacent on the position with the back pairing button of key assignments of this normal key assignments in the described key assignments sequence, if determine that a back key assignments of described normal key assignments is the user misoperation key assignments; If not, determine that a described back key assignments is normal key assignments.
Further, on the basis that described judging unit 520 concerns in the position of judging the corresponding button of key assignments institute, can also further judge whether key assignments is the misoperation key assignments according to the time interval that two key assignments were scanned between the time, at this moment, judging unit 520 can also be further used for: judge on described two key assignments positions adjacent after, whether the time interval that is scanned between the time of judging a back key assignments of the up-to-date key assignments that is confirmed as normal key assignments and this normal key assignments is not more than Preset Time at interval, if carry out the operation of described definite user misoperation key assignments; If not, determine that then a described back key assignments is normal key assignments.
Perhaps, described judging unit 520 can also only judge according to the time interval that is scanned between the time that is scanned two adjacent key assignments of time whether described key assignments is the misoperation key assignments, and at this moment, judging unit 520 specifically can be used for:
Judge whether the time that is scanned of a back key assignments of the up-to-date key assignments that is confirmed as normal key assignments and the time interval that is scanned between the time of described normal key assignments are not more than Preset Time at interval, if, determine that a up-to-date back key assignments that is confirmed as the key assignments of normal key assignments is the user misoperation key assignments, if not, determine that then a up-to-date back key assignments that is confirmed as the key assignments of normal key assignments is normal key assignments.
Further, described judging unit 520 can also judge whether key assignments is on the basis of misoperation key assignments in the time interval that is scanned between the time according to two key assignments, again according to two key assignments the position relation between the corresponding button further judge whether key assignments is the misoperation key assignments, at this moment, judging unit 520 further can be used for:
The time interval that described judgement exists the time that is scanned and described normal key assignments to be scanned between the time is not more than after the Preset Time key assignments at interval, whether a back pairing button of key assignments of judging the described up-to-date key assignments that is confirmed as normal key assignments is adjacent on the position with described normal key assignments institute corresponding button, if, carrying out a described definite up-to-date back key assignments that is confirmed as the key assignments of normal key assignments is the operation of user misoperation key assignments, if not, determine that then a up-to-date back key assignments that is confirmed as the key assignments of normal key assignments is normal key assignments.
Embodiment of the invention keyboard error correction device shown in Fig. 5 and Fig. 5 a, according to described key assignments be scanned time interval between the time and/or key assignments the position relation between the corresponding button, determine the user misoperation key assignments and abandon, thereby reduced the probability of happening of user key-press misoperation.
The described keyboard error correction method of the embodiment of the invention and device go for the equipment that all have keyboard, for example have the terminals such as mobile phone, computer, factory's industrial computer of keyboard, do not limit here.
One of ordinary skill in the art will appreciate that, the process of realization the foregoing description keyboard error correction method can be finished by the relevant hardware of program command, described program can be stored in the read/write memory medium, and this program is carried out the corresponding step in the said method when carrying out.Described storage medium can be as ROM/RAM, magnetic disc, CD etc.
The above only is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.