CN107357458B - Touch key response method and device, storage medium and mobile terminal - Google Patents

Touch key response method and device, storage medium and mobile terminal Download PDF

Info

Publication number
CN107357458B
CN107357458B CN201710538091.8A CN201710538091A CN107357458B CN 107357458 B CN107357458 B CN 107357458B CN 201710538091 A CN201710538091 A CN 201710538091A CN 107357458 B CN107357458 B CN 107357458B
Authority
CN
China
Prior art keywords
key
touch
touch event
screen
preset area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201710538091.8A
Other languages
Chinese (zh)
Other versions
CN107357458A (en
Inventor
郭明强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710538091.8A priority Critical patent/CN107357458B/en
Publication of CN107357458A publication Critical patent/CN107357458A/en
Application granted granted Critical
Publication of CN107357458B publication Critical patent/CN107357458B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • 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
    • 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/044Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means
    • 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
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The embodiment of the invention discloses a response method and device of a touch key, a storage medium and a mobile terminal. The method comprises the following steps: when a screen touch event is detected, acquiring a touch position corresponding to the screen touch event; judging whether the touch position is in a preset area or not; and if the touch position is judged to be in the preset area, responding to the key touch event when the key touch event is detected. By adopting the technical scheme, when the screen touch event and the key touch event conflict, whether the key touch event is responded or not can be reasonably confirmed according to the touch position corresponding to the screen touch event.

Description

Touch key response method and device, storage medium and mobile terminal
Technical Field
The embodiment of the invention relates to the technical field of touch control, in particular to a response method and device of a touch key, a storage medium and a mobile terminal.
Background
With the rapid development of touch technology, touch screens and touch keys have been widely applied to mobile terminals such as mobile phones and tablet computers. According to different touch sensing principles, the types of touch screens and touch keys mainly include resistive touch types and capacitive touch types. Among them, the capacitive touch type has become the mainstream at present.
Based on the factors that more contents can be displayed on the screen of the mobile terminal, the impression experience of a user is improved, and the like, the size of the touch screen is larger and larger, so that the touch keys are generally closer to the touch screen, and the false touch is easy to occur.
Disclosure of Invention
The embodiment of the invention provides a response method and device of a touch key, a storage medium and a mobile terminal, which can optimize a response scheme of the touch key.
In a first aspect, an embodiment of the present invention provides a method for responding to a touch key, including:
when a screen touch event is detected, acquiring a touch position corresponding to the screen touch event;
judging whether the touch position is in a preset area or not;
and if the touch position is judged to be in the preset area, responding to the key touch event when the key touch event is detected.
In a second aspect, an embodiment of the present invention provides a method for responding to a touch key, including:
when a key touch event is detected, judging whether a screen touch event is detected;
if the screen touch event is detected, acquiring a touch position corresponding to the screen touch event;
judging whether the touch position is in a preset area or not;
and responding to the key touch event if the touch position is judged to be in the preset area.
In a third aspect, an embodiment of the present invention provides a response device for a touch key, including:
the touch position acquisition module is used for acquiring a touch position corresponding to a screen touch event when the screen touch event is detected;
the touch position judging module is used for judging whether the touch position is in a preset area or not;
and the key response control module is used for responding to the key touch event when the key touch event is detected after the touch position is judged to be in the preset area.
In a fourth aspect, an embodiment of the present invention provides a device for responding to a touch key, including:
the screen touch event detection module is used for judging whether a screen touch event is detected or not when a key touch event is detected;
the touch position acquisition module is used for acquiring a touch position corresponding to the screen touch event when the screen touch event is detected;
the touch position judging module is used for judging whether the touch position is in a preset area or not;
and the key response control module is used for responding to the key touch event when the touch position is judged to be in the preset area.
In a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a response method for a touch key according to an embodiment of the present invention.
In a sixth aspect, an embodiment of the present invention provides a mobile terminal, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the method for responding to a touch key according to the embodiment of the present invention when executing the computer program.
According to the response scheme of the touch key provided by the embodiment of the invention, when the screen touch event is detected, the touch position corresponding to the screen touch event is obtained, and if the touch position is judged to be in the preset area, the key touch event is responded when the key touch event is detected. By adopting the technical scheme, when the screen touch event and the key touch event conflict, whether the key touch event is responded or not can be reasonably confirmed according to the touch position corresponding to the screen touch event.
Drawings
Fig. 1 is a schematic flowchart of a method for responding to a touch key according to an embodiment of the present invention;
fig. 2 is a schematic view of a touch screen of a mobile terminal according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of another method for responding to a touch key according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of another method for responding to a touch key according to an embodiment of the present invention;
fig. 5 is a schematic flowchart of another method for responding to a touch key according to an embodiment of the present invention;
fig. 6 is a block diagram of a structure of a response apparatus for a touch key according to an embodiment of the present invention;
fig. 7 is a block diagram of a response apparatus for a touch key according to another embodiment of the present invention;
fig. 8 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
Detailed Description
The technical scheme of the invention is further explained by the specific implementation mode in combination with the attached drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Fig. 1 is a flowchart illustrating a method for responding to a touch key according to an embodiment of the present invention, where the method may be executed by a device for responding to a touch key, where the device may be implemented by software and/or hardware, and may be generally integrated in a mobile terminal. As shown in fig. 1, the method includes:
step 101, when a screen touch event is detected, acquiring a touch position corresponding to the screen touch event.
For example, the mobile terminal in this embodiment may be specifically a smart phone, a tablet computer, and other devices that integrate a touch screen and a touch key.
Illustratively, a screen touch event is detected when a screen-based screen touch operation is detected. The screen touch operation in the present embodiment may include various types of operations of contacting the touch screen, such as clicking, long-pressing, and sliding.
The touch screen adopted by the existing mobile terminal comprises a resistance type touch screen, a capacitance type touch screen, a piezoelectric type touch screen and the like, when a user touches the touch screen, the touch screen can detect touch information, and then the touch operation of the user is identified. Taking a capacitive touch screen as an example, the touch screen can sense the change of capacitance, when a user touches the touch screen, the touch screen senses the change of capacitance, when the change value exceeds a preset touch threshold value, the screen touch operation of the user is detected, and a screen touch event is reported. When a user touches a screen, the touch screen can recognize touch information, the touch information comprises an x coordinate, a y coordinate, the size (including length, width and the like) of a contact surface, the number of touched fingers and the like, after the touch information is recognized, the coordinate information is reported to an upper layer through an input system, so that touch operation occurring at a certain position of the screen can be detected by using the touch information, and a touch position corresponding to a screen touch event can be acquired.
And 102, judging whether the touch position is in a preset area.
When a user uses a mobile terminal, the situation that a hand touches a touch screen and a touch key at the same time is inevitable, at this time, a screen touch event and a key touch event conflict with each other, a common processing mode is to set priorities of the touch screen and the touch key for responding to the touch event, and most of the mobile terminals adopt the touch screen with the priority higher than that of the touch key, that is, the key touch event is intercepted when the screen touch event is detected, that is, the key touch event is not responded. The problem with this approach is that the user's fingers, palm or other parts may inadvertently and erroneously touch the touch screen, in which case the user will not respond by intentionally pressing the touch button, which may affect the user's use.
For example, a screen area which is easily touched by mistake may be set as a preset area in the present embodiment. The determination method of the preset area may be various, for example, the holding method and posture of the user group for the mobile terminals with different models or shapes may be investigated, the screen area which is easily touched by mistake by most users is set as the preset area, and the mobile terminal is set before leaving the factory; for another example, before the user starts using the mobile terminal, the user may enter a holding mode entry function, the mobile terminal collects relevant data of the user holding the mobile terminal, an area which is easy to be touched by the user by mistake is analyzed according to the collected data, and the area is set as a preset area; for another example, the user may set the preset region according to the usage habit of the user, for example, the mobile terminal may set the region surrounded by the selection operation as the preset region according to the selection operation performed by the user on the touch screen. The number of the preset regions is not particularly limited in this embodiment.
Preferably, the method can further comprise the following steps of: and setting a preset area. For example, receiving a circle selection operation acted on the touch screen by a user, and setting an area surrounded by the circle selection operation as a preset area; in another example, a preset area stored in the mobile terminal is read.
Further, after the preset area is set, the method may further include: displaying a preset area, and adjusting the shape and/or size of the preset area according to the adjustment operation of a user.
In the embodiment of the present invention, the touch position corresponding to the screen touch event may be a point or an area, depending on the contact condition between the user and the touch screen. The touch position is located in the preset area, the touch position may be completely located in the preset area, or the touch position may be partially located in the preset area.
And 103, if the touch position is judged to be in the preset area, responding to the key touch event when the key touch event is detected.
In the embodiment of the present invention, the type of the touch key is not limited, and is preferably a capacitive touch key. For the capacitive touch key, the operation process is roughly as follows: recording a capacitance value of the key in a normal state (not touched or covered) as a reference capacitance value, if a finger presses the touch key, the capacitance value of the touch key changes, when the change value exceeds a certain threshold value, the touch key is considered to be pressed, a pressing event is reported, and after the finger leaves the touch key, the capacitance value of the touch key is restored to the reference capacitance value, at the moment, a lifting event is reported, the lifting event is responded, and the function operation corresponding to the touch key is executed. The detecting of the key touch event in the embodiment of the present invention may specifically be detecting a key pressing event or detecting a key lifting event. The key touch event is responded after a lift-off event of the touch key is detected.
For example, if the touch position is in the preset area, it is indicated that the current screen touch event is likely to be caused by a false touch, and if the key touch event is detected at this time, the key touch event is responded, so as to avoid that the intended key touch operation of the user cannot be responded, and ensure normal use of the user.
For example, the manner of responding to the key touch event may be determined according to the type of the touch key corresponding to the key touch event. For example, when the touch key is a menu key, the mode of responding to the key touch event may be to control the mobile terminal to display a menu interface; when the touch key is a home page key, the mode of responding to the key touch event may be to control the mobile terminal to enter a home page (or a desktop).
According to the response method of the touch key provided by the embodiment of the invention, when the screen touch event is detected, the touch position corresponding to the screen touch event is obtained, and if the touch position is judged to be in the preset area, the key touch event is responded when the key touch event is detected. By adopting the technical scheme, when the screen touch event and the key touch event conflict, whether the key touch event is responded or not can be reasonably confirmed according to the touch position corresponding to the screen touch event.
Further, the method may further include: and if the touch position is not in the preset area, not responding to the key touch event when the key touch event is detected. When the touch position is not in the preset area, for example, there is no intersection between the touch position and the preset area or only part of the touch position is in the preset area, it may be indicated that the screen touch event is generated by the user intentionally touching, and if a key touch event is detected, it is likely that the user inadvertently touches the touch key, so the key touch event may not be responded.
At present, in order to take account of portability and beauty of the mobile terminal, the screen occupation ratio becomes a new index for measuring the performance of the mobile terminal. In order to pursue a higher screen occupation ratio and reduce the influence of the screen frame on the visual effect, narrow-frame or frameless designs have become means for optimizing mobile terminals that various mobile terminal manufacturers strive to adopt, and the narrow-frame and frameless mobile terminals are also favored by consumers more and more. However, the mobile terminal adopting the narrow-bezel or frameless design brings better visual experience to the user and also brings some trouble to the user. Due to the fact that the frame is too narrow or no frame exists, when a user holds the mobile terminal, the user can easily touch the edge of the touch screen by mistake, and therefore the screen is touched by mistake. When the mobile terminal in the embodiment of the present invention is a mobile terminal adopting a narrow frame or frameless design, the above scheme may be further optimized.
Preferably, the preset area comprises an area of a preset shape and/or size located at the edge of the touch screen.
Fig. 2 is a schematic view of a touch screen of a mobile terminal according to an embodiment of the present invention, as shown in fig. 2, left and right sides of a touch screen 201 of the mobile terminal respectively include a first preset area 202 and a second preset area 203, and when a user touches a position 204, the position 204 is located in the second preset area 203, and a touch position corresponding to a screen touch event is located in the preset area. Illustratively, the distance between the right boundary of the first preset area 202 and the left edge of the touch screen 201 is a distance of 10 pixels.
It will be appreciated that the predetermined area may have other shapes or sizes, and fig. 2 is merely illustrative. In fig. 2, the preset area is rectangular and has the same length as the display area of the touch screen. The shape of the preset area can also be a semi-ellipse or other irregular shapes, and the size can also be set according to the actual situation. In addition, the specific position of the preset area can be adjusted, for example, the specific position can be positioned at the lower left and/or lower right of the edge of the touch screen.
Further, in order to enhance the accuracy of detecting the edge of the screen by mistake, if it is determined that the touch position is in the preset region, when a key touch event is detected, responding to the key touch event may specifically include: if the touch position is judged to be in the preset area, a pressure value corresponding to a screen touch event is obtained, the pressure value is compared with a preset pressure range, and if the pressure value is not in the preset pressure range, the key touch event is responded when the key touch event is detected. The preset pressure range corresponds to a pressure value interval when the user normally touches the preset area.
Optionally, in this embodiment of the present invention, if it is determined that the touch position is located in the preset area, when a key touch event is detected, responding to the key touch event includes: if the touch position is judged to be in the preset area, setting the state of the preset key intercepting mark as passing; when a key touch event is detected, acquiring the state of the preset key interception mark; and responding the key touch event according to the passing state of the preset key interception mark.
It can be understood that, on the basis above, if it is determined that the touch position is not located in the preset area, when a key touch event is detected, not responding to the key touch event may specifically include: if the touch position is judged not to be in the preset area, setting the state of the preset key interception mark as interception; when a key touch event is detected, acquiring the state of the preset key interception mark; and according to the intercepting state of the preset key intercepting sign, not responding to the key touch event.
For example, the preset key interception flag may be a flag bit, for example, when the value of the flag bit is 0 (or false), the status is "pass", and when the value of the flag bit is 1 (or true), the status is "intercept". The advantage of setting up like this is, when detecting the key set touch event, can confirm whether to this key set touch event fast through reading the numerical value on the flag bit, can improve the response speed of touching the key set.
Optionally, before detecting the screen touch event, the method further includes: and setting a preset key interception mark.
Fig. 3 is a schematic flow chart of another method for responding to a touch key according to an embodiment of the present invention, where the method includes the following steps:
step 301, a screen touch event is detected.
And step 302, acquiring a touch position corresponding to the screen touch event.
Step 303, judging whether the touch position is in a preset area, if so, executing step 304; otherwise, step 307 is executed.
And step 304, setting the state of the preset key interception mark as pass.
In the embodiment of the invention, if the state of the preset key interception mark can be acquiescent to interception, namely when the screen touch event is not detected, the state of the preset key interception mark is interception, and when the screen touch event is detected, whether interception needs to be changed into passing according to whether the touch position is in the preset area or not is determined.
Step 305, judging whether a key touch event is detected, if so, executing step 306; otherwise, step 307 is repeated.
In the embodiment of the present invention, if the screen touch event is already responded when the key touch event is detected, which indicates that the key touch event does not conflict with the screen touch event, step 306 may not be executed, and the key touch event is directly responded. If the touch position of the screen touch event changes when the key touch event is detected, the process returns to step 303 to re-determine whether the screen touch event is in the preset area, and determine the state of the preset key interception mark according to the determination result.
And step 306, acquiring the state of the preset key interception mark.
And step 307, responding the key touch event according to the passing state.
And 308, setting the state of the preset key interception mark as interception.
It is understood that the preset key interception flag does not need to be set if the preset key interception flag is already intercepted before step 308 is executed.
Step 309, judging whether a key touch event is detected, if so, executing step 310; otherwise, step 311 is repeated.
In the embodiment of the present invention, if the screen touch event is already responded when the key touch event is detected, which indicates that the key touch event does not conflict with the screen touch event, step 310 may not be executed to directly respond to the key touch event. If the touch position of the screen touch event changes when the key touch event is detected, the process returns to step 303 to re-determine whether the screen touch event is in the preset area, and determine the state of the preset key interception mark according to the determination result.
And 310, acquiring the state of the preset key interception mark.
And 311, not responding to the key touch event according to the interception state.
In the embodiment of the invention, when the key touch event is detected, whether the key touch event needs to be intercepted can be determined directly by acquiring the state of the preset key interception mark, so that the response speed of the touch key is ensured.
Fig. 4 is a flowchart illustrating another method for responding to a touch key according to an embodiment of the present invention, where the method may be performed by a device for responding to a touch key, where the device may be implemented by software and/or hardware, and may be generally integrated in a mobile terminal. As shown in fig. 4, the method includes:
step 401, when a key touch event is detected, determining whether a screen touch event is detected.
For example, the mobile terminal in this embodiment may be specifically a smart phone, a tablet computer, and other devices that integrate a touch screen and a touch key.
For example, the detected key touch event may be specifically a detected key press event or a detected key lift event. It is preferable that it is determined whether a screen touch event is detected upon detection of a pressing event of the touch key.
Step 402, if the screen touch event is detected, acquiring a touch position corresponding to the screen touch event.
Specific details regarding the screen touch event and the acquisition of the touch position may refer to those in the above embodiments.
And 403, judging whether the touch position is in a preset area.
For the details of the preset area, reference may be made to the related contents in the above embodiments. Preferably, the preset area comprises an area with a preset shape and/or size at the edge of the touch screen.
And step 404, responding to the key touch event if the touch position is judged to be in the preset area.
For example, if the detected key touch event is specifically a detected key press event, the key touch event is responded after a detected key lift event.
According to the response method of the touch key provided by the embodiment of the invention, when the key touch event is detected, if the screen touch event is detected, the touch position corresponding to the screen touch event is obtained, and if the touch position is judged to be in the preset area, the touch of the current user on the screen is probably mistaken touch, the key touch event cannot be intercepted, and the key touch event is normally responded. By adopting the technical scheme, when the screen touch event and the key touch event conflict, whether the key touch event is responded or not can be reasonably confirmed according to the touch position corresponding to the screen touch event.
Fig. 5 is a schematic flow chart illustrating another method for responding to a touch key according to an embodiment of the present invention
Step 501, detecting a key touch event.
Step 502, judging whether a screen touch event is detected, if so, executing step 503; otherwise, step 506 is performed.
And step 503, acquiring a touch position corresponding to the screen touch event.
Step 504, judging whether the touch position is in a preset area, if so, executing step 506; otherwise, go to step 505;
and step 505, not responding the key touch event.
Step 506, responding the key touch event.
According to the response method of the touch key, provided by the embodiment of the invention, when the key touch event is detected, the screen touch event is detected, the condition that the two events conflict and the mistaken touch exists is shown, whether the screen mistakenly touches or not can be judged according to the touch position corresponding to the screen touch event, if the screen mistakenly touches, the key touch event is normally responded, otherwise, the key touch event is intercepted, the normal response of the touch key when the screen mistakenly touches is ensured, and the screen is not interfered by the key touch event when the touch key mistakenly touches.
Fig. 6 is a block diagram of a structure of a device for responding to a touch key according to an embodiment of the present invention, where the device may be implemented by software and/or hardware, and is generally integrated in a mobile terminal, and may control a response of the touch key by executing a method for responding to the touch key. As shown in fig. 6, the apparatus includes:
a touch position obtaining module 601, configured to obtain a touch position corresponding to a screen touch event when the screen touch event is detected;
a touch position determining module 602, configured to determine whether the touch position is in a preset area;
and the key response control module 603 is configured to, when it is determined that the touch position is within the preset area and a key touch event is detected, respond to the key touch event. Namely, if the touch position is determined to be in the preset area, the method is used for responding to the key touch event when the key touch event is detected.
According to the response device for the touch key, provided by the embodiment of the invention, when the screen touch event is detected, the touch position corresponding to the screen touch event is obtained, and if the touch position is judged to be in the preset area, the key touch event is responded when the key touch event is detected. By adopting the technical scheme, when the screen touch event and the key touch event conflict, whether the key touch event is responded or not can be reasonably confirmed according to the touch position corresponding to the screen touch event.
Optionally, the key response control module is further configured to: and if the touch position is not in the preset area, not responding to the key touch event when the key touch event is detected.
Optionally, the preset area includes an area with a preset shape and/or size at the edge of the touch screen.
Optionally, if it is determined that the touch position is located in the preset area, when a key touch event is detected, responding to the key touch event includes:
if the touch position is judged to be in the preset area, setting the state of a preset key interception mark as passing;
when a key touch event is detected, acquiring the state of the preset key interception mark;
and responding the key touch event according to the passing state of the preset key interception mark.
Fig. 7 is a block diagram of a structure of another apparatus for responding to a touch key, which may be implemented by software and/or hardware, and is generally integrated in a mobile terminal, and may control a response of the touch key by executing a method for responding to the touch key according to an embodiment of the present invention. As shown in fig. 7, the apparatus includes:
a screen touch event detection module 701, configured to determine whether a screen touch event is detected when a key touch event is detected;
a touch position obtaining module 702, configured to obtain, when the screen touch event is detected, a touch position corresponding to the screen touch event;
a touch position determining module 703, configured to determine whether the touch position is within a preset area;
and a key response control module 704, configured to respond to the key touch event when it is determined that the touch position is in the preset area.
According to the response device for the touch key provided by the embodiment of the invention, when the key touch event is detected, if the screen touch event is detected, the touch position corresponding to the screen touch event is obtained, and if the touch position is judged to be in the preset area, the current touch of the user on the screen is probably mistaken touch, the key touch event cannot be intercepted, and the key touch event is normally responded. By adopting the technical scheme, when the screen touch event and the key touch event conflict, whether the key touch event is responded or not can be reasonably confirmed according to the touch position corresponding to the screen touch event.
Optionally, the preset area includes an area with a preset shape and/or size at the edge of the touch screen.
Embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method for responding to a touch key, the method including:
when a screen touch event is detected, acquiring a touch position corresponding to the screen touch event;
judging whether the touch position is in a preset area or not;
and if the touch position is judged to be in the preset area, responding to the key touch event when the key touch event is detected.
Alternatively, the method comprises:
when a key touch event is detected, judging whether a screen touch event is detected;
if the screen touch event is detected, acquiring a touch position corresponding to the screen touch event;
judging whether the touch position is in a preset area or not;
and responding to the key touch event if the touch position is judged to be in the preset area.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium containing the computer-executable instructions provided in the embodiments of the present invention is not limited to the above-mentioned response operation of the touch key, and may also perform related operations in the response method of the touch key provided in any embodiments of the present invention.
The embodiment of the invention provides a mobile terminal, wherein the mobile terminal can be integrated with a response device of a touch key provided by the embodiment of the invention. Fig. 8 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention. As shown in fig. 8, the mobile terminal may include: a casing (not shown), a touch button (not shown), a memory 801, a Central Processing Unit (CPU) 802 (also called a processor, hereinafter referred to as CPU), a circuit board (not shown), and a power circuit (not shown). The circuit board is arranged in a space enclosed by the shell; the CPU802 and the memory 801 are provided on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the mobile terminal; the memory 801 is used for storing executable program codes; the CPU802 executes a computer program corresponding to the executable program code stored in the memory 801 by reading the executable program code to realize the steps of:
when a screen touch event is detected, acquiring a touch position corresponding to the screen touch event;
judging whether the touch position is in a preset area or not;
and if the touch position is judged to be in the preset area, responding to the key touch event when the key touch event is detected.
Or the following steps are realized:
when a key touch event is detected, judging whether a screen touch event is detected;
if the screen touch event is detected, acquiring a touch position corresponding to the screen touch event;
judging whether the touch position is in a preset area or not;
and responding to the key touch event if the touch position is judged to be in the preset area.
The mobile terminal further includes: peripheral interface 803, RF (Radio Frequency) circuitry 805, audio circuitry 806, speakers 811, power management chip 808, input/output (I/O) subsystem 809, touch screen 812, other input/control devices 810, and external port 804, which communicate over one or more communication buses or signal lines 807.
It should be understood that the illustrated mobile terminal 800 is merely one example of a mobile terminal and that the mobile terminal 800 may have more or fewer components than shown, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may 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 following describes the mobile terminal for controlling the touch key response provided in this embodiment in detail, and the mobile terminal is a mobile phone as an example.
A memory 801, the memory 801 being accessible by the CPU802, the peripheral interface 803, and the like, the memory 801 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
A peripheral interface 803, said peripheral interface 803 allowing input and output peripherals of the device to be connected to the CPU802 and the memory 801.
I/O subsystem 809, which I/O subsystem 809 may connect input and output peripherals on the device, such as touch screen 812 and other input/control devices 810, to peripheral interface 803. The I/O subsystem 809 may include a display controller 8091 and one or more input controllers 8092 for controlling other input/control devices 810. Where one or more input controllers 8092 receive electrical signals from or transmit electrical signals to other input/control devices 810, other input/control devices 810 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is worth noting that the input controller 8092 may be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
A touch screen 812, which touch screen 812 is an input interface and an output interface between the user's mobile terminal and the user, displays visual output to the user, which may include graphics, text, icons, video, and the like.
The display controller 8091 in the I/O subsystem 809 receives electrical signals from the touch screen 812 or sends electrical signals to the touch screen 812. The touch screen 812 detects a contact on the touch screen, and the display controller 8091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 812, that is, implements a human-computer interaction, and the user interface object displayed on the touch screen 812 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 805 is mainly used to establish communication between the mobile phone and the wireless network (i.e., the network side), and implement data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. In particular, the RF circuitry 805 receives and transmits RF signals, also referred to as electromagnetic signals, which the RF circuitry 805 converts to or from electrical signals, and communicates with communication networks and other devices over. RF circuitry 805 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 (CODEC) chipset, a Subscriber Identity Module (SIM), and so forth.
The audio circuit 806 is mainly used to receive audio data from the peripheral interface 803, convert the audio data into an electric signal, and transmit the electric signal to the speaker 811.
The speaker 811 is used to convert the voice signal received by the handset from the wireless network through the RF circuit 805 into sound and play the sound to the user.
And the power management chip 808 is used for supplying power and managing power to the hardware connected with the CPU802, the I/O subsystem and the peripheral interface.
According to the mobile terminal provided by the embodiment of the invention, when the screen touch event and the key touch event conflict, whether the key touch event is responded or not can be reasonably confirmed according to the touch position corresponding to the screen touch event.
The touch key response device, the storage medium and the mobile terminal provided in the above embodiments can execute the touch key response method provided in any embodiment of the present invention, and have corresponding functional modules and beneficial effects for executing the method. For details of the touch key provided in any of the embodiments of the present invention, reference may be made to the method for responding to a touch key, which is not described in detail in the above embodiments.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (9)

1. A response method of a touch key is applied to a mobile terminal adopting a narrow-frame or frameless design, and comprises the following steps:
when a screen touch event is detected, acquiring a touch position corresponding to the screen touch event, wherein the detection of the screen touch event comprises the detection of screen touch operation based on a screen;
judging whether the touch position is in a preset area or not;
if the touch position is judged to be in the preset area, responding to a key touch event when the key touch event is detected later, wherein the key is positioned below the screen;
the preset area comprises areas with preset shapes and/or sizes located on the left side edge and the right side edge of the screen, and the preset area is determined in the following mode:
entering a holding mode input function, collecting related data of a user holding the mobile terminal, analyzing an area which is easy to be touched by the user by mistake according to the collected data, and setting the area as a preset area;
displaying a preset area, and adjusting the shape and/or size of the preset area according to the adjustment operation of a user.
2. The method of claim 1, further comprising:
and if the touch position is not in the preset area, not responding to the key touch event when the key touch event is detected later.
3. The method of claim 1, wherein if it is determined that the touch position is within the preset area, responding to the key touch event when the key touch event is detected later comprises:
if the touch position is judged to be in the preset area, setting the state of a preset key interception mark as passing;
when a key touch event is detected later, acquiring the state of the preset key interception mark;
and responding the key touch event according to the passing state of the preset key interception mark.
4. The method of claim 1, wherein if it is determined that the touch position is within the preset area, responding to the key touch event when the key touch event is detected later comprises:
if the touch position is judged to be in the preset area, acquiring a pressure value corresponding to a screen touch event, comparing the pressure value with a preset pressure range, and if the pressure value is not in the preset pressure range, responding to the key touch event when a key touch event is detected later, wherein the preset pressure range corresponds to a pressure value interval when a user normally touches the preset area.
5. A response method of a touch key is applied to a mobile terminal adopting a narrow-frame or frameless design, and comprises the following steps:
when a key touch event is detected, judging whether a screen touch event is detected later, wherein the key is positioned below the screen;
if the screen touch event is detected later, acquiring a touch position corresponding to the screen touch event;
judging whether the touch position is in a preset area or not, wherein the preset area comprises areas with preset shapes and/or sizes positioned at the left side edge and the right side edge of the screen;
if the touch position is judged to be in the preset area, responding to the key touch event;
wherein the preset area is determined by:
entering a holding mode input function, collecting related data of a user holding the mobile terminal, analyzing an area which is easy to be touched by the user by mistake according to the collected data, and setting the area as a preset area;
displaying a preset area, and adjusting the shape and/or size of the preset area according to the adjustment operation of a user.
6. A device for responding to a touch key, integrated in a mobile terminal using a narrow frame or frameless design, the device comprising:
the touch position acquisition module is used for acquiring a touch position corresponding to a screen touch event when the screen touch event is detected, wherein the detection of the screen touch event comprises the detection of screen touch operation based on a screen;
the touch position judging module is used for judging whether the touch position is in a preset area or not;
the key response control module is used for responding to a key touch event when the touch position is judged to be in the preset area and the key touch event is detected later, wherein the key is positioned below the screen;
the preset area comprises areas with preset shapes and/or sizes located on the left side edge and the right side edge of the screen, and the preset area is determined in the following mode:
entering a holding mode input function, collecting related data of a user holding the mobile terminal, analyzing an area which is easy to be touched by the user by mistake according to the collected data, and setting the area as a preset area;
displaying a preset area, and adjusting the shape and/or size of the preset area according to the adjustment operation of a user.
7. A device for responding to a touch key, integrated in a mobile terminal using a narrow frame or frameless design, the device comprising:
the device comprises a screen touch event detection module, a screen touch event detection module and a display module, wherein the screen touch event detection module is used for judging whether a screen touch event is detected after a key touch event is detected, and the key is positioned below a screen;
the touch position acquisition module is used for acquiring a touch position corresponding to the screen touch event when the screen touch event is detected later;
the touch position judging module is used for judging whether the touch position is in a preset area, wherein the preset area comprises areas with preset shapes and/or sizes positioned at the left side edge and the right side edge of the screen;
the key response control module is used for responding to the key touch event when the touch position is judged to be in the preset area;
wherein the preset area is determined by:
entering a holding mode input function, collecting related data of a user holding the mobile terminal, analyzing an area which is easy to be touched by the user by mistake according to the collected data, and setting the area as a preset area;
displaying a preset area, and adjusting the shape and/or size of the preset area according to the adjustment operation of a user.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method of responding to a touch key as claimed in any one of claims 1 to 5.
9. A mobile terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method for responding to a touch key according to any of claims 1-5 when executing the computer program.
CN201710538091.8A 2017-07-04 2017-07-04 Touch key response method and device, storage medium and mobile terminal Expired - Fee Related CN107357458B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710538091.8A CN107357458B (en) 2017-07-04 2017-07-04 Touch key response method and device, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710538091.8A CN107357458B (en) 2017-07-04 2017-07-04 Touch key response method and device, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN107357458A CN107357458A (en) 2017-11-17
CN107357458B true CN107357458B (en) 2021-05-04

Family

ID=60292998

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710538091.8A Expired - Fee Related CN107357458B (en) 2017-07-04 2017-07-04 Touch key response method and device, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN107357458B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108009033B (en) * 2017-12-25 2021-07-13 北京奇虎科技有限公司 Touch simulation method and device and mobile terminal
CN108958626A (en) * 2018-06-29 2018-12-07 奇酷互联网络科技(深圳)有限公司 Gesture identification method, device, readable storage medium storing program for executing and mobile terminal
CN109725963A (en) * 2018-11-22 2019-05-07 努比亚技术有限公司 A kind of implementation method, terminal and the computer readable storage medium of non-rectangle view
CN111488101B (en) * 2020-04-10 2021-09-10 得到(天津)文化传播有限公司 Event monitoring response method, device, equipment and storage medium
CN113971092A (en) * 2020-07-21 2022-01-25 Oppo广东移动通信有限公司 Application response method and device, electronic equipment and readable storage medium
CN112152602B (en) * 2020-09-16 2023-11-10 Tcl空调器(中山)有限公司 Touch key setting method, touch panel, household appliance and storage medium
CN112947839A (en) * 2021-02-08 2021-06-11 深圳市慧为智能科技股份有限公司 System rotation method, device, equipment and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102375682A (en) * 2010-08-14 2012-03-14 三星电子株式会社 System and method for preventing touch malfunction in a mobile device
CN106293283A (en) * 2015-06-05 2017-01-04 小米科技有限责任公司 Button triggering method, device and terminal
CN106775084A (en) * 2016-12-16 2017-05-31 广东欧珀移动通信有限公司 A kind of false-touch prevention method of touch-screen, device and mobile terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5743847B2 (en) * 2011-10-24 2015-07-01 京セラ株式会社 Mobile terminal and low sensitivity area setting program
CN106406904B (en) * 2016-09-30 2020-10-30 联想(北京)有限公司 Information processing method, electronic equipment and information processing device
CN106708263A (en) * 2016-12-16 2017-05-24 广东欧珀移动通信有限公司 Method and device for preventing mistaken touch of touch screens and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102375682A (en) * 2010-08-14 2012-03-14 三星电子株式会社 System and method for preventing touch malfunction in a mobile device
CN106293283A (en) * 2015-06-05 2017-01-04 小米科技有限责任公司 Button triggering method, device and terminal
CN106775084A (en) * 2016-12-16 2017-05-31 广东欧珀移动通信有限公司 A kind of false-touch prevention method of touch-screen, device and mobile terminal

Also Published As

Publication number Publication date
CN107357458A (en) 2017-11-17

Similar Documents

Publication Publication Date Title
US10969903B2 (en) Method, device and mobile terminal for preventing false-touch on touch screen
CN107357458B (en) Touch key response method and device, storage medium and mobile terminal
US10831314B2 (en) Method and electronic device for preventing touch button from being false triggered
CN107294522B (en) Response method and device based on touch key, storage medium and electronic equipment
CN106775087B (en) Touch screen control method and device of mobile terminal and mobile terminal
WO2018107849A1 (en) Method for controlling touch operation on mobile terminal, and related product
EP3336679B1 (en) Method and terminal for preventing unintentional triggering of a touch key and storage medium
EP3336677B1 (en) Method and apparatus for controlling touch screen of terminal, and terminal
WO2018107898A1 (en) Method and device for preventing false triggering of touch button, terminal and storage medium
CN107340910B (en) Touch key response method and device, storage medium and electronic equipment
WO2018107897A1 (en) Touch screen control method and device, mobile terminal, and storage medium
US10775932B2 (en) Method, mobile terminal and non-transitory computer-readable storage medium for response control of touch screen
CN106681635B (en) Split screen false touch prevention method and device and mobile terminal
WO2018107901A1 (en) Control method and device for touch screen of mobile terminal, mobile terminal, and storage medium
CN107390931B (en) Response control method and device for touch operation, storage medium and mobile terminal
CN107463289A (en) A kind of calibration method of touch-screen, device, storage medium and terminal
CN106502470A (en) Prevent method, device and the terminal of touch key-press false triggering
CN107390923B (en) Screen false touch prevention method and device, storage medium and terminal
CN106909250B (en) Touch operation processing method and device and mobile terminal
CN116861392A (en) Fingerprint unlocking method and terminal
CN106598461B (en) Touch response method and device of mobile terminal and mobile terminal
JP2010198597A (en) Operation control method of electronic equipment including touchscreen

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210504