WO2018107898A1 - 防止触摸按键误触发的方法、装置、终端及存储介质 - Google Patents

防止触摸按键误触发的方法、装置、终端及存储介质 Download PDF

Info

Publication number
WO2018107898A1
WO2018107898A1 PCT/CN2017/107535 CN2017107535W WO2018107898A1 WO 2018107898 A1 WO2018107898 A1 WO 2018107898A1 CN 2017107535 W CN2017107535 W CN 2017107535W WO 2018107898 A1 WO2018107898 A1 WO 2018107898A1
Authority
WO
WIPO (PCT)
Prior art keywords
touch
touch operation
duration
detected
button
Prior art date
Application number
PCT/CN2017/107535
Other languages
English (en)
French (fr)
Inventor
张强
葛以学
汪昊
Original Assignee
广东欧珀移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Publication of WO2018107898A1 publication Critical patent/WO2018107898A1/zh

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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • 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
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/0418Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
    • G06F3/04186Touch location disambiguation
    • 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
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/0418Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/22Details of telephonic subscriber devices including a touch pad, a touch sensor or a touch detector

Definitions

  • Embodiments of the present invention relate to a touch screen technology, and in particular, to a method, an apparatus, a terminal, and a storage medium for preventing a false trigger of a touch button.
  • touch screens and touch buttons are usually provided on smartphones.
  • the touch screen is used to display the user interaction interface and to receive user input operations (such as clicking, sliding, etc.).
  • Touch buttons are usually placed adjacent to the touch screen and are used to implement common functions such as the HOME button, the back button, and the menu button.
  • the finger occasionally slides to the sensing area of the touch button when the finger slides on the touch screen, thereby triggering the function of the touch button, such as causing a false trigger problem such as returning to the desktop and interrupting the application.
  • the embodiments of the present invention provide a method, a device, a terminal, and a storage medium for preventing a false trigger of a touch button to reduce the occurrence of a false trigger of a touch button.
  • an embodiment of the present invention provides a method for preventing a false trigger of a touch button, which is applied to a terminal having a touch button and a touch screen, and the method includes:
  • the first touch operation is determined to be an erroneous operation.
  • the embodiment of the present invention further provides a device for preventing false triggering of a touch button, which is integrated in a terminal having a touch button and a touch screen, and the device includes:
  • a first touch operation detecting module configured to detect that the touch is pressed when the current touch screen direction state is a first direction state and/or an application type of the currently displayed application is a preset application type The first touch operation of the key;
  • the erroneous operation determining module is configured to determine that the first touch operation is an erroneous operation when a duration of the first touch operation is less than a preset duration.
  • an embodiment of the present invention further provides a terminal, where the terminal has a touch button and a touch screen, including: a shell, a processor, a memory, a circuit board, and a power circuit;
  • the circuit board is disposed inside a space enclosed by the casing;
  • the processor and the memory are disposed on the circuit board;
  • the power circuit is configured to supply power to each circuit or device of the terminal;
  • the memory for storing executable program code
  • the processor runs a program corresponding to the executable program code by reading executable program code stored in the memory for execution:
  • the first touch operation is determined to be an erroneous operation.
  • a fourth aspect of the present invention also discloses a storage medium in which program code is stored, and when the program code is executed by a processor, the processor performs the following operations:
  • the first touch operation is determined to be an erroneous operation.
  • the technical solution of the embodiment of the present invention detects a first touch operation on the touch button when the current touch screen direction state is the first direction state and/or the application type of the currently displayed application is the preset application type.
  • the duration of the first touch operation is less than the preset duration, determining that the first touch operation is an erroneous operation, thereby avoiding an erroneous operation in which the duration of the first touch operation is less than a preset duration, and reducing the touch button The occurrence of a false trigger.
  • FIG. 1 is a flowchart of a method for preventing false triggering of a touch button according to an embodiment of the present invention
  • FIG. 2a is a schematic diagram of a terminal in a method for preventing false triggering of a touch button according to an embodiment of the present invention
  • 2b is a diagram showing an example of a landscape state of a terminal in a method for preventing false triggering of a touch button according to an embodiment of the present invention
  • FIG. 3 is a flowchart of another method for preventing false triggering of a touch button according to an embodiment of the present invention
  • FIG. 4 is a flowchart of another method for preventing false triggering of a touch button according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of an apparatus for preventing false triggering of a touch button according to an embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for preventing false triggering of a touch button according to an embodiment of the present invention.
  • the embodiment is applicable to preventing a false trigger of a touch button.
  • the method is applied to a terminal having a touch button and a touch screen, which may be
  • the device is implemented by a device that prevents the touch button from being triggered by mistake.
  • the device may be implemented by software and/or hardware.
  • the device may be configured in a touch screen terminal such as a mobile phone or a tablet computer.
  • the method specifically includes the following steps:
  • Step 110 The current touch screen direction state is a first direction state and/or a current display state
  • the application type of the program is the preset application type
  • the first touch operation on the touch button is detected.
  • FIG. 2a is a schematic diagram of a terminal in a method for preventing false triggering of a touch button according to an embodiment of the present invention.
  • the terminal includes a touch button 201 and a touch area 202.
  • the touch area 202 refers to an area on the touch screen for displaying a picture.
  • the touch button 201 may include at least one of a HOME button, a back button, a search button, and a menu button.
  • the touch button 201 can be a capacitive inductive button that is independent of the touch screen, or a capacitive inductive button that is implemented by using a touch screen sensing circuit. Touching these touch buttons will cause the user to return to the previous level or return to the desktop and interrupt the currently displayed application.
  • the direction state of the touch screen is the first direction state.
  • the touch screen direction state includes a first direction state and a second direction state.
  • the gravity sensor or other type of sensor may be used to detect the current touch screen direction state, and the current touch screen direction state may also be determined by determining the position held by the user.
  • the first direction state is a horizontal screen state
  • the second direction state is a vertical screen state.
  • the first direction state may be a portrait state
  • the second direction state is a landscape state.
  • FIG. 2b is a diagram showing an example of a landscape state of a terminal in a method for preventing false triggering of a touch button according to an embodiment of the present invention.
  • the touch screen orientation state is adjusted to a landscape state to facilitate the user to view and operate the game.
  • the direction of the touch screen is generally adjusted to the vertical screen state, which is convenient for the user to use.
  • the touch button is on the left or right side of the touch screen, the user's hand is generally held on the left and right sides of the terminal, so that the user is easily mistaken by the movement of the finger during the process of touching the touch screen.
  • the touch button is operated, so that the horizontal application state is more likely to cause false triggering of the touch button due to an erroneous operation, thereby interrupting the current application.
  • the status of the current touch screen can be obtained in various ways, for example, by holding the detection data of the sensor, and in the Android system, it can also be judged by the Android standard interface.
  • Application type refers to the type of application, such as social applications (such as WeChat, QQ, etc.), map navigation applications, online shopping payment applications, call communication applications, consumer applications, query tools, shooting and landscaping applications, Video playback applications (including video and audio), book reading applications, browser applications, and gaming applications.
  • social applications such as WeChat, QQ, etc.
  • map navigation applications such as Online shopping payment applications
  • call communication applications such as text, email, etc.
  • consumer applications such as WeChat, QQ, etc.
  • Video playback applications including video and audio
  • book reading applications such as game application or video application.
  • game application if the user is playing the game, then both hands are often active on the touch screen, then there is a larger Probability hits the touch button, causing the desktop to be returned, interrupting the game. If the user reopens the game, the user will restart the game, and the game cannot be resumed after the interruption, which brings a bad experience to the user.
  • Some application types of applications are more likely to cause misoperation of touch keys in the first direction state. Therefore, when the application type of the application is the preset application type in the first direction state, it is more necessary to take measures to prevent the user from operating incorrectly. The false trigger of the touch button caused by the touch of a button.
  • the first case is that the current touch screen direction state is the first direction state
  • the second case is that the application type of the currently displayed application is the preset application type
  • the third case is the current touch screen.
  • the direction state is the first direction state and the application type of the currently displayed application is the preset application type.
  • the erroneous triggering of the touch button first needs to detect whether the first touch operation of the touch button occurs.
  • the touch screen used by the existing terminal has a resistive touch screen, a capacitive touch screen, a piezoelectric touch screen, etc.
  • the touch screen detects the touch information, thereby recognizing the user's touch operation.
  • the touch screen can sense the change of the capacitance, and the touch information is recognized according to the change of the capacitance.
  • the touch information includes the x coordinate, the y coordinate, and the size of the contact surface (including length and width). And the like, and the number of fingers touched, etc., thereby detecting the occurrence position of the touch operation on the touch screen with the touch information.
  • the capacitance of the touch screen has a reference value
  • the amount of change of the capacitance of the touch screen relative to the reference value that is, the change of the capacitance, only when the capacitance of the touch screen changes is greater than the capacitance
  • Step 120 When the duration of the first touch operation is less than a preset duration, determine that the first touch operation is an erroneous operation.
  • the first touch operation includes a press event and a pop-up event
  • the press event is an event that the user's finger starts to touch the touch button
  • the pop-up event is an event that the user's finger leaves the touch button
  • the first The duration of a touch operation refers to the time between the press event and the bounce event in the first touch operation of the user is detected, that is, in the capacitive touch screen, the user's finger touches the touch button
  • the resulting capacitance change value is greater than the duration of the capacitance change threshold.
  • the duration of the user's misoperation of the touch button is generally short, and the time when the user normally touches the touch button once to the terminal in response to the touch operation is generally 20 milliseconds to 50 milliseconds.
  • the preset duration is larger, such as 2 seconds, it is possible to prevent the user from accidentally operating the touch button, resulting in false triggering of the touch button.
  • the response is not immediately performed when the first touch operation is detected, but the duration of the first touch operation is determined, and the response is only performed when the duration of the first touch operation is not less than the preset duration, if the first touch operation If the duration is less than the preset duration, it is determined that the first touch operation is an erroneous operation, and the first touch operation is not responded, that is, the touch button is not triggered.
  • determining that the first touch operation is an erroneous operation may include:
  • a timer whose timing duration is the preset duration is started to determine Whether the pop-up event corresponding to the first touch operation is detected in the timing of the timer, and if the pop-up event corresponding to the first touch operation is detected, determining that the first touch operation is an erroneous operation, the first touch The operation does not respond, ie the touch button is not triggered.
  • the duration of the first touch operation is determined by starting a timer whose timing duration is a preset duration, so that the judgment is more accurate.
  • the current touch screen direction state is the first direction state and/or the application type of the currently displayed application is the preset application type
  • detecting the first touch operation on the touch button When the duration of the first touch operation is less than the preset duration, determining that the first touch operation is an erroneous operation, thereby avoiding an erroneous operation in which the duration of the first touch operation is less than a preset duration, and reducing the touch button The occurrence of false triggers.
  • detecting the touch button Before the first touch operation it may also optionally include:
  • the current touch screen orientation state is obtained through the Android standard interface.
  • the current touch screen orientation state can be obtained through the Android standard interface.
  • the standard interface can be getConfiguration().
  • the current touch screen orientation state is obtained through the Android standard interface, so that the obtained touch screen direction state is more accurate.
  • FIG. 3 is a flowchart of another method for preventing false triggering of a touch button according to an embodiment of the present invention.
  • the embodiment is optimized on the basis of the foregoing embodiment, after detecting a first touch operation on the touch button. And further comprising: responding to the first touch operation when the duration of the first touch operation is not less than the preset duration.
  • the method specifically includes the following steps:
  • Step 310 When the current touch screen direction state is the first direction state and/or the application type of the currently displayed application is the preset application type, detecting a first touch operation on the touch button.
  • Step 320 When the duration of the first touch operation is less than a preset duration, determine that the first touch operation is an erroneous operation.
  • Step 330 Respond to the first touch operation when the duration of the first touch operation is not less than the preset duration.
  • the duration of the first touch operation is greater than or equal to the preset duration, responding to the first touch operation, that is, triggering the touch button. For example, when the user touches the return key, the duration of the first touch operation of the touch duration, that is, the return key is greater than the preset duration of 2 seconds, then returns to the previous level; when the user touches the HOME key, the touch duration is the first touch of the HOME key.
  • the duration of the operation is greater than the preset duration of 2 seconds, the desktop is returned; when the user touches the menu button, the duration of the first touch operation of the menu key is greater than the preset duration of 2 seconds, the running application is displayed. .
  • the first touch operation of the touch button when the first touch operation of the touch button is detected, that is, when the touch button generates an interrupt signal and the first touch operation needs to be reported, the first touch operation is not reported, and a timer is triggered and the touch button is triggered.
  • the report of the first touch operation is sent to the timer for processing, and the timer is set to be triggered after the preset duration, and when the preset duration arrives, it is detected whether the current touch button is still in the pressed state, if it is in the pressed state.
  • the first touch operation is reported.
  • the first touch operation when the duration of the first touch operation is not less than the preset duration, the first touch operation is responded to, because the user really wants to operate When a touch button is used, the touch duration is generally long. Therefore, when the touch duration is not less than the preset duration, the first touch operation is responded, which reduces the occurrence of false triggering of the touch button.
  • responding to the first touch operation further includes: determining that there is a duration in the duration when the duration of the first touch operation is not less than the preset duration
  • the second touch operation of the touch area is not detected; if the second touch operation of the touch area is not detected in the duration, the first touch operation is responded to.
  • the method specifically includes the following steps:
  • Step 410 When the current touch screen direction state is the first direction state and/or the application type of the currently displayed application is the preset application type, detecting a first touch operation on the touch button.
  • Step 420 When the duration of the first touch operation is less than a preset duration, determine that the first touch operation is an erroneous operation.
  • Step 430 When the duration of the first touch operation is not less than the preset duration, determine whether a second touch operation of the gesture touch area is detected in the duration.
  • the duration of the first touch operation is not less than the preset duration
  • Step 440 Respond to the first touch operation if a second touch operation of the touch area is not detected in the duration.
  • the second touch operation of the touch area is not detected in the duration, it may be determined that the first touch operation of the touch key is not an erroneous operation, and is responsive to the first touch operation, that is, if the first touch operation occurs at Return to the previous level for the preset time; if the first touch operation occurs on the HOME button for the preset duration, return to the desktop; if the first touch operation occurs on the menu button and continues for the preset duration , which displays the menu of the running application.
  • the duration of the first touch operation is not less than the preset duration
  • a second touch operation if the second touch operation of the touch area is not detected in the duration, responding to the first touch operation, thereby further reducing the touch by the mutual exclusion operation mechanism of the touch area and the touch button The false trigger of the button occurs.
  • the method further includes:
  • the second touch operation of the touch area is detected in the duration, it is determined that the first touch operation is an erroneous operation and is responsive to the second touch operation.
  • the second touch operation of the touch area is detected in the duration, it may be determined that the first touch operation of the touch key is an erroneous operation, and the non-responsive manner is adopted for the first touch operation to avoid the touch.
  • the false trigger of the button while responding to the second touch operation of the touch area is adopted.
  • the touch duration of the user touching the return key is greater than the preset duration of 2 seconds
  • the second touch operation of the touch area is detected, it is determined that the operation of the user touching the return key is a misoperation, and the user is the second to the touch area.
  • the touch operation is a user's truly conscious operation, in response to the user's second touch operation on the touch area, and does not respond to the user's first touch operation of touching the return key, ie, does not return to the previous level.
  • the erroneous triggering of the touch button is further reduced by the mutual exclusion operation mechanism of the touch area and the touch button.
  • FIG. 5 is a schematic structural diagram of an apparatus for preventing false triggering of a touch button according to an embodiment of the present invention.
  • the device is integrated in a terminal having a touch button and a touch screen. As shown in FIG. 5, the touch-proof button is prevented according to the embodiment.
  • the triggered device includes a first touch operation detection module 510 and an erroneous operation determination module 520.
  • the first touch operation detecting module 510 is configured to detect, when the current touch screen direction state is the first direction state and/or the application type of the currently displayed application is the preset application type, detecting the touch button One touch operation;
  • the erroneous operation determining module 520 is configured to determine that the first touch operation is an erroneous operation when a duration of the first touch operation is less than a preset duration.
  • the erroneous operation determining module includes:
  • a timer start unit configured to start a timer with a preset duration of the preset duration when detecting a press event corresponding to the first touch operation
  • a erroneous operation determining unit configured to detect the first if a timing time of the timer The touch operation corresponding to the pop-up event determines that the first touch operation is an erroneous operation.
  • it also includes:
  • the first touch operation response module is configured to respond to the first touch operation after detecting a first touch operation on the touch button, when a duration of the first touch operation is not less than the preset time length.
  • the touch screen includes a touch area
  • the first touch operation response module includes:
  • a determining unit configured to determine, when the duration of the first touch operation is not less than the preset duration, whether a second touch operation of the touch area is detected in the duration
  • the first touch operation response unit is configured to respond to the first touch operation if a second touch operation of the touch area is not detected in the duration.
  • the first touch operation response module further includes:
  • a second touch operation response unit configured to determine, after the second touch operation of detecting the touch area in the duration, if a second touch operation of the touch area is detected in the duration, Then determining that the first touch operation is an erroneous operation and responding to the second touch operation.
  • the device for preventing false triggering of the touch button can perform the method for preventing false triggering of the touch button provided by any embodiment of the present invention, and has a function module and a beneficial effect corresponding to the execution method.
  • a method for preventing false triggering of a touch button provided by any embodiment of the present invention.
  • the embodiment of the present invention further provides a terminal having a touch button and a touch screen, including: a housing, a processor, a memory, a circuit board, and a power circuit;
  • the circuit board is disposed inside a space enclosed by the casing;
  • the processor and the memory are disposed on the circuit board;
  • the power circuit is configured to supply power to each circuit or device of the terminal;
  • the memory for storing executable program code
  • the processor runs a program corresponding to the executable program code by reading executable program code stored in the memory for execution:
  • the terminal may include a device for preventing false triggering of a touch button provided by any embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a terminal according to an embodiment of the present invention. As shown in FIG. 6, the terminal may include: a memory 601, a central processing unit (CPU) 602, a peripheral interface 603, and an RF. (Radio Frequency) circuit 605, audio circuit 606, speaker 611, power management chip 608, input/output (I/O) subsystem 609, touch screen 612, other input/control devices 610, and external port 604, these components pass One or more communication buses or signal lines 607 are in communication.
  • the power management chip 608 is a core chip in the power circuit.
  • the illustrated terminal 600 is merely one example of a terminal, and that the terminal 600 may have more or fewer components than those shown in the figures, two or more components may be combined, or may have Different component configurations.
  • the various components shown in the figures 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.
  • the terminal uses a mobile phone as an example.
  • the memory 601 can be accessed by the CPU 602, the peripheral interface 603, etc., and the memory 601 can include a high speed random access memory, and can also include a nonvolatile memory, such as one or more magnetic disk storage devices, flash memory devices. Or other volatile solid-state storage devices.
  • a nonvolatile memory such as one or more magnetic disk storage devices, flash memory devices. Or other volatile solid-state storage devices.
  • Peripheral interface 603, which can connect the input and output peripherals of the device to CPU 602 and memory 601.
  • I/O subsystem 609 which can connect input and output peripherals on the device, such as touch screen 602 and other input/control devices 610, to peripheral interface 603.
  • I/O subsystem 609 can include display controller 6091 and one or more input controllers 6092 for controlling other input/control devices 610.
  • one or more input controllers 6092 receive electrical signals from other input/control devices 610 or transmit electrical signals to other input/control devices 610, and other input/control devices 610 may include physical buttons (press buttons, rocker buttons, etc.) ), dial, slide switch, joystick, click wheel.
  • the input controller 6092 can be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
  • the touch screen 612 is an input interface and an output interface between the user terminal and the user, and displays the visual output to the user.
  • the visual output may include graphics, text, icons, videos, and the like.
  • Display controller 6091 in I/O subsystem 609 receives an electrical signal or touches from touch screen 612
  • Screen 612 sends an electrical signal.
  • the touch screen 612 detects the contact on the touch screen, and the display controller 6091 converts the detected contact into an interaction with the user interface object displayed on the touch screen 612, ie, realizes human-computer interaction, and the user interface object displayed on the touch screen 612 may be running.
  • the icon of the game, the icon of the network to the corresponding network, and the like.
  • the device may also include a light mouse, which is a touch sensitive surface that does not display a visual output, or an extension of a touch sensitive surface formed by the touch screen.
  • the RF circuit 605 is mainly used for establishing communication between the mobile phone and the wireless network (ie, the network side), and realizing data reception and transmission between the mobile phone and the wireless network. For example, sending and receiving short messages, emails, and the like. Specifically, the RF circuit 605 receives and transmits an RF signal, which is also referred to as an electromagnetic signal, and the RF circuit 605 converts the electrical signal into an electromagnetic signal or converts the electromagnetic signal into an electrical signal, and through the electromagnetic signal and communication network and other devices Communicate.
  • an RF signal which is also referred to as an electromagnetic signal
  • RF circuitry 605 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC ( COder-DECoder, codec) Chipset, Subscriber Identity Module (SIM), etc.
  • an antenna system an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC ( COder-DECoder, codec) Chipset, Subscriber Identity Module (SIM), etc.
  • CODEC COder-DECoder, codec
  • SIM Subscriber Identity Module
  • the audio circuit 606 is mainly used to receive audio data from the peripheral interface 603, convert the audio data into an electrical signal, and transmit the electrical signal to the speaker 611.
  • the speaker 611 is configured to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 605 to sound and play the sound to the user.
  • the power management chip 608 is used for power supply and power management of the hardware connected to the CPU 602, the I/O subsystem, and the peripheral interface.
  • the CPU 602 provided by the embodiment of the present invention may perform the method for deleting a media file provided by any embodiment of the present invention, and has a function module and a beneficial effect corresponding to the execution method.
  • a storage medium in which the program code is stored, and when the program code is executed by the processor, the processor performs the following operations:
  • the first touch operation is determined to be an erroneous operation.
  • determining that the first touch operation is an erroneous operation comprises:
  • the startup timing is the preset Time timer
  • the processor after detecting the first touch operation on the touch button, the processor further performs the following operations:
  • the touch screen includes a touch area, and when the duration of the first touch operation is not less than the preset duration, responding to the first touch operation includes:
  • the first touch operation is responded to.
  • the processor further performs the following operations:
  • the second touch operation of the touch area is detected in the duration, it is determined that the first touch operation is an erroneous operation and is responsive to the second touch operation.

