WO2016041429A1 - Method and device for avoiding touch-screen key failure and computer storage medium - Google Patents

Method and device for avoiding touch-screen key failure and computer storage medium Download PDF

Info

Publication number
WO2016041429A1
WO2016041429A1 PCT/CN2015/087417 CN2015087417W WO2016041429A1 WO 2016041429 A1 WO2016041429 A1 WO 2016041429A1 CN 2015087417 W CN2015087417 W CN 2015087417W WO 2016041429 A1 WO2016041429 A1 WO 2016041429A1
Authority
WO
WIPO (PCT)
Prior art keywords
touch
instruction
touch screen
touch instruction
range
Prior art date
Application number
PCT/CN2015/087417
Other languages
French (fr)
Chinese (zh)
Inventor
朱冰
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016041429A1 publication Critical patent/WO2016041429A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means

Definitions

  • the present invention relates to communication technologies, and in particular, to a method, device, and computer storage medium for preventing a button from being disabled by a touch screen.
  • the touch screen is a kind of transparent medium attached to the surface of the display.
  • capacitive touch screen applications are more extensive, mainly related to communications and consumer electronics, such as: smart phones, mobile phones, multimedia players, tablets (such as PAD).
  • a capacitive touch screen judges a touch point by sensing a change in capacitance generated by a human touch. It has two sets of signal lines: a drive line and a sense line, the drive line emits a signal, and the sense line detects a change in the capacitance value.
  • the finger touches the metal layer due to the presence of the human body electric field, the finger and the surface of the touch screen form a coupling capacitor.
  • the capacitor is a direct conductor, and the finger sucks a small current from the contact point. The coupling between the two electrodes near the touch point is affected, thereby changing the capacitance between the two electrodes.
  • the electrodes in the direction of the driving line sequentially emit excitation signals, and all the electrodes in the direction of the sensing line receive signals at the same time, so that the capacitance values of all the intersections of the lateral and longitudinal electrodes can be obtained, that is, the two-dimensional plane of the entire touch screen.
  • the size of the capacitor, according to the two-dimensional capacitance change data of the touch screen can calculate the coordinates of each touch point, so even if there are multiple touch points on the screen, the true coordinates of each touch point can be calculated.
  • Embodiments of the present invention are directed to a method, apparatus, and computer storage medium for preventing failure of a touch screen button to at least solve the problem of failure of the touch screen button due to edge touch when the touch screen device is held.
  • a method of preventing a touch screen button from failing is provided.
  • the method for preventing a touch screen button from being invalidated in the embodiment of the present invention includes: receiving a first touch command, determining whether the first touch command belongs to an incorrect touch command; and detecting whether the first touch command belongs to a false touch command a second touch instruction; when the detection result is that the second touch instruction exists simultaneously, determining whether the second touch instruction is a touch screen button instruction; and when the second touch instruction is the touch screen button instruction, executing The second touch instruction.
  • determining whether the first touch instruction belongs to a false touch instruction includes: determining whether a horizontal coordinate of a touch operation corresponding to the first touch instruction on a touch screen of the touch device is within a first predetermined position range And/or determining whether the touch operation corresponding to the first touch instruction is within a second predetermined range of the ordinate of the touch device; when the touch operation corresponding to the first touch instruction is on a touch screen of the touch device When the abscissa is located within the first predetermined position range, and/or the touch operation corresponding to the first touch instruction is determined to be the first when the ordinate of the touch device is within the second predetermined range
  • the touch command is a false touch command.
  • the first predetermined location range includes: a first coordinate range that is less than or equal to a first preset threshold by a distance from a long edge of the touch screen;
  • the second predetermined position range includes: a second coordinate range whose distance from the short edge of the touch screen is less than or equal to a second preset threshold.
  • the method further includes: executing the first touch instruction when the first touch instruction does not belong to an erroneous touch instruction.
  • the first predetermined position range and/or the second predetermined position range is a preset range.
  • an apparatus for preventing a touch screen button from failing is provided.
  • a receiving module configured to receive the first touch instruction
  • the first determining module is configured to determine whether the first touch command received by the receiving module is a false touch command
  • a detecting module configured to detect whether the second touch instruction exists at the same time when the first determining module determines that the first touch instruction belongs to a false touch instruction
  • the second determining module is configured to determine, when the detection result obtained by the detecting module is that the second touch instruction exists simultaneously, whether the second touch instruction is a touch screen button instruction;
  • the first execution module is configured to execute the second touch instruction when the second determining module determines that the second touch instruction is the touch screen button instruction.
  • the first determining module is configured to determine whether a horizontal coordinate of the touch operation corresponding to the first touch instruction on the touch screen of the touch device is within a first predetermined position range, and/or determine Whether the touch operation corresponding to the first touch instruction is within a second predetermined range of the ordinate of the touch device; when the touch operation corresponding to the first touch command is located on the touch screen of the touch device
  • the touch operation corresponding to the first touch instruction determines that the first touch instruction belongs to a false touch when the ordinate of the touch device is within the second predetermined range. instruction.
  • the first predetermined location range includes: a first coordinate range that is less than or equal to a first preset threshold by a distance from a long edge of the touch screen;
  • the second predetermined position range includes: a second coordinate range whose distance from the short edge of the touch screen is less than or equal to a second preset threshold.
  • the apparatus further includes a second execution module configured to execute the first touch instruction when the first touch instruction does not belong to an erroneous touch instruction.
  • the apparatus further includes a setting module configured to set the first predetermined position range and/or the second predetermined position range.
  • a computer storage medium is provided.
  • the computer storage medium of the embodiment of the invention wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are configured to perform the method for preventing the button from being disabled by the touch screen according to the embodiment of the invention.
  • the technical solution of the embodiment of the present invention when detecting an edge touch error, if the touch screen button command is detected at the same time, the technical solution of the touch screen button command is executed.
  • the invention solves the problem that the touch screen button is invalid due to edge mis-touch, which improves the user's operating experience.
  • FIG. 1 is a flow chart of a method for preventing a touch screen button from being invalid according to an embodiment of the present invention
  • FIG. 2 is a first structural block diagram of an apparatus for preventing a touch screen button from being invalid according to an embodiment of the present invention
  • FIG. 3 is a second structural block diagram of an apparatus for preventing a touch screen button from being invalid according to an embodiment of the present invention
  • FIG. 4 is a third structural block diagram of an apparatus for preventing a touch screen button from being invalid according to an embodiment of the present invention
  • FIG. 5 is a flow chart of another method for preventing failure of a touch screen button according to an embodiment of the present invention.
  • FIG. 6 is a schematic plan view of a handheld touch screen device according to an embodiment of the present invention.
  • FIG. 7a and 7b are schematic views of a user-customizable edge region width according to an embodiment of the present invention, respectively.
  • FIG. 1 is a flow chart of a method for preventing a touch screen button from failing according to an embodiment of the present invention. As shown in FIG. 1, the method includes:
  • S102 Receive a first touch instruction, and determine whether the first touch instruction belongs to a false touch instruction.
  • the method for preventing the failure of the touch screen button should be configured as a touch device, and the touch device is specifically a device provided with a touch screen; the touch device may be a mobile terminal, such as a mobile phone, a tablet computer, or a notebook. A computer or the like; the touch device may also be a desktop computer with a touch screen, an all-in-one computer, or the like.
  • the user first turns on the touch device, wakes up the screen and touches the touch device, at which time the touch device receives the first touch command. Determining whether the first touch instruction belongs to a false touch, mainly by determining whether a touch operation corresponding to the first touch instruction is on a preset touch area on a touch screen of the touch device.
  • the first predetermined range includes: a first coordinate range that is less than or equal to a first preset threshold from a long edge of the touch screen; and the second predetermined position range includes: a distance from a short edge of the touch screen is less than or equal to a second The second coordinate range of the preset threshold.
  • the first predetermined range may include two ranges, that is, the distance from the first long edge of the touch screen is less than or equal to the first one.
  • Threshold a first sub-coordinate range of values, a distance from a second long edge of the touch screen that is less than or equal to a second sub-coordinate range of the second threshold; and in another real-time manner, a distance from the first long edge and the second long edge of the touch screen Both are less than or equal to the first preset threshold, that is, the first coordinate range of the long side near the two sides of the touch screen is the same.
  • the second predetermined position range is similar to the first predetermined position range, and details are not described herein again.
  • the distance from the first long edge is 5 mm
  • the first coordinate range is a coordinate range of 5 mm from the first long edge
  • the first predetermined range is also 5 mm, within a point coordinate range of the touch screen from the first long edge of 5 mm. Both belong to the point of wrong touch.
  • the distance from the second long edge can be set to 6mm.
  • the distance from the first short edge is set to 4 mm
  • the second coordinate range is a coordinate range of 4 mm from the first short edge
  • the second predetermined range is also 4 mm
  • the coordinate range of the touch screen is 4 mm from the first short edge.
  • the distance from the second short edge can be set to 3mm and so on. The user can set the first predetermined position range and/or the second predetermined position range autonomously.
  • the method further includes executing the first touch instruction.
  • the touch screen button command may be any button command, and the button command may correspond to any button in the touch screen, including a virtual button or a physical button; the touch screen button command includes a bottom button command of the touch screen.
  • the bottom button command can perform a corresponding button operation
  • Features including mechanical buttons and/or non-mechanical buttons (can be understood as virtual buttons).
  • the touch device when the first trigger instruction is a false touch instruction and a second touch instruction representing a touch screen button instruction exists at the same time, the touch device does not execute (ie, masks) the first trigger instruction, directly Executing the second touch instruction.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are configured to perform the method for preventing the button from being disabled by the touch screen according to the embodiment of the invention.
  • the technical solution of the embodiment of the present invention when detecting the presence of an edge touch, if the touch screen button command is detected at the same time, the technical solution of the touch screen button command is executed.
  • the invention solves the problem that the touch screen button is invalid due to edge mis-touch, which improves the user's operating experience.
  • a device for preventing the failure of the touch screen button is further provided.
  • the device is applied to the terminal, and the terminal may be a mobile terminal with a touch screen, such as a mobile phone, a tablet computer, a notebook computer, etc.; Specifically, it may be a terminal such as a desktop computer or an all-in-one computer having a touch screen.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • 2 is a first structural block diagram of an apparatus for preventing a touch screen button from failing according to an embodiment of the present invention. As shown in FIG. 2, the device includes:
  • the receiving module 10 is configured to receive a first touch instruction
  • the first determining module 20 is configured to determine whether the first touch instruction received by the receiving module belongs to a false touch instruction
  • the detecting module 30 is configured to detect whether the second touch instruction exists at the same time when the first determining module 20 determines that the first touch instruction belongs to a false touch instruction;
  • the second determining module 40 is configured to determine whether the second touch command is a touch screen button command when the detection result obtained by the detecting module 30 is that the second touch command exists simultaneously;
  • the first execution module 50 is configured to execute the second touch instruction when the second determining module 40 determines that the second touch instruction is the touch screen button instruction.
  • the first determining module is configured to determine whether a horizontal coordinate of the touch operation corresponding to the first touch instruction on the touch screen of the touch device is within a first predetermined position range, and/or determine the first Whether a touch operation corresponding to a touch instruction is located within a second predetermined range of the ordinate of the touch device; and an abscissa of the touch operation corresponding to the first touch instruction on the touch screen of the touch device is located at the first
  • the touch operation corresponding to the first touch instruction determines that the first touch instruction belongs to a false touch instruction when the ordinate of the touch device is within the second predetermined range.
  • the first predetermined range includes: a first coordinate range that is less than or equal to a first preset threshold from a long edge of the touch screen; and the second predetermined position range includes: a distance from a short edge of the touch screen is less than or equal to The second coordinate range of the second preset threshold.
  • the first predetermined range may include two ranges, that is, a distance from a first long edge of the touch screen is less than or equal to a first threshold first sub-coordinate range, and a distance from a second long edge of the touch screen is less than Or a second sub-coordinate range equal to the second threshold; as another real-time manner, the distance from the first long edge and the second long edge of the touch screen is less than or equal to the first preset threshold, that is, close to both sides of the touch screen
  • the first coordinate range of the long side is the same.
  • the second predetermined position range is similar to the first predetermined position range, and details are not described herein again.
  • the distance from the first long edge is 5 mm
  • the first coordinate range is a coordinate range of 5 mm from the first long edge
  • the first predetermined range is also 5 mm, within a point coordinate range of the touch screen from the first long edge of 5 mm. Both belong to the point of wrong touch.
  • 6mm from the second long edge For another example, 4 mm from the first short edge
  • the second coordinate range is a coordinate range of 4 mm from the first short edge
  • the second predetermined range is also 4 mm, and is within a point coordinate range of the touch screen from the first short edge of 4 mm, which is a point of false touch.
  • the distance from the second short edge is 3mm and so on.
  • the user can set the first predetermined location range and/or the second predetermined location range.
  • the user may preset the first predetermined location range and/or the second predetermined location range in an operation interface of the touch device. Such different users can set the area that is touched by mistake according to their own needs.
  • the device further includes a setting module 00 configured to set the first a predetermined range of locations and/or the second predetermined range of locations.
  • the user may set the first predetermined location range and the second predetermined location range in an interface of the touch device through the setting module 00.
  • Such different users can set the areas that are touched by mistake according to their own needs.
  • FIG. 4 is a third structural block diagram of an apparatus for preventing a touch screen button from being invalid according to an embodiment of the present invention.
  • the apparatus further includes a second execution module 60 configured to be The first touch instruction is executed when the first touch instruction is not an erroneous touch instruction.
  • the detection module 30, the second determination module 40, and the first execution module 50 will not be activated, and only the second execution module 60 executes the first touch instruction.
  • the receiving module 10, the first determining module 20, the detecting module 30, the second determining module 40, the first executing module 50, the setting module 00, and the second executing module 60 can all be used in practical applications.
  • the central processing unit (CPU), the digital signal processor (DSP), or the field-programmable gate array (FPGA) in the device for preventing the failure of the touch screen button is implemented.
  • FIG. 5 is a flowchart of another method for preventing a touch screen button from being invalid according to an embodiment of the present invention.
  • the method for preventing the touch screen button from failing includes:
  • FIG. 6 is a schematic plan view of a handheld touch screen device according to an embodiment of the present invention; as shown in FIG. 6, the shaded area shown in the figure is the edge area of both sides of the touch screen, that is, the first predetermined position range described in the foregoing embodiment. And a second predetermined position range; L is a first preset threshold of the set long distance edge, in the embodiment, the first threshold from the first long edge and the second threshold from the second long edge are equal, The first threshold and the second threshold may be changed according to user settings.
  • the embodiment provides a method according to the present application.
  • the method can execute the instruction corresponding to the touch screen button.
  • FIG. 7a and 7b are respectively schematic diagrams of interfaces for customizing the width of an edge region according to an embodiment of the present application; as shown in FIG. 7a, a function option for customizing the width of an edge region is provided in a setting interface of the terminal, which can be The user sets the width of the edge area. As shown in Figure 7b, the user can set different numbers, such as 100, etc., according to the user's needs. If the user If the relevant settings are not made, the system default width value is adopted; otherwise, it will be adjusted according to the user's input.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG.
  • the computer program instructions can be provided to a processor of a general purpose computer, a special purpose computer, an embedded processor, or other programmable data processing device to produce a machine such that the instructions are executed by a processor or other programmable data processing device.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps that are configured to implement the functions specified in one or more blocks of the flowchart or in a block or blocks of the flowchart.
  • the technical solution of the touch screen button command is executed.
  • the invention solves the problem that the touch screen button is invalid due to edge mis-touch, which improves the user's operating experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Position Input By Displaying (AREA)

Abstract

A method and device for avoiding touch-screen key failure and a computer storage medium. The method comprises: receiving a first touch instruction, and judging whether the first touch instruction is an error touch instruction (S102); when the first touch instruction is an error touch instruction, detecting whether a second touch instruction exists at the same time (S104); when a detection result is that a second touch instruction exists at the same time, judging whether the second touch instruction is a touch-screen key instruction (S106); and when the second touch instruction is a touch-screen key instruction, executing the second touch instruction (S108).

Description

一种防止触屏按键失效的方法、装置及计算机存储介质Method, device and computer storage medium for preventing touch screen button failure 技术领域Technical field
本发明涉及通信技术,具体涉及一种触屏防止按键失效的方法、装置及计算机存储介质。The present invention relates to communication technologies, and in particular, to a method, device, and computer storage medium for preventing a button from being disabled by a touch screen.
背景技术Background technique
触摸屏是一种附加在显示器表面的透明介质,目前主要有以下几种类型:电阻式、表面电容式和感应电容式、表面声波式、红外式等。其中,电容式触摸屏应用较为广泛,主要涉及到通信和电子消费品,如:智能手机、移动电话、多媒体播放器、平板电脑(如PAD)等。The touch screen is a kind of transparent medium attached to the surface of the display. At present, there are mainly the following types: resistive type, surface capacitive type and inductive capacitive type, surface acoustic wave type, infrared type and the like. Among them, capacitive touch screen applications are more extensive, mainly related to communications and consumer electronics, such as: smart phones, mobile phones, multimedia players, tablets (such as PAD).
电容式触摸屏是通过感应人体触摸所产生的电容变化而判断触摸点的。它具有两组信号线:驱动线与感应线,驱动线发射信号,感应线侦测电容值的变化。当手指触摸在金属层上时,由于人体电场的存在,手指和触摸屏表面形成一个耦合电容,对于高频电流来说,电容是直接导体,于是手指从接触点吸走一个很小的电流。影响了触摸点附近两个电极之间的耦合,从而改变了这两个电极之间的电容量。检测互电容大小时,驱动线方向的电极依次发出激励信号,感应线方向的所有电极同时接收信号,这样可以得到所有横向和纵向电极交汇点的电容值的变化,即整个触摸屏的二维平面的电容大小,根据触摸屏二维电容变化量数据,可以计算出每一个触摸点的坐标,因此屏上即使有多个触摸点,也能计算出每个触摸点的真实坐标。A capacitive touch screen judges a touch point by sensing a change in capacitance generated by a human touch. It has two sets of signal lines: a drive line and a sense line, the drive line emits a signal, and the sense line detects a change in the capacitance value. When the finger touches the metal layer, due to the presence of the human body electric field, the finger and the surface of the touch screen form a coupling capacitor. For high-frequency current, the capacitor is a direct conductor, and the finger sucks a small current from the contact point. The coupling between the two electrodes near the touch point is affected, thereby changing the capacitance between the two electrodes. When detecting the mutual capacitance, the electrodes in the direction of the driving line sequentially emit excitation signals, and all the electrodes in the direction of the sensing line receive signals at the same time, so that the capacitance values of all the intersections of the lateral and longitudinal electrodes can be obtained, that is, the two-dimensional plane of the entire touch screen. The size of the capacitor, according to the two-dimensional capacitance change data of the touch screen, can calculate the coordinates of each touch point, so even if there are multiple touch points on the screen, the true coordinates of each touch point can be calculated.
随着手持式触摸屏移动通讯终端技术的进步,使用手持式触摸屏移动通讯终端的用户日益增加,尤其是大尺寸触摸屏设备,更是受到用户的广泛青睐。然而,尺寸越来越大的触摸屏设备,使得用户单手操作起来变的 越来越困难,当用户一手持握时,配置为持握的手会在不经意间触碰到触摸屏边缘,此时用户再操作触摸屏时会导致触屏按键失效的问题,从而影响用户的操作和体验。With the advancement of handheld touch screen mobile communication terminal technology, users of handheld touch screen mobile communication terminals are increasing, especially large-sized touch screen devices, which are widely favored by users. However, the ever-larger size of the touch screen device makes the user's one-hand operation become more It is more and more difficult. When the user holds the hand, the hand configured to hold the hand will inadvertently touch the edge of the touch screen. At this time, when the user operates the touch screen again, the touch screen button may be invalid, thereby affecting the operation of the user. Experience.
发明内容Summary of the invention
本发明实施例期望提供了一种防止触屏按键失效的方法、装置及计算机存储介质,以至少解决持握触屏设备时由于边缘触摸从而导致触屏按键失效的问题。Embodiments of the present invention are directed to a method, apparatus, and computer storage medium for preventing failure of a touch screen button to at least solve the problem of failure of the touch screen button due to edge touch when the touch screen device is held.
根据本发明实施例的一个方面,提供了一种防止触屏按键失效的方法。In accordance with an aspect of an embodiment of the present invention, a method of preventing a touch screen button from failing is provided.
本发明实施例的防止触屏按键失效的方法包括:接收第一触摸指令,判断所述第一触摸指令是否属于误触摸指令;当所述第一触摸指令属于误触摸指令时,检测是否同时存在第二触摸指令;当检测结果为同时存在所述第二触摸指令时,判断所述第二触摸指令是否是触屏按键指令;当所述第二触摸指令是所述触屏按键指令时,执行所述第二触摸指令。The method for preventing a touch screen button from being invalidated in the embodiment of the present invention includes: receiving a first touch command, determining whether the first touch command belongs to an incorrect touch command; and detecting whether the first touch command belongs to a false touch command a second touch instruction; when the detection result is that the second touch instruction exists simultaneously, determining whether the second touch instruction is a touch screen button instruction; and when the second touch instruction is the touch screen button instruction, executing The second touch instruction.
作为一种实施方式,判断所述第一触摸指令是否属于误触摸指令包括:判断所述第一触摸指令对应的触摸操作在所述触摸设备的触摸屏上的横坐标是否位于第一预定位置范围内,和/或判断所述第一触摸指令对应的触摸操作在所述触摸设备的纵坐标是否位于第二预定范围内;当所述第一触摸指令对应的触摸操作在所述触摸设备的触摸屏上的横坐标位于所述第一预定位置范围内时,和/或所述第一触摸指令对应的触摸操作在所述触摸设备的纵坐标位于所述第二预定范围内时,判定所述第一触摸指令属于误触摸指令。As an implementation manner, determining whether the first touch instruction belongs to a false touch instruction includes: determining whether a horizontal coordinate of a touch operation corresponding to the first touch instruction on a touch screen of the touch device is within a first predetermined position range And/or determining whether the touch operation corresponding to the first touch instruction is within a second predetermined range of the ordinate of the touch device; when the touch operation corresponding to the first touch instruction is on a touch screen of the touch device When the abscissa is located within the first predetermined position range, and/or the touch operation corresponding to the first touch instruction is determined to be the first when the ordinate of the touch device is within the second predetermined range The touch command is a false touch command.
作为一种实施方式,所述第一预定位置范围包括:距离触摸屏的长边缘的距离小于或等于第一预设阈值的第一坐标范围;In an embodiment, the first predetermined location range includes: a first coordinate range that is less than or equal to a first preset threshold by a distance from a long edge of the touch screen;
所述第二预定位置范围包括:距离触摸屏的短边缘的距离小于或等于第二预设阈值的第二坐标范围。 The second predetermined position range includes: a second coordinate range whose distance from the short edge of the touch screen is less than or equal to a second preset threshold.
作为一种实施方式,所述方法还包括:当所述第一触摸指令不属于误触摸指令时,执行所述第一触摸指令。In one embodiment, the method further includes: executing the first touch instruction when the first touch instruction does not belong to an erroneous touch instruction.
作为一种实施方式,所述第一预定位置范围和/或所述第二预定位置范围为预先设定的范围。As an embodiment, the first predetermined position range and/or the second predetermined position range is a preset range.
根据本发明实施例的另一个方面,提供了一种防止触屏按键失效的装置。According to another aspect of an embodiment of the present invention, an apparatus for preventing a touch screen button from failing is provided.
本发明实施例的防止触屏按键失效的装置包括:The device for preventing the failure of the touch screen button in the embodiment of the invention includes:
接收模块,配置为接收第一触摸指令,a receiving module configured to receive the first touch instruction,
第一判断模块,配置为判断所述接收模块接收的第一触摸指令是否属于误触摸指令;The first determining module is configured to determine whether the first touch command received by the receiving module is a false touch command;
检测模块,配置为当所述第一判断模块判定所述第一触摸指令属于误触摸指令时,检测是否同时存在第二触摸指令,a detecting module, configured to detect whether the second touch instruction exists at the same time when the first determining module determines that the first touch instruction belongs to a false touch instruction,
第二判断模块,配置为当所述检测模块获得的检测结果为同时存在所述第二触摸指令时,判断所述第二触摸指令是否是触屏按键指令;The second determining module is configured to determine, when the detection result obtained by the detecting module is that the second touch instruction exists simultaneously, whether the second touch instruction is a touch screen button instruction;
第一执行模块,配置为当所述第二判断模块判定所述第二触摸指令是所述触屏按键指令,执行所述第二触摸指令。The first execution module is configured to execute the second touch instruction when the second determining module determines that the second touch instruction is the touch screen button instruction.
作为一种实施方式,所述第一判断模块,配置为判断所述第一触摸指令对应的触摸操作在所述触摸设备的触摸屏上的横坐标是否位于第一预定位置范围内,和/或判断所述第一触摸指令对应的触摸操作在所述触摸设备的纵坐标是否位于第二预定范围内;当所述第一触摸指令对应的触摸操作在所述触摸设备的触摸屏上的横坐标位于所述第一预定位置范围内时,和/或所述第一触摸指令对应的触摸操作在所述触摸设备的纵坐标位于所述第二预定范围内时,判定所述第一触摸指令属于误触摸指令。In an embodiment, the first determining module is configured to determine whether a horizontal coordinate of the touch operation corresponding to the first touch instruction on the touch screen of the touch device is within a first predetermined position range, and/or determine Whether the touch operation corresponding to the first touch instruction is within a second predetermined range of the ordinate of the touch device; when the touch operation corresponding to the first touch command is located on the touch screen of the touch device When the first predetermined position range is described, the touch operation corresponding to the first touch instruction determines that the first touch instruction belongs to a false touch when the ordinate of the touch device is within the second predetermined range. instruction.
作为一种实施方式,所述第一预定位置范围包括:距离触摸屏的长边缘的距离小于或等于第一预设阈值的第一坐标范围; In an embodiment, the first predetermined location range includes: a first coordinate range that is less than or equal to a first preset threshold by a distance from a long edge of the touch screen;
所述第二预定位置范围包括:距离触摸屏的短边缘的距离小于或等于第二预设阈值的第二坐标范围。The second predetermined position range includes: a second coordinate range whose distance from the short edge of the touch screen is less than or equal to a second preset threshold.
作为一种实施方式,所述装置还包括第二执行模块,配置为当所述第一触摸指令不属于误触摸指令时,执行所述第一触摸指令。In one embodiment, the apparatus further includes a second execution module configured to execute the first touch instruction when the first touch instruction does not belong to an erroneous touch instruction.
作为一种实施方式,所述装置还包括设置模块,配置为设置所述第一预定位置范围和/或所述第二预定位置范围。As an embodiment, the apparatus further includes a setting module configured to set the first predetermined position range and/or the second predetermined position range.
根据本发明实施例的第三个方面,提供了一种计算机存储介质。According to a third aspect of an embodiment of the present invention, a computer storage medium is provided.
本发明实施例的计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令配置为执行本发明实施例所述的触屏防止按键失效的方法。The computer storage medium of the embodiment of the invention, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are configured to perform the method for preventing the button from being disabled by the touch screen according to the embodiment of the invention.
通过本发明实施例的技术方案,通过检测存在边缘误触摸时,如果同时检测到触屏按键指令,则执行所述触屏按键指令的技术方案。解决了相关技术中由于边缘误触摸进而导致触屏按键失效的问题,提高了用户的操作体验。According to the technical solution of the embodiment of the present invention, when detecting an edge touch error, if the touch screen button command is detected at the same time, the technical solution of the touch screen button command is executed. The invention solves the problem that the touch screen button is invalid due to edge mis-touch, which improves the user's operating experience.
附图说明DRAWINGS
图1为本发明实施例的防止触屏按键失效的方法流程图;1 is a flow chart of a method for preventing a touch screen button from being invalid according to an embodiment of the present invention;
图2为本发明实施例的防止触屏按键失效的装置的第一种结构框图;2 is a first structural block diagram of an apparatus for preventing a touch screen button from being invalid according to an embodiment of the present invention;
图3为本发明实施例的防止触屏按键失效的装置的第二种结构框图;3 is a second structural block diagram of an apparatus for preventing a touch screen button from being invalid according to an embodiment of the present invention;
图4为本发明实施例的防止触屏按键失效的装置的第三种结构框图;4 is a third structural block diagram of an apparatus for preventing a touch screen button from being invalid according to an embodiment of the present invention;
图5是本发明实施例的防止触屏按键失效的另一种方法流程图;5 is a flow chart of another method for preventing failure of a touch screen button according to an embodiment of the present invention;
图6是本发明实施例的手持触摸屏设备的平面示意图;6 is a schematic plan view of a handheld touch screen device according to an embodiment of the present invention;
图7a和图7b分别是本发明实施例的可供用户自定义边缘区域宽度的示意图。 7a and 7b are schematic views of a user-customizable edge region width according to an embodiment of the present invention, respectively.
具体实施方式detailed description
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本发明。It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. The invention will be described in detail below with reference to the drawings in conjunction with the embodiments.
图1为本发明实施例的防止触屏按键失效的方法的流程图。如图1所示,所述方法包括:1 is a flow chart of a method for preventing a touch screen button from failing according to an embodiment of the present invention. As shown in FIG. 1, the method includes:
S102:接收第一触摸指令,判断该第一触摸指令是否属于误触摸指令。S102: Receive a first touch instruction, and determine whether the first touch instruction belongs to a false touch instruction.
本实施例中,所述防止触屏按键失效的方法应配置为触摸设备中,所述触摸设备具体为设置有触摸屏的设备;所述触摸设备具体可以是移动终端,如手机、平板电脑、笔记本电脑等;所述触摸设备也可以是具有触摸屏的台式电脑、一体机电脑等等。In this embodiment, the method for preventing the failure of the touch screen button should be configured as a touch device, and the touch device is specifically a device provided with a touch screen; the touch device may be a mobile terminal, such as a mobile phone, a tablet computer, or a notebook. A computer or the like; the touch device may also be a desktop computer with a touch screen, an all-in-one computer, or the like.
在本发明的一个实施例中,使用者首先开启触摸设备,唤醒屏幕并触摸所述触摸设备,这时所述触摸设备接收第一触摸指令。判断所述第一触摸指令是否属于误触摸,主要通过判定所述第一触摸指令对应的触摸操作是否在所述触摸设备的触屏屏上的预设触摸区域。具体的,判断所述第一触摸指令对应的触摸操作在所述触摸设备的触摸屏上的横坐标是否位于在第一预定位置范围内和/或判断所述第一触摸指令对应的触摸操作在所述触摸设备的纵坐标是否位于第二预定范围内;当所述第一触摸指令对应的触摸操作在所述触摸设备的触摸屏上的横坐标位于第一预定位置范围内时,和/或所述第一触摸指令对应的触摸操作在所述触摸设备的纵坐标位于第二预定范围内时,判定所述第一触摸指令属于误触摸指令。In one embodiment of the invention, the user first turns on the touch device, wakes up the screen and touches the touch device, at which time the touch device receives the first touch command. Determining whether the first touch instruction belongs to a false touch, mainly by determining whether a touch operation corresponding to the first touch instruction is on a preset touch area on a touch screen of the touch device. Specifically, determining whether a horizontal coordinate of the touch operation corresponding to the first touch instruction on the touch screen of the touch device is within a first predetermined position range and/or determining that the touch operation corresponding to the first touch instruction is in the Whether the ordinate of the touch device is located within a second predetermined range; when the abscissa corresponding to the touch operation on the touch screen of the touch device is within a first predetermined position range, and/or The touch operation corresponding to the first touch instruction determines that the first touch instruction belongs to a false touch instruction when the ordinate of the touch device is within a second predetermined range.
所述第一预定范围包括:距离触摸屏的长边缘的距离小于或等于第一预设阈值的第一坐标范围;所述第二预定位置范围包括:距离触摸屏的短边缘的距离小于或等于第二预设阈值的第二坐标范围。其中,由于所述触摸屏的长边缘和短边缘各有两个,作为一种实施方式,所述第一预定范围可以包括两个范围,即距离触摸屏的第一长边缘的距离小于或等于第一阈 值第一子坐标范围,距离触摸屏的第二长边缘的距离小于或等于第二阈值的第二子坐标范围;作为另一种实时方式,距离触摸屏的第一长边缘和第二长边缘的距离均小于或等于第一预设阈值,即靠近所述触摸屏两侧的长侧边的第一坐标范围相同。所述第二预定位置范围与所述第一预定位置范围相似,这里不再赘述。例如,距离第一长边缘5mm,则第一坐标范围是距离所述第一长边缘为5mm的坐标范围,第一预定范围也是5mm,在触摸屏距离第一长边缘5mm的点坐标范围之内,都属于误触摸的点。同理,距离第二长边缘可以设置为6mm。再例如,距离第一短边缘设置为4mm,则第二坐标范围是距离所述第一短边缘为4mm的坐标范围,第二预定范围也是4mm,在触摸屏距离第一短边缘4mm的点坐标范围之内,都属于误触摸的点。同理,距离第二短边缘可以设置为3mm等等。用户可以自主设定所述第一预定位置范围和/或第二预定位置范围。The first predetermined range includes: a first coordinate range that is less than or equal to a first preset threshold from a long edge of the touch screen; and the second predetermined position range includes: a distance from a short edge of the touch screen is less than or equal to a second The second coordinate range of the preset threshold. In the embodiment, the first predetermined range may include two ranges, that is, the distance from the first long edge of the touch screen is less than or equal to the first one. Threshold a first sub-coordinate range of values, a distance from a second long edge of the touch screen that is less than or equal to a second sub-coordinate range of the second threshold; and in another real-time manner, a distance from the first long edge and the second long edge of the touch screen Both are less than or equal to the first preset threshold, that is, the first coordinate range of the long side near the two sides of the touch screen is the same. The second predetermined position range is similar to the first predetermined position range, and details are not described herein again. For example, the distance from the first long edge is 5 mm, the first coordinate range is a coordinate range of 5 mm from the first long edge, and the first predetermined range is also 5 mm, within a point coordinate range of the touch screen from the first long edge of 5 mm. Both belong to the point of wrong touch. For the same reason, the distance from the second long edge can be set to 6mm. For another example, the distance from the first short edge is set to 4 mm, the second coordinate range is a coordinate range of 4 mm from the first short edge, and the second predetermined range is also 4 mm, and the coordinate range of the touch screen is 4 mm from the first short edge. Within, it is a point of mistaken touch. Similarly, the distance from the second short edge can be set to 3mm and so on. The user can set the first predetermined position range and/or the second predetermined position range autonomously.
S104:当所述第一触摸指令属于误触摸指令时,检测是否同时存在第二触摸指令。S104: When the first touch instruction belongs to a false touch instruction, detecting whether a second touch instruction exists at the same time.
这里,当判定所述第一触摸指令不属于误触摸指令时,即属于用户的正常触摸指令时,即所述第一触摸指令对应的触摸操作在所述触摸设备的触摸屏上的横坐标没有位于所述第一预定位置范围内时,和/或所述第一触摸指令对应的触摸操作在所述触摸设备的纵坐标没有位于所述第二预定范围内时,则所述第一触摸指令不属于误触摸指令。在这种场景下,所述方法还包括:就执行所述第一触摸指令。Here, when it is determined that the first touch instruction does not belong to a false touch instruction, that is, a normal touch instruction belonging to the user, that is, the touch operation corresponding to the first touch instruction is not located on the abscissa of the touch screen of the touch device. When the first predetermined position range is within, and/or the touch operation corresponding to the first touch instruction is not located in the second predetermined range when the ordinate of the touch device is not located, the first touch instruction is not It is a false touch command. In this scenario, the method further includes executing the first touch instruction.
S106:当检测结果为同时存在所述第二触摸指令时,判断所述第二触摸指令是否是触屏按键指令。S106: When the detection result is that the second touch instruction exists at the same time, determine whether the second touch instruction is a touch screen button instruction.
这里,所述触屏按键指令可以是任何按键指令,所述按键指令可对应所述触摸屏中的任何按键,包括虚拟按键或物理按键;所述触屏按键指令包括触摸屏的底部按键指令。所述底部按键指令可以执行相应的按键操作 功能,包括机械类按键和/或非机械类的按键(可以理解为虚拟按键)。Here, the touch screen button command may be any button command, and the button command may correspond to any button in the touch screen, including a virtual button or a physical button; the touch screen button command includes a bottom button command of the touch screen. The bottom button command can perform a corresponding button operation Features, including mechanical buttons and/or non-mechanical buttons (can be understood as virtual buttons).
S108:当所述第二触摸指令是所述触屏按键指令时,执行所述第二触摸指令。S108: When the second touch instruction is the touch screen button instruction, executing the second touch instruction.
本实施例中,当所述第一触发指令属于误触摸指令,且同时存在表征触屏按键指令的第二触摸指令时,所述触摸设备不执行(即屏蔽)所述第一触发指令,直接执行所述第二触摸指令。In this embodiment, when the first trigger instruction is a false touch instruction and a second touch instruction representing a touch screen button instruction exists at the same time, the touch device does not execute (ie, masks) the first trigger instruction, directly Executing the second touch instruction.
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令配置为执行本发明实施例所述的触屏防止按键失效的方法。The embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are configured to perform the method for preventing the button from being disabled by the touch screen according to the embodiment of the invention.
如此,采用本发明实施例的技术方案,通过检测存在边缘误触摸时,如果同时检测到触屏按键指令,则执行所述触屏按键指令的技术方案。解决了相关技术中由于边缘误触摸进而导致触屏按键失效的问题,提高了用户的操作体验。Thus, according to the technical solution of the embodiment of the present invention, when detecting the presence of an edge touch, if the touch screen button command is detected at the same time, the technical solution of the touch screen button command is executed. The invention solves the problem that the touch screen button is invalid due to edge mis-touch, which improves the user's operating experience.
本实施例中还提供了一种防止触屏按键失效的装置,所述装置应用于终端,所述终端具体可以是具有触摸屏的移动终端,如手机、平板电脑、笔记本电脑等等;所述终端具体还可以是具有触摸屏的台式电脑、一体机电脑等终端。用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述,下面对该装置中涉及到的模块进行说明。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。图2为本发明实施例的防止触屏按键失效的装置的第一种结构框图。如图2所示,所述装置包括:In this embodiment, a device for preventing the failure of the touch screen button is further provided. The device is applied to the terminal, and the terminal may be a mobile terminal with a touch screen, such as a mobile phone, a tablet computer, a notebook computer, etc.; Specifically, it may be a terminal such as a desktop computer or an all-in-one computer having a touch screen. The above embodiments and preferred embodiments have been described, and the descriptions of the modules involved in the apparatus will be described below. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated. 2 is a first structural block diagram of an apparatus for preventing a touch screen button from failing according to an embodiment of the present invention. As shown in FIG. 2, the device includes:
接收模块10,配置为接收第一触摸指令;The receiving module 10 is configured to receive a first touch instruction;
第一判断模块20,配置为判断所述接收模块接收的第一触摸指令是否属于误触摸指令; The first determining module 20 is configured to determine whether the first touch instruction received by the receiving module belongs to a false touch instruction;
检测模块30,配置为当所述第一判断模块20判定所述第一触摸指令属于误触摸指令时,检测是否同时存在第二触摸指令;The detecting module 30 is configured to detect whether the second touch instruction exists at the same time when the first determining module 20 determines that the first touch instruction belongs to a false touch instruction;
第二判断模块40,配置为所述检测模块30获得的检测结果为同时存在所述第二触摸指令时,判断所述第二触摸指令是否是触屏按键指令;The second determining module 40 is configured to determine whether the second touch command is a touch screen button command when the detection result obtained by the detecting module 30 is that the second touch command exists simultaneously;
第一执行模块50,配置为当所述第二判断模块40判定所述第二触摸指令是所述触屏按键指令,执行所述第二触摸指令。The first execution module 50 is configured to execute the second touch instruction when the second determining module 40 determines that the second touch instruction is the touch screen button instruction.
具体的,所述第一判断模块,配置为判断所述第一触摸指令对应的触摸操作在所述触摸设备的触摸屏上的横坐标是否位于第一预定位置范围内,和/或判断所述第一触摸指令对应的触摸操作在所述触摸设备的纵坐标是否位于第二预定范围内;当所述第一触摸指令对应的触摸操作在所述触摸设备的触摸屏上的横坐标位于所述第一预定位置范围内时,和/或所述第一触摸指令对应的触摸操作在所述触摸设备的纵坐标位于所述第二预定范围内时,判定所述第一触摸指令属于误触摸指令。Specifically, the first determining module is configured to determine whether a horizontal coordinate of the touch operation corresponding to the first touch instruction on the touch screen of the touch device is within a first predetermined position range, and/or determine the first Whether a touch operation corresponding to a touch instruction is located within a second predetermined range of the ordinate of the touch device; and an abscissa of the touch operation corresponding to the first touch instruction on the touch screen of the touch device is located at the first When the predetermined position range is within, the touch operation corresponding to the first touch instruction determines that the first touch instruction belongs to a false touch instruction when the ordinate of the touch device is within the second predetermined range.
其中,所述第一预定范围包括:距离触摸屏的长边缘的距离小于或等于第一预设阈值的第一坐标范围;所述第二预定位置范围包括:距离触摸屏的短边缘的距离小于或等于第二预设阈值的第二坐标范围。作为一种实施方式,所述第一预定范围可以包括两个范围,即距离触摸屏的第一长边缘的距离小于或等于第一阈值第一子坐标范围,距离触摸屏的第二长边缘的距离小于或等于第二阈值的第二子坐标范围;作为另一种实时方式,距离触摸屏的第一长边缘和第二长边缘的距离均小于或等于第一预设阈值,即靠近所述触摸屏两侧的长侧边的第一坐标范围相同。所述第二预定位置范围与所述第一预定位置范围相似,这里不再赘述。例如,距离第一长边缘5mm,则第一坐标范围是距离所述第一长边缘为5mm的坐标范围,第一预定范围也是5mm,在触摸屏距离第一长边缘5mm的点坐标范围之内,都属于误触摸的点。距离第二长边缘6mm。再例如,距离第一短边缘4mm, 则第二坐标范围是距离所述第一短边缘为4mm的坐标范围,第二预定范围也是4mm,在触摸屏距离第一短边缘4mm的点坐标范围之内,都属于误触摸的点。同理,距离第二短边缘3mm等等。用户可以设定所述第一预定位置范围和/或第二预定位置范围。用户可以在所述触摸设备的操作界面中预先设置所述第一预定位置范围和/或第二预定位置范围。这样不同的用户可以根据自身需求设置属于误触摸的区域。The first predetermined range includes: a first coordinate range that is less than or equal to a first preset threshold from a long edge of the touch screen; and the second predetermined position range includes: a distance from a short edge of the touch screen is less than or equal to The second coordinate range of the second preset threshold. As an implementation manner, the first predetermined range may include two ranges, that is, a distance from a first long edge of the touch screen is less than or equal to a first threshold first sub-coordinate range, and a distance from a second long edge of the touch screen is less than Or a second sub-coordinate range equal to the second threshold; as another real-time manner, the distance from the first long edge and the second long edge of the touch screen is less than or equal to the first preset threshold, that is, close to both sides of the touch screen The first coordinate range of the long side is the same. The second predetermined position range is similar to the first predetermined position range, and details are not described herein again. For example, the distance from the first long edge is 5 mm, the first coordinate range is a coordinate range of 5 mm from the first long edge, and the first predetermined range is also 5 mm, within a point coordinate range of the touch screen from the first long edge of 5 mm. Both belong to the point of wrong touch. 6mm from the second long edge. For another example, 4 mm from the first short edge, Then, the second coordinate range is a coordinate range of 4 mm from the first short edge, and the second predetermined range is also 4 mm, and is within a point coordinate range of the touch screen from the first short edge of 4 mm, which is a point of false touch. For the same reason, the distance from the second short edge is 3mm and so on. The user can set the first predetermined location range and/or the second predetermined location range. The user may preset the first predetermined location range and/or the second predetermined location range in an operation interface of the touch device. Such different users can set the area that is touched by mistake according to their own needs.
作为一种实施方式,图3为本发明实施例的防止触屏按键失效的装置的第二种结构框图;如图3所示,所述装置还包括设置模块00,配置为设置所述第一预定位置范围和/或所述第二预定位置范围。用户可以通过所述设置模块00在所述触摸设备的界面中设置所述第一预定位置范围和所述第二预定位置范围。这样不同的用户可以根据自身的需求设置属于误触摸的区域。As shown in FIG. 3, the device further includes a setting module 00 configured to set the first a predetermined range of locations and/or the second predetermined range of locations. The user may set the first predetermined location range and the second predetermined location range in an interface of the touch device through the setting module 00. Such different users can set the areas that are touched by mistake according to their own needs.
作为一种实施方式,图4为本发明实施例的防止触屏按键失效的装置的第三种结构框图;如图4所示,所述装置还包括第二执行模块60,配置为当所述第一触摸指令不属于误触摸指令时,执行所述第一触摸指令。所述检测模块30、所述第二判断模块40和所述第一执行模块50将不激活,只有所述第二执行模块60执行所述第一触摸指令。As an embodiment, FIG. 4 is a third structural block diagram of an apparatus for preventing a touch screen button from being invalid according to an embodiment of the present invention; as shown in FIG. 4, the apparatus further includes a second execution module 60 configured to be The first touch instruction is executed when the first touch instruction is not an erroneous touch instruction. The detection module 30, the second determination module 40, and the first execution module 50 will not be activated, and only the second execution module 60 executes the first touch instruction.
本实施例中,所述接收模块10、第一判断模块20、检测模块30、第二判断模块40、第一执行模块50、设置模块00和第二执行模块60在实际应用中,均可由所述防止触屏按键失效的装置中的中央处理器(CPU,Central Processing Unit)、数字信号处理器(DSP,Digital Signal Processor)或可编程门阵列(FPGA,Field-Programmable Gate Array)实现。In this embodiment, the receiving module 10, the first determining module 20, the detecting module 30, the second determining module 40, the first executing module 50, the setting module 00, and the second executing module 60 can all be used in practical applications. The central processing unit (CPU), the digital signal processor (DSP), or the field-programmable gate array (FPGA) in the device for preventing the failure of the touch screen button is implemented.
实施例1:Example 1:
本实施例以用户开始在触摸设备中进行触摸开始为例进行说明,图5是本发明实施例的防止触屏按键失效的另一种方法流程图;如图5所示, 所述防止触屏按键失效的方法包括:This embodiment is described by taking as an example a user starts a touch in a touch device. FIG. 5 is a flowchart of another method for preventing a touch screen button from being invalid according to an embodiment of the present invention; The method for preventing the touch screen button from failing includes:
S201,开启触摸屏设备,唤醒屏幕并进行触摸操作,确定触摸点的位置坐标;S201, turning on the touch screen device, waking up the screen and performing a touch operation, and determining a position coordinate of the touch point;
S202,判断所述触摸点的水平坐标是否位于所述触摸屏上的预定位置范围内;S202. Determine whether a horizontal coordinate of the touch point is within a predetermined position range on the touch screen.
S203,当判断结果为所述触摸点的水平坐标不在所述触摸屏上的预定位置范围内,则正常报点;S203, when the result of the determination is that the horizontal coordinate of the touch point is not within a predetermined position range on the touch screen, then a normal report point;
S204,当判断结果为所述触摸点的水平坐标在所述触摸屏上的预定位置范围内,且用户又进行了其他触摸操作,确定所述其他触摸操作的触摸点的位置;S204, when the determination result is that the horizontal coordinate of the touch point is within a predetermined position range on the touch screen, and the user performs another touch operation, determining a position of the touch point of the other touch operation;
S205,判断所述其他触摸操作的触摸点是否针对底部触屏按键;S205. Determine whether the touch point of the other touch operation is for a bottom touch screen button;
S206,当判断结果为所述其他触摸操作的触摸点针对底部触屏按键时,执行所述底部触屏按键对应的指令,否则再次触摸操作判为无效,不处理。S206. When the result of the determination is that the touch point of the other touch operation is for the bottom touch screen button, the instruction corresponding to the bottom touch screen button is executed, otherwise the touch operation is judged to be invalid and is not processed.
图6是本发明实施例的手持触摸屏设备的平面示意图;如图6所示,图中所示的阴影区域为设置的触摸屏两侧边缘区域,即前述实施例中所述的第一预定位置范围和第二预定位置范围;L为设置的距离长边缘的第一预设阈值,在本实施例中,距离第一长边缘的第一阈值和距离第二长边缘的第二阈值相等,所述第一阈值和所述第二阈值可根据用户的设置进行更改。当用户单手持握触摸屏设备时,由于非主观意识碰触到上述阴影区域,此时如果另一只手再操作底部触屏按键(或其他位置的触屏按键)时,根据本申请实施例提供的方法,即可执行所述触屏按键对应的指令。6 is a schematic plan view of a handheld touch screen device according to an embodiment of the present invention; as shown in FIG. 6, the shaded area shown in the figure is the edge area of both sides of the touch screen, that is, the first predetermined position range described in the foregoing embodiment. And a second predetermined position range; L is a first preset threshold of the set long distance edge, in the embodiment, the first threshold from the first long edge and the second threshold from the second long edge are equal, The first threshold and the second threshold may be changed according to user settings. When the user touches the touch screen device with a single hand, since the above-mentioned shadow area is touched by non-subjective consciousness, if the other hand operates the bottom touch screen button (or the touch screen button at other positions), the embodiment provides a method according to the present application. The method can execute the instruction corresponding to the touch screen button.
图7a和图7b分别是本申请实施例的可供用户自定义边缘区域宽度的界面示意图;如图7a所示,在终端的设置界面中提供有自定义设置边缘区域宽度的功能选项,可以让用户设置边缘区域宽度大小。如图7b所示,用户可以设置不同数字,比如100等等,按照用户的需求来进行。如果用户 未进行相关设置,则采用系统默认的宽度值;否则会根据用户的输入进行相应调整。7a and 7b are respectively schematic diagrams of interfaces for customizing the width of an edge region according to an embodiment of the present application; as shown in FIG. 7a, a function option for customizing the width of an edge region is provided in a setting interface of the terminal, which can be The user sets the width of the edge area. As shown in Figure 7b, the user can set different numbers, such as 100, etc., according to the user's needs. If the user If the relevant settings are not made, the system default width value is adopted; otherwise, it will be adjusted according to the user's input.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生配置为实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. The computer program instructions can be provided to a processor of a general purpose computer, a special purpose computer, an embedded processor, or other programmable data processing device to produce a machine such that the instructions are executed by a processor or other programmable data processing device. Means for implementing the functions specified in a block or blocks of a flow or a flow and/or a block diagram of a flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供配置为实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps that are configured to implement the functions specified in one or more blocks of the flowchart or in a block or blocks of the flowchart.
以上所述,仅为本发明的较佳实施例而已,并非配置为限定本发明的 保护范围。The above description is only a preferred embodiment of the present invention, and is not intended to limit the present invention. protected range.
工业实用性Industrial applicability
本发明实施例通过检测存在边缘误触摸时,如果同时检测到触屏按键指令,则执行所述触屏按键指令的技术方案。解决了相关技术中由于边缘误触摸进而导致触屏按键失效的问题,提高了用户的操作体验。 In the embodiment of the present invention, when detecting an edge touch error, if the touch screen button command is detected at the same time, the technical solution of the touch screen button command is executed. The invention solves the problem that the touch screen button is invalid due to edge mis-touch, which improves the user's operating experience.

