CN108696643A - A kind of key response method and terminal device - Google Patents

A kind of key response method and terminal device Download PDF

Info

Publication number
CN108696643A
CN108696643A CN201810469369.5A CN201810469369A CN108696643A CN 108696643 A CN108696643 A CN 108696643A CN 201810469369 A CN201810469369 A CN 201810469369A CN 108696643 A CN108696643 A CN 108696643A
Authority
CN
China
Prior art keywords
button
terminal device
key
covered
guard member
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.)
Pending
Application number
CN201810469369.5A
Other languages
Chinese (zh)
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810469369.5A priority Critical patent/CN108696643A/en
Publication of CN108696643A publication Critical patent/CN108696643A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72466User interfaces specially adapted for cordless or mobile telephones with selection means, e.g. keys, having functions defined by the mode or the status of the device

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Telephone Function (AREA)

Abstract

A kind of key response method of offer of the embodiment of the present invention and terminal device, are related to field of terminal technology, for solving the problems, such as that guard member causes the sensitivity of button to decline.This method includes:It determines and whether is covered with guard member on the button of terminal device;If so, setting the button detection parameters of the button to the first parameter;If it is not, then setting the button detection parameters of the button to the second parameter;Wherein, the button detection parameters are for judging whether the key-press input that the button receives is effectively to input;The judging result of the key-press input received to the button under the first scene is identical as the judging result of key-press input received to the button under the second scene; first scene is that guard member and the button detection parameters of the button are covered on the button is the first parameter, and second scene is that the button detection parameters of non-covering protection part and the button are the second parameter on the button.The embodiment of the present invention is used for key response.

Description

A kind of key response method and terminal device
Technical field
The present invention relates to field of terminal technology more particularly to a kind of key response method and terminal devices.
Background technology
With the continuous development of terminal technology, not only to the performance of terminal device, more stringent requirements are proposed by user, and Requirement to the appearance of terminal device is also higher and higher.
The embedded button of conventional terminal equipment can not only influence the aesthetics of appearance, but also can increase terminal device The risk of water inlet and static discharge (Echo-Sounding Device, ESD), to keep terminal device more beautiful and reducing terminal Equipment is intake and the risk of ESD, devises built-in key using pressure sensor technique in the prior art, and by concealed Button substitutes traditional embedded button.The operation principle of built-in key is:It is real-time or the period to be arranged by key position Pressure sensor detect pressure, and judge whether the pressure that detects is greater than or equal to response lag, if the pressure detected More than or equal to response lag, then pressing is responded, execute corresponding action, if the pressure detected is less than response lag, sentenced It is set to maloperation, without response.In addition, keystroke sensitivity and user misoperation, the response lag of terminal device is generally all set It is set to a moderate pressure.However, user is in using terminal equipment, in order to which the abrasion of terminal device is reduced or avoided and touches Hit, usually can increase protective shell on terminal device shell, if increased protective shell in the non-trepanning in key area, user by When pressing key, the pressure of application will absorb a part by protective shell, and then the sensitivity of button is caused to decline.
Invention content
The embodiment of the present invention provides a kind of key response method and terminal device, for solve to be covered in terminal device by The problem of guard member on key causes the sensitivity of button to decline.
In order to solve the above-mentioned technical problem, the invention is realized in this way:
In a first aspect, an embodiment of the present invention provides a kind of key response methods, including:
It determines and whether is covered with guard member on the button of terminal device;
If so, setting the button detection parameters of the button to the first parameter;
If it is not, then setting the button detection parameters of the button to the second parameter;
Wherein, the button detection parameters are for judging whether the key-press input that the button receives is effectively to input; The judging result of the key-press input received to the button under the first scene receives the button under the second scene The judging result of the key-press input arrived is identical, first scene be covered on the button guard member and the button by Key detection parameters are the first parameter, and second scene is the button of non-covering protection part and button detection on the button Parameter is the second parameter.
Second aspect, an embodiment of the present invention provides a kind of terminal devices, including:
Whether determination unit is covered with guard member on the button for determining terminal device;
Processing unit, for when the determination unit determines and is covered with guard member on the button, by the button Button detection parameters are set as the first parameter, will be described when the determination unit determines non-covering protection part on the button The button detection parameters of button are set as the second parameter;
Wherein, the button detection parameters are for judging whether the key-press input that the button receives is effectively to input; The judging result of the key-press input received to the button under the first scene receives the button under the second scene The judging result of the key-press input arrived is identical, first scene be covered on the button guard member and the button by Key detection parameters are the first parameter, and second scene is the button of non-covering protection part and button detection on the button Parameter is the second parameter.
The third aspect an embodiment of the present invention provides a kind of terminal device, including processor, memory and is stored in described It is real when the computer program is executed by the processor on memory and the computer program that can run on the processor Now the step of key response method as described in relation to the first aspect.
Fourth aspect, an embodiment of the present invention provides a kind of computer readable storage mediums, which is characterized in that the calculating Computer program is stored on machine readable storage medium storing program for executing, is realized as described in relation to the first aspect when the computer program is executed by processor Key response method the step of.
It whether is covered with protection on the button of key response method provided in an embodiment of the present invention terminal device determining first Part sets the button detection parameters of the button to the first parameter if being covered with guard member on button;If on the button Non- covering protection part then sets the button detection parameters of the button to the second parameter, due to acting as key detection parameters Judge whether the key-press input that the button receives is effectively to input, and guard member and the button are covered on the button The judging result of key-press input that the button is received when being the first parameter of button detection parameters on the button not The key-press input received to the button when button detection parameters of covering protection part and the button are the second parameter is sentenced Disconnected result is identical, therefore key response method provided in an embodiment of the present invention can be such that the sensitivity of key response is not set by terminal The influence of the guard member covered on standby button, to solve the problems, such as that guard member causes the sensitivity of button to decline.
Description of the drawings
Fig. 1 is the Organization Chart of Android operation system provided in an embodiment of the present invention;
Fig. 2 is the step flow chart of key response method provided in an embodiment of the present invention;
Fig. 3 is one of the application scenarios schematic diagram of key response method provided in an embodiment of the present invention;
Fig. 4 is the two of the application scenarios schematic diagram of key response method provided in an embodiment of the present invention;
Fig. 5 is the three of the application scenarios schematic diagram of key response method provided in an embodiment of the present invention;
Fig. 6 is the four of the application scenarios schematic diagram of key response method provided in an embodiment of the present invention;
Fig. 7 is the five of the application scenarios schematic diagram of key response method provided in an embodiment of the present invention;
Fig. 8 is the schematic diagram of terminal device provided in an embodiment of the present invention;
Fig. 9 is the hardware architecture diagram of terminal device provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts Example, shall fall within the protection scope of the present invention.
The terms "and/or", only a kind of incidence relation of description affiliated partner, indicates that there may be three kinds of passes System, for example, A and/or B, can indicate:Individualism A exists simultaneously A and B, these three situations of individualism B.
Term " first " in description and claims of this specification and " second " etc. are for distinguishing synchronous pair As, rather than for the particular order of description object.For example, first interface and second interface etc. are for distinguishing different connect Mouthful, rather than the particular order for describing interface.
In embodiments of the present invention, " illustrative " or " such as " etc. words for indicate make example, illustration or explanation.This Be described as in inventive embodiments " illustrative " or " such as " any embodiment or design scheme be not necessarily to be construed as comparing Other embodiments or design scheme more preferably or more advantage.Specifically, use " illustrative " or " such as " etc. words purport Related notion is being presented in specific ways.In addition, in the description of the embodiment of the present invention, unless otherwise indicated, " multiples' " contains Justice refers to two or more.
User, usually can be in terminal in order to which the abrasion and collision of terminal device is reduced or avoided in using terminal equipment Increase guard member on device housings, if increased guard member in the non-trepanning in key area, user in pressing keys, application Pressure will absorb a part by guard member, and then the sensitivity of button is caused to decline.
In order to solve this problem, a kind of key response method of offer of the embodiment of the present invention and terminal device, the key response Whether it is covered with guard member on the button of method terminal device determining first, if being covered with guard member on button, is pressed by described in The button detection parameters of key are set as the first parameter;If non-covering protection part on the button, the button of the button is examined Survey parameter and be set as the second parameter, due to key detection parameters act as judging key-press input that the button receives whether be Effectively input, and when the button detection parameters for being covered with guard member and the button on the button are the first parameter to it is described by The judging result of the bonded key-press input received and the button detection parameters of non-covering protection part and the button on the button The judging result of key-press input to be received to the button when the second parameter is identical, therefore provided in an embodiment of the present invention presses Key response method can be such that the sensitivity of key response is not influenced by the guard member covered on the button of terminal device, to solve The problem of certainly guard member causes the sensitivity of button to decline.
Terminal in the embodiment of the present invention can be the terminal with operating system.The operating system can be Android (Android) operating system can be ios operating systems, can also be other possible operating systems, the embodiment of the present invention is not Make specific limit.
Below by taking Android operation system as an example, introduce what key response method provided in an embodiment of the present invention was applied Software environment.
As shown in Figure 1, being a kind of configuration diagram of possible Android operation system provided in an embodiment of the present invention.Scheming In 1, the framework of Android operation system includes 4 layers, respectively:Application layer, application framework layer, system operation library layer and Inner nuclear layer (is specifically as follows Linux inner core).
Wherein, application layer includes each application program (including system application and in Android operation system Tripartite's application program).
Application framework layer is the frame of application program, and developer can be in the exploitation of the frame in accordance with application program In the case of principle, some application programs are developed based on application framework layer.
System operation library layer includes library (also referred to as system library) and Android operation system running environment.Library is mainly Android behaviour All kinds of resources needed for it are provided as system.Android operation system running environment is used to provide software loop for Android operation system Border.
Inner nuclear layer is the operating system layer of Android operation system, belongs to the bottom of Android operation system software level.It is interior Stratum nucleare provides core system service and hardware-related driver based on linux kernel for Android operation system.
By taking Android operation system as an example, in the embodiment of the present invention, developer can be based on above-mentioned Android as shown in Figure 1 The software program of key response method provided in an embodiment of the present invention is realized in the system architecture of operating system, exploitation, so that The key response method can be run based on Android operation system as shown in Figure 1.I.e. processor or terminal can by The software program is run in Android operation system realizes key response method provided in an embodiment of the present invention.
Terminal in the embodiment of the present invention can be terminal device, or non-terminal equipment.Terminal device can be Mobile phone, tablet computer, laptop, palm PC, car-mounted terminal, wearable device, Ultra-Mobile PC (ultra-mobile personal computer, UMPC), net book or personal digital assistant (personal digital Assistant, PDA) etc.;Non-terminal equipment can be personal computer (personal computer, PC), television set (television, TV), automatic teller machine or self-service machine etc.;The embodiment of the present invention is not especially limited.
The executive agent of key response method provided in an embodiment of the present invention can be above-mentioned terminal (including terminal device And non-terminal equipment), or the function module and/or functional entity of the key response method can be realized in the terminal, It can specifically be determined according to actual use demand, the embodiment of the present invention is not construed as limiting.
Terminal device provided in an embodiment of the present invention can be mobile phone, tablet computer, laptop, super mobile personal Computer (ultra-mobile personal computer, UMPC), net book, digital photo frame, personal digital assistant (personal digital assistant, PDA), smartwatch, Intelligent bracelet etc. or the terminal device can also be it The terminal device of his type, the embodiment of the present invention are not construed as limiting.
Embodiment one,
The embodiment of the present invention provides a kind of key response method, specifically, as shown in Fig. 2, the embodiment of the present invention provides Key response method include:
S21, determine whether be covered with guard member on the button of terminal device.
Optionally, can be determined as follows on the button of terminal device whether be covered with guarantor in the embodiment of the present invention Guard.
The first realization method includes the following steps a-c:
A, display selection menu.
Illustratively, with reference to shown in Fig. 3, selection menu 30 may include:Signal language " whether being covered with guard member ", difference For determine button A, button B, button C ... wait buttons whether be covered with guard member option and for determine button A, by Key B, button C ... wait the option of the non-covering protection part of buttons.
It should be noted that selection menu shown in Fig. 3 is only a kind of concrete implementation mode that the present invention provides, upper The menu that selects stated on the basis of embodiment in the embodiment of the present invention can also be other forms, and the embodiment of the present invention does not do this It limits and whether user can be covered with subject to guard member on the button by selecting unit selection terminal device.
B, the first operation input by user is received.
Wherein, first operation is the operation to the selection menu input.
Specifically, described first operates the specific can be that user is to the predeterminated position for selecting menu on terminal device Clicking operation phonetic order input by user or certain gestures input by user.In some implementations of the present invention Example in, the certain gestures can be click gesture, slip gesture, Pressure identification gesture, long-pressing gesture, area change gesture, Any one double by gesture, double-click gesture.
C, in response to first operation, determine that guard member or the terminal are covered on the button of the terminal device to be set Non- covering protection part on standby button.
Specifically, after display selection menu, whether user can be covered with protection according on each button of terminal device Part inputs different operations, and after terminal device receives operation input by user, the end is determined according to operation input by user Whether it is covered with guard member on the button of end equipment.
Illustratively, with reference to shown in Fig. 4, selection menu includes:Signal language " whether being covered with guard member " is pressed for determination Key A, button B, button C ... wait buttons to be covered with the option of guard member and for determining button A, button B, button C ... The option of the equal non-covering protection part of buttons, and user is covered with wherein button A and button B the option of guard member and has input a little Hit operation, clicking operation had input to the option of the non-covering protection parts of button C, it is thus determined that the button A of the terminal device and It is covered with guard member on button B, non-covering protection part on the button C of terminal device.
Illustratively, referring to Figure 5, selection menu includes:Signal language " whether being covered with guard member " is pressed for determination Key A, button B, button C ... wait buttons to be covered with the option of guard member and for determining button A, button B, button C ... The option of the equal non-covering protection part of buttons, and user is covered with wherein button B and button C the option of guard member and has input a little Hit operation, clicking operation had input to the option of the non-covering protection parts of button A, it is thus determined that the button B of the terminal device and It is covered with guard member on button C, non-covering protection part on the button A of terminal device.
That is, selecting menu by display in above-described embodiment, so that user is manually selected on each button of terminal device is It is no to cover guard member.Since the above embodiment is it is not necessary that hardware element, the above embodiment are not necessarily on the terminal device Increase the manufacturing cost of terminal device.
Second of realization method includes the following steps I-IV:
I, the first distance is obtained.
Wherein, first distance on the direction detected into row distance with the nearest object of the button to the terminal The distance of equipment.
Illustratively, with reference to shown in Fig. 6, distance detection device 60 can be set on button, and be filled by distance detection Set 60 the first distances of acquisition.The detection direction (direction shown in arrow in Fig. 6) of distance detection device 60 is to be examined into row distance The direction of survey.
Illustratively, distance detection device 60 is specifically as follows infrared distance measuring device.
It should be noted that be provided with a distance detection device only on button to exemplify in Fig. 6, but the present invention It's not limited to that for embodiment, multiple distance detection devices can also be arranged on the basis of the above embodiments, and according to multiple The distance synthesis that distance detection device obtains obtains the length of the first distance.
In addition, it can be to obtain in real time to obtain the first distance in above-mentioned steps I, or periodically obtain.
II, judge whether first distance is less than or equal to threshold distance.
Specifically, threshold distance can be set according to ordinary circumstance lower protections at a distance from the gap between terminal device It is fixed, such as:Ordinary circumstance lower protections is 1 millimeter (mm) at a distance from the gap between terminal device, then can will be of the invention Threshold distance in embodiment is set as 1 millimeter.
In above-mentioned steps II, if the first distance is less than or equal to threshold distance, III is thened follow the steps, if the first distance is big In threshold distance, IV is thened follow the steps.
III, it determines and is covered with guard member on the button.
IV, non-covering protection part on the button is determined.
That is, can also be nearest with button distance on the direction detected into row distance by obtaining in the embodiment of the present invention Button of the object to the distance of the button to judge terminal device on whether be covered with guard member.
In addition, the use process in terminal device is also possible to will appear, terminal device is close to other other than guard member The case where object is placed, thus determined by above-mentioned second of realization method whether be covered with guard member on button it is possible that Erroneous judgement.For improve judgment accuracy, in above-mentioned steps II, when first distance be less than or equal to threshold distance when, terminal is set It is standby to show confirmation dialog box, and user is prompted to confirm to being covered with guard member on the button of terminal device, if with Family confirms, it is determined that guard member is covered on the button of terminal device, if user is unconfirmed or user inputs non-covering protection The instruction information of part, it is determined that non-covering protection part on the button of terminal device.
The third realization method includes the following steps 1-4:
1, third pressure value is obtained.
Wherein, the third pressure value is the pressure value of the button position.
Illustratively, with reference to shown in Fig. 7, pressure-detecting device 70 can be set on each button of terminal device, and Third pressure value is obtained by pressure-detecting device 70.
Illustratively, pressure-detecting device 70 can be pressure sensor.
It should be noted that pressure-detecting device to be arranged on each button of terminal device to exemplify in Fig. 7, but It's not limited to that for the embodiment of the present invention, and the pressure-detecting device of other quantity can also be arranged on the basis of the above embodiments And/or by pressure-detecting device setting and other positions.
Equally, it can be to obtain in real time that third pressure value is obtained in above-mentioned steps 1, or periodically obtain.
2, judge whether the third pressure value is more than threshold pressure.
Specifically, threshold pressure can be set according to the pressure that guard member applies to button, such as:Guard member is to terminal The pressure that equipment applies is 5 Ns (N), then can the threshold pressure in the embodiment of the present invention be set as 5 Ns.In addition, threshold pressure Power can be also adjusted in pattern actual demand during user's embodiment.
In step 2 above, if third pressure value is more than threshold pressure, 3 are thened follow the steps;If third pressure value be less than or Equal to threshold pressure, 4 are thened follow the steps.
3, it determines and is covered with guard member on the button.
4, non-covering protection part on the button is determined.
That is, can also judge whether covered on button by obtaining the pressure value of button position in the embodiment of the present invention It is stamped guard member.
In addition, the use process in terminal device is also possible to will appear, other objects other than guard member apply to button The case where pressure, such as:User holds terminal device.Therefore terminal device is determined whether by the third above-mentioned realization method Whether it is covered with guard member on button it is possible that erroneous judgement.For improve judgment accuracy, in step 2 above, work as third When pressure value is less than or equal to threshold pressure, terminal device can also show confirmation dialog box, and prompt user to terminal device Button on be covered with guard member and confirmed, if user confirms, it is determined that be covered with guard member on the button of terminal device, if User is confirmed or user inputs the instruction information of non-covering protection part, it is determined that does not cover guarantor on the button of terminal device Guard.
In above-mentioned steps S21, however, it is determined that be covered with guard member on the button of terminal device, then follow the steps S22, if really Determine non-covering protection part on the button of terminal device, thens follow the steps S23.
S22, the button detection parameters are set to the first parameter.
S23, the button detection parameters are set to the second parameter.
Wherein, the button detection parameters are for judging whether the key-press input that the button receives is effectively to input; The judging result of the key-press input received to the button under the first scene receives the button under the second scene The judging result of the key-press input arrived is identical, and first scene is the button that the button is covered with guard member and the button Detection parameters are the first parameter, and second scene is the button detection parameters of the non-covering protection part of the button and the button For the second parameter.
Optionally, the button detection parameters include:Pressure response threshold value;
When setting the key detection parameters of the terminal device to the first parameter, the size of the pressure response threshold value is First pressure value;When setting the key detection parameters of the terminal device to the second parameter, the pressure response threshold value it is big Small is second pressure value;The first pressure value is less than the second pressure value.
That is, when being covered with guard member on the button of terminal device, reduce the pressure response threshold value of button, to avoid dropping The sensitivity of low key response.
Optionally, the button detection parameters include:Deformation quantity response lag;
When setting the key detection parameters of the terminal device to the first parameter, the size of the deformation quantity response lag For the first deformation quantity;When setting the key detection parameters of the terminal device to the second parameter, the deformation quantity response lag Size be the second deformation quantity;First deformation quantity is less than second deformation quantity.
That is, when being covered with guard member on the button of terminal device, reduce the deformation quantity response lag of button, to avoid Reduce the sensitivity of key response.
It whether is covered with protection on the button of key response method provided in an embodiment of the present invention terminal device determining first Part sets the button detection parameters of the button to the first parameter if being covered with guard member on button;If on the button Non- covering protection part then sets the button detection parameters of the button to the second parameter, due to acting as key detection parameters Judge whether the key-press input that the button receives is effectively to input, and guard member and the button are covered on the button The judging result of key-press input that the button is received when being the first parameter of button detection parameters on the button not The key-press input received to the button when button detection parameters of covering protection part and the button are the second parameter is sentenced Disconnected result is identical, therefore key response method provided in an embodiment of the present invention can be such that the sensitivity of key response is not set by terminal The influence of the guard member covered on standby button, to solve the problems, such as that guard member causes the sensitivity of button to decline.
Embodiment two,
The embodiment of the present invention also provides a kind of terminal device, and specific with reference to shown in Fig. 8, which includes:
Whether determination unit 81 is covered with guard member on the button for determining terminal device;
Processing unit 82, for when the determination unit determines and is covered with guard member on the button, by the button Button detection parameters be set as the first parameter, determine non-covering protection part on the button of terminal device in the determination unit When, set the button detection parameters of the button to the second parameter;
Wherein, the button detection parameters are for judging whether the key-press input that the button receives is effectively to input; The judging result of the key-press input received to the button under the first scene receives the button under the second scene The judging result of the key-press input arrived is identical, and first scene is the button that the button is covered with guard member and the button Detection parameters are the first parameter, and second scene is the button detection parameters of the non-covering protection part of the button and the button For the second parameter.
Optionally, the button detection parameters include:Pressure response threshold value;
When setting the button detection parameters of the button to the first parameter, the size of the pressure response threshold value is the One pressure value;When setting the button detection parameters of the button to the second parameter, the size of the pressure response threshold value is Second pressure value;The first pressure value is less than the second pressure value.
Optionally, the determination unit 81 includes:Display module, receiving module and processing module;
The display module, for showing selection menu;
The receiving module, for receiving the first operation input by user;First operation is to the selection menu The operation of input;
The processing module, in response to first operation, determining and being covered with guard member or described on the button Non- covering protection part on button.
Optionally, the determination unit 81 includes:Apart from detection module and processing module;
It is described apart from detection module, for obtaining the first distance;First distance is on the direction detected into row distance With the button apart from nearest object to the distance of the button;
The processing module, for judging whether first distance is less than or equal to threshold distance, if so, determining institute It states and is covered with guard member on the button of terminal device, if not, determining non-covering protection part on the button of the terminal device.
Optionally, the determination unit 81 includes:Pressure detecting module and processing module;
The pressure detecting module, for obtaining third pressure value, the third pressure value is the button position Pressure value;
The processing module, for judging whether the third pressure value is more than threshold pressure, if so, determining the end It is covered with guard member on the button of end equipment, if not, determining non-covering protection part on the button of the terminal device.
The terminal device that the embodiment of the present invention provides, it is first determined protection whether is covered on the button of terminal device Part sets the button detection parameters of the button to the first parameter if being covered with guard member on button;If on the button Non- covering protection part then sets the button detection parameters of the button to the second parameter, due to acting as key detection parameters Judge whether the key-press input that the button receives is effectively to input, and guard member and the button are covered on the button The judging result of key-press input that the button is received when being the first parameter of button detection parameters on the button not The key-press input received to the button when button detection parameters of covering protection part and the button are the second parameter is sentenced Disconnected result is identical, therefore key response method provided in an embodiment of the present invention can be such that the sensitivity of key response is not set by terminal The influence of the guard member covered on standby button, to solve the problems, such as that guard member causes the sensitivity of button to decline.
Further, Fig. 9 is a kind of hardware architecture diagram for the terminal device for realizing each embodiment of the application, is such as schemed Shown in 9, which includes but not limited to:Radio frequency unit 101, audio output unit 103, receives network module 102 Unit 104, sensor 105, display unit 106, user's receiving unit 107, interface unit 108, memory 109, processor The components such as 110 and power supply 111.It will be understood by those skilled in the art that terminal device structure shown in Fig. 9 is not constituted Restriction to terminal device, terminal device may include than illustrating more or fewer components, either combine certain components or Different component arrangements.In the embodiment of the present application, terminal device include but not limited to mobile phone, tablet computer, laptop, Palm PC, car-mounted terminal, wearable device and pedometer etc..
Wherein, whether processor 110 are covered with guard member on the button for determining terminal device, and described Determination unit determines when being covered with guard member on the button, button detection parameters is set to the first parameter, in the determination When unit determines non-covering protection part on the button, it sets button detection parameters to the second parameter;
Wherein, the button detection parameters are for judging whether the key-press input that the button receives is effectively to input; For the same key-press input, judging result of the button under the first scene and the judging result phase under the second scene Together, first scene is that be covered with guard member and the button detection parameters of the button be the first parameter to the button, described Second scene is that the button detection parameters of the non-covering protection part of the button and the button are the second parameter.
The terminal device that the embodiment of the present invention provides, it is first determined protection whether is covered on the button of terminal device Part sets the button detection parameters of the button to the first parameter if being covered with guard member on button;If on the button Non- covering protection part then sets the button detection parameters of the button to the second parameter, due to acting as key detection parameters Judge whether the key-press input that the button receives is effectively to input, and guard member and the button are covered on the button The judging result of key-press input that the button is received when being the first parameter of button detection parameters on the button not The key-press input received to the button when button detection parameters of covering protection part and the button are the second parameter is sentenced Disconnected result is identical, therefore key response method provided in an embodiment of the present invention can be such that the sensitivity of key response is not set by terminal The influence of the guard member covered on standby button, to solve the problems, such as that guard member causes the sensitivity of button to decline.
It should be understood that the embodiment of the present application in, radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal Send and receive, specifically, by from base station downlink data receive after, to processor 110 handle;In addition, by uplink Data are sent to base station.In general, radio frequency unit 101 includes but not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 101 can also by radio communication system and network and other set Standby communication.
Terminal device has provided wireless broadband internet to the user by network module 102 and has accessed, and such as user is helped to receive Send e-mails, browse webpage and access streaming video etc..
It is that audio output unit 103 can receive radio frequency unit 101 or network module 102 or in memory 109 The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 103 can also provide and end The relevant audio output of specific function (for example, call signal receives sound, message sink sound etc.) that end equipment executes.Sound Frequency output unit 103 includes loud speaker, buzzer and receiver etc..
Receiving unit 104 is for receiving audio or video signal.Receiving unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained by image capture apparatus (such as camera) in image capture mode carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or network module 102.Mike Wind 1042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be The format output of mobile communication base station can be sent to via radio frequency unit 101 by being converted in the case of telephone calling model.
Terminal device further includes at least one sensor 105, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light The light and shade of line adjusts the brightness of display panel 1061, and proximity sensor can close display when terminal device is moved in one's ear Panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (generally three Axis) acceleration size, size and the direction of gravity are can detect that when static, it is (such as horizontal to can be used to identify terminal device posture Vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Sensor 105 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, humidity Meter, thermometer, infrared sensor etc., details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User's receiving unit 107 can be used for receiving the number or character information of input, and generate the use with terminal device Family is arranged and the related key signals input of function control.Specifically, user's receiving unit 107 include touch panel 1071 and Other input equipments 1072.Touch panel 1071, also referred to as touch screen collect user on it or neighbouring touch operation (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation).Touch panel 1071 may include both touch detecting apparatus and touch controller.Wherein, touch detection Device detects the touch orientation of user, and detects the signal that touch operation is brought, and transmits a signal to touch controller;Touch control Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 110, receiving area It manages the order that device 110 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Type realizes touch panel 1071.In addition to touch panel 1071, user's receiving unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, operating lever, details are not described herein.
Further, touch panel 1071 can be covered on display panel 1061, when touch panel 1071 is detected at it On or near touch operation after, send processor 110 to determine the type of touch event, be followed by subsequent processing device 110 according to touch The type for touching event provides corresponding visual output on display panel 1061.Although in fig.9, touch panel 1071 and display Panel 1061 is to realize the function that outputs and inputs of terminal device as two independent components, but in some embodiments In, can be integrated by touch panel 1071 and display panel 1061 and realize the function that outputs and inputs of terminal device, it is specific this Place does not limit.
Interface unit 108 is the interface that external device (ED) is connect with terminal device.For example, external device (ED) may include it is wired or Wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, memory card port, For connecting the port of device with identification module, the port audio input/output (I/O), video i/o port, ear port Etc..Interface unit 108 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and will The input received is transferred to one or more of terminal device element or can be used in terminal device and external device (ED) Between transmission data.
Memory 109 can be used for storing software program and various data.Memory 109 can include mainly storing program area And storage data field, wherein storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of terminal device, utilizes each of various interfaces and the entire terminal device of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of terminal device, to carry out integral monitoring to terminal device.Place Reason device 110 may include one or more processing units;Optionally, processor 110 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Terminal device can also include the power supply 111 (such as battery) powered to all parts, and optionally, power supply 111 can With logically contiguous by power-supply management system and processor 110, to be charged, be discharged by power-supply management system realization management, And the functions such as power managed.
In addition, terminal device includes some unshowned function modules, details are not described herein.
Embodiment three,
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, the computer program realize each process of the embodiment of the method for above-mentioned key response when being executed by processor, and Identical technique effect can be reached, to avoid repeating, which is not described herein again.Wherein, computer readable storage medium, it is such as read-only Memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic disc or CD etc..
Wherein, terminal device provided in an embodiment of the present invention, computer storage media are used to execute presented above Corresponding method, therefore, attainable advantageous effect can refer to the advantageous effect in corresponding method presented above, Details are not described herein again.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements include not only those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this There is also other identical elements in the process of element, method, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited in above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form belongs within the protection of the present invention.

Claims (12)

1. a kind of key response method, which is characterized in that including:
It determines and whether is covered with guard member on the button of terminal device;
If so, setting the button detection parameters of the button to the first parameter;
If it is not, then setting the button detection parameters of the button to the second parameter;
Wherein, the button detection parameters are for judging whether the key-press input that the button receives is effectively to input; The judging result for the key-press input that the button is received under one scene and under the second scene the button is received The judging result of key-press input is identical, and first scene is that the button inspection of guard member and the button is covered on the button Survey parameter is the first parameter, and second scene is the button detection parameters of non-covering protection part and the button on the button For the second parameter.
2. according to the method described in claim 1, it is characterized in that, the button detection parameters include:Pressure response threshold value;
When setting the button detection parameters of the button to the first parameter, the size of the pressure response threshold value is the first pressure Force value;When setting the button detection parameters of the button to the second parameter, the size of the pressure response threshold value is second Pressure value;The first pressure value is less than the second pressure value.
3. method according to claim 1 or 2, which is characterized in that whether covered on the button of the determining terminal device There is guard member, including:
Display selection menu;
Receive the first operation input by user;First operation is the operation to the selection menu input;
In response to first operation, determines and be covered with non-covering protection part on guard member or the button on the button.
4. method according to claim 1 or 2, which is characterized in that whether covered on the button of the determining terminal device There is guard member, including:
Obtain the first distance;First distance is to be arrived apart from nearest object with the button on the direction detected into row distance The distance of the button;
Judge whether first distance is less than or equal to threshold distance;
If so, determining guard member is covered on the button;
If not, determining non-covering protection part on the button.
5. method according to claim 1 or 2, which is characterized in that whether covered on the button of the determining terminal device There is guard member, including:
Third pressure value is obtained, the third pressure value is the pressure value of the button position;
Judge whether the third pressure value is more than threshold pressure;
If so, determining guard member is covered on the button;
If not, determining non-covering protection part on the button.
6. a kind of terminal device, which is characterized in that including:
Whether determination unit is covered with guard member on the button for determining terminal device;
Processing unit, for when the determination unit determines and is covered with guard member on the button, by the button of the button Detection parameters are set as the first parameter, when the determination unit determines non-covering protection part on the button, by the button Button detection parameters be set as the second parameter;
Wherein, the button detection parameters are for judging whether the key-press input that the button receives is effectively to input; The judging result for the key-press input that the button is received under one scene and under the second scene the button is received The judging result of key-press input is identical, and first scene is that the button inspection of guard member and the button is covered on the button Survey parameter is the first parameter, and second scene is the button detection parameters of non-covering protection part and the button on the button For the second parameter.
7. terminal device according to claim 6, which is characterized in that the button detection parameters include:Pressure response threshold Value;
When setting the key detection parameters to the first parameter, the size of the pressure response threshold value is first pressure value; When setting the key detection parameters to the second parameter, the size of the pressure response threshold value is second pressure value;Described first Pressure value is less than the second pressure value.
8. the terminal device described according to claim 6 or 7, which is characterized in that the determination unit includes:Display module connects Receive module and processing module;
The display module, for showing selection menu;
The receiving module, for receiving the first operation input by user;First operation is to selection menu input Operation;
The processing module, in response to first operation, determining and being covered with guard member or the button on the button On non-covering protection part.
9. the terminal device described according to claim 6 or 7, which is characterized in that the determination unit includes:Apart from detection module And processing module;
It is described apart from detection module, for obtaining the first distance;First distance on the direction detected into row distance with institute State distance of the button apart from nearest object to the button;
The processing module, for judging whether first distance is less than or equal to threshold distance, if so, being pressed described in determining Guard member is covered on key, if not, determining non-covering protection part on the button.
10. the terminal device described according to claim 6 or 7, which is characterized in that the determination unit includes:Pressure detecting mould Block and processing module;
The pressure detecting module, for obtaining third pressure value, the third pressure value is the pressure of the button position Force value;
The processing module, for judging whether the third pressure value is more than threshold pressure, if so, determining on the button It is covered with guard member, if not, determining non-covering protection part on the button.
11. a kind of terminal device, which is characterized in that including processor, memory and be stored on the memory and can be in institute The computer program run on processor is stated, such as claim 1 to 5 is realized when the computer program is executed by the processor Any one of described in key response method the step of.
12. a kind of computer readable storage medium, which is characterized in that store computer journey on the computer readable storage medium Sequence, the key response method as described in any one of claim 1 to 5 is realized when the computer program is executed by processor Step.
CN201810469369.5A 2018-05-16 2018-05-16 A kind of key response method and terminal device Pending CN108696643A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810469369.5A CN108696643A (en) 2018-05-16 2018-05-16 A kind of key response method and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810469369.5A CN108696643A (en) 2018-05-16 2018-05-16 A kind of key response method and terminal device

Publications (1)

Publication Number Publication Date
CN108696643A true CN108696643A (en) 2018-10-23

Family

ID=63847447

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810469369.5A Pending CN108696643A (en) 2018-05-16 2018-05-16 A kind of key response method and terminal device

Country Status (1)

Country Link
CN (1) CN108696643A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05219165A (en) * 1992-02-01 1993-08-27 Toshiba Lighting & Technol Corp Switch and interphone system
KR100617821B1 (en) * 2005-02-24 2006-08-28 삼성전자주식회사 User interfacing apparatus and method
CN202916763U (en) * 2012-11-12 2013-05-01 联想(北京)有限公司 Electronic equipment provided with Hall device
CN203224818U (en) * 2013-03-29 2013-10-02 深圳市金立通信设备有限公司 Protective sleeve for mobile terminal
CN104423917A (en) * 2013-09-09 2015-03-18 联想(北京)有限公司 Information processing method and electronic equipment
CN106371748A (en) * 2016-08-30 2017-02-01 维沃移动通信有限公司 Touch parameter setting method and mobile terminal
CN106713566A (en) * 2017-01-23 2017-05-24 努比亚技术有限公司 Mobile terminal and control method
CN206249184U (en) * 2015-07-31 2017-06-13 苹果公司 Electronic equipment and electronic system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05219165A (en) * 1992-02-01 1993-08-27 Toshiba Lighting & Technol Corp Switch and interphone system
KR100617821B1 (en) * 2005-02-24 2006-08-28 삼성전자주식회사 User interfacing apparatus and method
CN202916763U (en) * 2012-11-12 2013-05-01 联想(北京)有限公司 Electronic equipment provided with Hall device
CN203224818U (en) * 2013-03-29 2013-10-02 深圳市金立通信设备有限公司 Protective sleeve for mobile terminal
CN104423917A (en) * 2013-09-09 2015-03-18 联想(北京)有限公司 Information processing method and electronic equipment
CN206249184U (en) * 2015-07-31 2017-06-13 苹果公司 Electronic equipment and electronic system
CN106371748A (en) * 2016-08-30 2017-02-01 维沃移动通信有限公司 Touch parameter setting method and mobile terminal
CN106713566A (en) * 2017-01-23 2017-05-24 努比亚技术有限公司 Mobile terminal and control method

Similar Documents

Publication Publication Date Title
CN110062105A (en) A kind of interface display method and terminal device
CN110069178A (en) Interface control method and terminal device
CN108628521A (en) A kind of screen operating method and mobile terminal
CN109995933A (en) The method and terminal device of the alarm clock of controlling terminal equipment
CN109857495A (en) A kind of display control method and terminal device
CN109085968A (en) A kind of screenshotss method and terminal device
CN108733282A (en) A kind of page moving method and terminal device
CN110069180A (en) A kind of function control method and terminal device
CN110233933A (en) A kind of call method and terminal device
CN110099296A (en) A kind of information display method and terminal device
CN109151176A (en) A kind of information acquisition method and terminal
CN109358931A (en) A kind of interface display method and terminal
CN110046013A (en) A kind of interface display method and terminal device
CN110225180A (en) A kind of content input method and terminal device
CN110049187A (en) A kind of display methods and terminal device
CN110147174A (en) A kind of control method and terminal device
CN109816679A (en) A kind of image processing method and terminal device
CN109525704A (en) A kind of control method and mobile terminal
CN110012151A (en) A kind of information display method and terminal device
CN110209324A (en) A kind of display methods and terminal device
CN110012152A (en) A kind of interface display method and terminal device
CN109067975A (en) A kind of method for managing contact person information and terminal device
CN108196699A (en) A kind of method and apparatus of page layout switch
CN110035379A (en) A kind of localization method and terminal device
CN109857305A (en) A kind of input response method and mobile terminal

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181023