A method and related apparatus for preventing accidental touch

By using electronic devices to determine whether touch information is a mis-touch operation, the problem of accidental touches when users use tablet keyboard cases is solved, improving recognition accuracy and user experience.

CN120233893BActive Publication Date: 2026-05-29HONOR DEVICE CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HONOR DEVICE CO LTD
Filing Date
2023-12-21
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

Users are prone to accidental keystrokes when using the tablet's leather keyboard, which affects the user experience.

Method used

The system determines whether a touch signal is a mistaken touch by analyzing the touch signal, application information, cursor information, input method status, and the timing information sent by the keyboard device.

Benefits of technology

It improves the accuracy of recognizing accidental touches and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120233893B_ABST
    Figure CN120233893B_ABST
Patent Text Reader

Abstract

The application provides a method and related device for preventing mistaken touch. An electronic device can display an interface of a first application. The electronic device can receive touch information of a touchpad sent by a keyboard device. The electronic device can obtain cursor information, an input method state, application information of the first application, and time information of when the keyboard device sends key value information to the electronic device. The electronic device can determine whether the touch information is generated by a mistaken touch operation of a user based on the touch information, the application information of the first application, the cursor information, the input method state, and the time information of when the keyboard device sends the key value information to the electronic device. If the touch information is generated by the mistaken touch operation of the user, the electronic device does not execute an operation corresponding to the touch information through the first application. If the touch information is not generated by the mistaken touch operation of the user, the electronic device executes the operation corresponding to the touch information through the first application. In this way, the accuracy of detecting mistaken touch operations can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of terminal technology, and in particular to a method and related device for preventing accidental touches. Background Technology

[0002] As users increasingly demand convenient tablet use for office work, more and more are adopting tablet keyboard cases. These keyboard cases typically include a touchpad. Users can use the touchpad to operate the tablet instead of a mouse, and also perform gesture control and handwriting input, providing a richer and more convenient human-computer interaction experience. However, users are prone to accidentally touching the touchpad while typing or using a stylus, leading to mis-clicks and negatively impacting the user experience. Summary of the Invention

[0003] This application provides a method and related device for preventing accidental touches, which can improve the accuracy of identifying accidental touch operations.

[0004] In a first aspect, this application provides a method for preventing accidental touches, applied to an electronic device. The method includes: the electronic device displaying the interface of a first application; the electronic device receiving touch information from a touchpad sent by a keyboard device; the electronic device acquiring cursor information, input method status, application information of the first application, and time information of the keyboard device sending key value information to the electronic device; the electronic device determining whether the touch information is generated by a user's accidental touch operation based on the touch information, the application information of the first application, the cursor information, the input method status, and the time information of the keyboard device sending the key value information to the electronic device; if the touch information is generated by a user's accidental touch operation, the electronic device does not execute the operation corresponding to the touch information through the first application; if the touch information is not generated by a user's accidental touch operation, the electronic device executes the operation corresponding to the touch information through the first application.

[0005] The method for preventing accidental touches provided in this application can detect whether touch information is an accidental touch operation. If the touch information is generated by a user's accidental touch operation, the electronic device will not execute the operation corresponding to the touch information through the first application; if the touch information is not generated by a user's accidental touch operation, the electronic device will execute the operation corresponding to the touch information through the first application. This improves the accuracy of identifying accidental touch operations, thereby enhancing the user experience.

[0006] In one possible implementation, the touch information includes touch coordinate information and touch area information; the touch coordinate information includes one or more touch coordinates; the touch area information includes one or more of touch area, touch size and / or touch shape; the application information of the first application includes the type of the first application and the editing area of ​​the first application; the cursor information includes cursor position and cursor state.

[0007] In one possible implementation, based on the touch information, the application information of the first application, the cursor information, the input method state, and the time information of the keyboard device sending the key value information to the electronic device, it is determined whether the touch information is generated by a user's accidental touch operation. Specifically, this includes: if the touch area information does not meet the first area restriction condition, or the touch coordinate information is within the first suppression area and the touch type is click or press, it is determined that the touch information is generated by a user's accidental touch operation; if the touch area information meets the first area restriction condition and the touch coordinate information is not within the first suppression area and the touch type is click or press, or the touch area information meets the first area restriction condition and the touch type is swipe, it is determined that the touch information is not generated by a user's accidental touch operation; wherein, the type of the first application is an editing application, the input method state is in the calling state, the cursor state is in the display state, and the electronic device has not received the key value information sent by the keyboard device within the first N seconds after receiving the touch information. In this way, by using the touch information, the type of the first application being an editing application, the cursor state being a display state, the input method state being a call state, and the fact that the electronic device did not receive the key value information sent by the keyboard device within the first N seconds after receiving the touch information, the electronic device can determine whether the touch information is a mis-touch operation and suppress the touch information under the mis-touch operation, thereby improving the accuracy of identifying mis-touch operations.

[0008] In one possible implementation, based on the touch information, the application information of the first application, the cursor information, the input method state, and the time information of the keyboard device sending the key value information to the electronic device, it is determined whether the touch information is generated by a user's accidental touch operation. Specifically, this includes: if the touch area information does not meet the first area restriction condition, or if one or more of the touch coordinates in the touch coordinate information are within the first suppression area and the touch type is click or press, it is determined that the touch information is generated by a user's accidental touch operation; if the touch area information meets the first area restriction condition and all the touch coordinates in the touch coordinate information are not within the first suppression area and the touch type is click or press, or if the touch area information meets the first area restriction condition and the touch type is swipe, it is determined that the touch information is not generated by a user's accidental touch operation; wherein, the type of the first application is an editing application, the input method state is in the calling state, the cursor state is in the display state, and the electronic device received the key value information sent by the keyboard device within the first M to N seconds before receiving the touch information, where M is less than N. In this way, by using the touch information, the type of the first application being an editing application, the cursor state being a display state, the input method state being invoked, and the electronic device receiving the key value information sent by the keyboard device within the M to N seconds prior to receiving the touch information, the electronic device can determine whether the touch information is a mis-touch operation and suppress the touch information under the mis-touch operation, thereby improving the accuracy of identifying mis-touch operations.

[0009] In one possible implementation, based on the touch information, the application information of the first application, the cursor information, the input method state, and the time information of the keyboard device sending the key value information to the electronic device, it is determined whether the touch information is generated by a user's accidental touch operation. Specifically, this includes: if the touch area information does not meet the first area restriction condition, or the touch coordinate information is within the edge suppression area and the touch type is click, or the touch information is within the first suppression area and the touch type is click or press, it is determined that the touch information is generated by a user's accidental touch operation; if the touch area information meets the first area restriction condition and the touch coordinate information is not within the edge suppression area and the touch information is not within the first suppression area, or the touch area information meets the first area restriction condition and the touch type is swipe, it is determined that the touch information is not generated by a user's accidental touch operation; wherein, the type of the first application is an editing application, the input method state is in the calling state, the cursor state is in the display state, and the electronic device received the key value information sent by the keyboard device within B seconds to M seconds before receiving the touch information, where B is less than M. In this way, by using the touch information, the type of the first application being an editing application, the cursor being in display mode, the input method being in call mode, and the electronic device receiving the key value information sent by the keyboard device within B to M seconds before receiving the touch information, the electronic device can determine whether the touch information is a mis-touch operation and suppress the touch information under the mis-touch operation, thereby improving the accuracy of identifying mis-touch operations.

[0010] In one possible implementation, the minimum distance a from the edge of the touchpad to the area outside the first suppression region is .

[0011] In one possible implementation, based on the touch information, the application information of the first application, the cursor information, the input method status, and the time information of the keyboard device sending the key value information to the electronic device, it is determined whether the touch information was generated by a user's accidental touch operation. Specifically, this includes: if the electronic device received the key value information sent by the keyboard device within B seconds before receiving the touch information, it is determined that the touch information was generated by a user's accidental touch operation. Thus, if the electronic device received the key value information sent by the keyboard device within B seconds before receiving the touch information, the electronic device can determine whether the touch information is an accidental touch operation and suppress the touch information under the accidental touch operation, thereby improving the accuracy of identifying accidental touch operations.

[0012] In one possible implementation, based on the touch information, the application information of the first application, the cursor information, the input method status, and the time information of the keyboard device sending the key value information to the electronic device, it is determined whether the touch information is generated by a user's accidental touch operation. Specifically, this includes: if the touch area information does not meet the first area restriction condition, or the touch coordinate information is within the second suppression area and the touch type is click or press, it is determined that the touch information is generated by a user's accidental touch operation; if the touch area information meets the first area restriction condition and the touch coordinate information is not within the second suppression area and the touch type is click or press, or the touch area information meets the first area restriction condition and the touch type is swipe, it is determined that the touch information is not generated by a user's accidental touch operation; wherein, the type of the first application is an editing application, the input method status is an inactive state, the cursor status is a display state, and the electronic device has not received the key value information sent by the keyboard device within the first N seconds after receiving the touch information. In this way, by using the touch information, the type of the first application being an editing application, the cursor being in display mode, the input method being inactive mode, and the fact that the electronic device did not receive the key value information sent by the keyboard device within the first N seconds after receiving the touch information, the electronic device can determine whether the touch information is a mis-touch operation and suppress the touch information under the mis-touch operation, thereby improving the accuracy of identifying mis-touch operations.

[0013] In one possible implementation, the determination of whether the touch information is generated by a user's accidental touch operation is based on the touch information, the application information of the first application, the cursor information, the input method status, and the time information of the keyboard device sending the key value information to the electronic device. Specifically, this includes: if the touch area information does not meet the first area restriction condition, or if one or more of the touch coordinates in the touch coordinate information are within the second suppression area and the touch type is click or press, then the touch information is determined to be generated by a user's accidental touch operation; if the touch area information meets the first area restriction condition and none of the touch coordinates in the touch coordinate information are within the second suppression area and the touch type is click or press, or if the touch area information meets the first area restriction condition and the touch type is swipe, then the touch information is determined not to be generated by a user's accidental touch operation; wherein the type of the first application is an editing application, the input method status is an inactive state, the cursor status is a display state, and the electronic device received the key value information sent by the keyboard device within the first M to N seconds before receiving the touch information, where M is less than N. In this way, by using the touch information, the type of the first application being an editing application, the cursor being in a display state, the input method being in an inactive state, and the electronic device having received the key value information sent by the keyboard device within the M to N seconds prior to receiving the touch information, the electronic device can determine whether the touch information is a mis-touch operation and suppress the touch information under the mis-touch operation, thereby improving the accuracy of identifying mis-touch operations.

[0014] In one possible implementation, based on the touch information, the application information of the first application, the cursor information, the input method status, and the time information of the keyboard device sending the key value information to the electronic device, it is determined whether the touch information is generated by a user's accidental touch operation. Specifically, this includes: if the touch area information does not meet the first area restriction condition, or the touch coordinate information is within the edge suppression area and the touch type is click, or the touch information is within the second suppression area and the touch type is click or press, it is determined that the touch information is generated by a user's accidental touch operation; if the touch area information meets the first area restriction condition and the touch coordinate information is not within the edge suppression area and the touch information is not within the second suppression area, or the touch area information meets the first area restriction condition and the touch type is swipe, it is determined that the touch information is not generated by a user's accidental touch operation; wherein, the type of the first application is an editing application, the input method status is an inactive state, the cursor status is a display state, and the electronic device received the key value information sent by the keyboard device within B seconds to M seconds before receiving the touch information, where B is less than M. In this way, by using the touch information, the type of the first application being an editing application, the cursor being in a display state, the input method being in an inactive state, and the electronic device having received the key value information sent by the keyboard device within the first B to M seconds before receiving the touch information, the electronic device can determine whether the touch information is a mis-touch operation and suppress the touch information under the mis-touch operation, thereby improving the accuracy of identifying mis-touch operations.

[0015] In one possible implementation, the minimum distance a from the edge of the touchpad to the area outside the second suppression region is .

[0016] In one possible implementation, the first area limitation conditions include: the touch area is less than a first area mis-touch threshold and / or the touch size is less than a first size mis-touch threshold and / or the touch shape is close to a first preset shape.

[0017] In one possible implementation, based on the touch information, the application information of the first application, the cursor information, the input method state, and the time information of the keyboard device sending the key value information to the electronic device, it is determined whether the touch information is generated by a user's accidental touch operation. Specifically, this includes: if the touch area information does not meet the second area restriction condition, or the touch coordinate information is within the third suppression area and the touch type is click or press, it is determined that the touch information is generated by a user's accidental touch operation; if the touch area information meets the second area restriction condition and the touch coordinate information is not within the third suppression area and the touch type is click or press, or the touch area information meets the second area restriction condition and the touch type is swipe, it is determined that the touch information is not generated by a user's accidental touch operation; wherein, the type of the first application is a non-editing application, the input method state is in the calling state, the cursor state is in the display state, and the electronic device has not received the key value information sent by the keyboard device within the first N seconds after receiving the touch information. In this way, by using the touch information, the type of the first application being a non-editing application, the input method being in the called state, the cursor being in the displayed state, and the fact that the electronic device has not received the key value information sent by the keyboard device within the first N seconds after receiving the touch information, the electronic device can determine whether the touch information is a mis-touch operation and suppress the touch information under the mis-touch operation, thereby improving the accuracy of identifying mis-touch operations.

[0018] In one possible implementation, based on the touch information, the application information of the first application, the cursor information, the input method state, and the time information of the keyboard device sending the key value information to the electronic device, it is determined whether the touch information is generated by a user's accidental touch operation. Specifically, this includes: if the touch area information does not meet the second area restriction condition, or if one or more of the second touch coordinates in the touch coordinate information are within the third suppression area and the touch type is click or press, it is determined that the touch information is generated by a user's accidental touch operation; if the touch area information meets the second area restriction condition and none of the touch coordinates in the touch coordinate information are within the third suppression area and the touch type is click or press, or if the touch area information meets the second area restriction condition and the touch type is swipe, it is determined that the touch information is not generated by a user's accidental touch operation; wherein, the type of the first application is a non-editing application, the input method state is in the calling state, the cursor state is in the display state, and the electronic device receives the key value information sent by the keyboard device within the first M to N seconds before receiving the touch information. In this way, by using the touch information, the type of the first application being a non-editing application, the input method being in the called state, the cursor being in the display state, and the electronic device receiving the key value information sent by the keyboard device within the M to N seconds before receiving the touch information, the electronic device can determine whether the touch information is a mis-touch operation and suppress the touch information under the mis-touch operation, thereby improving the accuracy of identifying mis-touch operations.

[0019] In one possible implementation, based on the touch information, the application information of the first application, the cursor information, the input method state, and the time information of the keyboard device sending the key value information to the electronic device, it is determined whether the touch information is generated by a user's accidental touch operation. Specifically, this includes: if the touch area information does not meet the second area restriction condition, or the touch coordinate information is within the edge suppression area and the touch type is click, or the touch information is within the third suppression area and the touch type is click or press, it is determined that the touch information is generated by a user's accidental touch operation; if the touch area information meets the second area restriction condition and the touch coordinate information is not within the edge suppression area and the touch information is not within the third suppression area, or the touch area information meets the second area restriction condition and the touch type is swipe, it is determined that the touch information is not generated by a user's accidental touch operation; wherein, the type of the first application is a non-editing application, the input method state is in the calling state, the cursor state is in the display state, and the electronic device receives the key value information sent by the keyboard device to the electronic device within B seconds to M seconds before receiving the touch information. In this way, by using touch information, the type of the first application being a non-editing application, the input method being in the called state, the cursor being in the displayed state, and the electronic device receiving the key value information sent by the keyboard device within B to M seconds before receiving the touch information, the electronic device can determine whether the touch information is a mis-touch operation and suppress the touch information under the mis-touch operation, thereby improving the accuracy of identifying mis-touch operations.

[0020] In one possible implementation, the minimum distance c between the area of ​​the touchpad outside the third suppression area and the edge of the touchpad.

[0021] In one possible implementation, the determination of whether the touch information was generated by a user's accidental touch is based on the touch information, the application information of the first application, the cursor information, the input method status, and the time information of the keyboard device sending the key value information to the electronic device. Specifically, this includes: if the touch area information does not meet the second area restriction condition, determining that the touch information was generated by a user's accidental touch; if the touch area information meets the second area restriction condition, determining that the touch information was not generated by a user's accidental touch; wherein the type of the first application is a non-editing application, the input method status is an inactive state, the cursor status is a display state, and the electronic device has not received the key value information sent by the keyboard device within the first N seconds after receiving the touch information. In this way, by using the touch information, the type of the first application being a non-editing application, the input method being in an inactive state, the cursor being in a display state, and the electronic device not receiving the key value information sent by the keyboard device within the first N seconds after receiving the touch information, the electronic device can determine whether the touch information is a mis-touch operation and suppress the touch information under the mis-touch operation, thereby improving the accuracy of identifying mis-touch operations.

[0022] In one possible implementation, based on the touch information, the application information of the first application, the cursor information, the input method status, and the time information of the keyboard device sending the key value information to the electronic device, it is determined whether the touch information is generated by a user's accidental touch operation. Specifically, this includes: if the touch area information does not meet the second area restriction condition, it is determined that the touch information is generated by a user's accidental touch operation; if the touch area information meets the second area restriction condition, it is determined that the touch information is not generated by a user's accidental touch operation; wherein, the type of the first application is a non-editing application, the input method status is an inactive state, the cursor status is a display state, and the electronic device receives the key value information sent by the keyboard device within M to N seconds before receiving the touch information, where M is less than N. In this way, by considering the touch information, the type of the first application being a non-editing application, the input method being in an inactive state, the cursor being in a display state, and the electronic device receiving the key value information sent by the keyboard device within the M to N seconds prior to receiving the touch information, the electronic device can determine whether the touch information is a mis-touch operation and suppress the touch information under the mis-touch operation, thereby improving the accuracy of identifying mis-touch operations.

[0023] In one possible implementation, based on the touch information, the application information of the first application, the cursor information, the input method status, and the time information of the keyboard device sending the key value information to the electronic device, it is determined whether the touch information is generated by a user's accidental touch operation. Specifically, this includes: if the touch area information does not meet the second area restriction condition, or if the touch coordinate information is within the edge suppression area and the touch type is click, it is determined that the touch information is generated by a user's accidental touch operation; if the touch area information meets the second area restriction condition and the touch coordinate information is not within the edge suppression area, or if the touch area information meets the second area restriction condition and the touch type is swipe, it is determined that the touch information is not generated by a user's accidental touch operation; wherein, the type of the first application is a non-editing application, the input method status is an inactive state, the cursor status is a display state, and the electronic device received the key value information sent by the keyboard device within B seconds to M seconds before receiving the touch information, where B is less than M. In this way, by using the touch information, the type of the first application being a non-editing application, the input method being in an inactive state, the cursor being in a display state, and the electronic device receiving the key value information sent by the keyboard device within B to M seconds before receiving the touch information, the electronic device can determine whether the touch information is a mis-touch operation and suppress the touch information under the mis-touch operation, thereby improving the accuracy of identifying mis-touch operations.

[0024] In one possible implementation, the minimum distance b between the area outside the edge suppression region of the touchpad and the left, right, and top edges of the touchpad.

[0025] In one possible implementation, the second area limitation conditions include: the touch area is less than a second area mis-touch threshold and / or the touch size is less than a second size mis-touch threshold and / or the touch shape is close to a second preset shape; wherein, the second area mis-touch threshold is greater than a first area mis-touch threshold, the second size mis-touch threshold is greater than the first size mis-touch threshold, and the second preset shape has more types of shapes than the first preset shape.

[0026] In one possible implementation, based on the touch information, the application information of the first application, the cursor information, the input method status, and the time information of the keyboard device sending the key value information to the electronic device, it is determined whether the touch information is generated by the user's accidental touch operation. Specifically, if the touch area information meets the second area restriction condition, or if the electronic device does not receive the key value information sent by the keyboard device within the first B seconds when it receives the touch information, and one of these conditions is not met, and the cursor is in a hidden state, then the touch information is generated by the user's accidental touch operation.

[0027] In one possible implementation, based on the touch information, the application information of the first application, the cursor information, the input method status, and the time information of the keyboard device sending the key value information to the electronic device, it is determined whether the touch information is generated by the user's accidental touch operation. Specifically, if the touch area information meets the second area restriction condition, and the electronic device has not received the key value information sent by the keyboard device within B seconds before receiving the touch information, and the cursor is in a hidden state, and the touch type is click or press, then the touch information is generated by the user's accidental touch operation.

[0028] In one possible implementation, the electronic device includes an anti-mistouch processing module, an input module, and a first application. If the touch information is generated by a user's accidental touch, the operation corresponding to the touch information is not executed through the first application. Specifically, if the anti-mistouch processing module determines that the touch information is generated by a user's accidental touch based on the touch information, the application information of the first application, the cursor information, the input method status, and the time information when the keyboard device sends the key value information to the electronic device, then the touch coordinate information in the touch information is delayed in being reported to the input module after the reporting time point specified by the input module. After receiving the delayed report of the touch coordinate information from the anti-mistouch module, the input module stops generating touch events to be reported to the first application based on the touch coordinate information. In this way, by delaying the reporting of the touch coordinate information to the input module, touch events are not generated, and thus the electronic device does not execute the operation corresponding to the touch information through the first application while the cursor is moving.

[0029] In one possible implementation, the electronic device includes an anti-mistouch processing module, an input module, and a first application. The input module, upon receiving the touch coordinate information reported by the anti-mistouch module, generates a touch event to be reported to the first application based on the touch coordinate information. If the touch information is generated by a user's accidental touch, the operation corresponding to the touch information is not executed through the first application. Specifically, if the anti-mistouch processing module determines that the touch information is generated by a user's accidental touch based on the touch information, the application information of the first application, the cursor information, the input method status, and the time information of the keyboard sending the key value information to the electronic device, then the touch coordinate information in the touch information is not reported to the input module. In this way, the electronic device can identify the touch information as an accidental touch and does not execute the operation corresponding to the touch information through the first application.

[0030] In one possible implementation, if the touch information is not generated by a user's accidental touch, the operation corresponding to the touch information is executed through the first application. Specifically, this includes: if the anti-accidental touch processing module determines, based on the touch information, the application information of the first application, the cursor information, the input method status, and the time information of the keyboard sending the key value information to the electronic device, that the touch information is not generated by a user's accidental touch, then the touch coordinate information in the touch information is reported to the input module at a reporting time point set by the input module; after receiving the touch coordinate information reported by the anti-accidental touch module at the specified reporting time point, the input module generates a touch event to be reported to the first application based on the touch coordinate information; and after receiving the touch event reported by the input module, the first application executes the operation corresponding to the touch coordinate information. In this way, by delaying the reporting of the touch coordinate information to the input module, a touch event can be generated, allowing the electronic device to execute the operation corresponding to the touch information through the first application.

[0031] In one possible implementation, the electronic device further includes a cursor service; the method further includes: after receiving the touch coordinate information, the input module sends the touch coordinate information to the cursor service; the cursor service displays the cursor according to the touch coordinate information.

[0032] In a second aspect, this application provides an electronic device including one or more processors and one or more memories; wherein the one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer instructions, which, when executed by the one or more processors, cause the electronic device to perform the method in any of the possible implementations of the first aspect described above.

[0033] Thirdly, this application provides a chip including a processing circuit and an interface circuit, the interface circuit being used to receive instructions and transmit them to the processing circuit, the processing circuit being used to execute the instructions to perform the method in any of the possible implementations of the first aspect above.

[0034] Fourthly, this application provides a computer-readable storage medium including instructions that, when executed on a processor of an electronic device, cause the electronic device to perform the method in any of the possible implementations of the first aspect described above. Attached Figure Description

[0035] Figure 1 A schematic diagram of a device interaction system provided in an embodiment of this application;

[0036] Figure 2 A schematic diagram illustrating an application scenario of a device interaction system provided in this application embodiment;

[0037] Figure 3 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application;

[0038] Figure 4 This is a schematic diagram of the structure of a keyboard device provided in an embodiment of this application;

[0039] Figure 5 A software architecture diagram of a device interaction system provided in this application embodiment;

[0040] Figures 6A-6J A schematic diagram of the interface for the use scenario of the electronic device provided in the embodiments of this application;

[0041] Figure 7 This is a schematic diagram of a touch algorithm for preventing accidental touches, provided in an embodiment of this application.

[0042] Figure 8 This application provides a schematic diagram of a collaborative anti-mistouch processing method.

[0043] Figure 9 A schematic diagram of a suppression region provided in an embodiment of this application;

[0044] Figure 10 This application provides a schematic flowchart of an input method collaborative anti-mistouch processing method.

[0045] Figure 11 A schematic diagram of another suppression region provided in an embodiment of this application;

[0046] Figure 12 This application provides a schematic flowchart of a cursor-coordinated anti-mistouch processing method.

[0047] Figure 13 This application provides a schematic flowchart of a keyboard collaborative anti-mistouch processing method.

[0048] Figure 14 A schematic diagram of another suppression region provided in an embodiment of this application;

[0049] Figure 15 A flowchart illustrating a method for preventing accidental touches provided in an embodiment of this application;

[0050] Figure 16 This provides a schematic diagram of another suppression region for embodiments of this application. Detailed Implementation

[0051] The technical solutions in the embodiments of this application will be clearly and thoroughly described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B; the word "and / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.

[0052] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.

[0053] The following describes a device interaction system provided by an embodiment of this application.

[0054] like Figure 1 As shown, the electronic device 100 with a display screen 194 and the keyboard device 200 can be connected via a precision connector (pogo pin), wired or wireless (e.g., Bluetooth and Wi-Fi), forming a device interaction system. The keyboard device 200 includes a keyboard 210 and a touchpad 220, with the keyboard 210 including multiple keys.

[0055] The following describes an application scenario and a method for preventing accidental touches in a device interaction system provided by an embodiment of this application.

[0056] like Figure 2 As shown, the electronic device 100 can display the content of the user's operation on the keyboard 210 or touchpad 220 on the display screen 194. For example, the user uses the keyboard 210 to type on the display screen 194 or the user uses the touchpad 220 to control the movement of the cursor on the display screen 194. However, during the use of the keyboard device 200, the user's hands may accidentally touch the touchpad 220 while typing or during other uses.

[0057] The keyboard device 200 can identify whether the operation on the touchpad 220 is a finger or not by using the capacitance value characteristics of the touchpad integrated circuit (TouchPad IC). The capacitance value characteristics of non-finger operations can be considered as accidental touches, and the keyboard device 200 can filter out these accidental touches.

[0058] However, since the capacitance value characteristics generated by different users' finger operations are different, the keyboard device 200 may have difficulty distinguishing between capacitance value characteristics that are not generated by finger operations and capacitance value characteristics that are generated by finger operations.

[0059] In one possible implementation, electronic device 100 can detect whether a user is typing on keyboard device 200. When a user is typing on keyboard device 200, electronic device 100 can perform strong suppression processing on the capacitance value feature information of the touchpad on keyboard device 200 for a period of time, so that the capacitance value feature information cannot be reported during that period of time.

[0060] However, in actual use, in addition to accidental touches when typing on the keyboard device 200, users are also prone to accidental touches on the touchpad when writing on the display screen 194 with their fingers or a stylus.

[0061] Therefore, this embodiment provides a method for preventing accidental touches. The electronic device can display the interface of a first application. The electronic device can receive touch information from the touchpad sent by the keyboard device. The electronic device can acquire cursor information, input method status, application information of the first application, and the time information of the key value information sent by the keyboard device to the electronic device. Based on the touch information, application information of the first application, cursor information, input method status, and the time information of the key value information sent by the keyboard device to the electronic device, the electronic device can determine whether the touch information was generated by a user's accidental touch operation. If the touch information was generated by a user's accidental touch operation, the electronic device will not execute the operation corresponding to the touch information through the first application. If the touch information was not generated by a user's accidental touch operation, the electronic device will execute the operation corresponding to the touch information through the first application. In this way, while ensuring that the electronic device recognizes the first operation, the accuracy of preventing accidental touches is improved, providing a better user experience.

[0062] The hardware structure of an electronic device provided in the embodiments of this application is described below.

[0063] Figure 3 A schematic diagram of the hardware structure of an electronic device 100 provided in an embodiment of this application is shown.

[0064] It should be understood that, Figure 1 The electronic device 100 shown is merely an example, and the electronic device 100 may have more than Figure 1 The more or fewer components shown can be combined into two or more components, or they can have different component configurations. Figure 1 The various components shown can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits.

[0065] Electronic device 100 may include: processor 110, external memory interface 120, internal memory 121, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a gyroscope sensor 180B, an accelerometer sensor 180E, and a touch sensor 180K, etc.

[0066] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0067] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0068] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction opcode and timing signals to complete the control of fetching and executing instructions.

[0069] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0070] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.

[0071] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.

[0072] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1.

[0073] A modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor.

[0074] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0075] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).

[0076] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0077] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD). The display panel can also be manufactured using organic light-emitting diodes (OLEDs), active-matrix organic light-emitting diodes (AMOLEDs), flexible light-emitting diodes (FLEDs), miniled, microled, micro-OLEDs, quantum dot light-emitting diodes (QLEDs), etc. In some embodiments, electronic device 100 may include one or N displays 194, where N is a positive integer greater than 1.

[0078] Electronic device 100 can achieve its shooting function through an ISP, camera 193, video codec, GPU, display screen 194, and application processor. The ISP processes data fed back from the camera 193. The camera 193 captures still images or videos. The digital signal processor processes digital signals, including digital image signals and other digital signals. The video codec compresses or decompresses digital video. Electronic device 100 can support one or more video codecs. The NPU (Neural-Network Processing Unit) is a neural network (NN) computing processor that, by borrowing from the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, rapidly processes input information and can continuously learn itself.