Claims (11)

  1. 一种防止触屏按键失效的方法,包括:A method of preventing a touch screen button from failing, comprising:
    接收第一触摸指令,判断所述第一触摸指令是否属于误触摸指令;Receiving a first touch instruction, determining whether the first touch instruction belongs to a false touch instruction;
    当所述第一触摸指令属于误触摸指令时,检测是否同时存在第二触摸指令;When the first touch instruction belongs to a false touch instruction, detecting whether a second touch instruction exists at the same time;
    当检测结果为同时存在所述第二触摸指令时,判断所述第二触摸指令是否是触屏按键指令;When the detection result is that the second touch instruction exists at the same time, determining whether the second touch instruction is a touch screen button instruction;
    当所述第二触摸指令是所述触屏按键指令时,执行所述第二触摸指令。The second touch instruction is executed when the second touch instruction is the touch screen key instruction.
  2. 根据权利要求1所述的一种防止触屏按键失效的方法,其中,判断所述第一触摸指令是否属于误触摸指令包括:The method for preventing a touch screen button from being invalidated according to claim 1, wherein determining whether the first touch command belongs to a false touch command comprises:
    判断所述第一触摸指令对应的触摸操作在所述触摸设备的触摸屏上的横坐标是否位于第一预定位置范围内,和/或判断所述第一触摸指令对应的触摸操作在所述触摸设备的纵坐标是否位于第二预定范围内;当所述第一触摸指令对应的触摸操作在所述触摸设备的触摸屏上的横坐标位于所述第一预定位置范围内时,和/或所述第一触摸指令对应的触摸操作在所述触摸设备的纵坐标位于所述第二预定范围内时,判定所述第一触摸指令属于误触摸指令。Determining whether the abscissa of the touch operation corresponding to the first touch instruction is within a first predetermined position range on the touch screen of the touch device, and/or determining that the touch operation corresponding to the first touch instruction is at the touch device Whether the ordinate is located within the second predetermined range; when the abscissa corresponding to the touch operation on the touch screen of the touch device is within the first predetermined position range, and/or the The touch operation corresponding to a touch instruction determines that the first touch instruction belongs to a false touch instruction when the ordinate of the touch device is within the second predetermined range.
  3. 根据权利要求2所述的一种防止触屏按键失效的方法,其中,所述第一预定位置范围包括:A method of preventing a touch screen button from failing according to claim 2, wherein said first predetermined position range comprises:
    距离触摸屏的长边缘的距离小于或等于第一预设阈值的第一坐标范围;a distance from a long edge of the touch screen that is less than or equal to a first coordinate range of the first preset threshold;
    所述第二预定位置范围包括:距离触摸屏的短边缘的距离小于或等于第二预设阈值的第二坐标范围。The second predetermined position range includes: a second coordinate range whose distance from the short edge of the touch screen is less than or equal to a second preset threshold.
  4. 根据权利要求1至3任一项所述的一种防止触屏按键失效的方法,其中,所述方法还包括:当所述第一触摸指令不属于误触摸指令时,执行 所述第一触摸指令。A method of preventing a touch screen button from failing according to any one of claims 1 to 3, wherein the method further comprises: when the first touch instruction does not belong to an erroneous touch instruction, executing The first touch instruction.
  5. 根据权利要求4所述的一种触屏防止按键失效的方法,其中:A method of preventing a button from failing according to claim 4, wherein:
    所述第一预定位置范围和/或所述第二预定位置范围为预先设定的范围。The first predetermined position range and/or the second predetermined position range is a predetermined range.
  6. 一种防止触屏按键失效的装置,包括:A device for preventing failure of a touch screen button, comprising:
    接收模块,配置为接收第一触摸指令;a receiving module configured to receive a first touch instruction;
    第一判断模块,配置为判断所述接收模块接收的第一触摸指令是否属于误触摸指令;The first determining module is configured to determine whether the first touch command received by the receiving module is a false touch command;
    检测模块,配置为当所述第一判断模块判定所述第一触摸指令属于误触摸指令时,检测是否同时存在第二触摸指令;The detecting module is configured to detect whether the second touch instruction exists at the same time when the first determining module determines that the first touch instruction belongs to the wrong touch instruction;
    第二判断模块,配置为所述检测模块获得的检测结果为同时存在所述第二触摸指令时,判断所述第二触摸指令是否是触屏按键指令;The second judging module is configured to determine whether the second touch instruction is a touch screen button instruction when the detection result obtained by the detecting module is that the second touch instruction exists simultaneously;
    第一执行模块,配置为当所述第二判断模块判定所述第二触摸指令是所述触屏按键指令时,执行所述第二触摸指令。The first execution module is configured to execute the second touch instruction when the second determining module determines that the second touch instruction is the touch screen button instruction.
  7. 根据权利要求6所述的一种防止触屏按键失效的装置,其中,所述第一判断模块,配置为判断所述第一触摸指令对应的触摸操作在所述触摸设备的触摸屏上的横坐标是否位于第一预定位置范围内,和/或判断所述第一触摸指令对应的触摸操作在所述触摸设备的纵坐标是否位于第二预定范围内;当所述第一触摸指令对应的触摸操作在所述触摸设备的触摸屏上的横坐标位于所述第一预定位置范围内时,和/或所述第一触摸指令对应的触摸操作在所述触摸设备的纵坐标位于第二预定范围内时,判定所述第一触摸指令属于误触摸指令。The device for preventing a touch screen button from being invalidated according to claim 6, wherein the first determining module is configured to determine an abscissa of the touch operation corresponding to the first touch instruction on a touch screen of the touch device Whether it is within the first predetermined position range, and/or determining whether the touch operation corresponding to the first touch instruction is within a second predetermined range of the ordinate of the touch device; when the touch operation corresponding to the first touch instruction When the abscissa on the touch screen of the touch device is within the first predetermined position range, and/or the touch operation corresponding to the first touch instruction is when the ordinate of the touch device is within the second predetermined range And determining that the first touch instruction belongs to a false touch instruction.
  8. 根据权利要求7所述的一种防止触屏按键失效的装置,其中,所述第一预定位置范围包括:A device for preventing failure of a touch screen button according to claim 7, wherein said first predetermined position range comprises:
    距离触摸屏的长边缘的距离小于或等于第一预设阈值的第一坐标范 围;The distance from the long edge of the touch screen is less than or equal to the first coordinate range of the first preset threshold Wai
    所述第二预定位置范围包括:距离触摸屏的短边缘的距离小于或等于第二预设阈值的第二坐标范围。The second predetermined position range includes: a second coordinate range whose distance from the short edge of the touch screen is less than or equal to a second preset threshold.
  9. 根据权利要求6至8任一项所述的一种防止触屏按键失效的装置,其中,所述装置还包括第二执行模块,配置为当所述第一触摸指令不属于误触摸指令时,执行所述第一触摸指令。The apparatus for preventing a touch screen button from failing according to any one of claims 6 to 8, wherein the apparatus further comprises a second execution module configured to when the first touch instruction does not belong to an erroneous touch instruction, Executing the first touch instruction.
  10. 根据权利要求9所述的一种防止触屏按键失效的装置,其中,所述装置还包括:设置模块,配置为设置所述第一预定位置范围和/或所述第二预定位置范围。A device for preventing failure of a touch screen button according to claim 9, wherein the device further comprises: a setting module configured to set the first predetermined position range and/or the second predetermined position range.
  11. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令配置为执行权利要求1至5任一项所述的触屏防止按键失效的方法。 A computer storage medium having stored therein computer executable instructions configured to perform the method of preventing touch panel failure of a touch screen according to any one of claims 1 to 5.
