CN111475052B - Method for preventing false touch of key and electronic equipment - Google Patents
Method for preventing false touch of key and electronic equipment Download PDFInfo
- Publication number
- CN111475052B CN111475052B CN202010278165.0A CN202010278165A CN111475052B CN 111475052 B CN111475052 B CN 111475052B CN 202010278165 A CN202010278165 A CN 202010278165A CN 111475052 B CN111475052 B CN 111475052B
- Authority
- CN
- China
- Prior art keywords
- input
- response time
- response
- duration
- key
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 51
- 230000004044 response Effects 0.000 claims abstract description 153
- 230000006870 function Effects 0.000 claims description 43
- 238000004590 computer program Methods 0.000 claims description 7
- 230000006698 induction Effects 0.000 claims description 4
- 238000013507 mapping Methods 0.000 claims description 4
- 230000002035 prolonged effect Effects 0.000 abstract description 6
- 230000008569 process Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000035484 reaction time Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000003321 amplification Effects 0.000 description 1
- 230000008033 biological extinction Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 239000000428 dust Substances 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000003199 nucleic acid amplification method Methods 0.000 description 1
- 230000002265 prevention Effects 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
- 238000004078 waterproofing Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0416—Control or interface arrangements specially adapted for digitisers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0412—Digitisers structurally integrated in a display
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0414—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using force sensing means to determine a position
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the invention provides a method for preventing false touch of keys and electronic equipment, wherein the electronic equipment is provided with a first sensing key and a second sensing key, and the method comprises the following steps: receiving a first input acting on a first sensing key; under the condition that the first input duration of the first input is smaller than the first response duration and larger than the second response duration, the first input is not responded; the first response time is the minimum input time for triggering the first function of the first sensing key, and the second response time is the minimum input time for triggering the second sensing key. Therefore, even if the user has the false touch operation when using the electronic equipment, the input time can be prolonged to enable the input time to reach the preset time interval, so that the electronic equipment does not respond to the false touch operation, and the influence of the false touch operation on the normal use of the electronic equipment by the user is avoided.
Description
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a method for preventing false touch of keys and electronic equipment.
Background
In electronic products, key technology is widely used. As controllable devices, for example cell phones, digital cameras, electronic readers, etc., there are more or less key arrangements on these devices. Sensing keys are increasingly used based on the needs of aesthetics, waterproofing, dust prevention, and improved user experience.
Referring to fig. 1, a common sensing key, such as a pressure sensing key, is based on the principle that a pressure sensor is disposed on a key panel, the pressure sensor can inform the stress condition of the key panel to generate a corresponding analog signal, and the analog signal is sent to a pressure sensing micro control unit (Microcontroller Unit, MCU) for amplification, analog-to-digital conversion and algorithm processing, and finally the micro control unit outputs corresponding key information; when the user operates the key, the deformation of the key panel is large, the analog signal change is large, and when the user does not operate the key, the plate shape of the key panel is small, and the analog signal change is small, so that whether the key is pressed or not can be identified.
Although the induction key has the advantages of high sensitivity, excellent waterproof performance and the like, the induction key is not easy to identify structurally relative to the mechanical key, so that a user can easily touch by mistake when using the electronic device, for example: when the volume is adjusted, the electronic equipment is turned off or restarted due to the fact that the power supply pressure sensing key is touched by mistake, and the operation experience of a user is affected.
Disclosure of Invention
The embodiment of the invention provides a method for preventing a key from being touched by mistake and electronic equipment, and solves the problem that the operation experience of a user is affected due to the fact that the key is touched by mistake.
In a first aspect, an embodiment of the present invention provides a method for preventing a key from being touched by mistake, which is applied to an electronic device having a first sensing key and a second sensing key, and is characterized in that the method includes:
receiving a first input acting on the first sensing key;
if the first input duration of the first input is smaller than the first response duration and larger than the second response duration, the first input is not responded;
the first response time is the minimum input time for triggering the first function of the first sensing key, and the second response time is the minimum input time for triggering the second sensing key.
In a second aspect, an embodiment of the present invention provides an electronic device, where the electronic device has a first sensing key and a second sensing key, and the electronic device includes:
the first receiving module is used for receiving a first input acting on the first sensing key;
the control module is used for not responding to the first input under the condition that the first input duration of the first input is smaller than the first response duration and larger than the second response duration;
the first response time is the minimum input time for triggering the first function of the first sensing key, and the second response time is the minimum input time for triggering the second sensing key.
In a third aspect, an embodiment of the present invention provides an electronic device, where the electronic device has a first sensing key and a second sensing key, and the electronic device includes a processor, a memory, and a program stored in the memory and capable of running on the processor, where the program when executed by the processor implements the steps of the method for preventing false touch of a key according to the first aspect.
In a fourth aspect, embodiments of the present invention provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method for preventing false touches of a key according to the first aspect.
In the embodiment of the invention, the time interval which does not respond to the pressing input is preset, so that even if the user has false touch operation when using the electronic equipment, the input time can be prolonged to enable the input time to reach the preset time interval, the electronic equipment does not respond to the false touch operation, and the influence of the false touch operation on the normal use of the electronic equipment by the user is avoided.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments of the present invention will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of the working principle of a conventional sensing button;
FIG. 2 is a flow chart of a method for preventing false touch of a key according to an embodiment of the present invention;
FIG. 3 is a diagram showing the correspondence between the input duration and the key function in the prior art;
fig. 4 is a corresponding relationship diagram of input duration and key function provided in the embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 6 is a second schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In embodiments of the invention, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g." in an embodiment should not be taken as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
Relational terms such as "first" and "second", and the like, are used solely to distinguish one from another, and do not necessarily imply a relationship or order between such names.
The electronic device in the embodiment of the invention can be a mobile phone, a tablet computer, a notebook computer, an Ultra-Mobile Personal Computer (UMPC), a netbook or a personal digital assistant (Personal Digital Assistant, PDA) and the like.
The electronic device is provided with a first sensing key and a second sensing key, the first sensing key and the second sensing key can realize the control of the electronic device based on the working principle shown in fig. 1, in some embodiments, the first sensing key can be a power supply pressure sensing key, the second sensing key can be a volume pressure sensing key, wherein the power supply pressure sensing key is used for controlling the electronic device to execute functions of screen turning off, shutting down, restarting, forced restarting and the like, the volume pressure sensing key is used for adjusting the volume of the electronic device, and it can be understood that the types of the first sensing key and the second sensing key are not particularly limited, and in the embodiment of the invention, the sensing keys can be pressure sensing keys, capacitive sensing keys, resistive sensing keys and other forms of sensing keys and the like.
Taking electronic equipment as a mobile phone and sensing keys as pressure sensing keys as examples, for the consideration of user operation experience, the power pressure sensing keys and the volume pressure sensing keys are generally arranged on the side of the mobile phone, for example: the power supply pressure sensing key and the volume pressure sensing key are arranged on the same side or opposite sides of the mobile phone. When a user watches a video by using a mobile phone and needs to adjust the volume, the user often mistakenly touches a power supply pressure sensing key, so that the electronic equipment is turned off, turned off or restarted, and the use experience of the user is seriously affected.
Referring to fig. 2, an embodiment of the present invention provides a method for preventing a key from being touched by mistake, an execution subject of the method is an electronic device, the electronic device has a first sensing key and a second sensing key, and the method includes the following steps:
step 201: receiving a first input acting on a first sensing key;
in the embodiment of the invention, the first input may be a touch or press input to the first sensing key, and when the first input acting on the first sensing key is received, the electronic device records the input duration of the first input to obtain the first input duration.
Step 202: under the condition that the first input duration of the first input is smaller than the first response duration and larger than the second response duration, the first input is not responded;
In the embodiment of the invention, the first response time is longer than the second response time, wherein the first response time is the minimum input time for triggering the first function of the first sensing key, and the second response time is the minimum input time for triggering the second sensing key. That is, a duration interval is set between the second response duration of triggering the second sensing key and the first response duration of triggering the first function of the first sensing key, and when the first input duration is within the duration interval, the electronic device does not respond to the first input.
When the user wants to control the second sensing key and touches the first sensing key by mistake, the input time can be prolonged to enable the input time to reach a preset time interval, so that the electronic equipment does not respond to the error touch operation, and the influence of the error touch operation on the normal use of the electronic equipment by the user is avoided.
In an alternative embodiment, the first sensing key is a power supply pressure sensing key, the second sensing key is a volume pressure sensing key, and accordingly, the first response time period may be a minimum input time period for triggering a shutdown/restart function of the power supply pressure sensing key, and the second response time period is a minimum input time period for triggering volume adjustment of the volume pressure sensing key.
In the scene, when the user wants to adjust the volume of the equipment and mistakenly touches the power supply pressure sensing key, the user can cancel the mistaken touch operation only by prolonging the input time to enable the input time to reach the preset time interval, and the influence of the mistaken touch operation on the normal use of the electronic equipment by the user is avoided.
Optionally, the method further comprises: receiving a second input acting on a second sensing key; and displaying the first prompt information corresponding to the second sensing key when the second input time of the second input is longer than or equal to the second response time.
In the embodiment of the present invention, when the user controls the second sensing button, a corresponding first prompt message may be displayed, so as to inform the user that the electronic device is responding to the input of the second sensing button, and assist the user in using the electronic device, for example: the second response button is volume pressure sense button, and first prompt message is volume progress bar, like this when the user wants to adjust the volume through the second response button, can judge whether oneself pressed the button based on whether showing the volume progress bar to and confirm volume adjustment range according to the volume progress bar. Correspondingly, if the volume progress bar is not displayed, the user can judge that the user presses the wrong key according to the volume progress bar, and the error touch operation can be canceled by prolonging the input time at the moment, so that the influence of the error touch operation on the normal use of the electronic equipment by the user is avoided.
Of course, in other alternative embodiments, the first sensing key may be a power key, the second sensing key may be an intelligent assistant trigger key, and the first prompt information is the intelligent assistant information at this time, so that when the user wants to trigger the intelligent assistant function through the second sensing key, whether the user presses the key can be determined based on whether the intelligent assistant information is displayed. Correspondingly, if the intelligent assistant information is not displayed, the user can judge that the user presses the wrong key according to the intelligent assistant information, and the error touch operation can be canceled by prolonging the input time at the moment, so that the influence of the error touch operation on the normal use of the electronic equipment by the user is avoided.
Referring to fig. 3 and fig. 4, the method according to the embodiment of the present invention is further described with reference to an actual application scenario, in which the first sensing key is a power pressure sensing key and the second sensing key is a volume pressure sensing key.
Specifically, referring to fig. 3, a correspondence between an input duration and a key function in an existing electronic device is shown, where 0 to t1 correspond to the input duration of the anti-shake function, and are used to avoid misjudgment caused by shake of a component of the pressure-sensitive key; t 1-t 2 correspond to the input duration of the screen-off function, and when the input duration of the power supply pressure sensing key by the user is between t1 and t2, the electronic equipment responds to the input to execute the screen-off operation; t 2-t 3 corresponds to the input duration of the shutdown/restart function, and when the input duration of the power supply pressure sensing key by the user is between t2 and t3, the electronic equipment responds to the input to execute shutdown/restart operation; t3 and the input duration of the forced restarting function corresponding to greater than t3, and when the input duration of the power supply pressure sensing key by the user is greater than or equal to t3, the electronic equipment responds to the input to execute the forced restarting operation.
Referring to fig. 4, a correspondence between an input duration of a press input and a key function in an embodiment of the present invention of a conventional electronic device is shown, where 0 to t1 correspond to the input duration of an anti-shake function, and are used to avoid misjudgment caused by shake of a component of a press key; t 1-t 4 correspond to the input duration of the screen-off function, and when the input duration of the power supply pressure sensing key by the user is between t1 and t4, the electronic equipment responds to the input to execute the screen-off operation; t 2-t 3 correspond to the input duration of the shutdown/restart function, wherein t2 is the first response duration, and when the input duration of the power supply pressure sensing key by the user is between t2 and t3, the electronic equipment responds to the input to execute shutdown/restart operation; t3 and the input duration of the forced restarting function corresponding to greater than t3, and when the input duration of the power supply pressure sensing key by the user is greater than or equal to t3, the electronic equipment responds to the input to execute the forced restarting operation. t 4-t 2 correspond to the duration of the no-action input, i.e. when the duration of the input is within the time period, the electronic device does not respond to the press input.
In combination with the actual application scenario, when the user uses the electronic device and needs to adjust the volume, the user presses the volume pressure sensing key to input, but due to misoperation, the user actually presses the power supply pressure sensing key, and at this time, the user can find that the user performs misoperation, for example: the user finds that the volume has not changed or that the volume progress bar is not displayed in the screen of the electronic device.
For the application scenario, if the correspondence between the input duration and the key function is shown in fig. 3, even if the user finds that the user performs the error operation, the electronic device can only perform the operations of screen turning off, turning off/restarting or forced restarting according to the input duration because the electronic device has received the pressing input of the power supply pressure sensing key, which affects the user experience.
For the application scenario, if the correspondence between the input duration and the key function is shown in fig. 4, when the user finds that the user performs the error operation, the input duration of the power supply pressure sensing key can be prolonged to be between t4 and t2, so that the electronic device can determine that the electronic device does not respond to the pressing input at this time based on the input duration of the power supply pressure sensing key, thereby avoiding that the user experience is affected by executing other functions of the electronic device due to the error touch.
In some embodiments, the method further comprises:
under the condition that the first input duration is smaller than the third response duration, the first input is not responded;
when the first input time is longer than or equal to the third response time and shorter than the fourth response time, triggering a second function of the first sensing key;
When the first input time is longer than or equal to the fourth response time and shorter than the first response time, the first input is not responded;
the third response time is smaller than the second response time, and the fourth response time is longer than the second response time.
In the embodiment of the present invention, as shown in fig. 4, t1 corresponds to a third response time period, where the first input time period used as the first input for the first sensing key is smaller than the third response time period, and the electronic device determines that the first input is caused by key shake and does not respond to the first input. t4 corresponds to a fourth response time period, t2 corresponds to a first response time period, and when the first input time period is between t1 and t4, the electronic equipment responds to the first input and executes screen-off operation; when the first input duration is between t4 and t2, the electronic device does not respond to the first input, which is equivalent to canceling the first input.
Further, T in fig. 4 corresponds to a second response time period, and when the second input is used as the second input of the second sensing key, the second input is longer than or equal to the second response time period, and the electronic device responds to the second input to perform volume adjustment, and simultaneously displays the first prompt information, namely, the volume progress bar.
With continued reference to FIG. 4, the fourth response is longer than the second response time, i.e., T4 > T, and a time interval is provided between T and T4, which may also be a time margin.
In view of the above application scenario, the user needs to determine whether the false touch operation occurs by displaying the volume progress bar in the screen, and after learning the false touch operation and determining that the response time is needed for continuing to press the key, the fourth response time corresponding to the screen-off function needs to be longer than the second response time corresponding to the display of the volume progress bar, for example: the second response time length is 1 second, when the user inputs the key for 1 second and finds that the volume progress bar is not displayed in the screen, the user knows that the user presses the wrong key, namely, the user presses the power supply pressure sensing key, at the moment, the user continuously presses the key to enable the input time length to reach between the fourth response time length and the first response time length, the time allowance between the fourth response time length and the second response time length can be 1.5 seconds, the time allowance is used for setting reaction time for the user, the time allowance can be configured by the user, and therefore the reaction time can be flexibly adjusted based on different crowds, and the electronic equipment can adapt to the use habits of different crowds.
Further, in some embodiments, a third input from the user is received prior to performing step 201 described above; in response to the third input, a first time interval between the first response time period and the second response time period is configured.
In the embodiment of the invention, the user can configure the first time interval between the first response time length and the second response time length through the third input, namely, configure the time interval which does not respond to the first input, so that the electronic equipment can be matched with the use habits of different crowds, and the use flexibility of the electronic equipment is improved.
Further, in some embodiments, a fourth input from the user is received prior to performing step 201 described above, and the list of applications is configured in response to the fourth input;
accordingly, after the step 202 is executed, information of the currently running target application program is obtained; in the case where the target application is recorded in the application list, the above-described step 202 is executed.
In the embodiment of the invention, a user can configure an application program list in the electronic device in advance, and one or more application programs are specified in the list. Then, after the electronic equipment receives the first input and records the first input duration of the first input, the electronic equipment firstly judges whether a currently running target application program is recorded in a preset application program list, if so, continues to judge whether the first input duration meets the condition that the first input duration of the first input is smaller than the first response duration and larger than the second response duration, and further determines whether the first input is not responded; if not, the first input can be responded according to the existing corresponding relation between the input duration and the key function.
In this way, the method for preventing the false touch of the key provided by the embodiment of the invention can be only applied to part of application programs in the electronic equipment, for example: video applications, live applications, chat applications, etc., make the use of electronic devices more flexible.
Further, in some embodiments, a fifth input from the user is received prior to performing step 201 described above; responding to a fifth input, configuring a mapping relation between the first response time length and the second response time length and the application programs in the application program list, wherein each application program in the application program list corresponds to one first response time length and one second response time length;
accordingly, after obtaining the information of the currently running target application program, the method further includes:
in the case where the currently running application is recorded in the application list, the first response time period and the second response time period corresponding to the currently running application are determined, and then the above-described step 202 is performed.
In the embodiment of the invention, the user can configure the corresponding first response time length and the corresponding second response time length for each application program in the application program sequence table respectively, namely, different time length areas can be configured for each application program in the application program list, and the application program sequence table can adapt to different use habits of the user on different application programs while avoiding the influence of the false touch operation on the electronic equipment, so that the use flexibility of the electronic equipment is improved.
Optionally, the method further comprises not responding to the input in case of receiving the input acting on the first and second sensing keys simultaneously.
In the embodiment of the invention, a false touch condition may also exist in an actual application scene, taking the first sensing key as a power supply pressure sensing key and the second sensing key as a volume pressure sensing key as an example, when the user presses the volume pressure sensing key, the user presses the power supply pressure sensing key at the same time, so that the electronic equipment simultaneously executes operations such as volume adjustment and screen extinction, and the user is difficult to autonomously find the false touch operation. Therefore, when the electronic equipment detects that the power supply pressure sensing key and the volume pressure sensing key are pressed simultaneously, the user does not respond to the pressing input, so that the user can know the occurrence of the false touch operation, and the influence of the false touch operation on the user experience can be avoided.
Referring to fig. 5, an embodiment of the present invention provides an electronic device 500, the electronic device having a first sensing key and a second sensing key, the electronic device 500 including:
a first receiving module 501, configured to receive a first input acting on the first sensing key;
the control module 502 is configured to not respond to the first input if a first input duration of the first input is less than a first response duration and greater than a second response duration;
The first response time is the minimum input time for triggering the first function of the first sensing key, and the second response time is the minimum input time for triggering the second sensing key.
Optionally, the electronic device 500 further includes:
the second receiving module is used for receiving a second input acting on the second sensing key;
the display module is used for displaying the first prompt information corresponding to the second induction key when the second input time length of the second input is greater than or equal to the second response time length.
Optionally, the control module 502 is further configured to:
if the first input duration is smaller than a third response duration, not responding to the first input;
triggering a second function of the first sensing key when the first input time is longer than or equal to the third response time and shorter than the fourth response time;
if the first input time is longer than or equal to the fourth response time and shorter than the first response time, not responding to the first input;
the third response time length is smaller than the second response time length, and the fourth response time length is longer than the second response time length.
Optionally, the electronic device 500 further includes:
a third receiving module for receiving a third input from a user;
and the first configuration module is used for responding to the third input and configuring a first time interval between the first response time length and the second response time length.
Optionally, the electronic device 500 further includes:
a fourth receiving module for receiving a fourth input from a user;
a second configuration module for configuring an application list in response to the fourth input;
the acquisition module is used for acquiring information of a currently running target application program;
the control module is further configured to record the target application in the application list, where the first input duration of the first input is less than a first response duration and greater than a second response duration, and not respond to the operation of the first input.
Optionally, the electronic device 500 further includes:
a fifth receiving module for receiving a fifth input from a user;
a third configuration module, configured to respond to the fifth input, and configure a mapping relationship between the first response time length and the second response time length and application programs in the application program list, where each application program in the application program list corresponds to one of the first response time length and one of the second response time lengths;
The determining module is used for determining the first response time length and the second response time length corresponding to the currently running application program under the condition that the target application program is recorded in the application program list;
the control module is further configured to not respond to the operation of the first input when a first input duration of the first input is less than a first response duration and greater than a second response duration.
In the embodiment of the invention, the time interval which does not respond to the pressing input is preset, so that even if the user has false touch operation when using the electronic equipment, the input time can be prolonged to enable the input time to reach the preset time interval, the electronic equipment does not respond to the false touch operation, and the influence of the false touch operation on the normal use of the electronic equipment by the user is avoided.
Fig. 6 is a schematic hardware structure of an electronic device with a first sensing key and a second sensing key, where the electronic device 600 includes, but is not limited to: radio frequency unit 601, network module 602, audio output unit 603, input unit 604, sensor 605, display unit 606, user input unit 607, interface unit 608, memory 609, processor 610, and power supply 611. It will be appreciated by those skilled in the art that the electronic device structure shown in fig. 6 is not limiting of the electronic device and that the electronic device may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. In the embodiment of the invention, the electronic equipment comprises, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer and the like.
Optionally, a computer program stored on the memory 609 and executable on said processor 610, which when executed by the processor 610, performs the steps of:
receiving a first input acting on the first sensing key;
if the first input duration of the first input is smaller than the first response duration and larger than the second response duration, the first input is not responded;
the first response time is the minimum input time for triggering the first function of the first sensing key, and the second response time is the minimum input time for triggering the second sensing key.
Therefore, even if the user has the false touch operation when using the electronic equipment, the input time can be prolonged to enable the input time to reach the preset time interval, so that the electronic equipment does not respond to the false touch operation, and the influence of the false touch operation on the normal use of the electronic equipment by the user is avoided. .
It should be understood that, in the embodiment of the present invention, the radio frequency unit 601 may be used to receive and send information or signals during a call, specifically, receive downlink data from a base station, and then process the downlink data with the processor 610; and, the uplink data is transmitted to the base station. Typically, the radio frequency unit 601 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 601 may also communicate with networks and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 602, such as helping the user to send and receive e-mail, browse web pages, and access streaming media, etc.
The audio output unit 603 may convert audio data received by the radio frequency unit 601 or the network module 602 or stored in the memory 609 into an audio signal and output as sound. Also, the audio output unit 603 may also provide audio output (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the electronic device 600. The audio output unit 603 includes a speaker, a buzzer, a receiver, and the like.
The input unit 604 is used for receiving audio or video signals. The input unit 604 may include a graphics processor (Graphics Processing Unit, GPU) 6041 and a microphone 6042, the graphics processor 6041 processing image data of still pictures or video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 606. The image frames processed by the graphics processor 6041 may be stored in the memory 609 (or other storage medium) or transmitted via the radio frequency unit 601 or the network module 602. Microphone 6042 may receive sound and can process such sound into audio data. The processed audio data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 601 in the case of a telephone call mode.
The electronic device 600 also includes at least one sensor 605, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 6061 according to the brightness of ambient light, and the proximity sensor can turn off the display panel 6061 and/or the backlight when the electronic device 600 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for recognizing the gesture of the electronic equipment (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; the sensor 605 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which are not described herein.
The display unit 606 is used to display information input by a user or information provided to the user. The display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 607 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 607 includes a touch panel 6071 and other input devices 6072. Touch panel 6071, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on touch panel 6071 or thereabout using any suitable object or accessory such as a finger, stylus, or the like). The touch panel 6071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 610, and receives and executes commands sent from the processor 610. In addition, the touch panel 6071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 607 may include other input devices 6072 in addition to the touch panel 6071. Specifically, other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein.
Further, the touch panel 6071 may be overlaid on the display panel 6061, and when the touch panel 6071 detects a touch operation thereon or thereabout, the touch operation is transmitted to the processor 610 to determine a type of a touch event, and then the processor 610 provides a corresponding visual output on the display panel 6061 according to the type of the touch event. Although in fig. 6, the touch panel 6071 and the display panel 6061 are two independent components for implementing the input and output functions of the electronic device, in some embodiments, the touch panel 6071 and the display panel 6061 may be integrated to implement the input and output functions of the electronic device, which is not limited herein.
The interface unit 608 is an interface to which an external device is connected to the electronic apparatus 600. For example, the external devices may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 608 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 600 or may be used to transmit data between the electronic apparatus 600 and an external device.
The memory 609 may be used to store software programs as well as various data. The memory 609 may mainly include a storage program area that may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and a storage data area; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, the memory 609 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 610 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 609, and calling data stored in the memory 609, thereby performing overall monitoring of the electronic device. The processor 610 may include one or more processing units; alternatively, the processor 610 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 610.
The electronic device 600 may also include a power supply 611 (e.g., a battery) for powering the various components, and optionally, the power supply 611 may be logically connected to the processor 610 via a power management system that performs functions such as managing charging, discharging, and power consumption.
In addition, the electronic device 600 includes some functional modules, which are not shown, and will not be described herein.
Optionally, an embodiment of the present invention further provides an electronic device, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor, where the computer program when executed by the processor implements each process of the method embodiments shown in fig. 1 to fig. 4 and achieves the same technical effects, and for avoiding repetition, a description is omitted herein.
The embodiment of the present invention further provides a computer readable storage medium, on which a computer program is stored, where the computer program when executed by a processor implements each process of the method embodiments shown in fig. 1 to fig. 4 and achieves the same technical effects, and in order to avoid repetition, a detailed description is omitted here. Wherein the computer readable storage medium is selected from Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present invention and the scope of the claims, which are to be protected by the present invention.
Claims (14)
1. A method for preventing false touch of a key, applied to an electronic device having a first sensing key and a second sensing key, the method comprising:
receiving a first input acting on the first sensing key;
if the first input duration of the first input is smaller than the first response duration and larger than the second response duration, the first input is not responded;
the first response time is the minimum input time for triggering the first function of the first sensing key, and the second response time is the minimum input time for triggering the second sensing key.
2. The method according to claim 1, wherein the method further comprises:
receiving a second input acting on the second sensing key;
And displaying first prompt information corresponding to the second sensing key when the second input time of the second input is longer than or equal to the second response time.
3. The method according to claim 1, wherein the method further comprises:
if the first input duration is smaller than a third response duration, not responding to the first input;
triggering a second function of the first sensing key when the first input time is longer than or equal to the third response time and shorter than the fourth response time;
if the first input time is longer than or equal to the fourth response time and shorter than the first response time, not responding to the first input;
the third response time length is smaller than the second response time length, and the fourth response time length is longer than the second response time length.
4. The method of claim 1, wherein prior to the receiving the first input to the first sensing button, the method further comprises:
receiving a third input from the user;
a first time interval between the first and second response durations is configured in response to the third input.
5. The method of claim 4, wherein prior to the receiving the first input to the first sensing button, the method further comprises:
receiving a fourth input from the user;
configuring an application list in response to the fourth input;
after the receiving the first input acting on the first sensing button, the method further comprises:
acquiring information of a currently running target application program;
and under the condition that the first input duration of the first input is smaller than the first response duration and larger than the second response duration, the operation of the first input is not responded.
6. The method of claim 5, wherein prior to the receiving the first input to the first sensing button, the method further comprises:
receiving a fifth input from the user;
in response to the fifth input, configuring a mapping relationship between the first response time length and the second response time length and the application programs in the application program list, wherein each application program in the application program list corresponds to one first response time length and one second response time length;
After the information of the currently running target application program is obtained, the method further comprises:
determining the first response time length and the second response time length corresponding to the target application program under the condition that the currently running target application program is recorded in the application program list;
and under the condition that the first input duration of the first input is smaller than the first response duration and larger than the second response duration, not responding to the operation of the first input.
7. An electronic device having a first sensing button and a second sensing button, the electronic device comprising:
the first receiving module is used for receiving a first input acting on the first sensing key;
the control module is used for not responding to the first input under the condition that the first input duration of the first input is smaller than the first response duration and larger than the second response duration;
the first response time is the minimum input time for triggering the first function of the first sensing key, and the second response time is the minimum input time for triggering the second sensing key.
8. The electronic device of claim 7, wherein the electronic device further comprises:
The second receiving module is used for receiving a second input acting on the second sensing key;
the display module is used for displaying the first prompt information corresponding to the second induction key when the second input time length of the second input is greater than or equal to the second response time length.
9. The electronic device of claim 7, wherein the control module is further configured to:
if the first input duration is smaller than a third response duration, not responding to the first input;
triggering a second function of the first sensing key when the first input time is longer than or equal to the third response time and shorter than the fourth response time;
if the first input time is longer than or equal to the fourth response time and shorter than the first response time, not responding to the first input;
the third response time length is smaller than the second response time length, and the fourth response time length is longer than the second response time length.
10. The electronic device of claim 7, wherein the electronic device further comprises:
a third receiving module for receiving a third input from a user;
And the first configuration module is used for responding to the third input and configuring a first time interval between the first response time length and the second response time length.
11. The electronic device of claim 10, wherein the electronic device further comprises:
a fourth receiving module for receiving a fourth input from a user;
a second configuration module for configuring an application list in response to the fourth input;
the acquisition module is used for acquiring information of a currently running target application program;
the control module is further configured to record the target application in the application list, where the first input duration of the first input is less than a first response duration and greater than a second response duration, and not respond to the operation of the first input.
12. The electronic device of claim 11, wherein the electronic device further comprises:
a fifth receiving module for receiving a fifth input from a user;
a third configuration module, configured to respond to the fifth input, and configure a mapping relationship between the first response time length and the second response time length and application programs in the application program list, where each application program in the application program list corresponds to one of the first response time length and one of the second response time lengths;
The determining module is used for determining the first response time length and the second response time length corresponding to the currently running application program under the condition that the target application program is recorded in the application program list;
the control module is further configured to not respond to the operation of the first input when a first input duration of the first input is less than a first response duration and greater than a second response duration.
13. An electronic device having a first sensing key and a second sensing key, comprising a processor, a memory and a program stored on the memory and executable on the processor, the program when executed by the processor implementing the steps of the method of preventing false touches of a key as claimed in any of claims 1 to 6.
14. A computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, which when executed by a processor, implements the steps of the method for preventing false touches of a key according to any of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010278165.0A CN111475052B (en) | 2020-04-10 | 2020-04-10 | Method for preventing false touch of key and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010278165.0A CN111475052B (en) | 2020-04-10 | 2020-04-10 | Method for preventing false touch of key and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111475052A CN111475052A (en) | 2020-07-31 |
CN111475052B true CN111475052B (en) | 2023-12-22 |
Family
ID=71752142
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010278165.0A Active CN111475052B (en) | 2020-04-10 | 2020-04-10 | Method for preventing false touch of key and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111475052B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112994678B (en) * | 2021-02-09 | 2024-07-12 | 珠海格力电器股份有限公司 | Key sensitivity control method and device and electrical equipment |
CN113645341B (en) * | 2021-07-16 | 2022-12-27 | 荣耀终端有限公司 | Power key false touch detection method and electronic equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100717817B1 (en) * | 2006-04-24 | 2007-05-14 | 주식회사 코발트테크놀로지 | Input apparatus using touch sensor button and input processing method |
CN106484236A (en) * | 2016-10-14 | 2017-03-08 | 珠海市魅族科技有限公司 | A kind of method and device of physical button prompting operation |
CN106855784A (en) * | 2016-12-16 | 2017-06-16 | 广东欧珀移动通信有限公司 | Prevent method, device and the terminal of touch key-press false triggering |
WO2018107903A1 (en) * | 2016-12-16 | 2018-06-21 | 广东欧珀移动通信有限公司 | Control method and device for touch screen of mobile terminal, mobile terminal, and storage medium |
CN108595106A (en) * | 2018-04-28 | 2018-09-28 | 努比亚技术有限公司 | terminal control method, terminal and computer readable storage medium |
CN109117080A (en) * | 2018-08-28 | 2019-01-01 | 广州华凌制冷设备有限公司 | The control function selection method and device of key |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110130170A1 (en) * | 2009-07-21 | 2011-06-02 | Lg Electronics Inc. | Mobile terminal and method of controlling the operation of the mobile terminal |
JP5420379B2 (en) * | 2009-11-25 | 2014-02-19 | 京セラ株式会社 | Portable terminal, key operation control program, and key operation control method |
US10048862B2 (en) * | 2014-09-08 | 2018-08-14 | Lenovo (Singapore) Pte. Ltd. | Managing an on-screen keyboard |
-
2020
- 2020-04-10 CN CN202010278165.0A patent/CN111475052B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100717817B1 (en) * | 2006-04-24 | 2007-05-14 | 주식회사 코발트테크놀로지 | Input apparatus using touch sensor button and input processing method |
CN106484236A (en) * | 2016-10-14 | 2017-03-08 | 珠海市魅族科技有限公司 | A kind of method and device of physical button prompting operation |
CN106855784A (en) * | 2016-12-16 | 2017-06-16 | 广东欧珀移动通信有限公司 | Prevent method, device and the terminal of touch key-press false triggering |
WO2018107903A1 (en) * | 2016-12-16 | 2018-06-21 | 广东欧珀移动通信有限公司 | Control method and device for touch screen of mobile terminal, mobile terminal, and storage medium |
CN108595106A (en) * | 2018-04-28 | 2018-09-28 | 努比亚技术有限公司 | terminal control method, terminal and computer readable storage medium |
CN109117080A (en) * | 2018-08-28 | 2019-01-01 | 广州华凌制冷设备有限公司 | The control function selection method and device of key |
Also Published As
Publication number | Publication date |
---|---|
CN111475052A (en) | 2020-07-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110557566B (en) | Video shooting method and electronic equipment | |
CN108459797B (en) | Control method of folding screen and mobile terminal | |
CN109343759B (en) | Screen-turning display control method and terminal | |
CN108319390B (en) | Control method of flexible screen and mobile terminal | |
CN108712566B (en) | Voice assistant awakening method and mobile terminal | |
WO2019085774A1 (en) | Application control method and mobile terminal | |
CN110209275B (en) | Terminal control method and terminal | |
CN107728923B (en) | Operation processing method and mobile terminal | |
CN110471559B (en) | False touch prevention method and mobile terminal | |
CN109600468B (en) | Control method of foldable terminal and foldable terminal | |
CN107895143A (en) | A kind of finger print information processing method, mobile terminal and computer-readable recording medium | |
CN111475052B (en) | Method for preventing false touch of key and electronic equipment | |
CN110764644A (en) | Electronic device and pressure compensation method | |
CN109284055B (en) | Display page collection method and electronic equipment | |
CN108021315B (en) | Control method and mobile terminal | |
CN111309392B (en) | Equipment control method and electronic equipment | |
CN110471808B (en) | Pressure key detection method and device and mobile terminal | |
CN110213439B (en) | Message processing method and terminal | |
CN109309741B (en) | Terminal and control method thereof | |
CN110113490B (en) | Information processing method, terminal and computer readable storage medium | |
CN109614827B (en) | Control method of mobile terminal and mobile terminal | |
CN108459796B (en) | Function key response method and mobile terminal | |
CN108897467B (en) | Display control method and terminal equipment | |
CN111352566A (en) | Parameter adjusting method and electronic equipment | |
CN108089799A (en) | The control method and mobile terminal of a kind of screen side control |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |