CN102681751A - Input control method, input recognition method and equipment - Google Patents

Input control method, input recognition method and equipment Download PDF

Info

Publication number
CN102681751A
CN102681751A CN2011100612875A CN201110061287A CN102681751A CN 102681751 A CN102681751 A CN 102681751A CN 2011100612875 A CN2011100612875 A CN 2011100612875A CN 201110061287 A CN201110061287 A CN 201110061287A CN 102681751 A CN102681751 A CN 102681751A
Authority
CN
China
Prior art keywords
input
input position
focus
time difference
information
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.)
Granted
Application number
CN2011100612875A
Other languages
Chinese (zh)
Other versions
CN102681751B (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201110061287.5A priority Critical patent/CN102681751B/en
Publication of CN102681751A publication Critical patent/CN102681751A/en
Application granted granted Critical
Publication of CN102681751B publication Critical patent/CN102681751B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses an input control method, an input recognition method and equipment. The input control method comprises the following steps of: detecting change of input positions of an input focus controlled by input operation; acquiring a time difference of the input focus changing from a first input position to a second input position; judging whether the time difference is lower than a preset threshold value; and when the time difference is lower than the preset threshold value, controlling the input focus at the second input position to jump to the first input position and displaying the input information input at the second input position to the first input position. By judging the time difference before and after changing, whether the change is a result operated by a user can be known, so that the problem that the focus returns to the position before jumping when the focus changes caused by non-human operation is avoided; the experience of the user in the input operation is improved; and operation of the user to transfer the focus to the position before changing is reduced.

Description

Input control method, input identification method and equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to an input control method, an input recognition method, and an input recognition device.
Background
The terminal device is generally provided with an input device and a display device, such as a PC and a notebook computer, etc., through which information input by the input device is displayed. Taking information input through a PC keyboard as an example, when text input is carried out on a current window of a display screen, a focus is positioned in the current window, and when some program windows jump out of the preemption focus, in the window focus conversion process, the content originally prepared to be input into the current window appears on the window after the focus jumps, so that input errors are caused. Particularly, when the user inputs the password in the current window, after the focus jumps, the password is displayed on the window after the jump in a plaintext mode, so that the personal information of the user is leaked.
Therefore, in the prior art, the input of the window information before and after the focus jump cannot be controlled, so that the operation of a user is complicated, and personal information may be leaked.
Disclosure of Invention
The embodiment of the application provides an input control method, an input identification method and input identification equipment, and aims to solve the problem that in the prior art, the input of window information before and after focus jump caused by operation which is not considered by a user cannot be controlled.
In order to solve the technical problem, the embodiment of the application discloses the following technical scheme:
an input control method comprising:
detecting a change in an input position of an input focus;
acquiring a time difference of the input focus changing from a first input position to a second input position;
judging whether the time difference is smaller than a preset threshold value or not;
jumping the input focus from the second input position to the first input position when the time difference is less than the preset threshold.
The detecting a change in input position of the input focus includes:
detecting that an input focus controlled by an input operation is changed from a first input position of a first window to a second input position of a second window; or,
detecting that an input focus controlled by an input operation is changed from a first input position of a first window to a second input position of the first window; or,
an input focus controlled by a non-input operation is detected to change from a first input position of a first window to a second input position of a second window.
The detecting a change in input position of the input focus includes:
acquiring first input position information before the input position of the input focus is changed and second input position information after the input position is changed;
and judging whether the first input position information is consistent with the second input position information or not, and if not, determining that the input position of the input focus is changed.
The acquiring a time difference of the input focus changing from a first input position to a second input position comprises:
acquiring a first moment when the input focus is positioned at the first input position and a second moment when the input focus is positioned at the second input position;
and taking the difference value between the first time and the second time as the time difference of the input focus from the first input position to the second input position.
The acquiring a time difference of the input focus changing from a first input position to a second input position comprises:
acquiring a third moment when the input focus is changed from a first input position to a second input position and a second moment when the input focus is positioned at the second input position;
and taking the difference value between the third time and the second time as the time difference of the input focus from the first input position to the second input position.
After jumping the input focus from the second input position to the first input position, the method further comprises:
and displaying the input information input at the second input position at the first input position.
The displaying, at the first input location, the input information input at the second input location includes:
storing the input information after the input focus is changed from a first input position to a second input position;
displaying the stored input information on the first input location.
Further comprising:
and when the time difference is larger than the preset threshold value, displaying the input information input at the second input position.
An input recognition method applied to an electronic device having an input focus, wherein the electronic device controls input position change of the input focus in response to a normal input, and the electronic device controls input position change of the input focus in response to an abnormal input, comprising:
detecting a change in an input position of an input focus;
acquiring a time difference of the input focus changing from a first input position to a second input position;
judging whether the time difference is smaller than a preset threshold value or not;
when the time difference is smaller than the preset threshold, determining that the input position change of the input focus is the abnormal input generation, and when the time difference is larger than the preset threshold, determining that the input position change of the input focus is the normal input generation.
After the determining that the input position change of the input focus is the abnormal input, the method further includes:
controlling the input focus to jump from a second input position to the first input position;
and displaying the input information input at the second input position at the first input position.
An input control device comprising:
a detection unit for detecting a change in an input position of an input focus;
an acquisition unit configured to acquire a time difference in which the input focus changes from a first input position to a second input position;
the judging unit is used for judging whether the time difference is smaller than a preset threshold value or not;
and the control unit is used for jumping the input focus from the second input position to the first input position when the time difference is smaller than the preset threshold value.
The detection unit comprises at least one of the following units:
a first detection unit for detecting that an input focus controlled by an input operation is changed from a first input position of the first window to a second input position of the second window;
a second detection unit for detecting that an input focus controlled by an input operation is changed from a first input position of the first window to a second input position of the first window;
and a third detection unit for detecting that the input focus controlled by the non-input operation is changed from the first input position of the first window to the second input position of the second window.
The detection unit includes:
an information acquisition unit configured to acquire first input position information before a change in an input position of the input focus and second input position information after the change;
and the information judging unit is used for judging whether the first input position information is consistent with the second input position information or not, and if not, determining that the input position of the input focus is changed.
The acquisition unit includes:
a first time acquisition unit configured to acquire a first time when the input focus is located at the first input position and a second time when the input focus is located at the second input position;
a first time difference acquisition unit configured to take a difference value between the first time and the second time as a time difference when the input focus is changed from a first input position to a second input position.
The acquisition unit includes:
a second timing acquisition unit configured to acquire a third timing at which the input focus is changed from a first input position to a second input position, and a second timing when the input focus is at the second input position;
a second time difference acquisition unit configured to take a difference value between the third time and the second time as a time difference when the input focus is changed from the first input position to the second input position.
The control unit is further configured to display input information input at the second input position at the first input position after jumping the input focus from the second input position to the first input position;
the control unit includes:
an information storage unit for storing input information after the input focus is changed from a first input position to a second input position;
a display control unit for displaying the stored input information on the first input position.
The control unit is further configured to display input information input at the second input position when the time difference is greater than the preset threshold.
An input recognition device, the electronic device having an input focus, wherein the electronic device controls a change in an input position of the input focus in response to a normal input, and wherein the electronic device controls a change in an input position of the input focus in response to an abnormal input, comprising:
a detection unit for detecting a change in an input position of an input focus;
an acquisition unit configured to acquire a time difference in which the input focus changes from a first input position to a second input position;
the judging unit is used for judging whether the time difference is smaller than a preset threshold value or not;
and the identification unit is used for determining that the input position change of the input focus is the abnormal input generation when the time difference is smaller than the preset threshold value, and determining that the input position change of the input focus is the normal input generation when the time difference is larger than the preset threshold value.
Further comprising:
and the control unit is used for controlling the input focus to jump from a second input position to the first input position after the recognition unit determines that the input position of the input focus is changed into the abnormal input, and displaying the input information input at the second input position at the first input position.
It can be seen from the foregoing embodiments that, in the embodiments of the present application, when an input position change of an input focus is detected, a time difference between a change of the input focus from a first input position to a second input position is obtained, whether the time difference is smaller than a preset threshold is determined, and when the time difference is smaller than the preset threshold, the input focus is skipped from the second input position to the first input position. When the focus of the input operation is changed, whether the change is the result of the user operation can be known by judging the time difference before and after the change, so that the focus can be prevented from returning to the position before focus jump when the focus is changed and the focus is not manually operated, the experience of the user in the input operation process is improved, and the operation of the user for transferring the focus to the position before the change is reduced; particularly, when the user inputs the password in the current window, if the focus jumps without the user operation, the password is not displayed on the window after jumping in a clear text manner, thereby ensuring the security of the personal information of the user.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
FIG. 1 is a flow chart of a first embodiment of an input control method of the present application;
FIG. 2 is a flow chart of a second embodiment of the input control method of the present application;
FIG. 3 is a flowchart of a third embodiment of an input control method of the present application;
FIG. 4 is a flowchart of an embodiment of an input recognition method of the present application;
FIG. 5 is a block diagram of an embodiment of an input control device of the present application;
FIG. 6 is a block diagram of an embodiment of an input recognition device according to the present application.
Detailed Description
The following embodiments of the invention provide an input control method, an input identification method and equipment.
In order to make the technical solutions in the embodiments of the present invention better understood and make the above objects, features and advantages of the embodiments of the present invention more comprehensible, the technical solutions in the embodiments of the present invention are described in further detail below with reference to the accompanying drawings.
Referring to fig. 1, it is a flowchart of a first embodiment of the input control method of the present application:
step 101: a change in input position of an input focus is detected.
When detecting that the input position of the input focus changes, detecting that the input focus controlled by the input operation changes from a first input position of the first window to a second input position of the second window; for example, when a user logs in a mailbox on a browser webpage, performs an operation of inputting a password, and then whether the user moves a cursor onto a WORD document or the WORD document preempts the focus so that the cursor jumps onto the WORD document, the input position of the input focus changes from the browser page (one window) to the WORD document (another window).
Or detecting that the input focus controlled by the input operation is changed from a first input position of the first window to a second input position of the first window. For example, currently, a user opens a web page through a browser and performs an operation of inputting a text in a text box in the web page, where a cursor is used as an input focus, an input position of the cursor moves in a left-to-right sequence, and then, whether the user moves the cursor to an address bar on the browser or the cursor jumps to the address bar on the browser, the input position of the input focus jumps from the web page on the browser (a window) to the address bar.
Or detecting that the input focus controlled by the non-input operation is changed from a first input position of the first window to a second input position of the second window; for example, when the current user opens a web page through a browser and browses the web page, the input focus is located on the current web page, and then the input focus is changed whether the user opens a new window or a new window pops up (e.g., a popped-up advertisement window), that is, the input position of the input focus is changed from the browser (a window) to the new window.
Specifically, during detection, first input position information before the input position of the input focus is changed and second input position information after the change can be acquired, whether the first input position information is consistent with the second input position information or not is judged, and if the first input position information is not consistent with the second input position information, the input position change of the input focus is determined.
Step 102: a time difference in which an input focus changes from a first input position to a second input position is acquired.
Acquiring a first time when an input focus is located at the first input position and a second time when the input focus is located at the second input position, and taking a difference value between the first time and the second time as a time difference when the input focus is changed from the first input position to the second input position.
Alternatively, a third timing at which the input focus is changed from the first input position to the second input position and a second timing at which the input focus is located at the second input position may be acquired, and a difference between the third timing and the second timing may be used as a time difference at which the input focus is changed from the first input position to the second input position.
Step 103: and judging whether the time difference is smaller than a preset threshold value.
Step 104: and when the time difference is smaller than a preset threshold value, jumping the input focus from the second input position to the first input position.
And after the input focus is jumped from the second input position to the first input position, displaying the input information input at the second input position at the first input position. Specifically, the input information in which the input focus is changed from the first input position to the second input position is stored, and the stored input information is displayed at the first input position.
In the embodiment, whether the change is the result of the user operation can be known by judging the time difference before and after the change, so that the focus can be prevented from returning to the position before the focus jump when the focus change is not manually operated, the experience in the input operation process of the user is improved, and the operation of the user for shifting the focus to the position before the change is reduced.
Referring to fig. 2, a flowchart of a second embodiment of the input control method of the present application is shown, which illustrates an input display control procedure when the input operation is a continuous input operation:
step 201: first input position information before the input position of the input focus is changed and second input position information after the change are acquired.
Step 202: and when the first input position information is judged to be inconsistent with the second input position information, determining that the input position of the input focus is changed.
Step 203: input information after an input focus is changed from a first input position to a second input position is stored.
The input position where the input focus is detected to be changed may be that the input focus controlled by the input operation is detected to be changed from a first input position of the first window to a second input position of the second window; or detecting that an input focus controlled by the input operation is changed from a first input position of the first window to a third input position of the first window; or detecting that the input focus controlled by the non-input operation is changed from a first input position of the first window to a second input position of the second window.
Step 204: a first time when the input focus is at the first input position and a second time when the input focus is at the second input position are obtained.
In this embodiment, for a continuous input situation, taking the case that a user inputs a password in a login page of a browser as an example, assuming that a cursor moves into a password text box, and a time when the cursor moves into the password text box is recorded as a first time, a webpage window pops up at this time, an input focus jumps to the webpage window, and a time when the input focus jumps to the webpage window is recorded as a second time.
Step 205: the difference between the first time and the second time is taken as a time difference when the input focus is changed from the first input position to the second input position.
Step 206: judging whether the time difference is smaller than a preset threshold value, if so, executing a step 207; otherwise, step 209 is performed.
The preset threshold is set to judge whether the input position of the input focus is changed due to human operation, generally if the input position is changed due to human operation, the operation of completing the input position change lasts for a certain time, i.e. the reaction time of human, and if the input position is not changed due to human operation, for example, a window for preempting the focus is popped up, the time is generally less than the reaction time of human, so the setting of the threshold may refer to the general reaction of human, for example, set to 0.1 second.
Step 207: and jumping an input focus of the input operation from the second input position to the first input position.
If the time difference is smaller than the preset threshold value, the input position of the input focus is changed and is not caused by the user, so that the input focus is jumped from the second input position to the first input position.
Step 208: and displaying the stored input information at the first input position, and ending the current flow.
Since the user continues to perform the input operation whose input information has been stored while the input focus is changed from the first input position to the second input position, the stored input information is displayed on the first input position after the input position of the input focus is restored from the second input position to the first input position.
Step 209: and displaying the stored input information at the second input position, and ending the current process.
And if the time difference is not smaller than the preset threshold value, the input position of the input focus is changed to be caused by the user, and therefore the stored input information is displayed on the second input position.
When we perform fast text input on a web page, some programs may preempt the focus, resulting in input information appearing in the wrong position. The common scenario is that when a user inputs on a webpage a, a window B pops up to preempt the original input focus, which results in that information which should be input on the webpage a is displayed on the window B, and particularly when password information is input on the webpage a, a password information conference plaintext mode is displayed on the window B, which causes leakage of personal information of the user. Therefore, by applying the embodiment, whether the input position change of the input focus is the manual operation of the user can be identified, so that the focus is prevented from returning to the position before the focus jump when the focus change is not the manual operation, the experience in the input operation process of the user is improved, and the operation of the user for transferring the focus to the position before the change is reduced.
Referring to fig. 3, it is a flowchart of a third embodiment of the input control method of the present application:
step 301: a change in input position of an input focus is detected.
When detecting that the input position of the input focus changes, detecting that the input focus controlled by the input operation changes from a first input position of the first window to a second input position of the second window; or detecting that the input focus controlled by the input operation is changed from the first input position of the first window to the third input position of the first window; or detecting that the input focus controlled by the non-input operation is changed from a first input position of the first window to a second input position of the second window.
Specifically, during detection, first input position information before the input position of the input focus is changed and second input position information after the change can be acquired, whether the first input position information is consistent with the second input position information or not is judged, and if the first input position information is not consistent with the second input position information, the input position change of the input focus is determined.
Step 302: a third timing when the input focus is changed from the first input position to the second input position, and a second timing when the input focus is at the second input position are acquired.
When the input operation is not limited to the continuous input operation, for example, when the user browses a web page, the first input position of the input focus is located on the web page, and after the user browses the web page for a certain period of time, if a window pops up, the input focus is changed from the first input position to the popup window, the start time when the input position is changed from the first input position to the second input position is used as the third time, and the end time when the input position is changed to the second input position is used as the second time.
Step 303: and taking the difference value between the third time and the second time as the time difference of the input focus from the first input position to the second input position.
Step 304: judging whether the time difference is smaller than a preset threshold value, if so, executing a step 305; otherwise, step 307 is executed.
The preset threshold is set to judge whether the input position of the input focus is changed due to human operation, generally if the input position is changed due to human operation, the operation of completing the input position change lasts for a certain time, i.e. the reaction time of human, and if the input position is not changed due to human operation, for example, a window for preempting the focus is popped up, the time is generally less than the reaction time of human, so the setting of the threshold may refer to the general reaction of human, for example, set to 0.1 second.
Step 305: and jumping an input focus of the input operation from the second input position to the first input position.
If the time difference is smaller than the preset threshold value, the input position of the input focus is changed and is not caused by the user, so that the input focus is restored from the second input position to the first input position.
Step 306: and displaying the stored input information at the first input position, and ending the current flow.
Since the user continues to perform the input operation whose input information has been stored while the input focus is changed from the first input position to the second input position, the stored input information is displayed on the first input position after the input position of the input focus is restored from the second input position to the first input position.
Step 307: and displaying the stored input information at the second input position, and ending the current process.
And if the time difference is not smaller than the preset threshold value, the input position of the input focus is changed to be caused by the user, and therefore the stored input information is displayed on the second input position.
Referring to fig. 4, which is a flowchart of an embodiment of an input recognition method applied in an electronic device having an input focus, wherein the electronic device controls an input position change of the input focus in response to a normal input, and the electronic device controls an input position change of the input focus in response to an abnormal input:
step 401: a change in input position of an input focus is detected.
When detecting that the input position of the input focus changes, detecting that the input focus controlled by the input operation changes from a first input position of the first window to a second input position of the second window; for example, when a user logs in a mailbox on a browser webpage, performs an operation of inputting a password, and then whether the user moves a cursor onto a WORD document or the WORD document preempts the focus so that the cursor jumps onto the WORD document, the input position of the input focus changes from the browser page (one window) to the WORD document (another window).
Or detecting that the input focus controlled by the input operation is changed from a first input position of the first window to a second input position of the first window. For example, currently, a user opens a web page through a browser and performs an operation of inputting a text in a text box in the web page, where a cursor is used as an input focus, an input position of the cursor moves in a left-to-right sequence, and then, whether the user moves the cursor to an address bar on the browser or the cursor jumps to the address bar on the browser, the input position of the input focus jumps from the web page on the browser (a window) to the address bar.
Or detecting that the input focus controlled by the non-input operation is changed from a first input position of the first window to a second input position of the second window; for example, when the user opens a web page through a browser and browses the web page, the input focus is located on the current web page, and then the input focus changes whether the user opens a new window or a new window pops up, that is, the input position of the input focus changes from the browser (a window) to the new window.
Specifically, during detection, first input position information before the input position of the input focus is changed and second input position information after the change can be acquired, whether the first input position information is consistent with the second input position information or not is judged, and if the first input position information is not consistent with the second input position information, the input position change of the input focus is determined.
Step 402: a time difference in which an input focus changes from a first input position to a second input position is acquired.
Acquiring a first time when an input focus is located at the first input position and a second time when the input focus is located at the second input position, and taking a difference value between the first time and the second time as a time difference when the input focus is changed from the first input position to the second input position.
Alternatively, when the input operation is not limited to a continuous input operation, a third timing at which the input focus is changed from the first input position to the second input position and a second timing at which the input focus is located at the second input position may be acquired, and a difference between the third timing and the second timing may be used as a time difference at which the input focus is changed from the first input position to the second input position.
Step 403: judging whether the time difference is smaller than a preset threshold value, if so, executing a step 404; otherwise, step 405 is performed.
Step 404: and determining that the input position change of the input focus is abnormal input generation, and ending the current process.
Further, after the input position change of the input focus is determined to be not caused by user operation, the input focus can be controlled to jump from the second input position to the first input position, and input information input at the second input position is displayed at the first input position; or sending alarm information to prompt the user that the input position change event of the input focus of non-manual operation currently occurs.
Step 405: and determining that the input position of the input focus is changed into normal input generation, and ending the current process.
The abnormal input mainly refers to input operation which is not intended by the user, for example, input operation caused by a window which pops up automatically, or input operation caused by the fact that the user touches a touch pad carelessly with a finger in the process of inputting by using a notebook keyboard.
Corresponding to the embodiments of the input control method and the input identification method, the application also provides embodiments of an input control device and an input identification device.
Referring to fig. 5, a block diagram of an embodiment of an input control device according to the present application is shown:
the input control apparatus includes: a detection unit 510, an acquisition unit 520, a judgment unit 530, and a control unit 540.
Wherein, the detecting unit 510 is used for detecting the input position change of the input focus;
an acquiring unit 520 for acquiring a time difference when the input focus is changed from a first input position to a second input position;
a determining unit 530, configured to determine whether the time difference is smaller than a preset threshold;
a control unit 540, configured to jump the input focus from the second input position to the first input position when the time difference is smaller than the preset threshold.
Specifically, the detecting unit 510 may include at least one of the following units (not shown in fig. 5) according to whether the input position of the input focus varies in the same window:
a first detection unit for detecting that an input focus controlled by an input operation is changed from a first input position of the first window to a second input position of the second window;
a second detection unit for detecting that an input focus controlled by an input operation is changed from a first input position of the first window to a second input position of the first window;
and a third detection unit for detecting that the input focus controlled by the non-input operation is changed from the first input position of the first window to the second input position of the second window.
In particular, the detection unit 510 may include (not shown in fig. 5):
an information acquisition unit configured to acquire first input position information before a change in an input position of the input focus and second input position information after the change;
and the information judging unit is used for judging whether the first input position information is consistent with the second input position information or not, and if not, determining that the input position of the input focus is changed.
In particular, the obtaining unit 520 may include (not shown in fig. 5):
a first time acquisition unit configured to acquire a first time when the input focus is located at the first input position and a second time when the input focus is located at the second input position;
a first time difference acquisition unit configured to take a difference value between the first time and the second time as a time difference when the input focus is changed from a first input position to a second input position.
In particular, the obtaining unit 520 may also include (not shown in fig. 5):
a second timing acquisition unit configured to acquire a third timing at which the input focus is changed from a first input position to a second input position, and a second timing when the input focus is at the second input position;
a second time difference acquisition unit configured to take a difference value between the third time and the second time as a time difference when the input focus is changed from the first input position to the second input position.
Further, the control unit 540 is further configured to display the input information input at the second input position at the first input position after jumping the input focus from the second input position to the first input position; in particular, the control unit 540 may include (not shown in fig. 5):
an information storage unit for storing input information after the input focus is changed from a first input position to a second input position;
a display control unit for displaying the stored input information on the first input position.
Further, the control unit 540 is further configured to display the input information of the input operation at the second input position when the time difference is greater than the preset threshold.
Referring to fig. 6, a block diagram of an embodiment of an input recognition device according to the present application, the electronic device having an input focus, wherein the electronic device controls input position change of the input focus in response to a normal input, and the electronic device controls input position change of the input focus in response to an abnormal input:
the input recognition apparatus includes: a detection unit 610, an acquisition unit 620, a judgment unit 630 and an identification unit 640.
Wherein, the detecting unit 610 is used for detecting the input position change of the input focus;
an acquiring unit 620 configured to acquire a time difference when the input focus changes from a first input position to a second input position;
a determining unit 630, configured to determine whether the time difference is smaller than a preset threshold;
the recognition unit 640 is configured to determine that the input position change of the input focus is the abnormal input generation when the time difference is smaller than the preset threshold, and determine that the input position change of the input focus is the normal input generation when the time difference is larger than the preset threshold.
Further, the apparatus may further comprise (not shown in fig. 6): and the control unit is used for controlling the input focus to jump from a second input position to the first input position after the recognition unit determines that the input position of the input focus is changed into the abnormal input, and displaying the input information input at the second input position at the first input position.
As can be seen from the description of the above embodiments, in the embodiments of the present application, when detecting an input position change of an input focus, a time difference between a change of the input focus from a first input position to a second input position is obtained, whether the time difference is smaller than a preset threshold is determined, and when the time difference is smaller than the preset threshold, the input focus is skipped from the second input position to the first input position. When the focus of the input operation is changed, whether the change is the result of the user operation can be known by judging the time difference before and after the change, so that the focus can be prevented from returning to the position before focus jump when the focus is changed and the focus is not manually operated, the experience of the user in the input operation process is improved, and the operation of the user for transferring the focus to the position before the change is reduced; particularly, when the user inputs the password in the current window, if the focus jumps without the user operation, the password is not displayed on the window after jumping in a clear text manner, thereby ensuring the security of the personal information of the user.
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above-described embodiments of the present invention do not limit the scope of the present invention. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (19)

1. An input control method, comprising:
detecting a change in an input position of an input focus;
acquiring a time difference of the input focus changing from a first input position to a second input position;
judging whether the time difference is smaller than a preset threshold value or not;
jumping the input focus from the second input position to the first input position when the time difference is less than the preset threshold.
2. The method of claim 1, wherein the detecting a change in input position of the input focus comprises:
detecting that an input focus controlled by an input operation is changed from a first input position of a first window to a second input position of a second window; or,
detecting that an input focus controlled by an input operation is changed from a first input position of a first window to a second input position of the first window; or,
an input focus controlled by a non-input operation is detected to change from a first input position of a first window to a second input position of a second window.
3. The method of claim 1, wherein the detecting a change in input position of the input focus comprises:
acquiring first input position information before the input position of the input focus is changed and second input position information after the input position is changed;
and judging whether the first input position information is consistent with the second input position information or not, and if not, determining that the input position of the input focus is changed.
4. The method of claim 1, wherein said obtaining a time difference for the input focus to change from a first input position to a second input position comprises:
acquiring a first moment when the input focus is positioned at the first input position and a second moment when the input focus is positioned at the second input position;
and taking the difference value between the first time and the second time as the time difference of the input focus from the first input position to the second input position.
5. The method of claim 1, wherein said obtaining a time difference for the input focus to change from a first input position to a second input position comprises:
acquiring a third moment when the input focus is changed from a first input position to a second input position and a second moment when the input focus is positioned at the second input position;
and taking the difference value between the third time and the second time as the time difference of the input focus from the first input position to the second input position.
6. The method of claim 1, wherein after jumping the input focus from the second input position to the first input position, the method further comprises:
and displaying the input information input at the second input position at the first input position.
7. The method of claim 6, wherein displaying the input information input at the second input location at the first input location comprises:
storing the input information after the input focus is changed from a first input position to a second input position;
displaying the stored input information on the first input location.
8. The method of claim 1, further comprising:
and when the time difference is larger than the preset threshold value, displaying the input information input at the second input position.
9. An input recognition method applied to an electronic device having an input focus, wherein the electronic device controls input position change of the input focus in response to a normal input, and the electronic device controls input position change of the input focus in response to an abnormal input, comprising:
detecting a change in an input position of an input focus;
acquiring a time difference of the input focus changing from a first input position to a second input position;
judging whether the time difference is smaller than a preset threshold value or not;
when the time difference is smaller than the preset threshold, determining that the input position change of the input focus is the abnormal input generation, and when the time difference is larger than the preset threshold, determining that the input position change of the input focus is the normal input generation.
10. The method of claim 9, wherein after determining that the input position change of the input focus is the abnormal input, further comprising:
controlling the input focus to jump from a second input position to the first input position;
and displaying the input information input at the second input position at the first input position.
11. An input control apparatus, comprising:
a detection unit for detecting a change in an input position of an input focus;
an acquisition unit configured to acquire a time difference in which the input focus changes from a first input position to a second input position;
the judging unit is used for judging whether the time difference is smaller than a preset threshold value or not;
and the control unit is used for jumping the input focus from the second input position to the first input position when the time difference is smaller than the preset threshold value.
12. The apparatus according to claim 11, characterized in that the detection unit comprises at least one of the following units:
a first detection unit for detecting that an input focus controlled by an input operation is changed from a first input position of the first window to a second input position of the second window;
a second detection unit for detecting that an input focus controlled by an input operation is changed from a first input position of the first window to a second input position of the first window;
and a third detection unit for detecting that the input focus controlled by the non-input operation is changed from the first input position of the first window to the second input position of the second window.
13. The apparatus of claim 11, wherein the detection unit comprises:
an information acquisition unit configured to acquire first input position information before a change in an input position of the input focus and second input position information after the change;
and the information judging unit is used for judging whether the first input position information is consistent with the second input position information or not, and if not, determining that the input position of the input focus is changed.
14. The apparatus of claim 11, wherein the obtaining unit comprises:
a first time acquisition unit configured to acquire a first time when the input focus is located at the first input position and a second time when the input focus is located at the second input position;
a first time difference acquisition unit configured to take a difference value between the first time and the second time as a time difference when the input focus is changed from a first input position to a second input position.
15. The apparatus of claim 11, wherein the obtaining unit comprises:
a second timing acquisition unit configured to acquire a third timing at which the input focus is changed from a first input position to a second input position, and a second timing when the input focus is at the second input position;
a second time difference acquisition unit configured to take a difference value between the third time and the second time as a time difference when the input focus is changed from the first input position to the second input position.
16. The apparatus according to claim 11, wherein the control unit is further configured to display the input information input at the second input position at the first input position after jumping the input focus from the second input position to the first input position;
the control unit includes:
an information storage unit for storing input information after the input focus is changed from a first input position to a second input position;
a display control unit for displaying the stored input information on the first input position.
17. The apparatus according to claim 11, wherein the control unit is further configured to display the input information input at the second input position when the time difference is greater than the preset threshold.
18. An input recognition device, the electronic device having an input focus, wherein the electronic device controls a change in an input position of the input focus in response to a normal input, and wherein the electronic device controls a change in an input position of the input focus in response to an abnormal input, comprising:
a detection unit for detecting a change in an input position of an input focus;
an acquisition unit configured to acquire a time difference in which the input focus changes from a first input position to a second input position;
the judging unit is used for judging whether the time difference is smaller than a preset threshold value or not;
and the identification unit is used for determining that the input position change of the input focus is the abnormal input generation when the time difference is smaller than the preset threshold value, and determining that the input position change of the input focus is the normal input generation when the time difference is larger than the preset threshold value.
19. The apparatus of claim 18, further comprising:
and the control unit is used for controlling the input focus to jump from a second input position to the first input position after the recognition unit determines that the input position of the input focus is changed into the abnormal input, and displaying the input information input at the second input position at the first input position.
CN201110061287.5A 2011-03-15 2011-03-15 Input control method, input recognition method and equipment Active CN102681751B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110061287.5A CN102681751B (en) 2011-03-15 2011-03-15 Input control method, input recognition method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110061287.5A CN102681751B (en) 2011-03-15 2011-03-15 Input control method, input recognition method and equipment

Publications (2)

Publication Number Publication Date
CN102681751A true CN102681751A (en) 2012-09-19
CN102681751B CN102681751B (en) 2015-09-23

Family

ID=46813766

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110061287.5A Active CN102681751B (en) 2011-03-15 2011-03-15 Input control method, input recognition method and equipment

Country Status (1)

Country Link
CN (1) CN102681751B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103777878A (en) * 2012-10-22 2014-05-07 联想(北京)有限公司 Method for controlling positioning identification and electronic device
CN105808222A (en) * 2014-12-31 2016-07-27 中兴通讯股份有限公司 Character input method and device
CN116069209A (en) * 2022-05-16 2023-05-05 荣耀终端有限公司 Focus window processing method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1525313A (en) * 2003-01-31 2004-09-01 微软公司 Insertion location tracking for controlling a user interface
CN101539832A (en) * 2008-03-20 2009-09-23 达方电子股份有限公司 Input device with function of a scroll bar, touch control panel thereof and electronic device
CN101630194A (en) * 2008-07-18 2010-01-20 联想(北京)有限公司 Terminal equipment and startup method of application programs
WO2010015485A1 (en) * 2008-08-07 2010-02-11 International Business Machines Corporation Managing gui control auto-advancing
CN101719014A (en) * 2008-10-09 2010-06-02 联想(北京)有限公司 Input display method
CN101770307A (en) * 2008-12-31 2010-07-07 宏达国际电子股份有限公司 Hand-held electronic device and operation method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1525313A (en) * 2003-01-31 2004-09-01 微软公司 Insertion location tracking for controlling a user interface
CN101539832A (en) * 2008-03-20 2009-09-23 达方电子股份有限公司 Input device with function of a scroll bar, touch control panel thereof and electronic device
CN101630194A (en) * 2008-07-18 2010-01-20 联想(北京)有限公司 Terminal equipment and startup method of application programs
WO2010015485A1 (en) * 2008-08-07 2010-02-11 International Business Machines Corporation Managing gui control auto-advancing
CN101719014A (en) * 2008-10-09 2010-06-02 联想(北京)有限公司 Input display method
CN101770307A (en) * 2008-12-31 2010-07-07 宏达国际电子股份有限公司 Hand-held electronic device and operation method thereof

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103777878A (en) * 2012-10-22 2014-05-07 联想(北京)有限公司 Method for controlling positioning identification and electronic device
CN103777878B (en) * 2012-10-22 2018-04-27 联想(北京)有限公司 A kind of method and electronic equipment for controlling positioning mark
CN105808222A (en) * 2014-12-31 2016-07-27 中兴通讯股份有限公司 Character input method and device
CN116069209A (en) * 2022-05-16 2023-05-05 荣耀终端有限公司 Focus window processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN102681751B (en) 2015-09-23

Similar Documents

Publication Publication Date Title
US9058105B2 (en) Automated adjustment of input configuration
CN108399124B (en) Application testing method and device, computer equipment and storage medium
KR20140091555A (en) Measuring web page rendering time
CN106775727B (en) Control method and device of mobile terminal
KR102287948B1 (en) Apparatus and method for processing animation
CN106162362B (en) Video playing method and player
CN103678307A (en) Page display method and client-side
CN110162798A (en) Document translation method, apparatus, computer readable storage medium and computer equipment
CN104375862A (en) Progress bar showing method and device
US20170168857A1 (en) Information prompting method, devices, computer program and storage medium
CN103581987B (en) The test method and device of the page download speed of mobile terminal device
CN105183291A (en) Method and system for extracting information in display interface
JP2016531352A (en) Method, device, program and device for updating input system
CN102681751B (en) Input control method, input recognition method and equipment
CN105359131B (en) Tie selection handle
CN114036501A (en) APP detection method, system, device, equipment and storage medium
CN104346119B (en) The method and electronic equipment of display
US20170031879A1 (en) Detecting text truncation in a graphical user interface
CN106789973B (en) Page security detection method and terminal equipment
CN109492163B (en) List display recording method and device, terminal equipment and storage medium
US20160217721A1 (en) Information processing system, terminal apparatus, information processing apparatus, information processing method
US8922491B2 (en) Method and apparatus enabling keystroke acceleration
CN106033292A (en) Method and device for controlling display object
CN107967363B (en) Data processing method and device and electronic equipment
CN106897012A (en) User instruction is recognized and processing method, device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant