WO2011023092A1 - 一种键盘纠错方法及装置 - Google Patents

一种键盘纠错方法及装置 Download PDF

Info

Publication number
WO2011023092A1
WO2011023092A1 PCT/CN2010/076260 CN2010076260W WO2011023092A1 WO 2011023092 A1 WO2011023092 A1 WO 2011023092A1 CN 2010076260 W CN2010076260 W CN 2010076260W WO 2011023092 A1 WO2011023092 A1 WO 2011023092A1
Authority
WO
WIPO (PCT)
Prior art keywords
key value
normal
key
value
determining
Prior art date
Application number
PCT/CN2010/076260
Other languages
English (en)
French (fr)
Inventor
安文吉
Original Assignee
华为终端有限公司
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 华为终端有限公司 filed Critical 华为终端有限公司
Publication of WO2011023092A1 publication Critical patent/WO2011023092A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • G06F3/0237Character input methods using prediction or retrieval techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus

Definitions

  • the present invention relates to the field of communications, and in particular, to a keyboard error correction method and apparatus.
  • the full keyboard structure used on some mobile phones is shown in Figure 1.
  • the ⁇ * small and close distance on the keyboard makes it easy for the mobile phone user to press the target around the target while pressing the target button, thereby causing a misoperation of the ⁇ 3 ⁇ 4.
  • the design of the keyboard is generally optimized to reduce the probability of user's button misoperation.
  • the keyboard structure optimization can not achieve a good reduction of key misoperation. effect.
  • the technical problem to be solved by the present invention is to provide a keyboard error correction method and apparatus, which can reduce the probability of occurrence of a button misoperation.
  • An embodiment of the present invention provides a keyboard error correction method, including: scanning a key value of a button pressed by a user, and sorting the key value according to a scanned time of the key value to obtain a key value sequence; Determining the time interval between the key value of the normal key value and the scanned time of the key value after the normal key value and/or the positional relationship between the keys corresponding to the key value, determining that the scanned time is at the normal key value Whether the subsequent key value is a user misoperation key value; discarding the user misoperation key value.
  • the embodiment of the present invention further provides a keyboard error correction device, including: a scanning unit, configured to scan a key value of a button pressed by a user, and sort the key value according to the scanned time of the key value to obtain a key value sequence; A time interval between a key value determined to be the normal key value in the sequence of key values and a scan time of the key value after the normal key value, and/or a positional relationship between the keys corresponding to the key value Determining whether the key value after the normal time value of the scan time is a user misoperation key value; and discarding the unit, for discarding the user misoperation key value.
  • a scanning unit configured to scan a key value of a button pressed by a user, and sort the key value according to the scanned time of the key value to obtain a key value sequence
  • the technical effect analysis of the above technical solution is as follows: According to the time interval between the key value of the latest key value determined as the normal key value and the scanned time of the key value after the normal key value, and/or the The positional relationship between the keys corresponding to the key value determines that the user misplaces the key value and discards, so that the key value that is determined to be the normal key value is used as the judgment reference, according to the time interval between the time when the key value is scanned and/or The positional relationship between the corresponding keys determines the user's misoperation key value, so that the key value of the user's misoperation ⁇ I can be recognized and discarded, and the probability of occurrence of the user's key operation is reduced.
  • FIG. 1 is a diagram showing an example of a full keyboard structure of a prior art mobile phone
  • FIG. 2 is a schematic flow chart of a method for correcting a keyboard according to an embodiment of the present invention
  • FIG. 3 is a schematic flow chart of another method for correcting a keyboard according to an embodiment of the present invention.
  • 3a is a schematic diagram of a positional relationship between ⁇ fe: in the embodiment of the present invention.
  • 3b is a schematic diagram showing another positional relationship between ⁇ 3 ⁇ 4: in the embodiment of the present invention.
  • FIG. 4 is a schematic flow chart of another method for correcting a keyboard according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a keyboard error correction device according to an embodiment of the present invention.
  • FIG. 5a is a schematic structural diagram of another keyboard error correction apparatus according to an embodiment of the present invention.
  • Step 201 Scan a key value of a button pressed by a user, and sort the key value according to the scanned time of the key value to obtain a key value. sequence.
  • the method for scanning the key value of the user can be implemented by using a method for scanning a key value in the prior art, which is not described here.
  • any "simultaneously pressed" keys are chronologically ordered, and correspondingly, they all correspond to different scanned times.
  • the scanned time is referred to in the following. The time the key was scanned.
  • the scanned time of the key value can be discriminated by the scanning method, and the specific scanning method can be realized by the driving code.
  • the scanning of the key value is completed at the driving layer, and the information corresponding to the key value of the scanned key is generally sent to the application layer for subsequent processing, for example, subsequent steps 202 and 203, etc., because if the driving layer is Performing subsequent judgments and other operations may affect the button response speed.
  • Step 202 According to the time interval between the key value of the latest key value determined as the normal key value and the scanned time of the key value after the normal key value, and/or the position between the keys corresponding to the key value The relationship determines whether the key value after the normal time value of the scanned time is a user misoperation key value.
  • Step 203 Discard the user misoperation key value.
  • the keyboard error correction method of the embodiment of the present invention shown in FIG. 2 uses the key value determined as the normal key value as the judgment reference, according to the time interval between the scan time of the key value and/or the key corresponding to the key value. The positional relationship determines that the user misplaces the key value and discards it, thereby reducing the probability of occurrence of user key operation.
  • FIG. 3 is a schematic flowchart of another method for correcting a keyboard according to an embodiment of the present invention. As shown in FIG. 3, the method includes the following steps: Step 301: Scan a key value of a button pressed by a user, and sort the key value according to the scanned time of the key value. Key sequence.
  • Step 302 Determine whether the button corresponding to the key value of the latest key value determined as the normal key value in the key sequence is adjacent to the key corresponding to the next key value of the normal key value, and if so, Go to step 303; otherwise, go to step 305.
  • the first key value in the obtained key value sequence may be determined as a normal key value obtained by the normal operation of the user, and the normal key value is as a key after the normal key value
  • the value is the criterion for the normal key value or the misoperation key value.
  • this step when it is determined whether the two key values are adjacent in position, as shown in FIG.
  • the response speed has an influence, and in general, the user is less likely to mishandle the four buttons except the up, down, left, and right buttons around the target button that is desired to be pressed. Therefore, generally, one step is judged in this step. Whether the button is located at the top, bottom, left, and right positions of the other button, so that judging the eight positional relationships between the two buttons, only determining the four positional relationships between the two buttons greatly reduces the judgment operation in this step. For the effect of button response speed.
  • a table may be preset to store adjacent keys corresponding to all keys on the keyboard that may have misoperations, wherein, for some keys with low possibility of misoperation, the keys may not be Set in this table, there is no limit here.
  • Step 303 Determine whether the time interval between the scanned times of the two key values is not greater than a preset time interval. If yes, go to step 304, otherwise, go to step 305.
  • the user's normal button key value may be misidentified as the user's misoperation key value and discarded. If the time interval value is too small, it will not be able to judge the user's misoperation key value. Therefore, you should consider the specific settings according to the user's button speed when setting.
  • the user may be provided with a guide value, and the user may set a specific value of the time interval autonomously; or, a specific time interval value may be preset in the device.
  • Step 304 Discard the last key value of the normal key value, and return to step 302 to continue to determine the next key value in the key value sequence based on the normal key value.
  • the two keys may be determined.
  • the latter key value in the value is the user's misoperation key value, so that the user misuses the key value and discards (ie, the latter key value), and then returns to step 302 to continue to determine the next key value.
  • the key sequence is four key values A, B, C, and D, and A is the most recently determined normal key value, which is the judgment criterion; the two key values judged in the current step 302 are A, B, and B are determined as If the user misuses the key value, B is discarded, and then returns to step 302 to continue to determine whether C is a user misoperation key value based on A.
  • Step 305 Determine that the next key value of the normal key value is a normal key value, and return to step 302 to determine whether the next key value in the key value sequence is a user misoperation by using a key value that is currently determined to be a normal key value.
  • Key value is four key values A, B, C, and D.
  • the two key values determined in the current step 302 are A and B, and the normal key A is the judgment reference; in this step, A is displayed to the user, and Discard B, and then return to step 302 to continue to determine whether C is a user misoperation key value based on A. If the result of the determination in step 303 is no, it may be determined that the latter key value is a normal operation key value of the user, that is, a normal key value. Therefore, when returning to step 302, the normal key value is determined according to the latest, that is, The latter key value determines whether the next key value of the latter key value in the key value sequence is an erroneous operation key value. This loops until the last key in the sequence of key values.
  • the key sequence is four key values of eight, B, C, and D, and A is the latest determined normal key value, which is the judgment criterion; the two key values judged in the current step 302 are A, B, and B are determined as Normal key value, then return to step At step 302, it is determined whether B is a user misoperation key value based on B.
  • the normal key value will be displayed on the display screen, and the corresponding key value in the key value sequence can be deleted correspondingly, thereby reducing the number of key values in the key value sequence, thereby reducing the resource occupation of the keyboard error correction device. Improve the data processing efficiency of the keyboard error correction device.
  • step 303 may not be performed.
  • step 304 is directly executed; if the determination result is no, step 305 is directly executed; The determination of the user's misoperation of the button can be completed.
  • FIG. 4 is a schematic flowchart of another method for correcting a keyboard according to an embodiment of the present invention. As shown in FIG. 4, the method includes the following steps: Step 401: Scan a key value of a button pressed by a user, and sort the key value according to the scanned time of the key value. Key sequence. This step can refer to step 201, which is not described here.
  • Step 402 Determine whether the time interval between the scanned time of the last key value of the latest key value determined as the normal key value and the scanned time of the normal key value is not greater than a preset time interval, and if so, execution Step 403, otherwise, step 405 is performed.
  • the latest value determined as the normal key value is divided into two cases: the key value corresponding to the first key of the user detected when the user initially performs the key operation is a normal key value; or, the step is determined by the loop judgment process. 404 or step 405 determines the resulting normal key value.
  • the key value is generally the key value of the key time sequence that is not displayed to the user and is the highest before the scan time.
  • Step 403 Determine whether the key corresponding to the key interval of the preset time interval is not adjacent to the key corresponding to the latest key value determined as the normal key value, and if yes, perform step 404. Otherwise, go to step 405.
  • Step 404 Determine that the next key value is a user misoperation key value, discard the user misoperation key value, and return to step 402 to determine the next key value in the key value sequence based on the normal key value. If the result of the determination in step 403 is YES, it may be determined that the time interval is not greater than a preset time interval, and the key value of the corresponding button and the button corresponding to the normal key value is The user mishandles the key value, thereby discarding the user's misoperation key value.
  • Step 405 Determine that the next key value is a normal key value, and return to step 402 to determine whether the next key value in the key value sequence is a user misoperation key value by using a key value currently determined as a normal key value. . If the result of the determination in step 403 is no, it may be determined that there is no misoperation key value associated with the normal key value, and therefore, determining that the latter key value is a normal key value, and continuing to be up to date The key value determined as the normal key value (i.e., the latter key value) is used as a reference to determine whether the next key value is a user misoperation key value, and so on, until the last key value in the sequence.
  • the normal key value will be displayed on the display screen, and the corresponding key value in the key value sequence can be deleted correspondingly, thereby reducing the number of key values in the key value sequence, thereby reducing the resource occupation of the keyboard error correction device.
  • the time interval between the scan time and the scan time is first determined, and then, according to the key value, ⁇ ! The positional relationship between the establishments is judged, and the user's misoperation key value is discarded according to the judgment result, thereby reducing the occurrence probability of the user's key operation error.
  • step 403 may not be performed.
  • step 404 is directly executed; if the determination result is no, step 405 is directly executed;
  • the determination of the user's misoperation of the button can be completed, but compared to the one shown in FIG.
  • the method for determining the user's misoperation of the button is determined according to the time interval between the scan time of the key value and the positional relationship corresponding to the key value, and the accuracy of the user's misoperation of the button is determined to be low.
  • the key value of the user's misoperation is determined according to the time interval between the scan time of the key value and the positional relationship between the key values.
  • FIG. 5 is a schematic structural diagram of a keyboard error correction device according to an embodiment of the present invention. As shown in FIG. 5, the method includes: a scanning unit 510, configured to scan a key value of a button pressed by a user, and scan a time pair key according to a key value.
  • the value sorting results in a sequence of key values; the determining unit 520 is configured to: according to the time interval between the key value of the latest key value determined as the normal key value and the scanned time of the key value after the normal key value, and/or Or determining a positional relationship between the keys corresponding to the key value, determining whether the key value after the normal time value of the scan time is a user misoperation key value; and discarding unit 530, configured to discard the user misoperation key value.
  • the keyboard error correction device may further include: a display unit 540, Used to display normal key values.
  • the determining unit 520 may determine the user's erroneous operation key value only according to the positional relationship of the key corresponding to the key value.
  • the determining unit 520 may be specifically configured to: determine that the latest key value of the key value sequence is determined as a normal key value. Whether the button corresponding to the key value and the key corresponding to the next key value of the normal key value are adjacent in position, and if so, determining that the next key value of the normal key value is the user misoperation key value; No, it is determined that the latter key value is a normal key value. Further, the determining unit 520 further determines whether the key value is an erroneous operation key value according to a time interval between the scanning time of the two key values in determining the positional relationship of the positional relationship of the key corresponding to the key value.
  • the determining unit 520 may further be configured to: after determining that the two key values are adjacent to each other, determine between the newly determined key value of the normal key value and the scanned time of the next key value of the normal key value Whether the time interval is not greater than the preset time interval, and if so, performing the operation of determining that the user mishandles the key value; if not, determining that the latter key value is a normal key value.
  • the determining unit 520 may determine whether the key value is an erroneous operation key value only according to a time interval between the scan time of the two key values adjacent to the scan time.
  • the determining unit 520 may specifically use to: Determining whether the time interval between the scanned time of the last key value of the latest key value determined as the normal key value and the scanned time of the normal key value is not greater than a preset time interval, and if so, determining that the latest is determined The latter key value of the key value of the normal key value is the user's misoperation key value, and if not, the last key value of the key value determined to be the normal key value is the normal key value. Further, the determining unit 520 may further determine, according to the time interval between the scanned times of the two key values, whether the key value is an erroneous operation key value, and then according to the positional relationship between the keys corresponding to the two key values.
  • the determining unit 520 may further be configured to: determine that the time interval between the scan time and the normal key value scan time is not greater than a preset time interval After the key value, it is determined whether the button corresponding to the last key value of the latest determined key value is adjacent to the button corresponding to the normal key value, and if so, performing the determination is the latest
  • the latter key value of the key value determined as the normal key value is the user's erroneous operation key value operation, and if not, it is determined that the last key value of the latest key value determined as the normal key value is the normal key value.
  • the keyboard error correction method and apparatus can be applied to all devices with a keyboard, such as a mobile phone with a keyboard, a computer, a factory industrial computer, and the like, which are not limited herein.
  • a person skilled in the art can understand that the process of implementing the keyboard error correction method of the above embodiment can be completed by hardware related to program instructions, and the program can be stored in a readable storage medium, and the program executes the above method when executed. The corresponding steps in .
  • the storage medium can be as follows:

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Input From Keyboards Or The Like (AREA)

Description

一种键盘纠错方法及装置
本申请要求于 2009 年 8 月 31 日提交中国专利局、 申请号为 200910171813.6、 发明名称为 "一种键盘纠错方法及装置" 的中国专利申 请的优先权, 其全部内容通过引用结合在本申请中。 技术领域
本发明涉及通信领域, 尤其涉及一种键盘纠错方法及装置。
背景技术
为了达到便携、 功能完善等目的, 目前人们使用的各种电子设备如手机、 计算机等的体积越来越小 , 从而使得其进行字符输入的键盘的体积越来越小 , 键盘上的^^大小以及按键之间的距离也不断缩小。
以手机为例, 目前部分手机上使用的全键盘结构如图 1所示。 从该图中 可以看出, 键盘上的^ *小、 距离近, 手机用户很容易在按下目标按键的同 时, 错误地按下目标^ ¾周围的 ^走, 从而出现^ ¾的误操作。
现有技术中, 一般通过在键盘的结构设计上不断优化, 以减少用户按键 误操作的概率, 但是, 由于键盘尺寸越来越小, 进行键盘结构优化已无法达 到很好的减少按键误操作的效果。
发明内容 有鉴于此, 本发明要解决的技术问题是, 提供一种键盘纠错方法及装置, 能够降低按键误操作的发生概率。
为此, 本发明实施例采用如下技术方案: 本发明实施例提供一种键盘纠错方法, 包括: 扫描用户所按下按键的键值, 并按照键值的被扫描时间对键值排序得到 键值序列; 根据键值序列中最新被确定为正常键值的键值与位于所述正常键值之后 的键值的被扫描时间之间的时间间隔和 /或键值所对应按键之间的位置关系, 确定被扫描时间位于所述正常键值之后的键值的是否是用户误操作键值; 丢弃所述用户误操作键值。 本发明实施例还提供一种键盘纠错装置, 包括: 扫描单元, 用于扫描用户所按下按键的键值, 并按照键值的被扫描时间 对键值排序得到键值序列; 判断单元, 用于根据键值序列中最新被确定为正常键值的键值与位于所 述正常键值之后的键值的被扫描时间之间的时间间隔和 /或键值所对应按键之 间的位置关系, 确定被扫描时间位于所述正常键值之后的键值的是否是用户 误操作键值; 丢弃单元, 用于丢弃所述用户误操作键值。 对于上述技术方案的技术效果分析如下: 根据键值序列中最新被确定为正常键值的键值与位于所述正常键值之后 的键值的被扫描时间之间的时间间隔和 /或所述键值所对应按键之间的位置关 系, 确定用户误操作键值并丢弃, 从而以最新被确定为正常键值的键值作为 判断基准, 根据键值之间被扫描时间的时间间隔和 /或所对应按键之间的位置 关系确定用户误操作键值, 从而能够识别出用户误操作 ^I 的键值进行丢弃, 降低了用户按键误操作的发生概率。 附图说明
图 1为现有技术手机全键盘结构示例图;
图 2为本发明实施例一种键盘纠错方法流程示意图;
图 3为本发明实施例另一种键盘纠错方法流程示意图;
图 3a为本发明实施例中■fe :之间一种位置关系示意图;
图 3b为本发明实施例中 ^¾:之间另一种位置关系示意图;
图 4为本发明实施例另一种键盘纠错方法流程示意图;
图 5为本发明实施例一种键盘纠错装置结构示意图;
图 5a为本发明实施例另一种键盘纠错装置结构示意图。
具体实施方式 目前, 多是通过对键盘结构的优化设计达到降低按键误操作发生概率的 目的。 但是, 由于手机等需要键盘的电子设备的体积不断减小, 键盘的尺寸 也需要相应的不断缩小。 由此, 在键盘尺寸的限制下, 键盘结构的优化设计 已不能很好的降低按键误操作的发生概率。 据此, 本发明实施例提供一种键盘纠错方法及装置, 以软件方式降低按 键误操作的发生概率。 以下, 结合附图详细说明本发明实施例键盘纠错方法及装置的实现。 图 2为本发明实施例键盘纠错方法流程示意图, 如图 2所示, 包括: 步驟 201 : 扫描用户所按下按键的键值, 并按照键值的被扫描时间对键 值排序得到键值序列。 其中, 扫描用户^ ¾的键值的方法可以使用现有技术中的扫描按键键值 的方法实现, 这里不赘述。 对于扫描键值来说, 任何 "同时按下" 的键都是有时间先后顺序的, 相 应的, 也都对应着不同的被扫描到的时间, 所述被扫描到的时间在后文中称 为该键值的被扫描时间。 键值的被扫描时间通过扫描方法即可判别出来, 具 体的扫描方法可以通过驱动代码实现。 一般的, 进行键值的扫描在驱动层完 成, 而扫描到的按键的键值所对应的信息则一般发送给应用层来进行后续处 理, 例如后续的步骤 202和 203等, 因为如果由驱动层进行后续的判断等操 作可能会影响按键响应速度。 步驟 202: 根据键值序列中最新被确定为正常键值的键值与位于所述正 常键值之后的键值的被扫描时间之间的时间间隔和 /或键值所对应按键之间的 位置关系 , 确定被扫描时间位于所述正常键值之后的键值是否是用户误操作 键值。 步驟 203: 丢弃所述用户误操作键值。 图 2所示的本发明实施例键盘纠错方法, 以最新被确定为正常键值的键 值作为判断基准, 根据键值被扫描时间之间的时间间隔和 /或键值所对应按键 之间的位置关系, 确定用户误操作键值并丢弃, 从而降低了用户按键误操作 的发生概率。 图 3为本发明实施例另一种键盘纠错方法流程示意图, 如图 3所示, 包 括: 步骤 301 : 扫描用户所按下按键的键值, 根据键值的被扫描时间对键值 排序得到键值序列。 本步驟可参考步驟 201 , 这里不赘述。 步驟 302: 判断所述键值序列中最新被确定为正常键值的键值所对应的 按键与该正常键值的后一个键值所对应的按键在位置上是否相邻, 如果是, 执行步驟 303; 否则, 执行步驟 305。 其中, 当用户开始执行^ :操作时, 所得到的键值序列中的第一个键值 可以确定为用户正常操作所得到的正常键值, 该正常键值是作为位于该正常 键值之后键值是为正常键值或误操作键值的判断基准。 在本步驟中, 判断两个键值是否在位置上相邻时, 如图 3a所示, 可以判 断所述两个键值所对应按键中, 一个按键是否位于另一个按键的上、 或下、 或左、 或右的最多 4个位置上(如在边上的按键四周的按键可能只有三个, 也可能只有两个等)。 或者, 本步骤中, 如图 3b所示, 也可以判断两个键值 所对应的按键中, 一个按键是否位于另一个按键的上、 或下、 或左、 或右、 或左上、 或左下、 或右上、 或右下最多 8个位置上(同样的, 在键盘边上的 按键四周的按键个数不一定), 不过判断两个按键是否处于以上列出的 8种位 置关系, 可能会对按键的响应速度产生影响, 而且一般而言, 用户对于所希 望按下的目标按键周围上下左右四个按键之外的四个按键发生误操作的可能 性也比较低, 因此, 一般本步骤中判断一个按键是否位于另一个按键的上下 左右四个位置即可, 这样, 相对于判断两按键之间的 8个位置关系, 仅判断 两 之间的 4个位置关系会大大减小本步驟中的判断操作对于按键响应速 度的影响。 在具体实现所述位置是否相邻的判断时, 可以预先设置一个表来存储键 盘上所有可能存在误操作的按键所对应的相邻按键, 其中, 对于一些误操作 可能性很低的按键可以不设置在这个表中 , 这里并不限制。 步驟 303: 判断所述两个键值的被扫描时间之间的时间间隔是否不大于 预设时间间隔, 如果是, 执行步驟 304, 否则, 执行步驟 305。
过大或过小, 因为时间间隔的数值过大可能将用户的正常按键的键值误判为 用户误操作键值而丢弃, 时间间隔的数值过小将无法起到判断用户误操作键 值的作用, 因此, 在设置时需考虑按照用户的按键速度来具体设置。 在实际 应用中, 可以为用户提供指导值, 由用户自主设定所述时间间隔的具体数值; 或者, 也可以在装置中预先设置具体的时间间隔数值。 优选的, 可以设置专 门的统计单元, 对用户的按键速度进行统计, 从而计算出合适用户的时间间 隔, 以使本发明实施例的所述键盘纠错方法可以自适应于各个不同的用户, 具体的统计方法这里不再赘述。 步驟 304: 丢弃所述正常键值的后一个键值, 返回步驟 302继续以该正 常键值为基准判断键值序列中的下一键值。 其中, 如果步骤 303中所述判断的结果为是时, 则可以确定所述两个键 值中后一个键值为用户误操作键值, 从而用户误操作键值则丢弃(即后一个 键值), 之后返回步驟 302继续判断下一个键值。 例如, 键值序列为 A、 B、 C、 D四个键值, A是最新确定的正常键值, 为判断基准; 当前步驟 302中 判断的两个键值为 A、 B, B被确定为用户误操作键值, 则丢弃 B, 之后返回 步驟 302继续以 A为基准判断 C是否是用户误操作键值。 步驟 305: 确定所述正常键值的后一个键值为正常键值, 并返回步驟 302 以当前最新确定为正常键值的键值为基准判断键值序列中下一个键值是否是 用户误操作键值。 例如, 键值序列为 A、 B、 C、 D四个键值, 当前步骤 302中判断的两个 键值为 A、 B, 正常键值 A为判断基准; 本步骤中向用户显示 A, 并丢弃 B, 之后返回步骤 302继续以 A为基准判断 C是否是用户误操作键值。 如果步驟 303中所述判断结果为否, 则可以确定所述后一键值为用户正 常操作键值, 即正常键值, 因此, 返回步骤 302时, 再根据最新被判断为正 常键值, 即所述后一个键值, 判断键值序列中所述后一个键值的下一个键值 是否为误操作键值。 如此循环, 直到键值序列中的最后一个键值。 例如, 键 值序列为八、 B、 C、 D四个键值, A是最新确定的正常键值, 为判断基准; 当前步骤 302中判断的两个键值为 A、 B, B被确定为正常键值, 之后返回步 驟 302继续以 B为基准判断 C是否是用户误操作键值。 在具体实现中, 将在显示屏上显示正常键值, 并可以相应删除键值序列 中对应的键值, 从而减少键值序列中键值的数量, 进而减少对键盘纠错装置 的资源占用, 提高键盘纠错装置的数据处理效率。 在图 3所示的本发明实施例中, 先根据键值所对应^ ¾:之间的位置关系 进行判断, 之后, 再根据键值被扫描时间之间的时间间隔进行判断, 根据判 断结果得到用户误操作键值进行丢弃, 降低了用户按键误操作的发生概率。 图 3所示的本发明实施例中, 也可以不执行步骤 303, 此时, 步骤 302 的判断结果为是时,直接执行步驟 304;判断结果为否时,直接执行步驟 305; 此时, 同样能够完成对于用户误操作按键的确定, 但是, 相对于图 3所示的 根据键值被扫描时间之间的时间间隔以及键值所对应位置关系确定用户误操 作按键的方法, 确定用户误操作按键的精确度较低。 图 4为本发明实施例另一种键盘纠错方法流程示意图, 如图 4所述, 包 括: 步驟 401 : 扫描用户所按下按键的键值, 按照键值的被扫描时间对键值 排序得到键值序列。 本步驟可参考步驟 201 , 这里不赘述。 步驟 402: 判断最新被确定为正常键值的键值的后一个键值的被扫描时 间与所述正常键值的被扫描时间之间的时间间隔是否不大于预设时间间隔, 如果是, 执行步驟 403, 否则, 执行步驟 405。 其中, 所述最新被确定为正常键值分为两种情况: 用户初始进行按键操 作时检测到的用户的第一个按键所对应的键值为正常键值; 或者, 循环判断 过程中由步骤 404或步骤 405判断结果得到的正常键值。 在本实施例中, 该 键值一般为键值序列中, 未向用户显示的、 被扫描时间最靠前的键值。 步骤 403: 判断所述时间间隔不大于预设时间间隔的键值所对应的^ ¾ 与最新被确定为正常键值的键值所对应的按键在位置上是否相邻, 如果是, 执行步驟 404; 否则, 执行步驟 405。 步驟 404: 确定所述后一个键值为用户误操作键值, 丢弃该用户误操作 键值, 返回步骤 402, 以所述正常键值为基准, 判断键值序列中下一个键值。 其中, 如果步驟 403中所述判断的结果为是时, 则可以确定所述时间间 隔不大于预设时间间隔、 且所对应按键与所述正常键值所对应按键相邻的所 述键值为用户误操作键值, 从而丢弃所述用户误操作键值。 步驟 405: 确定所述后一个键值为正常键值, 并返回步驟 402, 以当前最 新确定为正常键值的键值为基准, 判断键值序列中下一个键值是否是用户误 操作键值。 其中, 如果步驟 403中所述判断的结果为否时, 则可以确定不存在与所 述正常键值相关的误操作键值, 因此, 确定所述后一个键值是正常键值, 继 续以最新被确定为正常键值的键值(即所述后一个键值) 为基准, 判断下一 个键值是否是用户误操作键值, 如此循环, 直到序列中最后一个键值。 在具体实现中, 将在显示屏上显示正常键值, 并可以相应删除键值序列 中对应的键值, 从而减少键值序列中键值的数量, 进而减少对键盘纠错装置 的资源占用, 提高键盘纠错装置的数据处理效率。 图 4所示的本发明实施例键盘纠错方法中, 先根据键值被扫描时间之间 的时间间隔进行判断, 之后, 再根据键值所对应 ^!建之间的位置关系进行判 断, 根据判断结果得到用户误操作键值进行丢弃, 降低了用户按键误操作的 发生概率。 图 4所示的本发明实施例中, 也可以不执行步骤 403, 此时, 步骤 402 的判断结果为是时,直接执行步骤 404;判断结果为否时,直接执行步骤 405; 此时, 同样能够完成对于用户误操作按键的确定, 但是, 相对于图 4所示的 根据键值被扫描时间之间的时间间隔以及键值所对应位置关系确定用户误操 作按键的方法, 确定用户误操作按键的精确度较低。 在图 3和图 4所示的本发明实施例键盘纠错方法中, 根据键值被扫描时 间之间的时间间隔和键值所对应^ ¾之间的位置关系确定用户误操作的键 值, 这时获得用户误操作键值的结果较为精确; 在对用户误操作判断结果精 确度要求不高时, 也可以根据键值被扫描时间之间的时间间隔或键值所对应 ^ :之间的位置关系确定用户误操作的键值, 这里不再赘述。 图 5为本发明实施例一种键盘纠错装置结构示意图, 如图 5所示, 包括: 扫描单元 510, 用于扫描用户所按下按键的键值, 并按照键值的被扫描 时间对键值排序得到键值序列; 判断单元 520, 用于根据键值序列中最新被确定为正常键值的键值与位 于所述正常键值之后的键值的被扫描时间之间的时间间隔和 /或键值所对应按 键之间的位置关系, 确定被扫描时间位于所述正常键值之后的键值的是否是 用户误操作键值; 丢弃单元 530, 用于丢弃所述用户误操作键值。 进一步的,如图 5a所示,所述键盘纠错装置还可以包括: 显示单元 540, 用于显示正常键值。 其中, 所述判断单元 520可以仅根据键值所对应按键的位置关系确定用 户误操作键值, 此时, 判断单元 520具体可以用于: 判断所述键值序列中最新被确定为正常键值的键值所对应的按键与该正 常键值的后一个键值所对应的按键在位置上是否相邻, 如果是, 确定所述正 常键值的后一个键值为用户误操作键值; 如果否, 确定所述后一个键值为正 常键值。 进一步地, 所述判断单元 520在判断键值所对应按键的位置关系的基石出 上, 还可以根据两键值被扫描时间之间的时间间隔进一步判断键值是否为误 操作键值, 此时, 判断单元 520还可以进一步用于: 判断所述两个键值位置 上相邻之后, 判断最新被确定为正常键值的键值与该正常键值的后一个键值 的被扫描时间之间的时间间隔是否不大于预设时间间隔, 如果是, 执行所述 确定用户误操作键值的操作; 如果否, 则确定所述后一个键值为正常键值。 或者, 所述判断单元 520还可以仅根据被扫描时间相邻的两键值的被扫 描时间之间的时间间隔判断所述键值是否为误操作键值,此时,判断单元 520 具体可以用于: 判断最新被确定为正常键值的键值的后一个键值的被扫描时间与所述正 常键值的被扫描时间之间的时间间隔是否不大于预设时间间隔, 如果是, 确 定最新被确定为正常键值的键值的后一个键值为用户误操作键值 , 如果不是, 则确定最新被确定为正常键值的键值的后一个键值为正常键值。 进一步地, 所述判断单元 520还可以在根据两键值的被扫描时间之间的 时间间隔判断键值是否为误操作键值的基础上, 再根据两键值所对应按键之 间的位置关系进一步判断键值是否为误操作键值, 此时, 判断单元 520进一 步可以用于: 所述判断存在被扫描时间与所述正常键值被扫描时间之间的时间间隔不 大于预设时间间隔的键值之后 , 判断所述最新被确定为正常键值的键值的后 一个键值所对应的按键与所述正常键值所对应按键在位置上是否相邻, 如果 是, 执行所述确定最新被确定为正常键值的键值的后一个键值为用户误操作 键值操作, 如果不是, 则确定最新被确定为正常键值的键值的后一个键值为 正常键值。 图 5和图 5a所示的本发明实施例键盘纠错装置,根据所述键值被扫描时 间之间的时间间隔和 /或键值所对应按键之间的位置关系 , 确定用户误操作键 值并丢弃, 从而降低了用户按键误操作的发生概率。 本发明实施例所述键盘纠错方法和装置可以适用于所有带有键盘的设 备, 例如带有键盘的手机、 电脑、 工厂工控机等终端, 这里并不限定。 本领域普通技术人员可以理解, 实现上述实施例键盘纠错方法的过程可 以通过程序指令相关的硬件来完成, 所述的程序可以存储于可读取存储介质 中, 该程序在执行时执行上述方法中的对应步驟。 所述的存储介质可以如:
ROM/RAM, 磁碟、 光盘等。 以上所述仅是本发明的优选实施方式, 应当指出, 对于本技术领域的普 通技术人员来说, 在不脱离本发明原理的前提下, 还可以做出若千改进和润 饰, 这些改进和润饰也应视为本发明的保护范围。

Claims

权 利 要 求
1、 一种键盘纠错方法, 其特征在于, 包括: 扫描用户所按下按键的键值, 并按照键值的被扫描时间对键值排序得到 键值序列; 根据键值序列中最新被确定为正常键值的键值与位于所述正常键值之后 的键值的被扫描时间之间的时间间隔和 /或键值所对应^ ¾之间的位置关系 , 确定被扫描时间位于所述正常键值之后的键值的是否是用户误操作键值; 丢弃所述用户误操作键值。
2、 根据权利要求 1所述的方法, 其特征在于, 所述根据键值序列中最新 被确定为正常键值的键值与位于所述正常键值之后的键值的被扫描时间之间 的时间间隔和 /或键值所对应按键之间的位置关系, 确定被扫描时间位于所述 正常键值之后的键值的是否是用户误操作键值具体为: 判断所述键值序列中最新被确定为正常键值的键值所对应的按键与该正 常键值的后一个键值所对应的按键在位置上是否相邻, 如果是, 确定所述正 常键值的后一个键值为用户误操作键值, 如果不是, 则确定所述正常键值的 后一个键值为正常键值。
3、 根据权利要求 2所述的方法, 其特征在于, 判断最新被确定为正常键 值的键值所对应的按键与该正常键值的后一个键值所对应的按键在位置上相 邻之后, 所述确定所述正常键值的后一个键值为用户误操作键值之前, 进一 步包括: 判断最新被确定为正常键值的键值与该正常键值的后一个键值的被扫描 时间之间的时间间隔是否不大于预设时间间隔, 如果是, 执行所述确定用户 误操作键值的操作, 如果不是, 则确定所述正常键值的后一个键值为正常键 值。
4、 根据权利要求 1所述的方法, 其特征在于, 所述根据键值序列中最新 被确定为正常键值的键值与位于所述正常键值之后的键值的被扫描时间之间 的时间间隔和 /或键值所对应按键之间的位置关系, 确定被扫描时间位于所述 正常键值之后的键值的是否是用户误操作键值具体为: 判断最新被确定为正常键值的键值的后一个键值的被扫描时间与所述正 常键值的被扫描时间之间的时间间隔是否不大于预设时间间隔, 如果是, 确 定最新被确定为正常键值的键值的后一个键值为用户误操作键值 , 如果不是, 则确定最新被确定为正常键值的键值的后一个键值为正常键值。
5、 根据权利要求 4所述的方法, 其特征在于, 判断最新被确定为正常键 值的键值的后一个键值的被扫描时间与所述正常键值的被扫描时间之间的时 间间隔不大于预设时间间隔之后, 所述确定最新被确定为正常键值的键值的 后一个键值为用户误操作键值之前, 进一步包括: 判断所述最新被确定为正常键值的键值的后一个键值所对应的按键与所 述正常键值所对应按键在位置上是否相邻, 如果是, 执行所述确定最新被确 定为正常键值的键值的后一个键值为用户误操作键值操作, 如果不是, 则确 定最新被确定为正常键值的键值的后一个键值为正常键值。
6、 一种键盘纠错装置, 其特征在于, 包括: 扫描单元, 用于扫描用户所按下按键的键值, 并按照键值的被扫描时间 对键值排序得到键值序列; 判断单元, 用于根据键值序列中最新被确定为正常键值的键值与位于所 述正常键值之后的键值的被扫描时间之间的时间间隔和 /或键值所对应按键之 间的位置关系, 确定被扫描时间位于所述正常键值之后的键值的是否是用户 误操作键值; 丢弃单元, 用于丢弃所述用户误操作键值。
7、 根据权利要求 6所述的装置, 其特征在于, 所述判断单元具体用于: 判断所述键值序列中最新被确定为正常键值的键值所对应的按键与该正 常键值的后一个键值所对应的按键在位置上是否相邻, 如果是, 确定所述正 常键值的后一个键值为用户误操作键值, 如果不是, 则确定所述后一个键值 为正常键值。
8、 根据权利要求 7所述的装置, 其特征在于, 所述判断单元还用于: 判 断所述两个键值位置上相邻之后, 判断最新被确定为正常键值的键值与该正 常键值的后一个键值的被扫描时间之间的时间间隔是否不大于预设时间间 隔, 如果是, 执行所述确定用户误操作键值的操作, 如果不是, 则确定所述 正常键值的后一个键值为正常键值。
9、 根据权利要求 6所述的装置, 其特征在于, 所述判断单元具体用于: 判断最新被确定为正常键值的键值的后一个键值的被扫描时间与所述正 常键值的被扫描时间之间的时间间隔是否不大于预设时间间隔, 如果是, 确 定最新被确定为正常键值的键值的后一个键值为用户误操作键值 , 如果不是, 则确定最新被确定为正常键值的键值的后一个键值为正常键值。
10、 根据权利要求 9所述的装置, 其特征在于, 所述判断单元还用于: 所述判断存在被扫描时间与所述正常键值被扫描时间之间的时间间隔不 大于预设时间间隔的键值之后, 判断所述最新被确定为正常键值的键值的后 一个键值所对应的按键与所述正常键值所对应按键在位置上是否相邻 , 如果 是, 执行所述确定最新被确定为正常键值的键值的后一个键值为用户误操作 键值操作, 如果不是, 则确定最新被确定为正常键值的键值的后一个键值为 正常键值。
PCT/CN2010/076260 2009-08-31 2010-08-23 一种键盘纠错方法及装置 WO2011023092A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200910171813.6A CN101645711B (zh) 2009-08-31 2009-08-31 一种键盘纠错方法及装置
CN200910171813.6 2009-08-31

Publications (1)

Publication Number Publication Date
WO2011023092A1 true WO2011023092A1 (zh) 2011-03-03

Family

ID=41657445

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/076260 WO2011023092A1 (zh) 2009-08-31 2010-08-23 一种键盘纠错方法及装置

Country Status (2)

Country Link
CN (1) CN101645711B (zh)
WO (1) WO2011023092A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111694985A (zh) * 2020-06-17 2020-09-22 北京字节跳动网络技术有限公司 搜索方法、装置、电子设备及计算机可读存储介质

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101645711B (zh) * 2009-08-31 2014-06-04 华为终端有限公司 一种键盘纠错方法及装置
CN103914099A (zh) * 2013-01-04 2014-07-09 宏碁股份有限公司 电脑以及键盘误按压操作方法
CN109558032B (zh) * 2018-12-05 2020-09-04 北京三快在线科技有限公司 操作处理方法、装置以及计算机设备
CN112713902A (zh) * 2020-12-07 2021-04-27 珠海格力电器股份有限公司 确定按键扫描键值的方法、系统、遥控器、介质及应用

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05216570A (ja) * 1992-02-04 1993-08-27 Sharp Corp 誤入力処理装置
EP1185921B1 (en) * 1999-05-07 2003-08-13 Psion Digital Limited Erroneous keyboard entry correction method
CN101118476A (zh) * 2007-09-07 2008-02-06 怡利电子工业股份有限公司 依照键盘字符排列的位置修正打字错误的方法
CN101645711A (zh) * 2009-08-31 2010-02-10 深圳华为通信技术有限公司 一种键盘纠错方法及装置

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101256444A (zh) * 2007-02-28 2008-09-03 欧蜀平 一种对源自用户按键动作的信息流进行处理和转换的方法
CN101424977A (zh) * 2008-11-28 2009-05-06 深圳华为通信技术有限公司 采用键盘进行内容输入的输入方法及终端设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05216570A (ja) * 1992-02-04 1993-08-27 Sharp Corp 誤入力処理装置
EP1185921B1 (en) * 1999-05-07 2003-08-13 Psion Digital Limited Erroneous keyboard entry correction method
CN101118476A (zh) * 2007-09-07 2008-02-06 怡利电子工业股份有限公司 依照键盘字符排列的位置修正打字错误的方法
CN101645711A (zh) * 2009-08-31 2010-02-10 深圳华为通信技术有限公司 一种键盘纠错方法及装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111694985A (zh) * 2020-06-17 2020-09-22 北京字节跳动网络技术有限公司 搜索方法、装置、电子设备及计算机可读存储介质
CN111694985B (zh) * 2020-06-17 2022-03-01 北京字节跳动网络技术有限公司 搜索方法、装置、电子设备及计算机可读存储介质

Also Published As

Publication number Publication date
CN101645711B (zh) 2014-06-04
CN101645711A (zh) 2010-02-10

Similar Documents

Publication Publication Date Title
JP6790259B2 (ja) 誤タッチ防止のための方法、及び端末
US8395584B2 (en) Mobile terminals including multiple user interfaces on different faces thereof configured to be used in tandem and related methods of operation
US9007314B2 (en) Method for touch processing and mobile terminal
US9965158B2 (en) Touch screen hover input handling
US20170083219A1 (en) Touchscreen Apparatus User Interface Processing Method and Touchscreen Apparatus
US9891816B2 (en) Method and mobile terminal for processing touch input in two different states
US9113414B2 (en) Standby method for handheld mobile terminal, microprocessor, and mobile phone
RU2535480C2 (ru) Способ и устройство для оценки нажатия клавиши на сенсорном экране
US20130120271A1 (en) Data input method and apparatus for mobile terminal having touchscreen
US20120013542A1 (en) Portable electronic device and method of determining a location of a touch
WO2011020313A1 (zh) 触摸屏字符输入的方法及装置
WO2014059882A1 (zh) 一种终端及控制终端的操作方法
WO2014047922A1 (zh) 一种电子设备及控制显示对象缩放的方法
WO2011023092A1 (zh) 一种键盘纠错方法及装置
WO2015100574A1 (zh) 一种字符串输入控制方法,及装置
WO2014161295A1 (zh) 自适应调整触摸输入面板布局的装置、方法及移动终端
CN103049205A (zh) 移动终端和移动终端的操控方法
WO2013135169A1 (zh) 一种输入法键盘的调整方法及其移动终端
TW201528061A (zh) 撥號鍵盤管理方法及系統
WO2014135088A1 (zh) 基于终端的用户操作模式的判断方法及装置、终端
WO2016082330A1 (zh) 调整虚拟按键布局的方法、装置及移动终端
WO2012152115A1 (zh) 输入方法及装置
WO2013177761A1 (zh) 显示控制方法和装置
WO2016161711A1 (zh) 截屏方法及装置
WO2013123686A1 (zh) 页面显示方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 10811252

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 10811252

Country of ref document: EP

Kind code of ref document: A1