[0079] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to perform data storage functions. The internal memory 121 can be used to store computer executable program code, which includes instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121.

[0080] Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.

[0081] Audio module 170 is used to convert digital audio information into analog audio signal output, and also to convert analog audio input into digital audio signal. Audio module 170 can also be used for encoding and decoding audio signals.

[0082] The speaker 170A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or make hands-free calls through the speaker 170A.

[0083] The receiver 170B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a telephone call or voice message, the receiver 170B can be brought close to the ear to listen to the voice.

[0084] The microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals.

[0085] The 170D headphone jack is used to connect wired headphones. The 170D headphone jack can be a USB 130 interface or a 3.5mm Open Mobile Terminal Platform (OMTP) standard interface, a CTIA (Cellular Telecommunications Industry Association of the USA) standard interface.

[0086] The gyroscope sensor 180B can be used to determine the motion attitude of the electronic device 100. In some embodiments, the gyroscope sensor 180B can determine the angular velocity of the electronic device 100 about three axes (i.e., the x, y, and z axes). The gyroscope sensor 180B can be used for image stabilization. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the shake of the electronic device 100, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to counteract the shake of the electronic device 100 by moving in the opposite direction, thus achieving image stabilization. The gyroscope sensor 180B can also be used in navigation and motion-sensing game scenarios.

[0087] The 180E accelerometer can detect the magnitude of acceleration of electronic device 100 in various directions (typically three axes). When electronic device 100 is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the posture of electronic devices and applied to applications such as screen orientation switching and pedometers.

[0088] Touch sensor 180K, also known as a "touch panel," can be located on display screen 194. The touch sensor 180K and display screen 194 together form a touchscreen, also known as a "touch screen." Touch sensor 180K detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through display screen 194. In other embodiments, touch sensor 180K may also be located on the surface of electronic device 100, in a different position than display screen 194.

[0089] Buttons 190 include a power button, volume buttons, etc. A motor 191 can generate vibration alerts. An indicator 192 can be an indicator light, used to indicate charging status, battery level changes, and also to indicate messages, missed calls, notifications, etc. A SIM card interface 195 is used to connect a SIM card.

[0090] In this embodiment of the application, the device type of electronic device 100 can be any of the following: mobile phone, tablet computer, handheld computer, desktop computer, laptop computer, ultra-mobile personal computer (UMPC), netbook, cellular phone, personal digital assistant (PDA), as well as smart home devices such as smart screens and smart speakers, wearable devices such as smart bracelets, smartwatches, and smart glasses, extended reality (XR) devices such as augmented reality (AR), virtual reality (VR), and mixed reality (MR), in-vehicle devices, or smart city devices.

[0091] The structure of the keyboard device 200 provided in the embodiments of this application is described below.

[0092] Figure 4 An exemplary schematic diagram of the keyboard device 200 provided in an embodiment of this application is shown.

[0093] like Figure 4 As shown, the keyboard device 200 includes a keyboard 210, a touchpad 220, a processor 230, a memory 240, a transmission module 250, and a power management module 260.

[0094] The keyboard 210 may include multiple physical keys, which may be capacitive or resistive. When a physical key is pressed by a user, it sends an electrical signal to the processor 230. The processor 230 can identify the key command corresponding to the physical key based on the electrical signal and transmit the key command through the transmission module 250 or a wired communication module. Figure 4 (Not shown in the image) is sent to electronic device 100.

[0095] The touchpad 220 can receive user touch input and send electrical signals back to the processor 230. Based on the electrical signals from the touchpad 220, the processor 230 can generate operation commands and send them back to the processor 230. The processor 230 can then transmit the operation commands via the transmission module 250 or a wired communication module (…). Figure 4 (Not shown in the image) is sent to electronic device 100.

[0096] Processor 230 can be used to read and execute computer-readable instructions. In a specific implementation, processor 230 mainly includes a controller, an arithmetic logic unit (ALU), and registers. The controller is primarily responsible for instruction decoding and issuing control signals for the operations corresponding to the instructions. The ALU is primarily responsible for storing register operands and intermediate operation results temporarily stored during instruction execution. In a specific implementation, the hardware architecture of processor 230 can be an application-specific integrated circuit (ASIC) architecture, a MIPS architecture, an ARM architecture, or an NP architecture, etc.

[0097] In some embodiments, the processor 230 can be used to parse signals received by the transmission module 250, such as a probe request broadcast by the electronic device 100. The processor 230 can be used to perform corresponding processing operations based on the parsing results, such as generating a probe response, etc.

[0098] In some embodiments, the processor 230 can also be used to generate signals that the transmission module 250 transmits outward, such as Bluetooth broadcast signals, beacon signals, etc.

[0099] Memory 240 is coupled to processor 230 and is used to store various software programs and / or sets of instructions. In specific implementations, memory 240 may include high-speed random access memory and may also include non-volatile memory, such as one or more disk storage devices, flash memory devices, or other non-volatile solid-state storage devices. Memory 240 may store an operating system, such as uCOS, VxWorks, RTLinux, or other embedded operating systems. Memory 240 may also store communication programs that can be used to communicate with electronic device 100 or other devices.

[0100] The transmission module 250 may include one or more of the following: Bluetooth module 250A, precision connector (Pogo pin) 250B, and wireless (wifi) module 250C.

[0101] In some embodiments, one or more of the Bluetooth module 250A, precision connector 250B, and Wi-Fi module 250C can listen to signals emitted by other devices (such as electronic device 100), such as measurement signals, scanning signals, etc., and can send response signals, such as measurement responses, scanning responses, etc., so that other devices (such as electronic device 100) can discover the keyboard device 200 and establish a wireless communication connection with other devices (such as electronic device 100) through one or more of Bluetooth, Wi-Fi, or other short-range wireless communication technologies to perform data transmission.

[0102] In other embodiments, one or more of the Bluetooth module 250A, precision connector 250B, and Wi-Fi module 250C may also transmit signals, such as broadcast detection signals or beacon signals, so that other devices (such as electronic device 100) can discover the keyboard device 200 and establish a wireless communication connection with other devices (such as electronic device 100) through one or more of Bluetooth, Wi-Fi, or other short-range wireless communication technologies to transmit data.

[0103] The power management module 260 can be used to control the power supply to the keyboard device 200.

[0104] It should be understood that, Figure 4 The keyboard device 200 shown is merely an example, and the keyboard device 200 can have more than... Figure 4 The more or fewer components shown can be combined into two or more components, or they can have different component configurations.

[0105] The following is a software architecture diagram of a device interaction system provided by an embodiment of this application.

[0106] Figure 5 A software architecture diagram of a device interaction system provided in an embodiment of this application is shown.

[0107] like Figure 5 As shown, the device interaction system may include an electronic device 100 and a keyboard device 200.

[0108] Electronic device 100 may include an application (APP) layer, a framework layer, a hardware abstraction layer (HAL), and a kernel layer.

[0109] The application layer may include an application (APP) 513, which may be a built-in application of the operating system of the electronic device 100 or a third-party application. Specifically, this application 513 is the application currently displayed on the interface of the electronic device 100.

[0110] The framework layer may include input method service 508, cursor service 509, window manager 510, accessory management service 511, and input module 512.

[0111] The hardware abstraction layer may include a keyboard daemon 506. The keyboard daemon 506 may include a mis-touch prevention module 507. The mis-touch prevention module 507 may perform touch algorithm-based mis-touch prevention, application-based mis-touch prevention, input method-based mis-touch prevention, cursor-based mis-touch prevention, and keyboard-based mis-touch prevention.

[0112] The kernel layer may include driver module 504 and human interface devices (HID) driver 505. The driver module includes Bluetooth driver 5041, serial port (UART) driver 5042, and wireless (wifi) driver 5043, etc.

[0113] The keyboard device 200 may include a touchpad integrated circuit (TouchPad IC) 501, a keyboard module (Keyboard) 502, a microcontroller unit (MCU) 503, and a transmission module 250. The transmission module 250 may include a Bluetooth module 250A, a precision connector (Pogo pin) 250B, and a wireless (Wi-Fi) module 250C, etc.

[0114] The method for preventing accidental touches in this application embodiment is described in detail below, based on the software architecture described above:

[0115] 1. The touchpad IC 501 can send touch information to the microcontroller unit (MCU) 503. This touch information includes touch area information, touch coordinate information, and touch type. The touch area information includes the touch area, touch size, and touch shape. The touch coordinate information includes one or more touch coordinates. Touch types include click, press, and swipe.

[0116] 2. The keyboard module 502 can send key value information to the microcontroller unit (MCU) 503. The key value information may include input characters and / or operation commands. For example, input characters may include English letters, numbers, symbols, etc. Operation commands may include delete, enter, space, up, down, left, and right movement commands, etc.

[0117] 3. The microcontroller unit (MCU) 503 can send touch information and / or key value information to the transmission module 250.

[0118] If the microcontroller unit (MCU) 503 only receives touch information, it can send the touch information to the transmission module 250. If the MCU 503 only receives key value information, it can send the key value information to the transmission module 250. If the MCU 503 receives both touch information and key value information, it can send both to the transmission module 250.

[0119] 4. The transmission module 250 can report touch information and / or key value information to the driver module 504.

[0120] If the transmission module 250 only receives touch information, it can report the touch information to the driver module 504. If the transmission module 250 only receives key value information, it can report the key value information to the driver module 504. If the transmission module 250 receives both touch information and key value information, it can report both to the driver module 504.

[0121] 5. The driver module 504 can report touch information and / or key value information to the anti-mistouch processing module 507.

[0122] When the electronic device 100 and the keyboard device 200 are connected via a precision connector (Pogo pin) 250B, the transmission module 250 can report touch information and / or key value information to the UART driver 5042. Then, the UART driver 5042 can report the touch information and / or key value information to the anti-mistouch processing module 507.

[0123] When the electronic device 100 and the keyboard device 200 are connected via Bluetooth module 250A, the transmission module 250 can report touch information and / or key value information to the Bluetooth driver 5041. Then, the Bluetooth driver 5041 can report the touch information and / or key value information to the anti-mistouch processing module 507.

[0124] When the electronic device 100 and the keyboard device 200 are connected via the Wi-Fi module 250C, the transmission module 250 can report touch information and / or key value information to the Wi-Fi driver 5043. Then, the Wi-Fi driver 5043 can report the touch information and / or key value information to the anti-mistouch processing module 507.

[0125] In this way, electronic device 100 and keyboard device 200 can connect and transmit data in various scenarios, meeting the application needs of different scenarios and providing users with a better user experience.

[0126] 6. The input method service 508 can send the input method status to the accessory management service 511, and then the accessory management service 511 can send the input method status to the anti-mistouch processing module 507. The input method status includes whether it is activated or not activated.

[0127] 7. The cursor service 509 can send cursor information to the parts management service 511, and then the parts management service 511 can send cursor information to the anti-mistouch processing module 507. The cursor information includes the cursor state and cursor position. The cursor state includes a hidden state or a displayed state. The cursor position includes the cursor's coordinates on the display screen 194.

[0128] 8. The window manager 510 can send the application information of the application currently displayed on the electronic device 100 to the accessory management service 511, and then the accessory management service 511 can pass this application information to the anti-mistouch processing module 507. This application information includes the type of application 513 and the editing area of ​​application 513. The type of application 513 can include editing applications or non-editing applications.

[0129] 9. The anti-mistouch processing module 507 can send touch coordinate information to the HID driver 505.

[0130] The anti-mistouch processing module 507 can determine whether to send touch coordinate information to the HID driver 505 based on touch information, key value information, input method status, cursor information, and application information. It can also determine whether to send the touch coordinate information to the HID driver 505 normally or with a delay. This allows for the restriction of touch coordinate information during accidental touches.

[0131] 10. The HID driver 505 can report touch coordinate information to the input module 512.

[0132] 11. The input module 512 can send touch coordinate information to the cursor service 509. This allows control over the movement of the cursor on the display screen 194.

[0133] 12. The input module 512 can generate touch events based on touch coordinate information and report the touch events to the application 513. In this way, the application can be operated through the cursor.

[0134] Specifically, if touch coordinate information is sent to input module 512 at a specified time, input module 512 can send the touch coordinate information to cursor service 509, generate a touch event based on the touch coordinate information, and send the touch event to application 513. Application 513 can then execute the operation corresponding to the touch event.

[0135] If the touch coordinate information is sent to the input module 512 after a delay from the specified time point, then the input module 512 can send the touch coordinate information to the cursor service 509, but without generating a touch event. This allows the cursor to change from a hidden state to a visible state and be displayed on the screen 194, and while moving the cursor, the operation corresponding to the touch information is not performed through the first application.

[0136] For example, it is specified that the electronic device 100 sends touch coordinate information to the input module 512 every 10 milliseconds. For instance, the electronic device 100 sends touch coordinate information to the input module 512 at the 10th millisecond, at the 20th millisecond, at the 30th millisecond, and so on. If the electronic device 100 sends touch coordinate information to the input module 512 at the 20th millisecond, then the touch coordinate information is sent to the input module 512 at the specified time point. If the electronic device 100 sends touch coordinate information to the input module 512 at the 25th millisecond, then the touch coordinate information is sent to the input module 512 with a delay after the specified time point.

[0137] In one possible implementation, the accidental touch prevention module 507 can identify whether the touch information was generated by a user's accidental touch operation. If the touch information was generated by a user's accidental touch operation, the accidental touch prevention module 507 can mark the touch information with an accidental touch identifier (e.g., 0 or 1). Here, 0 indicates that the touch information was generated by a user's accidental touch operation, and 1 indicates that the touch information was not generated by a user's accidental touch operation. The accidental touch prevention module 507 can send the touch coordinate information and the accidental touch identifier to the HID driver 505. The HID driver 505 can report the touch coordinate information and the accidental touch identifier to the input module 512. The input module 512 can detect the accidental touch identifier. If the accidental touch identifier is 0, the input module 512 can send the touch coordinate information to the cursor service 509, but does not generate a touch event. If the accidental touch identifier is 1, the input module 512 can send the touch coordinate information to the cursor service 509, generate a touch event based on the touch coordinate information, and send the touch event to the application 513.

[0138] The following is combined with Figures 6A-6J This application provides a detailed description of the usage scenarios of the electronic device 100 provided in the embodiments of this application.

[0139] Use Case 1: When electronic device 100 displays the interface of an editing application, the input method is in the invoked state and the cursor is in the hidden state.

[0140] For example, such as Figure 6A As shown, the electronic device 100 can display the document application interface 610 on the display screen 194. The electronic device 100 can activate the input method and display the input method box 620. At this time, the cursor is hidden, and the electronic device 100 does not display the cursor on the display screen 194.