PCT/CN2015/087417 2014-09-15 2015-08-18 Method and device for avoiding touch-screen key failure and computer storage medium WO2016041429A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410468553.XA CN105487697B (en) 2014-09-15 2014-09-15 Method and device for preventing touch screen key failure
CN201410468553.X 2014-09-15

Publications (1)

Publication Number Publication Date
WO2016041429A1 true WO2016041429A1 (en) 2016-03-24

Family

ID=55532539

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/087417 WO2016041429A1 (en) 2014-09-15 2015-08-18 Method and device for avoiding touch-screen key failure and computer storage medium

Country Status (2)

Country Link
CN (1) CN105487697B (en)
WO (1) WO2016041429A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775875A (en) * 2016-12-20 2017-05-31 珠海市魅族科技有限公司 The startup control method and device of a kind of application program
CN113037268A (en) * 2021-03-22 2021-06-25 珠海格力电器股份有限公司 Method and device for adjusting key touch threshold

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106527818B (en) * 2016-12-16 2019-07-02 Oppo广东移动通信有限公司 Control method, device and the mobile terminal of touch operation on a kind of mobile terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102236468A (en) * 2010-04-26 2011-11-09 宏达国际电子股份有限公司 Sensing method, computer program product and portable device
CN103176653A (en) * 2013-03-13 2013-06-26 向运明 Handheld type device touch control display screen wrong-touch prevention method
CN103324325A (en) * 2012-03-21 2013-09-25 宇龙计算机通信科技(深圳)有限公司 Method and terminal for detecting multi-point touch misoperation
CN103558944A (en) * 2013-11-14 2014-02-05 朱鹏 Method for detecting accidental touch on screen by fingers, and mobile terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101644960A (en) * 2008-08-08 2010-02-10 深圳富泰宏精密工业有限公司 Mistaken touch prevention method of combined keys and electronic device using same
CN103558954A (en) * 2013-11-15 2014-02-05 京东方科技集团股份有限公司 Touch system and display device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102236468A (en) * 2010-04-26 2011-11-09 宏达国际电子股份有限公司 Sensing method, computer program product and portable device
CN103324325A (en) * 2012-03-21 2013-09-25 宇龙计算机通信科技(深圳)有限公司 Method and terminal for detecting multi-point touch misoperation
CN103176653A (en) * 2013-03-13 2013-06-26 向运明 Handheld type device touch control display screen wrong-touch prevention method
CN103558944A (en) * 2013-11-14 2014-02-05 朱鹏 Method for detecting accidental touch on screen by fingers, and mobile terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775875A (en) * 2016-12-20 2017-05-31 珠海市魅族科技有限公司 The startup control method and device of a kind of application program
CN113037268A (en) * 2021-03-22 2021-06-25 珠海格力电器股份有限公司 Method and device for adjusting key touch threshold