Abstract

本发明公开了一种防止触摸按键误触发的方法、装置及终端。该方法应用于具有触摸按键和触摸屏的终端,包括:在所述当前触摸屏方向状态为第一方向状态和/或当前显示的应用程序的应用类型为预设应用类型时,检测对所述触摸按键的第一触摸操作;在所述第一触摸操作的持续时间小于预设时长时,确定所述第一触摸操作为误操作。本发明避免了第一触摸操作的持续时间小于预设时长的误操作,减少了触摸按键的误触发的发生。

Description

防止触摸按键误触发的方法、装置、终端及存储介质 技术领域
本发明实施例涉及触摸屏技术,尤其涉及一种防止触摸按键误触发的方法、装置、终端及存储介质。
背景技术
目前,智能手机上通常都设置有触摸屏和触摸按键。触摸屏用于显示用户交互界面,以及接收用户的输入操作(例如点击、滑动等)。触摸按键通常邻近触摸屏设置,用于实现HOME键、返回键、菜单键等常用功能。当用户使用智能手机玩游戏时,手指在触摸屏上进行滑动操作时偶尔会滑动到触摸按键的感应区域,进而触发触摸按键的功能,如导致返回桌面、中断应用程序等误触发问题。
发明内容
有鉴于此,本发明实施例提供一种防止触摸按键误触发的方法、装置、终端及存储介质,以减少触摸按键误触发的发生。
第一方面,本发明实施例提供了一种防止触摸按键误触发的方法,应用于具有触摸按键和触摸屏的终端,所述方法包括:
在所述当前触摸屏方向状态为第一方向状态和/或当前显示的应用程序的应用类型为预设应用类型时,检测对所述触摸按键的第一触摸操作;
在所述第一触摸操作的持续时间小于预设时长时,确定所述第一触摸操作为误操作。
第二方面,本发明实施例还提供了一种防止触摸按键误触发的装置,集成于具有触摸按键和触摸屏的终端,所述装置包括:
第一触摸操作检测模块,用于在所述当前触摸屏方向状态为第一方向状态和/或当前显示的应用程序的应用类型为预设应用类型时,检测对所述触摸按 键的第一触摸操作;
误操作确定模块,用于在所述第一触摸操作的持续时间小于预设时长时,确定所述第一触摸操作为误操作。
第三方面,本发明实施例还提供了一种终端,该终端具有触摸按键和触摸屏,包括:壳体、处理器、存储器、电路板和电源电路;
所述电路板安置在所述壳体围成的空间内部;
所述处理器和所述存储器设置在所述电路板上;
所述电源电路,用于为所述终端的各个电路或器件供电;
所述存储器,用于存储可执行程序代码;
所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行:
在所述当前触摸屏方向状态为第一方向状态和/或当前显示的应用程序的应用类型为预设应用类型时,检测对所述触摸按键的第一触摸操作;
在所述第一触摸操作的持续时间小于预设时长时,确定所述第一触摸操作为误操作。
本发明第四方面还公开了一种存储介质,所述存储介质中存储有程序代码,当所述程序代码被处理器运行时,所述处理器执行以下操作:
在所述当前触摸屏方向状态为第一方向状态和/或当前显示的应用程序的应用类型为预设应用类型时,检测对所述触摸按键的第一触摸操作;
在所述第一触摸操作的持续时间小于预设时长时,确定所述第一触摸操作为误操作。
本发明实施例的技术方案,通过在所述当前触摸屏方向状态为第一方向状态和/或当前显示的应用程序的应用类型为预设应用类型时,检测对所述触摸按键的第一触摸操作,在所述第一触摸操作的持续时间小于预设时长时,确定所述第一触摸操作为误操作,从而避免了第一触摸操作的持续时间小于预设时长的误操作,减少了触摸按键的误触发的发生。
附图说明
图1是本发明实施例提供的一种防止触摸按键误触发的方法的流程图;
图2a是本发明实施例提供的防止触摸按键误触发的方法中的终端的示意图;
图2b是本发明实施例提供的防止触摸按键误触发的方法中的终端的横屏状态的示例图;
图3是本发明实施例提供的另一种防止触摸按键误触发的方法的流程图;
图4是本发明实施例提供的另一种防止触摸按键误触发的方法的流程图;
图5是本发明实施例提供的一种防止触摸按键误触发的装置的结构示意图;
图6为本发明实施例提供的一种终端的结构示意图。
具体实施方式
下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部内容。
在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各步骤描述成顺序的处理,但是其中的许多步骤可以被并行地、并发地或者同时实施。此外,各步骤的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。
图1是本发明实施例提供的一种防止触摸按键误触发的方法的流程图,本实施例可适用于防止触摸按键误触发的情况,该方法应用于具有触摸按键和触摸屏的终端,可以由防止触摸按键误触发的装置来执行,该装置可以由软件和/或硬件来实现,该装置可以配置在手机或平板电脑等具有触摸屏的终端中,该方法具体包括如下步骤:
步骤110,在所述当前触摸屏方向状态为第一方向状态和/或当前显示的应 用程序的应用类型为预设应用类型时,检测对所述触摸按键的第一触摸操作。
其中,触摸按键的分布因终端的品牌型号不同而不同,一般位于触摸屏的下侧位置。示例性地,图2a是本发明实施例提供的防止触摸按键误触发的方法中的终端的示意图。如图2a所示,终端包括触摸按键201和触摸区域202。触摸区域202指触摸屏上用于显示画面的区域。触摸按键201可包括HOME键、返回键、搜索键以及菜单键中的至少一种。其中,触摸按键201可以为独立于触摸屏的电容感应式按键,也可以为利用触摸屏感应电路实现的电容感应式按键。用户触摸这些触摸按键,都会导致返回上一级或返回桌面,并中断当前显示的应用程序。
当用户在触摸屏上的手势操作容易使手指进入所述触摸按键的感应区域时,所述触摸屏的方向状态为第一方向状态。触摸屏方向状态包括第一方向状态和第二方向状态,可以用重力传感器或其他类型的传感器来检测当前触摸屏方向状态,也可以通过判断用户手持的位置判断当前触摸屏方向状态。在本实施例中,第一方向状态为横屏状态,第二方向状态为竖屏状态。在其他实施例中,第一方向状态可以为竖屏状态,相应地,第二方向状态为横屏状态。图2b是本发明实施例提供的防止触摸按键误触发的方法中的终端的横屏状态的示例图。
示例性的,用户进行观看电视剧、娱乐视频或者玩游戏的时候,会将触摸屏方向状态调整为横屏状态,方便用户观看和操作游戏。用户进行发送短信或者拨打电话的时候,一般情况下会将触摸屏方向调整为竖屏状态,方便用户使用。在横屏状态下,由于触摸按键在触摸屏的左侧或者右侧,用户的手一般会握持在终端的左侧和右侧,从而用户在触控触摸屏的过程中容易由于手指的活动而误操作触摸按键,从而横屏状态下更加容易由于误操作而导致触摸按键的误触发,从而中断当前的应用程序。其中,可以通过多种方式获取当前触摸屏方向状态,例如可以通过握持传感器的检测数据来判断,在安卓系统中,还可以通过安卓标准接口来判断。
应用类型是指应用程序的类型,如社交应用(如微信、QQ等)、地图导航类应用、网购支付类应用、通话通讯类应用、生活消费类应用、查询工具类应用、拍摄美化类应用、影音播放类应用(包括视频类和音频类)、图书阅读类应用、浏览器类应用以及游戏类应用等。在某类应用程序中,用户特别不希 望由于误操作而导致应用程序中断的发生,如游戏类应用或视频类应用等,在游戏类应用中,如果用户正在玩游戏,这个时候双手往往都在触摸屏上活动,那么就有较大的概率碰到触摸按键,导致返回桌面、中断游戏,如果用户再重新打开该游戏,就会导致用户重新开始该游戏,而不能接着中断的进度继续玩,这给用户带来了不好的体验。
有些应用类型的应用程序在第一方向状态下更加容易导致触摸按键的误操作,因此在第一方向状态下同时应用程序的应用类型是预设应用类型时,更加需要采取措施以防止用户误操作触摸按键导致的触摸按键的误触发。
因此,在上述三种情况下,都需要采取措施以防止用户误操作触摸按键导致的触摸按键的误触发。上述三种情况,即第一种情况是在所述当前触摸屏方向状态为第一方向状态,第二种情况是当前显示的应用程序的应用类型为预设应用类型,第三种情况是当前触摸屏方向状态为第一方向状态和当前显示的应用程序的应用类型为预设应用类型。
这里,为了防止用户误操作触摸按键而导致触摸按键的误触发,首先需要检测是否发生触摸按键的第一触摸操作。
示例性的,现有终端采用的触摸屏有电阻式触摸屏、电容式触摸屏和压电式触摸屏等,当用户触碰触摸屏时,触摸屏会检测到触摸信息,进而识别出用户的触摸操作。以电容式触摸屏为例,用户在触碰触摸屏时,触摸屏可以感应到电容的变化,根据该电容的变化识别到触摸信息,触摸信息包括x坐标、y坐标、接触面的尺寸(包括长和宽等)以及触摸的手指数量等,从而利用触摸信息检测到了触摸屏上的触摸操作的发生位置。其中,在没有发生触摸操作时,触摸屏的电容有一个基准值,在发生触摸操作时,触摸屏的电容相对于基准值的变化量,即所述电容的变化,只有当触摸屏的电容的变化大于电容变化阀值时,才确定发生了触摸操作。
当用户触碰触摸按键引起的电容变化值大于电容变化阀值时,确定发生了触摸按键的第一触摸操作。
步骤120,在所述第一触摸操作的持续时间小于预设时长时,确定所述第一触摸操作为误操作。
其中,所述第一触摸操作包括按下事件和弹起事件,按下事件即用户手指开始触碰触摸按键的事件,弹起事件即用户手指离开触摸按键的事件,所述第 一触摸操作的持续时间即用户的触摸时长,是指检测到用户的第一触摸操作中的按下事件和弹起事件之间持续的时间,即在电容式触摸屏中,用户手指触碰触摸按键引起的电容变化值大于电容变化阀值的持续时间。
用户误操作触摸按键的时长一般较短,而用户正常触摸一次触摸按键到终端响应该触摸操作的时间一般为20毫秒~50毫秒。通过将预设时长设置的较大,如2秒,可以避免用户误操作触摸按键导致触摸按键的误触发。即在检测到第一触摸操作时不立即进行响应,而是确定第一触摸操作的持续时间,只有在第一触摸操作的持续时间不小于预设时长时才进行响应,如果第一触摸操作的持续时间小于预设时长,则确定所述第一触摸操作为误操作,对所述第一触摸操作不进行响应,即不触发所述触摸按键。
其中,在所述第一触摸操作的持续时间小于预设时长时,确定所述第一触摸操作为误操作可选包括:
在检测到所述第一触摸操作对应的按下事件时,启动定时时长为所述预设时长的定时器;
如果在所述定时器的定时时间内,检测到所述第一触摸操作对应的弹起事件,则确定所述第一触摸操作为误操作。
在检测到触摸按键的第一触摸操作对应的按下事件时,即触摸按键产生中断信号且需要上报该第一触摸操作时,启动一个定时时长为所述预设时长的定时器,用以判断在定时器的定时时间内是否检测到第一触摸操作对应的弹起事件,如果检测到第一触摸操作对应的弹起事件,则确定所述第一触摸操作为误操作,对该第一触摸操作不进行响应,即不触发该触摸按键。通过启动定时时长为预设时长的定时器来判断第一触摸操作的持续时间,使得判断的更加准确。
本实施例的技术方案,通过在所述当前触摸屏方向状态为第一方向状态和/或当前显示的应用程序的应用类型为预设应用类型时,检测对所述触摸按键的第一触摸操作,在所述第一触摸操作的持续时间小于预设时长时,确定所述第一触摸操作为误操作,从而避免了第一触摸操作的持续时间小于预设时长的误操作,减少了触摸按键的误触发的发生。
在上述实施例的基础上,在所述当前触摸屏方向状态为第一方向状态和/或当前显示的应用程序的应用类型为预设应用类型时,检测对所述触摸按键的 第一触摸操作之前,还可选包括:
在终端的操作系统为安卓系统时,通过安卓标准接口获取当前触摸屏方向状态。
在终端的操作系统为安卓系统的情况下,可以通过安卓标准接口来获取当前触摸屏方向状态,例如标准接口可以是getConfiguration()。通过安卓标准接口来获取当前触摸屏方向状态,使得获取到的触摸屏方向状态更加准确。
图3是本发明实施例提供的另一种防止触摸按键误触发的方法的流程图,本实施例在上述实施例的基础上进行了优化,在检测对所述触摸按键的第一触摸操作之后,还进一步包括:在所述第一触摸操作的持续时间不小于所述预设时长时,响应所述第一触摸操作。该方法具体包括如下步骤:
步骤310,在所述当前触摸屏方向状态为第一方向状态和/或当前显示的应用程序的应用类型为预设应用类型时,检测对所述触摸按键的第一触摸操作。
步骤320,在所述第一触摸操作的持续时间小于预设时长时,确定所述第一触摸操作为误操作。
步骤330,在所述第一触摸操作的持续时间不小于所述预设时长时,响应所述第一触摸操作。
在所述第一触摸操作的持续时间大于或者等于所述预设时长时,对所述第一触摸操作进行响应,即触发所述触摸按键。例如,用户触碰返回键,触摸时长即返回键的第一触摸操作的持续时间大于预设时长2秒时,则返回上一级;用户触碰HOME键,触摸时长即HOME键的第一触摸操作的持续时间大于预设时长2秒时,则返回桌面;用户触碰菜单键,触摸时长即菜单键的第一触摸操作的持续时间大于预设时长2秒时,则显示正在运行的应用程序。
示例性的,在检测到触摸按键的第一触摸操作,即触摸按键产生中断信号且需要上报该第一触摸操作时,先不上报该第一触摸操作,而触发一个定时器并将触摸按键的第一触摸操作的上报交给该定时器去处理,而定时器设定为预设时长后触发,当预设时长到达时检测当前的触摸按键是否还处于按下状态,如果处于按下状态则上报该第一触摸操作。
本实施例的技术方案,在上述实施例的基础上,通过在第一触摸操作的持续时间不小于所述预设时长时,响应所述第一触摸操作,由于用户真正想要操 作某一触摸按键时,其触摸时长一般较长,因此,通过触摸时长不小于预设时长时对第一触摸操作进行响应,减少了触摸按键的误触发的发生。
图4是本发明实施例提供的另一种防止触摸按键误触发的方法的流程图,本实施例在上述实施例的基础上进行了优化,所述触摸屏包括触摸区域,在所述第一触摸操作的持续时间不小于所述预设时长时,响应所述第一触摸操作进一步包括:在所述第一触摸操作的持续时间不小于所述预设时长时,判断在所述持续时间中有没有检测到所述触摸区域的第二触摸操作;如果在所述持续时间中没有检测到所述触摸区域的第二触摸操作,则响应所述第一触摸操作。该方法具体包括如下步骤:
步骤410,在所述当前触摸屏方向状态为第一方向状态和/或当前显示的应用程序的应用类型为预设应用类型时,检测对所述触摸按键的第一触摸操作。
步骤420,在所述第一触摸操作的持续时间小于预设时长时,确定所述第一触摸操作为误操作。
步骤430,在所述第一触摸操作的持续时间不小于所述预设时长时,判断在所述持续时间中有没有检测到手势触摸区域的第二触摸操作。
本实施例中,为了进一步减少触摸按键误触发的发生,在第一触摸操作的持续时间不小于所述预设时长时,判断在该触摸按键的持续时间中是否检测到触摸区域的第二触摸操作。因为用户在游戏中,会一直操作触摸区域进行游戏,这时有可能会不小心碰到触摸按键,因此可以通过对触摸按键和触摸区域的操作的互斥机制来进一步判断用户对触摸按键的操作是否为误操作。
步骤440,如果在所述持续时间中没有检测到所述触摸区域的第二触摸操作,则响应所述第一触摸操作。
如果在所述持续时间中没有检测到触摸区域的第二触摸操作,则可以确定触摸按键的第一触摸操作不是误操作,并对该第一触摸操作进行响应,即如果第一触摸操作发生在返回键上并持续预设时长,则返回上一级;如果第一触摸操作发生在HOME键上并持续预设时长,则返回桌面;如果第一触摸操作发生在菜单键上并持续预设时长,则显示正在运行的应用程序的菜单。
本实施例的技术方案,在上述实施例的基础上,通过在第一触摸操作的持续时间不小于预设时长时,进一步判断在所述持续时间中是否检测到触摸区域 的第二触摸操作,如果在所述持续时间中没有检测到触摸区域的第二触摸操作,则响应所述第一触摸操作,从而通过触摸区域和触摸按键的互斥操作机制,进一步减少了触摸按键的误触发的发生。
在上述实施例的基础上,判断在所述持续时间中有没有检测到所述触摸区域的第二触摸操作之后,还可选包括:
如果在所述持续时间中检测到所述触摸区域的第二触摸操作,则确定所述第一触摸操作为误操作并响应所述第二触摸操作。
如果在所述持续时间中检测到触摸区域的第二触摸操作,则可以确定所述触摸按键的第一触摸操作为误操作,这时对该第一触摸操作采取不响应的方式以避免该触摸按键的误触发,同时响应触摸区域的第二触摸操作。
示例性的,用户触摸返回键的触摸时长大于预设时长2秒时,如果检测到触摸区域的第二触摸操作,则确定用户触摸返回键的操作为误操作,而用户对触摸区域的第二触摸操作是用户真正意识的操作,这时响应用户对触摸区域的第二触摸操作,而不响应用户触碰返回键的第一触摸操作,即不返回上一级。通过触摸区域和触摸按键的互斥操作机制,进一步减少了触摸按键的误触发的发生。
图5是本发明实施例提供的一种防止触摸按键误触发的装置的结构示意图,该装置集成于具有触摸按键和触摸屏的终端,如图5所示,本实施例所述的防止触摸按键误触发的装置包括:第一触摸操作检测模块510和误操作确定模块520。
其中,第一触摸操作检测模块510,用于在所述当前触摸屏方向状态为第一方向状态和/或当前显示的应用程序的应用类型为预设应用类型时,检测对所述触摸按键的第一触摸操作;
误操作确定模块520,用于在所述第一触摸操作的持续时间小于预设时长时,确定所述第一触摸操作为误操作。
可选的,所述误操作确定模块包括:
定时器启动单元,用于在检测到第一触摸操作对应的按下事件时,启动定时时长为所述预设时长的定时器;
误操作确定单元,用于如果在所述定时器的定时时间内,检测到所述第一 触摸操作对应的弹起事件,则确定所述第一触摸操作为误操作。
可选的,还包括:
第一触摸操作响应模块,用于在检测对所述触摸按键的第一触摸操作之后,在所述第一触摸操作的持续时间不小于所述预设时长时,响应所述第一触摸操作。
可选的,所述触摸屏包括触摸区域,所述第一触摸操作响应模块包括:
判断单元,用于在所述第一触摸操作的持续时间不小于所述预设时长时,判断在所述持续时间中有没有检测到所述触摸区域的第二触摸操作;
第一触摸操作响应单元,用于如果在所述持续时间中没有检测到所述触摸区域的第二触摸操作,则响应所述第一触摸操作。
可选的,所述第一触摸操作响应模块还包括:
第二触摸操作响应单元,用于判断在所述持续时间中有没有检测到所述触摸区域的第二触摸操作之后,如果在所述持续时间中检测到所述触摸区域的第二触摸操作,则确定所述第一触摸操作为误操作并响应所述第二触摸操作。
上述防止触摸按键误触发的装置可执行本发明任意实施例所提供的防止触摸按键误触发的方法,具备执行方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本发明任意实施例提供的防止触摸按键误触发的方法。
本发明实施例还提供了一种终端,该终端具有触摸按键和触摸屏,包括:壳体、处理器、存储器、电路板和电源电路;
所述电路板安置在所述壳体围成的空间内部;
所述处理器和所述存储器设置在所述电路板上;
所述电源电路,用于为所述终端的各个电路或器件供电;
所述存储器,用于存储可执行程序代码;
所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行:
在所述当前触摸屏方向状态为第一方向状态和/或当前显示的应用程序的应用类型为预设应用类型时,检测对所述触摸按键的第一触摸操作;
在所述第一触摸操作的持续时间小于预设时长时,确定所述第一触摸操作 为误操作。
该终端可以包括本发明任意实施例提供的防止触摸按键误触发的装置。图6为本发明实施例提供的一种终端的结构示意图,如图6所示,该终端可以包括:存储器601、中央处理器(Central Processing Unit,以下简称CPU)602、外设接口603、RF(Radio Frequency,射频)电路605、音频电路606、扬声器611、电源管理芯片608、输入/输出(I/O)子系统609、触摸屏612、其他输入/控制设备610以及外部端口604,这些部件通过一个或多个通信总线或信号线607来通信。其中,电源管理芯片608为所述电源电路中的一个核心芯片。
应该理解的是,图示终端600仅仅是终端的一个范例,并且终端600可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。
下面就本实施例提供的防止触摸按键误触发的终端进行详细的描述,该终端以手机为例。
存储器601,所述存储器601可以被CPU602、外设接口603等访问,所述存储器601可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
外设接口603,所述外设接口603可以将设备的输入和输出外设连接到CPU602和存储器601。
I/O子系统609,所述I/O子系统609可以将设备上的输入输出外设,例如触摸屏602和其他输入/控制设备610,连接到外设接口603。I/O子系统609可以包括显示控制器6091和用于控制其他输入/控制设备610的一个或多个输入控制器6092。其中,一个或多个输入控制器6092从其他输入/控制设备610接收电信号或者向其他输入/控制设备610发送电信号,其他输入/控制设备610可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮。值得说明的是,输入控制器6092可以与以下任一个连接:键盘、红外端口、USB接口以及诸如鼠标的指示设备。
触摸屏612,所述触摸屏612是用户终端与用户之间的输入接口和输出接口,将可视输出显示给用户,可视输出可以包括图形、文本、图标、视频等。
I/O子系统609中的显示控制器6091从触摸屏612接收电信号或者向触摸 屏612发送电信号。触摸屏612检测触摸屏上的接触,显示控制器6091将检测到的接触转换为与显示在触摸屏612上的用户界面对象的交互,即实现人机交互,显示在触摸屏612上的用户界面对象可以是运行游戏的图标、联网到相应网络的图标等。值得说明的是,设备还可以包括光鼠,光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸。
RF电路605,主要用于建立手机与无线网络(即网络侧)的通信,实现手机与无线网络的数据接收和发送。例如收发短信息、电子邮件等。具体地,RF电路605接收并发送RF信号,RF信号也称为电磁信号,RF电路605将电信号转换为电磁信号或将电磁信号转换为电信号,并且通过该电磁信号与通信网络以及其他设备进行通信。RF电路605可以包括用于执行这些功能的已知电路,其包括但不限于天线系统、RF收发机、一个或多个放大器、调谐器、一个或多个振荡器、数字信号处理器、CODEC(COder-DECoder,编译码器)芯片组、用户标识模块(Subscriber Identity Module,SIM)等等。
音频电路606,主要用于从外设接口603接收音频数据,将该音频数据转换为电信号,并且将该电信号发送给扬声器611。
扬声器611,用于将手机通过RF电路605从无线网络接收的语音信号,还原为声音并向用户播放该声音。
电源管理芯片608,用于为CPU602、I/O子系统及外设接口所连接的硬件进行供电及电源管理。
本发明实施例提供的CPU602可执行本发明任意实施例所提供的删除媒体文件的方法,具备执行方法相应的功能模块和有益效果。
在本发明的另一个实施例中,还公开了一种存储介质,所述存储介质中存储有程序代码,当所述程序代码被处理器运行时,所述处理器执行以下操作:
在所述当前触摸屏方向状态为第一方向状态和/或当前显示的应用程序的应用类型为预设应用类型时,检测对所述触摸按键的第一触摸操作;
在所述第一触摸操作的持续时间小于预设时长时,确定所述第一触摸操作为误操作。
可选的,在所述第一触摸操作的持续时间小于预设时长时,确定所述第一触摸操作为误操作包括:
在检测到所述第一触摸操作对应的按下事件时,启动定时时长为所述预设 时长的定时器;
如果在所述定时器的定时时间内,检测到所述第一触摸操作对应的弹起事件,则确定所述第一触摸操作为误操作。
可选的,在检测对所述触摸按键的第一触摸操作之后,所述处理器还执行以下操作:
在所述第一触摸操作的持续时间不小于所述预设时长时,响应所述第一触摸操作。
可选的,所述触摸屏包括触摸区域,在所述第一触摸操作的持续时间不小于所述预设时长时,响应所述第一触摸操作包括:
在所述第一触摸操作的持续时间不小于所述预设时长时,判断在所述持续时间中有没有检测到所述触摸区域的第二触摸操作;
如果在所述持续时间中没有检测到所述触摸区域的第二触摸操作,则响应所述第一触摸操作。
可选的,判断在所述持续时间中有没有检测到所述触摸区域的第二触摸操作之后,所述处理器还执行以下操作:
如果在所述持续时间中检测到所述触摸区域的第二触摸操作,则确定所述第一触摸操作为误操作并响应所述第二触摸操作。
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。