[0141] Use Case 2: When electronic device 100 displays the interface of an editing application, the input method is in the called state and the cursor is in the displayed state and the cursor is in the editing area.

[0142] For example, such as Figure 6B As shown, the electronic device 100 can display the interface 610 of a document application on the display screen 194. This document application includes an editing area 611. The electronic device 100 can invoke an input method and display an input method box 620. At this time, the cursor 630 is in the display state, and the cursor 630 displayed by the electronic device 100 on the display screen 194 is within the editing area 611.

[0143] Use Case 3: When electronic device 100 displays the interface of an editing application, the input method is in the called state and the cursor is in the displayed state but not in the editing area.

[0144] For example, such as Figure 6C As shown, the electronic device 100 can display the interface 610 of a document application on the display screen 194. This document application includes an editing area 611. The electronic device 100 can invoke an input method and display the input method box 620. At this time, the cursor 630 is in the display state, but the cursor 630 displayed by the electronic device 100 on the display screen 194 is not within the editing area 611.

[0145] Use Case 4: When electronic device 100 displays the interface of an editing application, the input method is not activated and the cursor is hidden.

[0146] For example, such as Figure 6D As shown, the electronic device 100 can display the document application interface 610 on the display screen 194. The input method is in an inactive state, and the electronic device 100 does not display the input method box 620. At this time, the cursor is hidden, and the electronic device 100 does not display the cursor on the display screen 194.

[0147] Use Case 5: When electronic device 100 displays the interface of an editing application, the input method is not activated and the cursor is displayed within the editing area.

[0148] For example, such as Figure 6E As shown, the electronic device 100 can display the interface 610 of a document application on the display screen 194. This document application includes an editing area 611. At this time, the input method is not activated, and the electronic device 100 does not display the input method box 620. The cursor 630 is in the display state, and the cursor 630 displayed by the electronic device 100 on the display screen 194 is within the editing area 611.

[0149] Use Case 6: When electronic device 100 displays the interface of an editing application, the input method is not activated and the cursor is displayed but not in the editing area.

[0150] For example, such as Figure 6F As shown, the electronic device 100 can display the interface 610 of a document application on the display screen 194. This document application includes an editing area 611. At this time, the input method is not activated, and the electronic device 100 does not display the input method box 620. The cursor 630 is in the display state, but the cursor 630 displayed by the electronic device 100 on the display screen 194 is not within the editing area 611.

[0151] Use Case 7: When electronic device 100 displays the interface of a non-editing application, the input method is in the activated state and the cursor is in the hidden state.

[0152] For example, such as Figure 6G As shown, the electronic device 100 can display the video application interface 640 on the display screen 194. At this time, the input method is in the activated state, and the electronic device 100 can display the input method box 620. The cursor is in the hidden state, and the electronic device 100 does not display the cursor on the display screen 194.

[0153] Use Case 8: When electronic device 100 displays the interface of a non-editing application, the input method is in the invoked state and the cursor is in the displayed state.

[0154] For example, such as Figure 6H As shown, the electronic device 100 can display the video application interface 640 on the display screen 194. At this time, the input method is in the activated state, and the electronic device 100 can display the input method box 620. The cursor is in the display state, and the electronic device 100 displays the cursor 630 on the display screen 194.

[0155] Use Case 9: When electronic device 100 displays the interface of a non-editing application, the input method is not activated and the cursor is hidden.

[0156] For example, such as Figure 6I As shown, the electronic device 100 can display the video application interface 640 on the display screen 194. At this time, the input method is in an inactive state, and the electronic device 100 does not display the input method box 620. The cursor is hidden, and the electronic device 100 does not display the cursor on the display screen 194.

[0157] Use Case 10: When electronic device 100 displays the interface of a non-editing application, the input method is not activated, and the cursor is displayed.

[0158] For example, such as Figure 6J As shown, the electronic device 100 can display the video application interface 640 on the display screen 194. At this time, the input method is in an inactive state, and the electronic device 100 does not display the input method box 620. The cursor is in the display state, and the electronic device 100 displays the cursor 630 on the display screen 194.

[0159] The following describes in detail a touch algorithm for preventing accidental touches provided in an embodiment of this application.

[0160] Figure 7 A schematic diagram of the process for preventing accidental touches using a touch information-based touch algorithm provided in an embodiment of this application is shown.

[0161] like Figure 7 As shown, the specific steps of the touch algorithm to prevent accidental touches are as follows:

[0162] S701, the electronic device 100 can receive touch information sent by the keyboard device 200; the touch information includes touch area information, which in turn includes touch area, touch size and touch shape.

[0163] S702, the electronic device 100 can detect whether the touch area information meets the second area restriction conditions. The second area restriction conditions include the touch area being less than the second area mis-touch threshold and / or the touch size being less than the second size mis-touch threshold and / or the touch shape being close to the second preset shape.

[0164] For example, the touch area includes a region consisting of 5 touch units, with 3 touch units horizontally and 2 touch units vertically, and the shape of this region is approximately elliptical. The 3 touch units horizontally and 2 touch units vertically can be used to indicate the touch size. The shape of this region can be used to indicate the touch shape.

[0165] A touch error threshold smaller than the first area can be defined as having fewer than 10 touch units in an area composed of touch units. A touch error threshold smaller than the first size can be defined as having no more than 6 touch units horizontally and no more than 4 touch units vertically. The first preset shape can include circles and ellipses, etc.

[0166] If the touch area information meets the second area restriction conditions, then proceed to step S703.

[0167] If the touch area information does not meet the second area restriction conditions, then proceed to step S704.

[0168] S703, The touch information is not generated by the user's accidental touch operation, and the electronic device 100 can execute the operation corresponding to the touch information through the first application.

[0169] The touch information corresponds to operations such as clicking, selecting, swiping, and setting. For example, a user can use the touchpad to select a piece of text in the first application on the electronic device 100. In this way, the first application can be operated through the touchpad.

[0170] S704. The touch information is generated by the user's accidental touch operation, and the electronic device 100 does not execute the operation corresponding to the touch information through the first application.

[0171] Therefore, using touch algorithm-based methods to prevent accidental touches can improve the accuracy of detecting accidental touches by determining whether the touch information is generated by the user's touch operation.

[0172] The following describes in detail an application-based collaborative anti-accidental touch processing method provided by an embodiment of this application.

[0173] Figure 8 A schematic diagram of the application-type-based collaborative anti-accidental touch processing provided in an embodiment of this application is shown.

[0174] like Figure 8 As shown, the specific steps for applying collaborative anti-mistouch processing are as follows:

[0175] S801, the electronic device 100 can receive touch information sent by the keyboard device 200 and obtain application information. The application information includes the type of the first application; the touch information includes touch coordinate information and touch area information, and the touch area information includes touch area, touch size and touch shape.

[0176] S802, Electronic device 100 can detect whether the type of the first application is an editing application.

[0177] The first type of application can include editing applications and non-editing applications.

[0178] If the first application is a non-editing application, then step S801 is executed, and the electronic device 100 continues to receive touch information sent by the keyboard device 200 and obtain application information.

[0179] If the first application is an editing application, then execute steps S803 and S806.

[0180] S803, the electronic device 100 can determine a second suppression region, which includes a minimum distance a from the upper edge of the touchpad to the area outside the second suppression region.

[0181] If the first application is an editing application, the electronic device 100 can determine the second suppression region. For example, such as... Figure 9 As shown, the length of the touchpad 220 is L (e.g., L equals 80 mm). The minimum distance from the area of ​​the touchpad 220 outside the second suppression area to the upper edge of the touchpad 220 is a (e.g., a equals 10 mm or a equals L / 6).

[0182] S804, Electronic device 100 can detect whether the touch coordinate information is within the second suppression area.

[0183] The touch coordinate information includes one or more touch coordinates, which can be represented as a touch unit. The electronic device 100 can detect whether the touch unit is within the second suppression area.

[0184] If the touch coordinate information is not within the second suppression area, then check whether the touch area information meets the first area restriction condition.

[0185] If the touch coordinate information is within the second suppression area, then step S805 is executed.

[0186] S805, Electronic device 100 can determine whether the touch type is a click or a press.

[0187] If the touch type is click or press, proceed to step S809.

[0188] If the touch type is not click or press, check if the touch area information meets the first area restriction condition.

[0189] S806, the electronic device 100 can adjust the second area mis-touch threshold to the first area mis-touch threshold, the second size mis-touch threshold to the first size mis-touch threshold, and the second preset shape to the first preset shape. Wherein, the second area mis-touch threshold is greater than the first area mis-touch threshold, the second size mis-touch threshold is greater than the first size mis-touch threshold, and the types of preset shapes in the second preset shape are more numerous than the types of preset shapes in the first preset shape.

[0190] For example, the first area mis-touch threshold can be expressed as 10 touch units in an area composed of touch units. The first size mis-touch threshold can be expressed as 6 touch units horizontally and 4 touch units vertically. The first preset shape can include circles and ellipses, etc.

[0191] The second area-based accidental touch threshold can be expressed as a region consisting of 15 touch units. The second size-based accidental touch threshold can be expressed as a region with 8 touch units horizontally and 6 touch units vertically. The second preset shape can include circles, ellipses, triangles, and squares, etc.

[0192] S807, the electronic device 100 can determine whether the touch area information meets the first area restriction conditions. The first area restriction conditions include the touch area being less than the first area mis-touch threshold and / or the touch size being less than the first size mis-touch threshold and / or the touch shape being close to the first preset shape.

[0193] For example, the touch area includes a region consisting of 5 touch units, with 3 touch units horizontally and 2 touch units vertically, and the shape of this region is approximately elliptical. The 3 touch units horizontally and 2 touch units vertically can be used to indicate the touch size. The shape of this region can be used to indicate the touch shape.

[0194] A touch error threshold smaller than the first area can be defined as having fewer than 10 touch units in an area composed of touch units. A touch error threshold smaller than the first size can be defined as having no more than 6 touch units horizontally and no more than 4 touch units vertically. The first preset shape can include circles and ellipses, etc.

[0195] If the touch area information does not meet the first area restriction conditions, then proceed to step S809.

[0196] If the touch area information meets the first area restriction condition and the touch coordinate information is not in the second suppression area, or if the touch area information meets the first area restriction condition and the touch coordinate information is in the second suppression area and the touch type is not click or press, then step S808 is executed.

[0197] S808, The touch information is not generated by the user's accidental touch operation, and the electronic device 100 can execute the operation corresponding to the touch information through the first application.

[0198] Touch input corresponds to actions such as clicking, selecting, swiping, and setting. For example, a user uses the touchpad to select a piece of text in the first application on the electronic device 100. In this way, the user can operate the first application via the touchpad.

[0199] S809. The touch information is generated by the user's accidental touch operation, and the electronic device 100 does not execute the operation corresponding to the touch information through the first application.

[0200] In this way, using the application-coordinated anti-mistouch processing method to determine whether the touch information is generated by the user's touch operation can reduce the effective touch area in the touchpad, thereby improving the accuracy of touch operation judgment.

[0201] The following is a detailed description of an input method collaborative anti-mistouch processing method provided by an embodiment of this application.

[0202] Figure 10 This paper illustrates a flowchart of an input method collaborative anti-mistouch processing based on input method status provided in an embodiment of this application.

[0203] like Figure 10 As shown, the specific steps for input method collaborative anti-mistouch processing are as follows:

[0204] S1001, the electronic device 100 can receive touch information sent by the keyboard device 200 and obtain the input method status; the touch information includes touch coordinate information and touch type; the touch type includes click, press and slide.

[0205] The input method status includes the invoked state and the uninvoked state.

[0206] S1002, Electronic device 100 can detect whether the input method is in the called state.

[0207] If the input method is in an inactive state, then step S1001 is executed, and the electronic device 100 continues to receive touch information sent by the keyboard device 200 and obtains the input method status.

[0208] If the input method is in the called state, then proceed to step S1003.

[0209] S1003, the electronic device 100 can determine a third suppression region, which includes the area of ​​the touchpad outside the third suppression region, with a minimum distance c from the upper edge of the touchpad, and c is less than a.

[0210] If the input method is in the active state, the electronic device 100 can determine the third suppression region. For example, such as... Figure 11 As shown, the length of the touchpad 220 is L (e.g., L equals 80 mm), and the minimum distance from the area outside the third suppression area of ​​the touchpad 220 to the upper edge of the touchpad 220 is c (e.g., c equals 5 mm or c equals L / 8).

[0211] S1004, Electronic device 100 can detect whether the touch coordinate information is within the third suppression area.

[0212] The touch coordinate information includes one or more touch coordinates, which can be represented as a touch unit. The electronic device 100 can detect whether the touch unit is within the third suppression area.

[0213] If the touch coordinate information is not within the third suppression area, then proceed to step S1005.

[0214] If the touch coordinate information is within the third suppression area, then proceed to step S1006.

[0215] S1005. The touch information is not generated by the user's accidental touch operation, and the electronic device 100 can execute the operation corresponding to the touch information through the first application.

[0216] The touch information corresponds to operations such as clicking, selecting, swiping, and setting. For example, a user can use the touchpad to select a piece of text in the first application on the electronic device 100. In this way, the first application can be operated through the touchpad.

[0217] S1006, Electronic device 100 can detect whether the touch type is click or press.

[0218] If the touch coordinate information is within the third suppression area and the touch type is click or press, then proceed to step S1007.

[0219] If the touch coordinate information is within the third suppression area and the touch type is not click or press, then proceed to step S1005.

[0220] S1007. The touch information is generated by the user's accidental touch operation, and the electronic device 100 does not execute the operation corresponding to the touch information through the first application.

[0221] In this way, using input method-assisted anti-mistouch processing methods to determine whether touch information is generated by the user's touch operation can improve the accuracy of detecting mis-touch situations.

[0222] The following describes in detail a cursor coordination anti-misclick processing method provided by an embodiment of this application.

[0223] Figure 12 A schematic diagram of the cursor collaborative anti-mistouch processing based on cursor information provided in an embodiment of this application is shown.

[0224] like Figure 12 As shown, the specific steps for cursor coordination to prevent accidental touches are as follows:

[0225] S1201, the electronic device 100 can receive touch information sent by the keyboard device 200 and obtain cursor information and application information; the cursor information includes cursor state and cursor position; the cursor state includes hidden state and displayed state; the application information includes the editing area of ​​the first application; the touch information includes touch coordinate information and touch type; the touch type includes click, press and slide.

[0226] S1202, Electronic device 100 can detect whether the cursor is in a hidden state.

[0227] If the cursor is in a hidden state, then proceed to step S1203.

[0228] If the cursor is in the display state, then proceed to step S1204.

[0229] S1203, the electronic device 100 may not perform the operation corresponding to the touch information, and after receiving the touch information, adjust the cursor state to the display state.

[0230] When the cursor is in a hidden state, the electronic device 100 may not perform the operation corresponding to the touch information, and will adjust the cursor state to a displayed state after receiving the touch information.