Also Published As

Publication number Publication date
CN105487697B (en) 2021-04-02
CN105487697A (en) 2016-04-13

Similar Documents

Publication Publication Date Title
US10969903B2 (en) Method, device and mobile terminal for preventing false-touch on touch screen
US10372260B2 (en) Apparatus and method of adjusting power mode of a display of a device
WO2018107903A1 (en) Control method and device for touch screen of mobile terminal, mobile terminal, and storage medium
CN103106030B (en) The display packing of a kind of soft keyboard, device and electronic equipment
US10095345B2 (en) Low power scan for device wake up and unlock
US9423883B2 (en) Electronic apparatus and method for determining validity of touch key input used for the electronic apparatus
KR20160042824A (en) Mis-touch recognition method and device
AU2017203910B2 (en) Glove touch detection
US10747357B2 (en) Coordinate measuring apparatus for measuring input position of a touch and a coordinate indicating apparatus and driving method thereof
US20130278547A1 (en) Electronic device
TW201510804A (en) Control method for touch panel
US10169633B2 (en) Driving circuit, driving method, display apparatus and electronic apparatus
JP2012242851A (en) Portable electronic device having touch screen and control method
TWI510976B (en) Method of selecting touch input source and electronic device using the same
WO2016041429A1 (en) Method and device for avoiding touch-screen key failure and computer storage medium
TW201734741A (en) Touch processor and method
WO2019113725A1 (en) Touch controller, apparatus, terminal and touch control method
KR102476607B1 (en) Coordinate measuring apparatus and method for controlling thereof
WO2018032426A1 (en) Method for detecting input device, and detection device
KR20160097628A (en) Method and device for processing touch motion
US20130194209A1 (en) Information processing apparatus, information processing method, and program
WO2018094558A1 (en) Floating touch control sensing method, floating touch control sensing system and floating touch control electronic device
TWM434992U (en) Touch screen device with calibration function
JP2013045398A (en) Touch panel device and touch range correction method
US10216335B1 (en) Reducing false sensing of touchscreen inputs

Legal Events

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

Ref document number: 15841959

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15841959

Country of ref document: EP

Kind code of ref document: A1