Claims (20)

  1. 一种防止触摸按键误触发的方法,应用于具有触摸按键和触摸屏的终端,其特征在于,所述方法包括:
    在所述当前触摸屏方向状态为第一方向状态和/或当前显示的应用程序的应用类型为预设应用类型时,检测对所述触摸按键的第一触摸操作;
    在所述第一触摸操作的持续时间小于预设时长时,确定所述第一触摸操作为误操作。
  2. 根据权利要求1所述的方法,其特征在于,在所述第一触摸操作的持续时间小于预设时长时,确定所述第一触摸操作为误操作包括:
    在检测到所述第一触摸操作对应的按下事件时,启动定时时长为所述预设时长的定时器;
    如果在所述定时器的定时时间内,检测到所述第一触摸操作对应的弹起事件,则确定所述第一触摸操作为误操作。
  3. 根据权利要求1或2所述的方法,其特征在于,在检测对所述触摸按键的第一触摸操作之后,还包括:
    在所述第一触摸操作的持续时间不小于所述预设时长时,响应所述第一触摸操作。
  4. 根据权利要求3所述的方法,其特征在于,所述触摸屏包括触摸区域,在所述第一触摸操作的持续时间不小于所述预设时长时,响应所述第一触摸操作包括:
    在所述第一触摸操作的持续时间不小于所述预设时长时,判断在所述持续时间中有没有检测到所述触摸区域的第二触摸操作;
    如果在所述持续时间中没有检测到所述触摸区域的第二触摸操作,则响应所述第一触摸操作。
  5. 根据权利要求4所述的方法,其特征在于,判断在所述持续时间中有没有检测到所述触摸区域的第二触摸操作之后,还包括:
    如果在所述持续时间中检测到所述触摸区域的第二触摸操作,则确定所述第一触摸操作为误操作并响应所述第二触摸操作。
  6. 一种防止触摸按键误触发的装置,集成于具有触摸按键和触摸屏的终端,其特征在于,所述装置包括:
    第一触摸操作检测模块,用于在所述当前触摸屏方向状态为第一方向状态和/或当前显示的应用程序的应用类型为预设应用类型时,检测对所述触摸按键的第一触摸操作;
    误操作确定模块,用于在所述第一触摸操作的持续时间小于预设时长时,确定所述第一触摸操作为误操作。
  7. 根据权利要求6所述的装置,其特征在于,所述误操作确定模块包括:
    定时器启动单元,用于在检测到所述第一触摸操作对应的按下事件时,启动定时时长为所述预设时长的定时器;
    误操作确定单元,用于如果在所述定时器的定时时间内,检测到所述第一触摸操作对应的弹起事件,则确定所述第一触摸操作为误操作。
  8. 根据权利要求6或7所述的装置,其特征在于,还包括:
    第一触摸操作响应模块,用于在检测对所述触摸按键的第一触摸操作之后,在所述第一触摸操作的持续时间不小于所述预设时长时,响应所述第一触摸操作。
  9. 根据权利要求8所述的装置,其特征在于,所述触摸屏包括触摸区域,所述第一触摸操作响应模块包括:
    判断单元,用于在所述第一触摸操作的持续时间不小于所述预设时长时,判断在所述持续时间中有没有检测到所述触摸区域的第二触摸操作;
    第一触摸操作响应单元,用于如果在所述持续时间中没有检测到所述触摸区域的第二触摸操作,则响应所述第一触摸操作。
  10. 根据权利要求9所述的装置,其特征在于,所述第一触摸操作响应模块还包括:
    第二触摸操作响应单元,用于判断在所述持续时间中有没有检测到所述触摸区域的第二触摸操作之后,如果在所述持续时间中检测到所述触摸区域的第二触摸操作,则确定所述第一触摸操作为误操作并响应所述第二触摸操作。
  11. 一种终端,该终端具有触摸按键和触摸屏,其特征在于,包括:壳体、处理器、存储器、电路板和电源电路;
    所述电路板安置在所述壳体围成的空间内部;
    所述处理器和所述存储器设置在所述电路板上;
    所述电源电路,用于为所述终端的各个电路或器件供电;
    所述存储器,用于存储可执行程序代码;
    所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行以下操作:
    在所述当前触摸屏方向状态为第一方向状态和/或当前显示的应用程序的应用类型为预设应用类型时,检测对所述触摸按键的第一触摸操作;
    在所述第一触摸操作的持续时间小于预设时长时,确定所述第一触摸操作为误操作。
  12. 根据权利要求11所述的终端,其特征在于,在所述第一触摸操作的持续时间小于预设时长时,确定所述第一触摸操作为误操作包括:
    在检测到所述第一触摸操作对应的按下事件时,启动定时时长为所述预设时长的定时器;
    如果在所述定时器的定时时间内,检测到所述第一触摸操作对应的弹起事件,则确定所述第一触摸操作为误操作。
  13. 根据权利要求11或12所述的终端,其特征在于,在检测对所述触摸按键的第一触摸操作之后,所述处理器还执行以下操作:
    在所述第一触摸操作的持续时间不小于所述预设时长时,响应所述第一触摸操作。
  14. 根据权利要求13所述的终端,其特征在于,所述触摸屏包括触摸区域,在所述第一触摸操作的持续时间不小于所述预设时长时,响应所述第一触摸操作包括:
    在所述第一触摸操作的持续时间不小于所述预设时长时,判断在所述持续时间中有没有检测到所述触摸区域的第二触摸操作;
    如果在所述持续时间中没有检测到所述触摸区域的第二触摸操作,则响应所述第一触摸操作。
  15. 根据权利要求14所述的终端,其特征在于,判断在所述持续时间中有没有检测到所述触摸区域的第二触摸操作之后,所述处理器还执行以下操作:
    如果在所述持续时间中检测到所述触摸区域的第二触摸操作,则确定所述 第一触摸操作为误操作并响应所述第二触摸操作。
  16. 一种存储介质,其特征在于,所述存储介质中存储有程序代码,当所述程序代码被处理器运行时,所述处理器执行以下操作:
    在所述当前触摸屏方向状态为第一方向状态和/或当前显示的应用程序的应用类型为预设应用类型时,检测对所述触摸按键的第一触摸操作;
    在所述第一触摸操作的持续时间小于预设时长时,确定所述第一触摸操作为误操作。
  17. 根据权利要求16所述的存储介质,其特征在于,在所述第一触摸操作的持续时间小于预设时长时,确定所述第一触摸操作为误操作包括:
    在检测到所述第一触摸操作对应的按下事件时,启动定时时长为所述预设时长的定时器;
    如果在所述定时器的定时时间内,检测到所述第一触摸操作对应的弹起事件,则确定所述第一触摸操作为误操作。
  18. 根据权利要求16或17所述的存储介质,其特征在于,在检测对所述触摸按键的第一触摸操作之后,所述处理器还执行以下操作:
    在所述第一触摸操作的持续时间不小于所述预设时长时,响应所述第一触摸操作。
  19. 根据权利要求18所述的存储介质,其特征在于,所述触摸屏包括触摸区域,在所述第一触摸操作的持续时间不小于所述预设时长时,响应所述第一触摸操作包括:
    在所述第一触摸操作的持续时间不小于所述预设时长时,判断在所述持续时间中有没有检测到所述触摸区域的第二触摸操作;
    如果在所述持续时间中没有检测到所述触摸区域的第二触摸操作,则响应所述第一触摸操作。
  20. 根据权利要求19所述的存储介质,其特征在于,判断在所述持续时间中有没有检测到所述触摸区域的第二触摸操作之后,所述处理器还执行以下操作:
    如果在所述持续时间中检测到所述触摸区域的第二触摸操作,则确定所述第一触摸操作为误操作并响应所述第二触摸操作。