[0231] S1204, Electronic device 100 can determine whether the cursor is within the editing area of ​​the first application based on the cursor position and the editing area of ​​the first application.

[0232] When the cursor is in the display state, the electronic device 100 can determine whether the cursor is within the editing area of ​​the first application based on the cursor position and the editing area of ​​the first application.

[0233] If the cursor is not in the editing area of ​​the first application, step S1201 is executed, and the electronic device 100 continues to receive touch information sent by the keyboard device 200 and obtain cursor information and application information.

[0234] If the cursor is in the editing area of ​​the first application, then proceed to step S1205.

[0235] S1205, the electronic device 100 can determine a second suppression region, which includes a minimum distance a from the upper edge of the touchpad to the area outside the second suppression region.

[0236] If the cursor is within the editing area of ​​the first application, the electronic device 100 can determine the second suppression area. For example, as described above. Figure 9As shown, the length of the touchpad 220 is L (e.g., L equals 80 mm), and the minimum distance from the area outside the second suppression area of ​​the touchpad 220 to the upper edge of the touchpad 220 is a (e.g., a equals 10 mm or a equals L / 6).

[0237] S1206, Electronic device 100 can detect whether the touch coordinate information is within the second suppression area.

[0238] If the touch coordinate information is not within the second suppression area, then proceed to step S1207.

[0239] If the touch coordinate information is within the second suppression area, then step S1208 is executed.

[0240] S1207. The touch information is not generated by the user's accidental touch operation, and the electronic device 100 can execute the operation corresponding to the touch information through the first application.

[0241] The touch information corresponds to operations such as clicking, selecting, swiping, and setting. For example, a user can use the touchpad to select a piece of text in the first application on the electronic device 100. In this way, the first application can be operated through the touchpad.

[0242] S1208, Electronic device 100 can detect whether the touch type is click or press.

[0243] If the touch coordinate information is within the second suppression area and the touch type is click or press, then step S1209 is executed.

[0244] If the touch coordinate information is within the second suppression area and the touch type is not click or press, then proceed to step S1207.

[0245] S1209. The touch information is generated by the user's accidental touch operation, and the electronic device 100 does not execute the operation corresponding to the touch information through the first application.

[0246] In this way, using a cursor-coordinated anti-mistouch processing method to determine whether the touch information is generated by the user's touch operation can improve the accuracy of detecting mis-touch situations.

[0247] The following describes in detail a keyboard collaborative anti-mistouch processing method provided by an embodiment of this application.

[0248] Figure 13 A schematic diagram of the keyboard collaborative anti-mistouch processing based on keyboard information provided in an embodiment of this application is shown.

[0249] like Figure 13 As shown, the specific steps for keyboard collaboration to prevent accidental touches are as follows:

[0250] S1301, the electronic device 100 can receive key value information and touch information sent by the keyboard device 200. The touch information includes touch coordinate information and touch type. Among them, the touch coordinate information includes one or more touch coordinates; the touch type includes click, press and swipe.

[0251] S1302, Electronic device 100 can detect whether key value information has been reported within the first B seconds when touch information is reported, based on key value information and touch information.

[0252] If the electronic device 100 detects that there is a key value information reported within the first B seconds (e.g., within the first 0.8 seconds) when the touch information is reported, then step S1310 is executed.

[0253] If the electronic device 100 detects that no key value information is reported within the first B seconds (e.g., the first 0.8 seconds) when the touch information is reported, then step S1303 is executed.

[0254] S1303, Electronic device 100 can detect whether key value information has been reported within the first B seconds to M seconds when touch information is reported, based on key value information and touch information, where B is less than M.

[0255] If the electronic device 100 detects that there is a key value information reported within B to M seconds (e.g., within 0.8 to 2 seconds) before the touch information is reported, then step S1304 is executed.

[0256] If the electronic device 100 detects that no key value information has been reported within the first B to M seconds (e.g., the first 0.8 to 2 seconds) when the touch information is reported, then step S1307 is executed.

[0257] S1304, the electronic device 100 can determine an edge suppression region, which includes the area of ​​the touchpad outside the edge suppression region. The minimum distance from the touchpad to the left edge, right edge and top edge is b, where b is greater than a.

[0258] If electronic device 100 detects a key value report within B to M seconds (e.g., within 0.8 to 2 seconds) before touch information reporting, electronic device 100 can determine the edge suppression region. For example, such as... Figure 14 As shown, the length of the touchpad 220 is L (e.g., L equals 80 mm), and the minimum distance from the area outside the edge suppression region of the touchpad 220 to the left, right, and top edges of the touchpad 220 is b (e.g., b equals 20 mm or b equals L / 4).

[0259] S1305, Electronic device 100 can detect whether the touch coordinate information is within the edge suppression area.

[0260] If the touch coordinate information is not within the edge suppression area, then proceed to step S1309.

[0261] If the touch coordinate information is within the edge suppression area, then proceed to step S1306.

[0262] S1306, Electronic device 100 can detect whether the touch type is click.

[0263] If the touch coordinate information is within the edge suppression area and the touch type is click, then proceed to step S1310.

[0264] If the touch coordinate information is within the edge suppression area and the touch type is not click, then proceed to step S1309.

[0265] S1307, Electronic device 100 can detect whether key value information has been reported within the first M to N seconds when touch information is reported, based on key value information and touch information, where M is less than N.

[0266] If the electronic device 100 detects that there is a key value information reported within the first M to N seconds (e.g., the first 2 to 10 seconds) when the touch information is reported, then step S1308 is executed.

[0267] If the electronic device 100 detects that no key value information has been reported within the first N seconds when the touch information is reported, then step S1301 is executed, and the electronic device 100 can continue to receive key value information and touch information sent by the keyboard device 200.

[0268] S1308, Electronic device 100 can detect whether the touch coordinates in the touch coordinate information are not within the suppression area.

[0269] If none of the touch coordinates in the touch coordinate information are within the suppression area, then proceed to step S1309.

[0270] If the touch coordinate information contains coordinates within the suppressed area, then proceed to step S1310.

[0271] The inhibition regions include the first inhibition region, the second inhibition region, the third inhibition region, and the edge inhibition region.

[0272] S1309. The touch information is not generated by the user's accidental touch operation, and the electronic device 100 can execute the operation corresponding to the touch information through the first application.

[0273] The touch information corresponds to operations such as clicking, selecting, swiping, and setting. For example, a user can use the touchpad to select a piece of text in the first application on the electronic device 100. In this way, the first application can be operated through the touchpad.

[0274] S1310, The touch information is generated by the user's accidental touch operation, and the electronic device 100 does not execute the operation corresponding to the touch information through the first application.

[0275] For example, electronic device 100 can receive key value information and touch information sent by keyboard device 200. The touch information includes touch coordinate information, which in turn includes one or more touch coordinates. Based on the key value information and touch information, electronic device 100 can detect if key value information has been reported within the previous 0.8 seconds when touch information is reported. If so, the touch information is considered to be generated by a user's accidental touch, and electronic device 100 will not execute the operation corresponding to the touch information through the first application.

[0276] For example, based on key value information and touch information, when touch information is reported, if key value information is reported within the first 0.8 seconds to the first 2 seconds, the electronic device 100 can determine the edge suppression region. If the touch coordinate information is within the edge suppression region, the touch information is generated by the user's accidental touch operation, and the electronic device 100 does not execute the operation corresponding to the touch information through the first application.

[0277] For example, based on key value information and touch information, when touch information is reported, if key value information is reported within the first 2 to 10 seconds, electronic device 100 can detect whether the touch coordinates in the touch coordinate information are all outside the suppression area. If any touch coordinates are outside the suppression area, the touch information is generated by a user's accidental touch operation, and electronic device 100 will not execute the operation corresponding to the touch information through the first application.

[0278] The electronic device 100 can detect touch information based on key value information and touch information. If no key value information is reported within the first 10 seconds when touch information is reported, then the touch information is not generated by the user's accidental touch operation, and the electronic device 100 can execute the operation corresponding to the touch information through the first application.

[0279] In this way, using a keyboard-coordinated anti-mistouch method to determine whether the touch information is generated by the user's touch operation can prevent accidental touches from occurring.

[0280] The following describes in detail a method for preventing accidental touches provided by an embodiment of this application.

[0281] like Figure 15 As shown, the specific steps of the method to prevent accidental touches are as follows:

[0282] S1501, Electronic device 100 can display the interface of the first application.

[0283] The interface of the first application can be referenced from the aforementioned. Figures 6A-6J The interface shown in the illustrated embodiment will not be described in detail here.

[0284] S1502, the electronic device 100 can receive touch information and key value information sent by the keyboard device 200, and obtain application information, cursor information and input method status of the first application.

[0285] The touch information includes touch coordinate information, touch type, and touch area information. Touch coordinate information may include one or more touch coordinates. Touch type may include click, press, and swipe. Touch area information may include touch area, touch size, and touch shape. The application information of the first application includes the type of the first application and the editing area of ​​the first application. Cursor information includes cursor state and cursor position.

[0286] S1503, the electronic device 100 can determine whether the touch information is generated by the user's accidental touch operation based on the touch information, the application information of the first application, the cursor information, the input method status, and the time information when the keyboard device 200 sends key value information to the electronic device 100.

[0287] S1504. The touch information is generated by the user's accidental touch operation, and the electronic device 100 does not execute the operation corresponding to the touch information through the first application.

[0288] S1505. The touch information is not generated by the user's accidental touch operation, and the electronic device 100 can execute the operation corresponding to the touch information through the first application.

[0289] For example, the electronic device 100 determines that the touch information is generated by the user's accidental touch operation based on touch information, application information of the first application, cursor information, input method status and key value information sent by the keyboard device 200 to the electronic device 100. The conditions are shown in Table 1 below.

[0290] Table 1

[0291]

[0292] As shown in Table 1 above, the types of the first application include editing applications and non-editing applications. Input method status includes invoked and uninvoked states. Cursor status includes hidden and displayed states. Cursor position includes cursor in the editing area and cursor not in the editing area. When the electronic device receives touch information, the time information for the keyboard device to send key value information to the electronic device includes: no key value information sent to the electronic device within the first N seconds (e.g., the first 10 seconds); key value information sent to the electronic device within the first M to N seconds (e.g., the first 2 to 10 seconds); key value information sent to the electronic device within the first B to M seconds (e.g., the first 0.8 to 2 seconds); and key value information sent to the electronic device within the first B seconds (e.g., the first 0.8 seconds). Where B is less than M, and M is less than N.

[0293] The following section, in conjunction with Table 1 above, details how electronic device 100 determines whether the touch information is generated by a user's accidental touch operation based on touch information, application information of the first application, cursor information, input method status, and the time information when keyboard device 200 sends key value information to electronic device 100.

[0294] Scenario 1: The first application is an editing application, the input method is in the invoked state, the cursor is in the display state, and the cursor is either in the editing area or not in the editing area (for example, the above). Figure 6B The above shows the cursor position within the editing area. Figure 6C This illustrates the case where the cursor is not in the editing area, and no keyboard device sends key value information to the electronic device within the first N seconds (e.g., the first 10 seconds) after receiving touch information.

[0295] If the touch area information does not meet the first area restriction condition, or if the touch coordinate information is within the first suppression area and the touch type is click or press, then the electronic device 100 can determine that the touch information was generated by a user's accidental touch operation. The accidental touch prevention module in the electronic device 100 does not report the touch coordinate information and touch type to the input module.

[0296] If the touch area information meets the first area restriction condition and the touch coordinate information is not within the first suppression area and the touch type is click or press, or if the touch area information meets the first area restriction condition and the touch type is swipe, then the electronic device 100 can determine that the touch information is not generated by the user's accidental touch operation.

[0297] The first area restriction conditions include: the touch area is less than the first area mis-touch threshold and / or the touch size is less than the first size mis-touch threshold and / or the touch shape is close to the first preset shape.

[0298] For example, the touch area includes a region consisting of 5 touch units, with 3 touch units horizontally and 2 touch units vertically, and the shape of this region is approximately elliptical. The 3 touch units horizontally and 2 touch units vertically can be used to indicate the touch size. The shape of this region can be used to indicate the touch shape.

[0299] A touch error threshold smaller than the first area can be defined as having fewer than 10 touch units in an area composed of touch units. A touch error threshold smaller than the first size can be defined as having no more than 6 touch units horizontally and no more than 4 touch units vertically. The first preset shape can include circles and ellipses, etc.

[0300] like Figure 16 As shown, the length of the touchpad 220 is L (e.g., L equals 80 mm). The minimum distance from the area outside the second suppression area of ​​the touchpad 220 to the upper edge of the touchpad 220 is a (e.g., a equals 10 mm or a equals L / 6), where a is less than L. The first suppression area can be formed by merging the second suppression area and the third suppression area. This merging can be as follows: the minimum distance from the area outside the second suppression area of ​​the touchpad 220 to the upper edge of the touchpad 220 is a (e.g., a equals 10 mm or a equals L / 6), and the minimum distance from the area outside the third suppression area of ​​the touchpad 220 to the upper edge of the touchpad 220 is c (e.g., c equals 5 mm), where a is greater than c. When the second and third suppression areas are merged into the first suppression area, the minimum distance from the area outside the first suppression area of ​​the touchpad 220 to the upper edge of the touchpad 220 can be d, where d is any value from c to a.

[0301] Scenario 2: The first application is an editing application, the input method is in the invoked state, the cursor is in the display state, and the cursor is either in the editing area or not in the editing area (for example, the above). Figure 6B The above shows the cursor position within the editing area. Figure 6C This illustrates the case where the cursor is not in the editing area, and key value information is sent to the electronic device within the first M to N seconds (e.g., the first 2 to 10 seconds) before the touch information is received.

[0302] If the touch area information does not meet the first area restriction condition, or if the touch coordinate information has touch coordinates within the first suppression area and the touch type is click or press, then the electronic device 100 can determine that the touch information was generated by a user's accidental touch operation. The accidental touch prevention module in the electronic device 100 does not report the touch coordinate information and touch type to the input module.

[0303] If the touch area information meets the first area restriction condition and all touch coordinates in the touch coordinate information are not within the first suppression area and the touch type is click or press, or if the touch area information meets the first area restriction condition and the touch type is swipe, then the electronic device 100 can determine that the touch information is not generated by the user's accidental touch operation.

[0304] Scenario 3: The first application is an editing application, the input method is in the invoked state, the cursor is in the display state, and the cursor is either in the editing area or not in the editing area (for example, the above). Figure 6B The above shows the cursor position within the editing area. Figure 6C This illustrates the case where the cursor is not in the editing area, and key value information is sent to the electronic device within B to M seconds (e.g., within 0.8 to 2 seconds) before the touch information is received.

[0305] If the touch area information does not meet the first area restriction condition, or if the touch coordinate information is within the edge suppression area and the touch type is a click, or if the touch information is within the first suppression area and the touch type is a click or a press, then the electronic device 100 can determine that the touch information was generated by a user's accidental touch operation. The accidental touch prevention module in the electronic device 100 does not report the touch coordinate information and touch type to the input module.

[0306] If the touch area information satisfies the first area restriction condition and the touch coordinate information is not within the edge suppression area and the touch information is not within the first suppression area, or if the touch area information satisfies the first area restriction condition and the touch type is swipe, or if the touch area information satisfies the first area restriction condition and the touch coordinate information is within the edge suppression area and the touch information is not within the first suppression area and the touch type is press, then it is determined that the touch information is not generated by the user's accidental touch operation.

[0307] Scenario 4: Regardless of whether the first application is an editing application or a non-editing application, regardless of whether the input method is in use or not, and regardless of whether the cursor is hidden or shown, as long as a keyboard device sends key value information to the electronic device within the first B seconds (e.g., the first 0.8 seconds) when the touch information is received, the touch information is generated by the user's accidental touch operation.

[0308] Scenario 5: The first application is an editing application, the input method is inactive, the cursor is displayed, and the cursor is either in the editing area or not in the editing area (e.g., the above). Figure 6E The above shows the cursor position within the editing area. Figure 6FThis illustrates the case where the cursor is not in the editing area, and no keyboard device sends key value information to the electronic device within the first N seconds (e.g., the first 10 seconds) after receiving touch information.

[0309] If the touch area information does not meet the first area restriction condition, or if the touch coordinate information is within the second suppression area and the touch type is click or press, then the electronic device 100 can determine that the touch information was generated by a user's accidental touch operation. The accidental touch prevention module in the electronic device 100 does not report the touch coordinate information and touch type to the input module.

[0310] If the touch area information meets the first area restriction condition and the touch coordinate information is not within the second suppression area and the touch type is click or press, or if the touch area information meets the first area restriction condition and the touch type is swipe, then the electronic device 100 can determine that the touch information is not generated by the user's accidental touch operation.

[0311] Case 6: The first application is an editing application, the input method is inactive, the cursor is displayed, and the cursor is either in the editing area or not in the editing area (e.g., the above). Figure 6E The above shows the cursor position within the editing area. Figure 6F This illustrates the case where the cursor is not in the editing area, and key value information is sent to the electronic device within the first M to N seconds (e.g., the first 2 to 10 seconds) before the touch information is received.

[0312] If the touch area information does not meet the first area restriction condition, or if the touch coordinate information has touch coordinates within the second suppression area and the touch type is click or press, then the electronic device 100 can determine that the touch information was generated by a user's accidental touch operation. The accidental touch prevention module in the electronic device 100 does not report the touch coordinate information and touch type to the input module.

[0313] If the touch area information meets the first area restriction condition and all touch coordinates in the touch coordinate information are not in the second suppression area and the touch type is click or press, or if the touch area information meets the first area restriction condition and the touch type is swipe, then the electronic device 100 can determine that the touch information is not generated by the user's accidental touch operation.

[0314] Case 7: The first application is an editing application, the input method is inactive, the cursor is displayed, and the cursor is either in the editing area or not in the editing area (e.g., the above). Figure 6E The above shows the cursor position within the editing area. Figure 6F This illustrates the case where the cursor is not in the editing area, and key value information is sent to the electronic device within B to M seconds (e.g., within 0.8 to 2 seconds) before the touch information is received.

[0315] If the touch area information does not meet the first area restriction condition, or if the touch coordinate information is within the edge suppression area and the touch type is a click, or if the touch information is within the second suppression area and the touch type is a click or a press, then the electronic device 100 can determine that the touch information was generated by a user's accidental touch operation. The accidental touch prevention module in the electronic device 100 does not report the touch coordinate information and touch type to the input module.

[0316] If the touch area information satisfies the first area restriction condition and the touch coordinate information is not within the edge suppression area and the touch information is not within the second suppression area, or if the touch area information satisfies the first area restriction condition and the touch type is swipe, or if the touch area information satisfies the first area restriction condition and the touch coordinate information is within the edge suppression area and the touch information is not within the second suppression area and the touch type is press, then it is determined that the touch information is not generated by the user's accidental touch operation.

[0317] Case 8: The first application is a non-editing application, the input method is in the called state, and the cursor is in the displayed state (e.g., as mentioned above). Figure 6H As shown), and within the first N seconds (e.g., the first 10 seconds) after receiving the touch information, no keyboard device sends key value information to the electronic device.

[0318] If the touch area information does not meet the second area restriction conditions, or if the touch coordinate information is within the third suppression area and the touch type is click or press, then the electronic device 100 can determine that the touch information was generated by a user's accidental touch operation. The accidental touch prevention module in the electronic device 100 does not report the touch coordinate information and touch type to the input module.

[0319] If the touch area information meets the second area restriction condition and the touch coordinate information is not within the third suppression area and the touch type is click or press, or if the touch area information meets the second area restriction condition and the touch type is swipe, then the electronic device 100 can determine that the touch information is not generated by the user's accidental touch operation.

[0320] Case 9: The first application is a non-editing application, the input method is in the called state, and the cursor is in the displayed state (e.g., as mentioned above). Figure 6H As shown), and within the first M to N seconds (e.g., the first 2 to 10 seconds) after receiving the touch information, key value information is sent to the electronic device.

[0321] If the touch area information does not meet the second area restriction condition, or if the touch coordinate information shows touch coordinates within the third suppression area and the touch type is click or press, then the electronic device 100 can determine that the touch information was generated by a user's accidental touch operation. The accidental touch prevention module in the electronic device 100 does not report the touch coordinate information and touch type to the input module.

[0322] If the touch area information meets the second area restriction condition and all touch coordinates in the touch coordinate information are not within the third suppression area and the touch type is click or press, or if the touch area information meets the second area restriction condition and the touch type is swipe, then the electronic device 100 can determine that the touch information is not generated by the user's accidental touch operation.

[0323] Case 10: The first application is a non-editing application, the input method is in the called state, and the cursor is in the displayed state (e.g., as mentioned above). Figure 6H As shown), and within B to M seconds (e.g., within 0.8 to 2 seconds) before the touch information is received, key value information is sent to the electronic device.

[0324] If the touch area information does not meet the second area restriction condition, or if the touch coordinate information is within the edge suppression area and the touch type is a click, or if the touch information is within the third suppression area and the touch type is a click or a press, then the electronic device 100 can determine that the touch information was generated by a user's accidental touch operation. The accidental touch prevention module in the electronic device 100 does not report the touch coordinate information and touch type to the input module.

[0325] If the touch area information satisfies the second area restriction condition and the touch coordinate information is not within the edge suppression area and the touch information is not within the third suppression area, or if the touch area information satisfies the second area restriction condition and the touch type is swipe, or if the touch area information satisfies the second area restriction condition and the touch coordinate information is within the edge suppression area and the touch information is not within the third suppression area and the touch type is press, then it is determined that the touch information is not generated by the user's accidental touch operation.

[0326] Case 11: The first application is a non-editing application, the input method is inactive, and the cursor is displayed (e.g., as mentioned above). Figure 6J As shown), and within the first N seconds (e.g., the first 10 seconds) after receiving the touch information, no keyboard device sends key value information to the electronic device.

[0327] If the touch area information does not meet the second area restriction conditions, the electronic device 100 can determine that the touch information was generated by a user's accidental touch operation. The accidental touch prevention module in the electronic device 100 does not report the touch coordinate information and touch type to the input module.

[0328] If the touch area information meets the second area restriction condition, the electronic device 100 can determine that the touch information was not generated by the user's accidental touch operation.

[0329] Case 12: The first application is a non-editing application, the input method is inactive, and the cursor is displayed (e.g., as mentioned above). Figure 6J As shown), and within the first M to N seconds (e.g., the first 2 to 10 seconds) after receiving the touch information, key value information is sent to the electronic device.

[0330] If the touch area information does not meet the second area restriction conditions, the electronic device 100 can determine that the touch information was generated by a user's accidental touch operation. The accidental touch prevention module in the electronic device 100 does not report the touch coordinate information and touch type to the input module.

[0331] If the touch area information meets the second area restriction condition, the electronic device 100 can determine that the touch information was not generated by the user's accidental touch operation.

[0332] Case 13: The first application is a non-editing application, the input method is inactive, and the cursor is displayed (e.g., as mentioned above). Figure 6J As shown), and within B to M seconds (e.g., within 0.8 to 2 seconds) before the touch information is received, key value information is sent to the electronic device.

[0333] If the touch area information does not meet the second area restriction conditions, or if the touch coordinate information is within the first edge suppression area and the touch type is click, then the electronic device 100 can determine that the touch information was generated by a user's accidental touch operation. The accidental touch prevention module in the electronic device 100 does not report the touch coordinate information and touch type to the input module.

[0334] If the touch area information meets the first area restriction condition and the touch coordinate information is within the edge suppression area and the touch type is not a click, or if the touch area information does not meet the second area restriction condition and the touch coordinate information is not within the first edge suppression area, then the electronic device 100 can determine that the touch information is not generated by the user's accidental touch operation.

[0335] Case 14: When the first application is an editing application and the cursor is hidden. If the touch area information meets the first area restriction condition, and no key value information has been received from the keyboard device within the previous B seconds, and the touch type is click or press, then the electronic device 100 can determine that the touch information was generated by the user's accidental touch operation. The anti-accidental touch module in the electronic device 100 reports the touch coordinate information and touch type to the input module after a delay.

[0336] Case 15: When the first application is an editing application and the cursor is hidden. If the touch area information does not meet the first area restriction conditions, or if key value information sent by the keyboard device has been received within the previous B seconds, the electronic device 100 can determine that the touch information was generated by a user's accidental touch operation. The anti-accidental touch module in the electronic device 100 does not report the touch coordinate information and touch type to the input module.

[0337] Case 16: When the first application is a non-editing application and the cursor is hidden. If the touch area information meets the second area restriction condition, and no key value information has been received from the keyboard device within the previous B seconds, and the touch type is click or press, then the electronic device 100 can determine that the touch information was generated by the user's accidental touch operation. The anti-accidental touch module in the electronic device 100 reports the touch coordinate information and touch type to the input module after a delay.

[0338] Case 17: When the first application is a non-editing application and the cursor is hidden. If the touch area information does not meet the second area restriction conditions, or if key value information sent by the keyboard device has been received within the previous B seconds, the electronic device 100 can determine that the touch information was generated by a user's accidental touch operation. The anti-accidental touch module in the electronic device 100 does not report the touch coordinate information and touch type to the input module.

[0339] The following details the electronic device 100's anti-mistouch processing based on touch algorithm and application-coordinated anti-mistouch processing to determine whether touch information is generated by a mis-touch operation.

[0340] In some embodiments, when the electronic device 100 receives touch information and the first application type is an editing application, it can activate touch algorithm anti-mistouch processing and application-coordinated anti-mistouch processing.

[0341] If the touch area information does not meet the first area restriction conditions, or if the touch coordinate information is within the second suppression area and the touch type is click or press, then the touch information is generated by the user's accidental touch operation, and the electronic device 100 does not execute the operation corresponding to the touch information through the first application. The anti-accidental touch module in the electronic device 100 does not report the touch coordinate information and touch type to the input module.

[0342] If the touch area information meets the first area restriction condition and the touch coordinate information is not within the second suppression area and the touch type is click or press, or if the touch area information meets the first area restriction condition and the touch type is swipe, then the touch information is not generated by the user's accidental touch operation, and the electronic device 100 can execute the operation corresponding to the touch information through the first application.

[0343] The following details how electronic device 100 uses touch algorithm-based anti-mistouch processing and input method-based collaborative anti-mistouch processing to determine whether touch information is generated by a mis-touch operation.

[0344] In some embodiments, when the electronic device 100 receives touch information and the input method is in the invoked state, it can activate touch algorithm anti-mistouch processing and input method collaborative anti-mistouch processing.

[0345] If the touch area information does not meet the second area restriction conditions, or if the touch coordinate information is within the third suppression area and the touch type is click or press, then the touch information is generated by the user's accidental touch operation, and the electronic device 100 does not execute the operation corresponding to the touch information through the first application. The anti-accidental touch module in the electronic device 100 does not report the touch coordinate information and touch type to the input module.

[0346] If the touch area information meets the second area restriction conditions and the touch coordinate information is not within the third suppression area and the touch type is click or press, or if the touch area information meets the second area restriction conditions and the touch type is swipe, then the touch information is not generated by the user's accidental touch operation, and the electronic device 100 can execute the operation corresponding to the touch information through the first application.

[0347] The following details how electronic device 100 uses touch algorithm-based anti-mistouch processing and cursor-coordinated anti-mistouch processing to determine whether touch information is generated by a mis-touch operation.

[0348] In some embodiments, when the electronic device 100 receives touch information and the cursor is in a hidden state, it can activate touch algorithm anti-mistouch processing and cursor collaborative anti-mistouch processing.

[0349] If the touch area information meets the second area restriction condition, the touch information is generated by the user's accidental touch operation. The anti-accidental touch module in the electronic device 100 reports the touch coordinate information and touch type to the input module after a delay.

[0350] If the touch area information does not meet the second area restriction conditions, the touch information is generated by the user's accidental touch operation. The anti-accidental touch module in electronic device 100 does not report touch coordinate information and touch type to the input module.

[0351] In another embodiment, when the electronic device 100 receives touch information and the cursor is in the display state and within the editing area, it can activate touch algorithm anti-mistouch processing and cursor collaborative anti-mistouch processing.

[0352] If the touch area information does not meet the second area restriction conditions, or if the touch coordinate information is within the second suppression area and the touch type is click or press, then the touch information is generated by the user's accidental touch operation, and the electronic device 100 does not execute the operation corresponding to the touch information through the first application. The anti-accidental touch module in the electronic device 100 does not report the touch coordinate information and touch type to the input module.

[0353] If the touch area information meets the second area restriction conditions and the touch coordinate information is not within the second suppression area and the touch type is click or press, or if the touch area information meets the second area restriction conditions and the touch type is swipe, then the touch information is not generated by the user's accidental touch operation, and the electronic device 100 can execute the operation corresponding to the touch information through the first application.

[0354] The following details how electronic device 100 uses touch algorithm-based anti-mistouch processing and keyboard-coordinated anti-mistouch processing to determine whether touch information is generated by a mis-touch operation.

[0355] In some embodiments, the electronic device 100 may activate touch algorithm anti-mistouch processing and keyboard collaborative anti-mistouch processing. For example, if the electronic device 100 receives touch information and key value information is sent to the electronic device 100 within B seconds before the electronic device 100 receives the touch information, the touch information is generated by a user's accidental touch operation, and the electronic device 100 does not execute the operation corresponding to the touch information through the first application.