PCT/CN2017/107535 2016-12-16 2017-10-24 防止触摸按键误触发的方法、装置、终端及存储介质 WO2018107898A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611166078.6 2016-12-16
CN201611166078.6A CN106855784A (zh) 2016-12-16 2016-12-16 防止触摸按键误触发的方法、装置及终端

Publications (1)

Publication Number Publication Date
WO2018107898A1 true WO2018107898A1 (zh) 2018-06-21

Family

ID=59127145

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/107535 WO2018107898A1 (zh) 2016-12-16 2017-10-24 防止触摸按键误触发的方法、装置、终端及存储介质

Country Status (2)

Country Link
CN (1) CN106855784A (zh)
WO (1) WO2018107898A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110471559A (zh) * 2019-07-25 2019-11-19 维沃移动通信有限公司 一种防误触方法及移动终端
CN110673753A (zh) * 2018-07-03 2020-01-10 北京搜狗科技发展有限公司 按键误触纠错方法及装置
CN111766930A (zh) * 2020-06-08 2020-10-13 安徽华米信息科技有限公司 可穿戴设备的关机方法、装置及可穿戴设备
CN113473194A (zh) * 2020-05-09 2021-10-01 海信集团有限公司 一种智能设备及响应方法

Families Citing this family (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106648232A (zh) 2016-12-16 2017-05-10 广东欧珀移动通信有限公司 防止触摸按键误触发的方法、装置及终端
CN106855784A (zh) * 2016-12-16 2017-06-16 广东欧珀移动通信有限公司 防止触摸按键误触发的方法、装置及终端
CN107340911A (zh) * 2017-06-29 2017-11-10 胡玥莹 一种移动终端防误触控方法及装置
CN109217859A (zh) * 2017-07-07 2019-01-15 中兴通讯股份有限公司 按键消抖方法、设备及存储介质
CN107608551B (zh) * 2017-09-11 2019-08-06 Oppo广东移动通信有限公司 触摸操作响应方法及装置
US10698533B2 (en) 2017-09-11 2020-06-30 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for responding to touch operation and electronic device
EP3671420A4 (en) 2017-09-11 2020-08-05 Guangdong Oppo Mobile Telecommunications Corp., Ltd. METHOD AND DEVICE FOR RESPONDING TO TOUCH OPERATIONS
CN107864267A (zh) * 2017-09-21 2018-03-30 李梦天 显示设备及显示设备控制装置
CN108334255B (zh) * 2018-01-26 2020-03-03 维沃移动通信有限公司 一种功能事件的响应方法及移动终端
CN108765636A (zh) * 2018-03-28 2018-11-06 上海科世达-华阳汽车电器有限公司 一种汽车车门解锁设备及系统
CN108509056A (zh) * 2018-06-19 2018-09-07 李金雄 一种智能键盘
CN109190415B (zh) * 2018-07-05 2021-08-27 天津众达智腾科技有限公司 基于物理防护的数据销毁触发方法及其装置
CN109144395A (zh) * 2018-08-30 2019-01-04 北京金堤科技有限公司 一种文本操作方法、装置、电子设备和计算机可读介质
CN109656406B (zh) * 2018-11-09 2022-05-06 信利半导体有限公司 一种显示屏触摸按键的抗干扰方法、装置及可读存储介质
CN109697086B (zh) * 2018-12-28 2022-07-08 Tcl移动通信科技(宁波)有限公司 移动终端应用程序启动处理方法、移动终端及存储介质
CN109712384A (zh) * 2019-01-25 2019-05-03 北京戴纳实验科技有限公司 一种新型智能化通风柜红外控制系统
CN111475052B (zh) * 2020-04-10 2023-12-22 维沃移动通信有限公司 一种按键防误触的方法及电子设备
CN111698632A (zh) * 2020-06-03 2020-09-22 歌尔科技有限公司 耳机状态检测方法、装置、tws耳机和计算机存储介质
CN112684936A (zh) * 2020-12-29 2021-04-20 深圳酷派技术有限公司 一种信息识别方法、存储介质及计算机设备
CN114558750A (zh) * 2022-01-26 2022-05-31 得力集团有限公司 一种热熔胶枪出胶控制方法、装置及热熔胶枪
CN114816215A (zh) * 2022-05-19 2022-07-29 深圳市联谛信息无障碍有限责任公司 输入方法、移动终端和存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103699318A (zh) * 2014-01-06 2014-04-02 联想(北京)有限公司 一种电子设备触控响应方法及装置
CN105631367A (zh) * 2015-12-24 2016-06-01 深圳市金立通信设备有限公司 一种终端操作区域管理方法及终端
CN105807965A (zh) * 2014-12-30 2016-07-27 联想(北京)有限公司 一种防止误触的方法及装置
CN105867797A (zh) * 2015-12-04 2016-08-17 乐视移动智能信息技术(北京)有限公司 对触摸屏上的虚拟按键的控制方法、装置以及移动终端
CN106201292A (zh) * 2015-04-29 2016-12-07 小米科技有限责任公司 终端防误触方法和装置
CN106855784A (zh) * 2016-12-16 2017-06-16 广东欧珀移动通信有限公司 防止触摸按键误触发的方法、装置及终端

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120015968A (ko) * 2010-08-14 2012-02-22 삼성전자주식회사 휴대 단말기의 터치 오동작 방지 방법 및 장치
CN104199604A (zh) * 2014-09-12 2014-12-10 上海斐讯数据通信技术有限公司 一种具有触摸显示屏的电子设备及其信息处理方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103699318A (zh) * 2014-01-06 2014-04-02 联想(北京)有限公司 一种电子设备触控响应方法及装置
CN105807965A (zh) * 2014-12-30 2016-07-27 联想(北京)有限公司 一种防止误触的方法及装置
CN106201292A (zh) * 2015-04-29 2016-12-07 小米科技有限责任公司 终端防误触方法和装置
CN105867797A (zh) * 2015-12-04 2016-08-17 乐视移动智能信息技术(北京)有限公司 对触摸屏上的虚拟按键的控制方法、装置以及移动终端
CN105631367A (zh) * 2015-12-24 2016-06-01 深圳市金立通信设备有限公司 一种终端操作区域管理方法及终端
CN106855784A (zh) * 2016-12-16 2017-06-16 广东欧珀移动通信有限公司 防止触摸按键误触发的方法、装置及终端

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110673753A (zh) * 2018-07-03 2020-01-10 北京搜狗科技发展有限公司 按键误触纠错方法及装置
CN110673753B (zh) * 2018-07-03 2024-04-12 北京搜狗科技发展有限公司 按键误触纠错方法及装置
CN110471559A (zh) * 2019-07-25 2019-11-19 维沃移动通信有限公司 一种防误触方法及移动终端
CN110471559B (zh) * 2019-07-25 2023-05-26 维沃移动通信有限公司 一种防误触方法及移动终端
CN113473194A (zh) * 2020-05-09 2021-10-01 海信集团有限公司 一种智能设备及响应方法
CN113473194B (zh) * 2020-05-09 2022-04-08 海信集团有限公司 一种智能设备及响应方法
CN111766930A (zh) * 2020-06-08 2020-10-13 安徽华米信息科技有限公司 可穿戴设备的关机方法、装置及可穿戴设备

Also Published As

Publication number Publication date
CN106855784A (zh) 2017-06-16

Similar Documents

Publication Publication Date Title
WO2018107898A1 (zh) 防止触摸按键误触发的方法、装置、终端及存储介质
US10831314B2 (en) Method and electronic device for preventing touch button from being false triggered
EP3336679B1 (en) Method and terminal for preventing unintentional triggering of a touch key and storage medium
US10969903B2 (en) Method, device and mobile terminal for preventing false-touch on touch screen
WO2018107901A1 (zh) 移动终端的触摸屏控制方法、装置、移动终端及存储介质
WO2018107903A1 (zh) 移动终端的触摸屏控制方法、装置、移动终端及存储介质
WO2018107896A1 (zh) 一种分屏防误触方法、装置、移动终端及存储介质
CN107340910B (zh) 一种触摸按键的响应方法、装置、存储介质及电子设备
WO2018107849A1 (zh) 一种移动终端上触摸操作的控制方法及相关产品
WO2018107897A1 (zh) 一种触摸屏控制方法、装置、移动终端及存储介质
US9965158B2 (en) Touch screen hover input handling
US11243657B2 (en) Icon display method, and apparatus
WO2018107902A1 (zh) 移动终端的触摸屏控制方法、装置、移动终端及存储介质
US20120290966A1 (en) Multiple screen mode in mobile terminal
CN107357458B (zh) 触摸按键的响应方法、装置、存储介质及移动终端
CN106502470A (zh) 防止触摸按键误触发的方法、装置及终端
WO2018107899A1 (zh) 一种弹出菜单的响应方法、装置、移动终端及存储介质
EP3584710B1 (en) Method and apparatus for controlling display of mobile terminal, and storage medium
US9250801B2 (en) Unlocking method, portable electronic device and touch-sensitive device
CN106909250B (zh) 一种触摸操作的处理方法、装置及移动终端
CN107463290A (zh) 触摸操作的响应控制方法、装置、存储介质及移动终端
CN107390931A (zh) 触摸操作的响应控制方法、装置、存储介质及移动终端
EP3528103B1 (en) Screen locking method, terminal and screen locking device
CN106708410A (zh) 防止触摸按键误触发的方法、装置及终端
CN113552993A (zh) 基于按键的指令触发方法、装置、存储介质及终端设备

Legal Events

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

Ref document number: 17881635

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: 17881635

Country of ref document: EP

Kind code of ref document: A1