[0356] For example, if electronic device 100 receives touch information and key value information is sent to electronic device 100 within the preceding B to M seconds, and if the touch area information does not meet the second area restriction condition, or if the touch coordinate information is within the edge suppression area and the touch type is click, then the touch information is generated by a user's accidental touch operation, and electronic device 100 does not execute the operation corresponding to the touch information through the first application. If the touch area information meets the second area restriction condition and the touch coordinate information is not within the edge suppression area, or if the touch area information does not meet the second area restriction condition but the touch coordinate information is within the edge suppression area and the touch type is not click, then the touch information is not generated by a user's accidental touch operation, and electronic device 100 can execute the operation corresponding to the touch information through the first application.

[0357] For example, if electronic device 100 receives touch information and key value information is sent to electronic device 100 within the first M to N seconds prior to receiving the touch information, and if the touch area information does not meet the second area restriction condition, or if there are touch coordinates in the touch coordinate information within the suppression area and the touch type is click or press, then the touch information is generated by a user's accidental touch operation, and electronic device 100 does not execute the operation corresponding to the touch information through the first application. If the touch area information meets the second area restriction condition and none of the touch coordinates in the touch coordinate information are within the suppression area and the touch type is click or press, or if the touch area information meets the first area restriction condition and the touch type is swipe, then the touch information is not generated by a user's accidental touch operation, and electronic device 100 can execute the operation corresponding to the touch information through the first application.

[0358] The following details how electronic device 100 uses touch algorithm-based anti-mistouch processing, application-coordinated anti-mistouch processing, and input method-coordinated anti-mistouch processing to determine whether touch information is generated by a mis-touch operation.

[0359] In some embodiments, when the electronic device 100 receives touch information and the first application type is an editing application and the input method is in the calling state, it can activate touch algorithm anti-mistouch processing, application collaborative anti-mistouch processing, and input method collaborative anti-mistouch processing.

[0360] If the touch area information does not meet the first area restriction conditions, or if the touch coordinate information is within the first suppression area and the touch type is click or press, then the touch information is generated by the user's accidental touch operation, and the electronic device 100 does not execute the operation corresponding to the touch information through the first application. The anti-accidental touch module in the electronic device 100 does not report the touch coordinate information and touch type to the input module.

[0361] If the touch area information meets the first area restriction condition and the touch coordinate information is not within the first suppression area and the touch type is click or press, or if the touch area information meets the first area restriction condition and the touch type is swipe, then the touch information is not generated by the user's accidental touch operation, and the electronic device 100 can execute the operation corresponding to the touch information through the first application.

[0362] The following details how electronic device 100 uses touch algorithm-based anti-mistouch processing, application-coordinated anti-mistouch processing, and cursor-coordinated anti-mistouch processing to determine whether touch information is generated by a mis-touch operation.

[0363] In some embodiments, when an electronic device 100 receives touch information, the first application type is an editing application, the cursor is hidden, and touch algorithm anti-mistouch processing, application-coordinated anti-mistouch processing, and cursor-coordinated anti-mistouch processing can be activated.

[0364] If the touch area information meets the first area restriction condition, the touch information is generated by the user's accidental touch operation. The anti-accidental touch module in the electronic device 100 reports the touch coordinate information and touch type to the input module after a delay.

[0365] If the touch area information does not meet the first area restriction conditions, the touch information is generated by the user's accidental touch operation. The anti-accidental touch module in electronic device 100 does not report touch coordinate information and touch type to the input module.

[0366] In another embodiment, when the electronic device 100 receives touch information and the first application type is an editing application, the cursor state is a display state, and the cursor is within the editing area, it can activate touch algorithm anti-mistouch processing and cursor collaborative anti-mistouch processing.

[0367] If the touch area information does not meet the first area restriction conditions, or if the touch coordinate information is within the first suppression area and the touch type is click or press, then the touch information is generated by the user's accidental touch operation, and the electronic device 100 does not execute the operation corresponding to the touch information through the first application. The anti-accidental touch module in the electronic device 100 does not report the touch coordinate information and touch type to the input module.

[0368] If the touch area information meets the first area restriction condition and the touch coordinate information is not within the first suppression area and the touch type is click or press, or if the touch area information meets the first area restriction condition and the touch type is swipe, then the touch information is not generated by the user's accidental touch operation, and the electronic device 100 can execute the operation corresponding to the touch information through the first application.

[0369] The following details how electronic device 100 uses touch algorithm-based anti-mistouch processing, application-coordinated anti-mistouch processing, and keyboard-coordinated anti-mistouch processing to determine whether touch information is generated by a mis-touch operation.

[0370] In some embodiments, the electronic device 100 may activate touch algorithm anti-mistouch processing, application-coordinated anti-mistouch processing, and keyboard-coordinated anti-mistouch processing.

[0371] For example, if electronic device 100 receives touch information and the type of the first application is an editing application, and key value information is sent to electronic device 100 within the first B seconds before electronic device 100 receives the touch information, the touch information is generated by the user's accidental touch operation, and electronic device 100 does not execute the operation corresponding to the touch information through the first application.

[0372] For example, if electronic device 100 receives touch information and the first application is an editing application, and key value information is sent to electronic device 100 within the first B to M seconds before receiving the touch information, then if the touch area information does not meet the first area restriction condition, or if the touch coordinate information is within the edge suppression area and the touch type is click, or if the touch coordinate information is within the first suppression area and the touch type is click or press, then the touch information is generated by a user's accidental touch operation, and electronic device 100 will not execute the operation corresponding to the touch information through the first application. If the touch area information meets the first area restriction condition and the touch coordinate information is not within the edge suppression area and the touch information is not within the first suppression area, or if the touch area information meets the first area restriction condition and the touch type is swipe, or if the touch area information meets the first area restriction condition and the touch coordinate information is within the edge suppression area and the touch information is not within the first suppression area and the touch type is press, then it is determined that the touch information is not generated by a user's accidental touch operation, and electronic device 100 can execute the operation corresponding to the touch information through the first application.

[0373] For example, if electronic device 100 receives touch information and the first application is an editing application, and key value information was sent to electronic device 100 within the first M to N seconds before receiving the touch information, then if the touch area information does not meet the first area restriction condition, or if the touch coordinate information contains touch coordinates within the first suppression area and the touch type is click or press, then the touch information is generated by a user's accidental touch operation, and electronic device 100 does not execute the operation corresponding to the touch information through the first application. If the touch area information meets the first area restriction condition and the touch coordinate information is not within the third suppression area and the touch type is click or press, or if the touch area information meets the second area restriction condition and the touch type is swipe, then the touch information is not generated by a user's accidental touch operation, and electronic device 100 can execute the operation corresponding to the touch information through the first application.

[0374] The following details how electronic device 100 uses touch algorithm-based anti-mistouch processing, input method-based anti-mistouch processing, and keyboard-based anti-mistouch processing to determine whether touch information is generated by a mis-touch operation.

[0375] In some embodiments, the electronic device 100 may activate touch algorithm anti-mistouch processing, application-coordinated anti-mistouch processing, and keyboard-coordinated anti-mistouch processing.

[0376] For example, if electronic device 100 receives touch information and the input method is in the called state, and key value information is sent to electronic device 100 within the first B seconds before receiving the touch information, the touch information is generated by the user's accidental touch operation, and electronic device 100 does not execute the operation corresponding to the touch information through the first application.

[0377] For example, if electronic device 100 receives touch information and the input method is in the called state, and key value information is sent to electronic device 100 within the first B to M seconds before receiving the touch information, and if the touch area information does not meet the second area restriction condition, or if the touch coordinate information is within the edge suppression area and the touch type is click, or if the touch coordinate information is within the third suppression area and the touch type is click or press, then the touch information is generated by a user's accidental touch operation, and electronic device 100 does not execute the operation corresponding to the touch information through the first application. If the touch area information meets the second area restriction condition and the touch coordinate information is not within the edge suppression area and the touch information is not within the third suppression area, or if the touch area information meets the second area restriction condition and the touch type is swipe, or if the touch area information meets the second area restriction condition and the touch coordinate information is within the edge suppression area and the touch information is not within the third suppression area and the touch type is press, and it is determined that the touch information is not generated by a user's accidental touch operation, then electronic device 100 can execute the operation corresponding to the touch information through the first application.

[0378] For example, if electronic device 100 receives touch information and the input method is in the activated state, and key value information is sent to electronic device 100 within the first M to N seconds before receiving the touch information, and if the touch area information does not meet the second area restriction condition, or if the touch coordinate information contains touch coordinates within the third suppression area and the touch type is click or press, then the touch information is generated by a user's accidental touch operation, and electronic device 100 does not execute the operation corresponding to the touch information through the first application. If the touch area information meets the second area restriction condition and the touch coordinate information is not within the third suppression area and the touch type is click or press, or if the touch area information meets the second area restriction condition and the touch type is swipe, then the touch information is not generated by a user's accidental touch operation, and electronic device 100 can execute the operation corresponding to the touch information through the first application.

[0379] The following details how electronic device 100 uses touch algorithm-based anti-mistouch processing, application-coordinated anti-mistouch processing, input method-coordinated anti-mistouch processing, and keyboard-coordinated anti-mistouch processing to determine whether touch information is generated by a mis-touch operation.

[0380] In some embodiments, the electronic device 100 may activate touch algorithm anti-mistouch processing, application-coordinated anti-mistouch processing, input method-coordinated anti-mistouch processing, and keyboard-coordinated anti-mistouch processing.

[0381] For example, if electronic device 100 receives touch information and the first application type is an editing application and the input method is in the called state, and key value information is sent to electronic device 100 within the first B seconds before electronic device 100 receives touch information, the touch information is generated by the user's accidental touch operation, and electronic device 100 does not execute the operation corresponding to the touch information through the first application.

[0382] For example, if electronic device 100 receives touch information and the first application type is an editing application with the input method in the called state, and key value information was sent to electronic device 100 within the first B to M seconds before receiving the touch information, then if the touch area information does not meet the first area restriction condition, or if the touch coordinate information is within the edge suppression area and the touch type is click, or if the touch coordinate information is within the first suppression area and the touch type is click or press, then the touch information is generated by a user's accidental touch operation, and electronic device 100 will not execute the operation corresponding to the touch information through the first application. If the touch area information meets the first area restriction condition and the touch coordinate information is not within the edge suppression area and the touch information is not within the first suppression area, or if the touch area information meets the first area restriction condition and the touch type is swipe, or if the touch area information meets the first area restriction condition and the touch coordinate information is within the edge suppression area and the touch information is not within the first suppression area and the touch type is press, then it is determined that the touch information is not generated by a user's accidental touch operation, and electronic device 100 can execute the operation corresponding to the touch information through the first application.

[0383] For example, if electronic device 100 receives touch information and the first application type is an editing application with the input method in the invocation state, and key value information was sent to electronic device 100 within the first M to N seconds before receiving the touch information, then if the touch area information does not meet the first area restriction condition, or if the touch coordinate information contains touch coordinates within the first suppression area and the touch type is click or press, then the touch information is generated by a user's accidental touch operation, and electronic device 100 does not execute the operation corresponding to the touch information through the first application. If the touch area information meets the first area restriction condition and the touch coordinate information is not within the first suppression area and the touch type is click or press, or if the touch area information meets the first area restriction condition and the touch type is swipe, then the touch information is not generated by a user's accidental touch operation, and electronic device 100 can execute the operation corresponding to the touch information through the first application.

[0384] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, can implement the steps in the above-described method embodiments.

[0385] This application also provides a computer program product that, when run on an electronic device, enables the electronic device to perform the steps described in the various method embodiments above.

[0386] This application also provides a chip system, which includes a processor coupled to a memory. The processor executes a computer program stored in the memory to implement the steps of any method embodiment of this application. The chip system can be a single chip or a chip module composed of multiple chips.

[0387] The term "user interface (UI)" used in the specification and accompanying drawings of this application refers to the medium through which an application or operating system interacts and exchanges information with the user. It converts the internal form of information into a form acceptable to the user. The user interface of an application is source code written in a specific computer language such as Java or Extensible Markup Language (XML). This source code is parsed and rendered on the terminal device, ultimately presenting user-recognizable content, such as images, text, buttons, and other controls. Controls, also known as widgets, are the basic elements of the user interface. Typical controls include toolbars, menu bars, text boxes, buttons, scroll bars, images, and text. The attributes and content of controls in the interface are defined through tags or nodes, such as in XML. <textview> 、 <imgview> 、 <videoview>Nodes define the controls contained in the interface. A node corresponds to a control or property in the interface, and after parsing and rendering, the node is presented as the content visible to the user. In addition, many applications, such as hybrid applications, often contain web pages within their interfaces. A web page, also known as a page, can be understood as a special control embedded in the application interface. Web pages are source code written in a specific computer language, such as Hypertext Markup Language (HTML), Cascading Style Sheets (CSS), JavaScript, etc. The source code of a web page can be loaded and displayed as user-readable content by a browser or a web page display component with browser-like functionality. The specific content contained in a web page is also defined through tags or nodes in the web page's source code; for example, HTML uses tags or nodes to define the content. 、 、 <video> 、 <canvas>Used to define the elements and attributes of a webpage.

[0388] The most common form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation displayed graphically. It can be an interface element such as an icon, window, or control displayed on the screen of an electronic device. The control can include visual interface elements such as icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets.

[0389] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive), etc.

[0390] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.

[0391] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.< / canvas> < / video> < / videoview> < / imgview> < / textview>

Claims

1. A method for preventing accidental touches, characterized in that, Applied to electronic devices, the method includes: Display the interface of the first application; Receive touch information from the touchpad sent by the keyboard device; Acquire cursor information, input method status, application information of the first application, and time information of the keyboard device sending key value information to the electronic device; Based on the touch information, the application information of the first application, the cursor information, the input method status, and the time information of the keyboard device sending the key value information to the electronic device, it is determined whether the touch information was generated by a user's accidental touch operation; wherein, the touch information includes touch coordinate information, touch type, and touch area information; the touch coordinate information includes one or more touch coordinates; the touch type includes one or more of click, press, and swipe; the touch area information includes one or more of touch area, touch size, and / or touch shape; the application information of the first application includes the type of the first application and the editing area of ​​the first application; the cursor information includes cursor position and cursor status; the input method status includes invocation status or non-invocation status; If the touch information is generated by a user's accidental touch operation, the operation corresponding to the touch information will not be executed through the first application; If the touch information is not generated by a user's accidental touch, the operation corresponding to the touch information is executed through the first application.

2. The method according to claim 1, characterized in that, The step of determining whether the touch information was generated by a user's accidental touch based on the touch information, the application information of the first application, the cursor information, the input method status, and the time information of the keyboard device sending the key value information to the electronic device specifically includes: If the touch area information does not meet the first area restriction condition, or if the touch coordinate information is within the first suppression area and the touch type is click or press, the touch information is determined to be generated by the user's accidental touch operation; If the touch area information satisfies the first area restriction condition and the touch coordinate information is not within the first suppression area and the touch type is click or press, or if the touch area information satisfies the first area restriction condition and the touch type is swipe, it is determined that the touch information is not generated by the user's accidental touch operation; Wherein, the first application is an editing application, the input method is in the called state, the cursor is in the displayed state, and the electronic device does not receive the key value information sent by the keyboard device within the first N seconds after receiving the touch information.

3. The method according to claim 1, characterized in that, The step of determining whether the touch information was generated by a user's accidental touch based on the touch information, the application information of the first application, the cursor information, the input method status, and the time information of the keyboard device sending the key value information to the electronic device specifically includes: If the touch area information does not meet the first area restriction condition, or if one or more of the touch coordinates in the touch coordinate information are within the first suppression area and the touch type is click or press, then the touch information is determined to be generated by the user's accidental touch operation; If the touch area information satisfies the first area restriction condition and all touch coordinates in the touch coordinate information are not within the first suppression area and the touch type is click or press, or if the touch area information satisfies the first area restriction condition and the touch type is swipe, then it is determined that the touch information is not generated by the user's accidental touch operation. Wherein, the first application is an editing application, the input method is in the called state, the cursor is in the displayed state, and the electronic device receives the key value information sent by the keyboard device within the first M to N seconds before receiving the touch information, where M is less than N.

4. The method according to claim 1, characterized in that, The step of determining whether the touch information was generated by a user's accidental touch based on the touch information, the application information of the first application, the cursor information, the input method status, and the time information of the keyboard device sending the key value information to the electronic device specifically includes: If the touch area information does not meet the first area restriction condition, or if the touch coordinate information is within the edge suppression area and the touch type is click, or if the touch information is within the first suppression area and the touch type is click or press, then the touch information is determined to be generated by the user's accidental touch operation; If the touch area information satisfies the first area restriction condition and the touch coordinate information is not within the edge suppression area and the touch information is not within the first suppression area, or if the touch area information satisfies the first area restriction condition and the touch type is swipe, then it is determined that the touch information is not generated by the user's accidental touch operation. Wherein, the first application is an editing application, the input method is in the calling state, the cursor is in the display state, and the electronic device receives the key value information sent by the keyboard device within B seconds to M seconds before receiving the touch information, where B is less than M.

5. The method according to any one of claims 2-4, characterized in that, The minimum distance d between the area outside the first suppression region and the edge of the touchpad is d.

6. The method according to claim 1, characterized in that, The step of determining whether the touch information was generated by a user's accidental touch based on the touch information, the application information of the first application, the cursor information, the input method status, and the time information of the keyboard device sending the key value information to the electronic device specifically includes: The electronic device receives the key value information sent by the keyboard device within B seconds before receiving the touch information, and determines that the touch information was generated by the user's accidental touch operation.

7. The method according to claim 1, characterized in that, The step of determining whether the touch information was generated by a user's accidental touch based on the touch information, the application information of the first application, the cursor information, the input method status, and the time information of the keyboard device sending the key value information to the electronic device specifically includes: If the touch area information does not meet the first area restriction condition, or if the touch coordinate information is within the second suppression area and the touch type is click or press, the touch information is determined to be generated by the user's accidental touch operation; If the touch area information satisfies the first area restriction condition and the touch coordinate information is not within the second suppression area and the touch type is click or press, or if the touch area information satisfies the first area restriction condition and the touch type is swipe, it is determined that the touch information is not generated by the user's accidental touch operation; Wherein, the first application is an editing application, the input method is in an inactive state, the cursor is in a display state, and the electronic device does not receive the key value information sent by the keyboard device within the first N seconds after receiving the touch information.

8. The method according to claim 1, characterized in that, The step of determining whether the touch information was generated by a user's accidental touch based on the touch information, the application information of the first application, the cursor information, the input method status, and the time information of the keyboard device sending the key value information to the electronic device specifically includes: If the touch area information does not meet the first area restriction condition, or if one or more of the touch coordinates are in the second suppression area and the touch type is click or press, the touch information is determined to be generated by the user's accidental touch operation; If the touch area information satisfies the first area restriction condition and none of the touch coordinates in the touch coordinate information are within the second suppression area and the touch type is click or press, or if the touch area information satisfies the first area restriction condition and the touch type is swipe, then it is determined that the touch information is not generated by the user's accidental touch operation. Wherein, the first application is an editing application, the input method is in an inactive state, the cursor is in a display state, and the electronic device receives the key value information sent by the keyboard device within the first M to N seconds before receiving the touch information, where M is less than N.

9. The method according to claim 1, characterized in that, The step of determining whether the touch information was generated by a user's accidental touch based on the touch information, the application information of the first application, the cursor information, the input method status, and the time information of the keyboard device sending the key value information to the electronic device specifically includes: If the touch area information does not meet the first area restriction condition, or if the touch coordinate information is within the edge suppression area and the touch type is click, or if the touch information is within the second suppression area and the touch type is click or press, then the touch information is determined to be generated by the user's accidental touch operation; If the touch area information satisfies the first area restriction condition and the touch coordinate information is not within the edge suppression area and the touch information is not within the second suppression area, or if the touch area information satisfies the first area restriction condition and the touch type is swipe, then it is determined that the touch information is not generated by the user's accidental touch operation. Wherein, the first application is an editing application, the input method is in an inactive state, the cursor is in a display state, and the electronic device receives the key value information sent by the keyboard device within B seconds to M seconds before receiving the touch information, where B is less than M.

10. The method according to any one of claims 7-9, characterized in that, The minimum distance a from the edge of the touchpad to the area outside the second suppression region is .

11. The method according to any one of claims 3-4 or 8-9, characterized in that, The first region's restrictions include: The touch area is less than a first area mis-touch threshold and / or the touch size is less than a first size mis-touch threshold and / or the touch shape is close to a first preset shape.

12. The method according to claim 1, characterized in that, The step of determining whether the touch information was generated by a user's accidental touch based on the touch information, the application information of the first application, the cursor information, the input method status, and the time information of the keyboard device sending the key value information to the electronic device specifically includes: If the touch area information does not meet the second area restriction condition, or if the touch coordinate information is within the third suppression area and the touch type is click or press, the touch information is determined to be generated by the user's accidental touch operation; If the touch area information satisfies the second area restriction condition and the touch coordinate information is not within the third suppression area and the touch type is click or press, or if the touch area information satisfies the second area restriction condition and the touch type is swipe, it is determined that the touch information is not generated by the user's accidental touch operation; Wherein, the first application is a non-editing application, the input method is in the called state, the cursor is in the displayed state, and the electronic device does not receive the key value information sent by the keyboard device within the first N seconds after receiving the touch information.

13. The method according to claim 1, characterized in that, The step of determining whether the touch information was generated by a user's accidental touch based on the touch information, the application information of the first application, the cursor information, the input method status, and the time information of the keyboard device sending the key value information to the electronic device specifically includes: If the touch area information does not meet the second area restriction condition, or if one or more of the touch coordinates in the touch coordinate information are within the third suppression area and the touch type is click or press, then the touch information is determined to be generated by the user's accidental touch operation; If the touch area information satisfies the second area restriction condition and the touch coordinates in the touch coordinate information are not within the third suppression area and the touch type is click or press, or if the touch area information satisfies the second area restriction condition and the touch type is swipe, it is determined that the touch information is not generated by the user's accidental touch operation; Wherein, the first application is a non-editing application, the input method is in the called state, the cursor is in the display state, and the electronic device receives the key value information sent by the keyboard device within the first M to N seconds before receiving the touch information.

14. The method according to claim 1, characterized in that, The step of determining whether the touch information was generated by a user's accidental touch based on the touch information, the application information of the first application, the cursor information, the input method status, and the time information of the keyboard device sending the key value information to the electronic device specifically includes: If the touch area information does not meet the second area restriction condition, or if the touch coordinate information is within the edge suppression area and the touch type is click, or if the touch information is within the third suppression area and the touch type is click or press, then the touch information is determined to be generated by the user's accidental touch operation; If the touch area information satisfies the second area restriction condition and the touch coordinate information is not within the edge suppression area and the touch information is not within the third suppression area, or if the touch area information satisfies the second area restriction condition and the touch type is swipe, then it is determined that the touch information is not generated by the user's accidental touch operation. Wherein, the first application is a non-editing application, the input method is in the called state, the cursor is in the displayed state, and the electronic device receives the key value information sent by the keyboard device to the electronic device within B to M seconds before receiving the touch information.

15. The method according to any one of claims 12-14, characterized in that, The minimum distance c between the area outside the third suppression region and the edge of the touchpad is 1.

16. The method according to claim 1, characterized in that, The step of determining whether the touch information was generated by a user's accidental touch based on the touch information, the application information of the first application, the cursor information, the input method status, and the time information of the keyboard device sending the key value information to the electronic device specifically includes: If the touch area information does not meet the second area restriction conditions, the touch information is determined to be generated by the user's accidental touch operation. If the touch area information meets the second area restriction condition, it is determined that the touch information is not generated by the user's accidental touch operation; Wherein, the first application is a non-editing application, the input method is in an inactive state, the cursor is in a display state, and the electronic device does not receive the key value information sent by the keyboard device within the first N seconds after receiving the touch information.

17. The method according to claim 1, characterized in that, The step of determining whether the touch information was generated by a user's accidental touch based on the touch information, the application information of the first application, the cursor information, the input method status, and the time information of the keyboard device sending the key value information to the electronic device specifically includes: If the touch area information does not meet the second area restriction conditions, the touch information is determined to be generated by the user's accidental touch operation. If the touch area information meets the second area restriction condition, it is determined that the touch information is not generated by the user's accidental touch operation; Wherein, the first application is a non-editing application, the input method is in an inactive state, the cursor is in a display state, and the electronic device receives the key value information sent by the keyboard device within M to N seconds before receiving the touch information, where M is less than N.

18. The method according to claim 1, characterized in that, The step of determining whether the touch information was generated by a user's accidental touch based on the touch information, the application information of the first application, the cursor information, the input method status, and the time information of the keyboard device sending the key value information to the electronic device specifically includes: If the touch area information does not meet the second area restriction condition, or if the touch coordinate information is within the edge suppression area and the touch type is click, then the touch information is determined to be generated by the user's accidental touch operation; If the touch area information satisfies the second area restriction condition and the touch coordinate information is not within the edge suppression area, or if the touch area information satisfies the second area restriction condition and the touch type is swipe, then it is determined that the touch information is not generated by the user's accidental touch operation. Wherein, the first application is a non-editing application, the input method is in an inactive state, the cursor is in a display state, and the electronic device receives the key value information sent by the keyboard device within B to M seconds before receiving the touch information, where B is less than M.

19. The method according to any one of claims 4, 9, or 18, characterized in that, The minimum distance b between the area outside the edge suppression region and the left, right, and top edges of the touchpad is 1.

20. The method according to any one of claims 12-14 or 16-18, characterized in that, The second region restrictions include: The touch area is smaller than the second area mis-touch threshold and / or the touch size is smaller than the second size mis-touch threshold and / or the touch shape is close to the second preset shape; Among them, the second area false touch threshold is greater than the first area false touch threshold, the second size false touch threshold is greater than the first size false touch threshold, and the second preset shape has more types of shapes than the first preset shape.

21. The method according to claim 20, characterized in that, The step of determining whether the touch information was generated by a user's accidental touch based on the touch information, the application information of the first application, the cursor information, the input method status, and the time information of the keyboard device sending the key value information to the electronic device specifically includes: If the touch area information satisfies the second area restriction condition, or if the electronic device does not receive any of the key value information sent by the keyboard device within the first B seconds after receiving the touch information and one of them is not satisfied, and the cursor is in a hidden state, then the touch information is generated by the user's accidental touch operation.

22. The method according to claim 20, characterized in that, The step of determining whether the touch information was generated by a user's accidental touch based on the touch information, the application information of the first application, the cursor information, the input method status, and the time information of the keyboard device sending the key value information to the electronic device specifically includes: If the touch area information meets the second area restriction condition, and the electronic device has not received the key value information sent by the keyboard device within the first B seconds of receiving the touch information, and the cursor is in a hidden state, and the touch type is click or press, then the touch information is generated by the user's accidental touch operation.

23. The method according to claim 1, characterized in that, The electronic device includes an anti-accidental touch processing module, an input module, and a first application; if the touch information is generated by a user's accidental touch operation, the operation corresponding to the touch information is not executed through the first application, specifically including: If the anti-mistouch processing module determines that the touch information is generated by a user's mis-touch operation based on the touch information, the application information of the first application, the cursor information, the input method status, and the time information when the keyboard device sends the key value information to the electronic device, then the touch coordinate information in the touch information will be reported to the input module after the reporting time point specified by the input module. After receiving the touch coordinate information delayed by the anti-accidental touch processing module, the input module stops generating touch events to be reported to the first application based on the touch coordinate information.

24. The method according to claim 1, characterized in that, The electronic device includes an anti-accidental touch processing module, an input module, and a first application; the input module is used to generate a touch event to be reported to the first application based on the touch coordinate information reported by the anti-accidental touch processing module after receiving the touch coordinate information. If the touch information is generated by a user's accidental touch, the operation corresponding to the touch information will not be executed through the first application, specifically including: If the anti-mistouch processing module determines that the touch information is generated by a user's accidental touch operation based on the touch information, the application information of the first application, the cursor information, the input method status, and the time information when the keyboard device sends the key value information to the electronic device, then it will not report the touch coordinate information in the touch information to the input module.

25. The method according to claim 23 or 24, characterized in that, If the touch information is not generated by a user's accidental touch, the operation corresponding to the touch information is executed through the first application, specifically including: If the anti-mistouch processing module determines that the touch information is not generated by the user's accidental touch operation based on the touch information, the application information of the first application, the cursor information, the input method status, and the time information when the keyboard device sends the key value information to the electronic device, then the touch coordinate information in the touch information is reported to the input module at the reporting time point set by the input module. After receiving the touch coordinate information reported by the anti-accidental touch processing module at the set reporting time point, the input module generates a touch event to be reported to the first application based on the touch coordinate information. After receiving the touch event reported by the input module, the first application executes the operation corresponding to the touch coordinate information.

26. The method according to claim 23 or 24, characterized in that, The electronic device further includes a cursor service; the method further includes: After receiving the touch coordinate information, the input module sends the touch coordinate information to the cursor service; The cursor service displays the cursor based on the touch coordinate information.

27. An electronic device, characterized in that, It includes one or more processors and one or more memories; wherein the one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer instructions that, when executed by the one or more processors, cause the electronic device to perform the method as described in any one of claims 1-26.

28. A chip, characterized in that, The chip is used in an electronic device. The chip includes a processing circuit and an interface circuit. The interface circuit is used to receive instructions and transmit them to the processing circuit. The processing circuit is used to execute the instructions to perform the method as described in any one of claims 1-26.

29. A computer-readable storage medium, characterized in that, Includes instructions that, when executed on a processor of an electronic device, cause the electronic device to perform the method as described in any one of claims 1-26.