CN108459796A - A kind of response method and mobile terminal of function key - Google Patents

A kind of response method and mobile terminal of function key Download PDF

Info

Publication number
CN108459796A
CN108459796A CN201810064003.XA CN201810064003A CN108459796A CN 108459796 A CN108459796 A CN 108459796A CN 201810064003 A CN201810064003 A CN 201810064003A CN 108459796 A CN108459796 A CN 108459796A
Authority
CN
China
Prior art keywords
application program
preset
function key
threshold value
trigger parameter
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.)
Granted
Application number
CN201810064003.XA
Other languages
Chinese (zh)
Other versions
CN108459796B (en
Inventor
张吉琪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201810064003.XA priority Critical patent/CN108459796B/en
Publication of CN108459796A publication Critical patent/CN108459796A/en
Application granted granted Critical
Publication of CN108459796B publication Critical patent/CN108459796B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • 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/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72427User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting games or graphical animations

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The present invention provides a kind of response method of function key and mobile terminals.Wherein this method includes:When detecting the trigger action to preset function key, judge whether the application program of front stage operation is default application program;When the application program of front stage operation is default application program and default application program is in full frame state, judge that the first trigger parameter threshold value of the corresponding trigger parameter value of trigger action preset function key whether corresponding with default application program matches;Wherein, the first trigger parameter threshold value is more than the preset trigger parameter threshold value of preset function key;When trigger parameter value and the first trigger parameter threshold value match, trigger action is responded.The present invention improves the trigger parameter threshold value of preset function key when the application program of front stage operation is default application program and default application program is in full frame state, to reduce the sensitivity of preset function key, reduces the generation for accidentally touching event.

Description

Function key response method and mobile terminal
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method for responding to a function key and a mobile terminal.
Background
Currently, when a user uses a mobile terminal (such as a mobile phone, a tablet computer, etc.) to play a game or play a video, the use condition of the full screen state is more and more. Some function keys such as a home key, a return key, a power key, a task manager key and the like are often set on the mobile terminal, and a user may mistakenly touch the function keys during use, so that the user exits from a full screen state, the use of the user is interrupted, and certain influence is brought to the experience of the user.
Disclosure of Invention
The embodiment of the invention provides a function key response method and a mobile terminal, and aims to solve the problem that an application program running in a foreground exits a full-screen state due to mistaken touch of a function key in the process of using the mobile terminal in the prior art.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a method for responding to a function key, which is applied to a mobile terminal. The method comprises the following steps:
when the triggering operation of the preset function key is detected, judging whether an application program running in a foreground is a preset application program or not;
when the application program running in the foreground is a preset application program and the preset application program is in a full screen state, judging whether a trigger parameter value corresponding to the trigger operation is matched with a first trigger parameter threshold value of the preset function key corresponding to the preset application program; wherein, the first trigger parameter threshold value is larger than the preset trigger parameter threshold value of the preset function key;
and responding to the triggering operation when the triggering parameter value is matched with the first triggering parameter threshold value.
In a second aspect, an embodiment of the present invention provides a mobile terminal, where the mobile terminal has a preset function key. Wherein the mobile terminal includes:
the first judgment module is used for judging whether the application program running in the foreground is a preset application program or not when the triggering operation of the preset function key is detected;
the second judgment module is used for judging whether a trigger parameter value corresponding to the trigger operation is matched with a first trigger parameter threshold value of the preset function key corresponding to the preset application program or not when the application program running in the foreground is the preset application program and the preset application program is in a full screen state; wherein, the first trigger parameter threshold value is larger than the preset trigger parameter threshold value of the preset function key;
and the response module is used for responding to the trigger operation when the trigger parameter value is matched with the first trigger parameter threshold value.
In a third aspect, an embodiment of the present invention provides a mobile terminal, including a processor, a memory, and a computer program stored on the memory and operable on the processor, where the computer program, when executed by the processor, implements the steps of the method for responding to a function key as described above.
In a fourth aspect, the embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the response method of the function key as described above.
In the embodiment of the invention, when the application program running in the foreground is the preset application program and the preset application program is in a full screen state, the trigger parameter threshold value of the preset function key is increased, so that the sensitivity of the preset function key is reduced, and the occurrence of false touch events is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a flow chart illustrating a method for responding to function keys provided by an embodiment of the present invention;
fig. 2 is a block diagram of a mobile terminal according to an embodiment of the present invention;
fig. 3 is a second block diagram of a mobile terminal according to an embodiment of the present invention;
fig. 4 shows a third block diagram of the mobile terminal according to the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a response method of a function key, which is applied to a mobile terminal.
As shown in fig. 1, the method for responding to the function key includes:
step 101, when detecting the trigger operation of the preset function key, judging whether the application program running in the foreground is the preset application program.
In this step, when it is detected that a function key is triggered, it is determined whether the function key is a preset function key. And if the function key is a preset function key, judging whether the application program operated by the foreground is a preset application program corresponding to the preset function key.
The preset application program and the preset function key are associated in advance.
The preset application programs are as follows: and counting application programs (hereinafter referred to as easy-operation application programs) which are easy to operate and are obtained in advance. The misoperation-prone application program is as follows: and the application program with the number of times of mistakenly exiting the full-screen state reaching the preset number of times because the same function key is triggered. The method specifically comprises the following steps:
when the target application program is detected to be out of the full-screen state due to the triggering of the target function key and enter the full-screen state again within the first preset time, recording the times of the target application program exiting the full-screen state, the target function key causing the target application program to exit the full-screen state and entering the full-screen state again within the second preset time, and when the recorded times are greater than the preset times, setting the target application program as the preset application program, setting the target function key as the preset function key and enabling the target application program and the target function key to establish an association relationship.
That is, when it is detected that an application program mistakenly exits from a full-screen state due to the triggering of a function key, the function key and the times of the application program mistakenly exiting from the full-screen state due to the triggering of the function key are recorded, and when the times of the application program mistakenly exiting from the full-screen state due to the triggering of the function key reach a predetermined number, it is indicated that the application program is in the full-screen state, the function key is likely to be mistakenly touched, the application program is set as a preset application program, the function key is set as a preset function key corresponding to the application program, and an association relationship is established between the application program and the function key.
The mistaken exit of the full screen state here refers to: when an application program exits from the full screen state due to the triggering of a function key and enters the full screen state again within a first preset time, the application program is considered to be mistakenly exited from the full screen state. The first preset time is a value with a small time value, such as 2 seconds, 3 seconds and the like in fig. 2. The second preset time is greater than the first preset time and is a value with a larger time value, such as a day, a week, a month, etc. Specific values of the first preset time and the second preset time can be selected according to actual requirements, and the embodiment of the invention does not limit the values.
It is understood that at least one preset function key corresponds to one preset application program. If the user uses the application program A, the times of mistakenly exiting the full-screen state due to triggering of the return key at the bottom of the mobile terminal reach the preset times, the application program A is set as the preset application program, the return key is set as the preset function key corresponding to the application program A, and meanwhile, the association relationship between the application program A and the return key is established.
And 102, when the application program operated by the foreground is a preset application program and is in a full screen state, judging whether a trigger parameter value corresponding to the trigger operation is matched with a first trigger parameter threshold value of a preset function key corresponding to the preset application program.
That is, when the application program running in the foreground is the preset application program corresponding to the triggered preset function key and the preset application program is in a full screen state, it is determined whether the trigger parameter value corresponding to the trigger operation on the preset function key matches with the first trigger parameter threshold value of the preset function key corresponding to the preset application program.
Wherein, the first trigger parameter threshold value is greater than the preset trigger parameter threshold value of the preset function key (i.e. the default trigger parameter threshold value of the system). The first trigger parameter threshold value is a threshold value capable of reducing the sensitivity of the preset function key.
And 103, responding to the trigger operation when the trigger parameter value corresponding to the trigger operation is matched with the first trigger parameter threshold value.
That is, when the triggering parameter value corresponding to the triggering operation is greater than or equal to the first triggering parameter threshold value (i.e., is matched with the first triggering parameter threshold value), it indicates that the triggering operation on the preset function key is an effective triggering operation, and the triggering operation is corresponding to the triggering operation.
According to the technical scheme, when the application program running on the foreground is the preset application program and the preset application program is in a full screen state, the trigger parameter threshold value of the preset function key is increased, so that the sensitivity of the preset function key is reduced, and the occurrence of a false touch event is reduced.
It can be understood that, when the preset application program is in the background running state or the closed state, when determining whether to respond to the triggering operation of the preset function key, the determination is performed according to the preset triggering parameter threshold value of the preset function key.
Specifically, in the embodiment of the present invention, when it is detected that the application running in the foreground is a preset application and the preset application is in a full screen state, the threshold value of the trigger parameter of the preset function key may be set as the first trigger parameter threshold value; or, when it is detected that the application program running in the foreground is the preset application program and the preset application program is in the full screen state, the threshold value of the trigger parameter of the preset function key is not set as the first trigger parameter threshold value, but after the trigger operation on the preset function key is detected and the application program running in the foreground is the preset application program and the preset application program is in the full screen state, the threshold value of the trigger parameter of the preset function key is set as the first trigger parameter threshold value.
Further, sometimes when the application program is in a full screen state, the mobile terminal is in a vertical screen state, at this time, the user does not easily trigger the function keys on the mobile terminal, but when the application program is in the full screen state and the mobile terminal is in a horizontal screen state, the user easily touches some function keys on the mobile terminal in the using process by mistake, so that the application program is mistakenly exited from the full screen state. If the preset application program is in a full screen state and the mobile terminal is in a cross screen state, whether a trigger parameter value corresponding to the trigger operation of the preset function key is matched with a first trigger parameter threshold value of the preset function key or not is continuously judged, so that unnecessary data processing procedures are reduced, and power consumption is reduced.
Specifically, in the embodiment of the present invention, the preset function keys include, but are not limited to: a home key, a return key, a power key, and/or a task manager key.
Wherein, if the preset function key is a virtual function key, the triggering parameters include: contact area and/or contact duration. The first trigger parameter threshold value comprises: a contact area threshold and/or a contact validity period threshold. Wherein, the larger the contact area threshold value and the contact effective time threshold value are, the smaller the sensitivity of the virtual function key is.
Wherein, if the function key is a mechanical function key, the triggering parameters include: the pressure and/or the duration of the compression effort. The first trigger parameter threshold value comprises: a press pressure threshold and/or a press duration-of-effect threshold. And the larger the pressing pressure threshold value and the pressing time threshold value are, the smaller the sensitivity of the mechanical function key is.
In summary, in the method for responding to a function key provided in the embodiment of the present invention, in the using process of the application program in the full-screen state, the function key and the application program that cause the application program to mistakenly exit from the full-screen state for many times are recorded. Therefore, when the application program is in the foreground running state again, whether the application program running in the foreground is an application program easy to operate by mistake can be judged according to the recording result, if so, the sensitivity of the corresponding function key is reduced, the response probability of the function key is reduced, the occurrence of false touch events is reduced, and the use experience of a user is improved.
According to another aspect of the embodiments of the present invention, there is provided a mobile terminal having preset function keys thereon.
As shown in fig. 2, the mobile terminal includes:
the first determining module 201 is configured to determine whether an application running in the foreground is a preset application when a trigger operation on a preset function key is detected.
The second determining module 202 is configured to determine whether a trigger parameter value corresponding to the trigger operation matches a first trigger parameter threshold value of a preset function key corresponding to the preset application program when the application program running in the foreground is the preset application program and the preset application program is in a full screen state.
Wherein, the first trigger parameter threshold value is larger than the preset trigger parameter threshold value of the preset function key.
A response module 203, configured to respond to the trigger operation when the trigger parameter value matches the first trigger parameter threshold value.
Further, as shown in fig. 3, the mobile terminal further includes:
the first setting module 204 is configured to set a threshold value of a trigger parameter of a preset function key as a first trigger parameter threshold value when it is detected that the application program running in the foreground is a preset application program and the preset application program is in a full screen state; or after the triggering operation of the preset function key is detected, and the application program running in the foreground is the preset application program and is in a full screen state, setting the threshold value of the triggering parameter of the preset function key as the first triggering parameter threshold value.
Further, when the preset function key is a virtual function key, the triggering parameters include: the first trigger parameter threshold value comprises the following steps: a contact area threshold and/or a contact validity period threshold.
Further, when the preset function key is a mechanical function key, the triggering parameters include: the first trigger parameter threshold value comprises the following steps: a press pressure threshold and/or a press duration-of-effect threshold.
Further, as shown in fig. 3, the mobile terminal further includes:
the recording module 205 is configured to record, when it is detected that the target application exits from the full-screen state due to the triggering of the target function key and enters the full-screen state again within a first preset time, the number of times that the target application exits from the full-screen state and enters the full-screen state again within a second preset time.
And a second setting module 206, configured to set the target application as the preset application and set the target function key as the preset function key when the number of times is greater than the preset number of times.
Further, the preset function key includes: a home key, a return key, a power key, and/or a task manager key.
In summary, in the mobile terminal provided in the embodiment of the present invention, in the using process of the application program in the full-screen state, the function key causing the application program to mistakenly exit from the full-screen state and the application program are recorded. Therefore, when the application program is in the foreground running state again, whether the application program running in the foreground is an application program easy to operate by mistake can be judged according to the recording result, if so, the sensitivity of the corresponding function key is reduced, the response probability of the function key is reduced, the occurrence of false touch events is reduced, and the use experience of a user is improved.
Fig. 4 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention.
The mobile terminal 400 includes, but is not limited to: radio frequency unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor 410, and power supply 411. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 4 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, 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.
The processor 410 is configured to, when a trigger operation on a preset function key is detected, determine whether an application program running in a foreground is a preset application program; when the application program running in the foreground is a preset application program and the preset application program is in a full screen state, judging whether a trigger parameter value corresponding to the trigger operation is matched with a first trigger parameter threshold value of a preset function key corresponding to the preset application program; and responding to the trigger operation when the trigger parameter value is matched with the first trigger parameter threshold value.
Wherein, the first trigger parameter threshold value is larger than the preset trigger parameter threshold value of the preset function key.
In the embodiment of the invention, when the application program operated in the foreground is the preset application program and the preset application program is in a full screen state, the trigger parameter threshold value of the preset function key is increased, so that the sensitivity of the preset function key is reduced, and the occurrence of false touch events is reduced.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 401 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 410; in addition, the uplink data is transmitted to the base station. Typically, radio unit 401 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. Further, the radio unit 401 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 402, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 403 may convert audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output as sound. Also, the audio output unit 403 may also provide audio output related to a specific function performed by the mobile terminal 400 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
The input unit 404 is used to receive audio or video signals. The input Unit 404 may include a Graphics Processing Unit (GPU) 4041 and a microphone 4042, and the Graphics processor 4041 processes image data of a still picture 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 406. The image frames processed by the graphic processor 4041 may be stored in the memory 409 (or other storage medium) or transmitted via the radio frequency unit 401 or the network module 402. The microphone 4042 may receive sound, and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 401 in case of the phone call mode.
The mobile terminal 400 also includes at least one sensor 405, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 4061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 4061 and/or the backlight when the mobile terminal 400 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 405 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 will not be described in detail herein.
The display unit 406 is used to display information input by the user or information provided to the user. The Display unit 406 may include a Display panel 4061, and the Display panel 4061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 407 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 407 includes a touch panel 4071 and other input devices 4072. Touch panel 4071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 4071 using a finger, a stylus, or any suitable object or attachment). The touch panel 4071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction 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 sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 410, receives a command from the processor 410, and executes the command. In addition, the touch panel 4071 can be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 4071, the user input unit 407 may include other input devices 4072. Specifically, the other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 4071 can be overlaid on the display panel 4061, and when the touch panel 4071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 410 to determine the type of the touch event, and then the processor 410 provides a corresponding visual output on the display panel 4061 according to the type of the touch event. Although in fig. 4, the touch panel 4071 and the display panel 4061 are two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 4071 and the display panel 4061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 408 is an interface through which an external device is connected to the mobile terminal 400. For example, the external device may include a wired or wireless headset port, an external power supply (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 408 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 400 or may be used to transmit data between the mobile terminal 400 and external devices.
The memory 409 may be used to store software programs as well as various data. The memory 409 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 409 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 410 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 409 and calling data stored in the memory 409, thereby integrally monitoring the mobile terminal. Processor 410 may include one or more processing units; preferably, the processor 410 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 410.
The mobile terminal 400 may further include a power supply 411 (e.g., a battery) for supplying power to various components, and preferably, the power supply 411 may be logically connected to the processor 410 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the mobile terminal 400 includes some functional modules that are not shown, and thus, are not described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 410, a memory 409, and a computer program stored in the memory 409 and capable of being executed on the processor 410, where the computer program, when executed by the processor 410, implements each process of the above-mentioned function key response method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the embodiment of the response method for function keys, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an 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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
The triggering threshold parameter is a threshold value when the preset function key responds to triggering operation.

Claims (12)

1. A response method of function keys is applied to a mobile terminal with preset function keys, and is characterized in that the method comprises the following steps:
when the triggering operation of the preset function key is detected, judging whether an application program running in a foreground is a preset application program or not;
when the application program running in the foreground is a preset application program and the preset application program is in a full screen state, judging whether a trigger parameter value corresponding to the trigger operation is matched with a first trigger parameter threshold value of the preset function key corresponding to the preset application program; wherein, the first trigger parameter threshold value is larger than the preset trigger parameter threshold value of the preset function key;
and responding to the triggering operation when the triggering parameter value is matched with the first triggering parameter threshold value.
2. The method according to claim 1, wherein before determining whether the trigger parameter value corresponding to the trigger operation matches the first trigger parameter threshold value of the preset function key corresponding to the preset application program, the method further comprises:
when detecting that the application program running in the foreground is the preset application program and the preset application program is in a full screen state, setting the threshold value of the trigger parameter of the preset function key as the first trigger parameter threshold value;
or,
and when the triggering operation of the preset function key is detected, and the application program running in the foreground is the preset application program and the preset application program is in a full screen state, setting the threshold value of the triggering parameter of the preset function key as the first triggering parameter threshold value.
3. The method of claim 1, wherein when the preset function key is a virtual function key, triggering parameters comprises: the first trigger parameter threshold value comprises: a contact area threshold and/or a contact validity period threshold.
4. The method of claim 1, wherein when the preset function key is a mechanical function key, triggering a parameter comprises: the first trigger parameter threshold value comprises: a press pressure threshold and/or a press duration-of-effect threshold.
5. The method according to claim 1, wherein before the step of determining whether the application running in foreground is a preset application when the triggering operation of the preset function key is detected, the method further comprises:
when detecting that the target application program exits from the full screen state due to the triggering of the target function key and enters the full screen state again within a first preset time, recording the times of the target application program exiting from the full screen state and entering the full screen state again within a second preset time;
and when the times are greater than the preset times, setting the target application program as a preset application program, and setting the target function key as a preset function key.
6. A mobile terminal having preset function keys, comprising:
the first judgment module is used for judging whether the application program running in the foreground is a preset application program or not when the triggering operation of the preset function key is detected;
the second judgment module is used for judging whether a trigger parameter value corresponding to the trigger operation is matched with a first trigger parameter threshold value of the preset function key corresponding to the preset application program or not when the application program running in the foreground is the preset application program and the preset application program is in a full screen state; wherein, the first trigger parameter threshold value is larger than the preset trigger parameter threshold value of the preset function key;
and the response module is used for responding to the trigger operation when the trigger parameter value is matched with the first trigger parameter threshold value.
7. The mobile terminal of claim 6, wherein the mobile terminal further comprises:
the first setting module is used for setting the threshold value of the trigger parameter of the preset function key as the first trigger parameter threshold value when detecting that the application program running in the foreground is the preset application program and the preset application program is in a full screen state;
or,
and when the triggering operation of the preset function key is detected, and the application program running in the foreground is the preset application program and the preset application program is in a full screen state, setting the threshold value of the triggering parameter of the preset function key as the first triggering parameter threshold value.
8. The mobile terminal according to claim 6, wherein when the preset function key is a virtual function key, the triggering parameters include: the first trigger parameter threshold value comprises: a contact area threshold and/or a contact validity period threshold.
9. The mobile terminal according to claim 6, wherein when the preset function key is a mechanical function key, the triggering parameters comprise: the first trigger parameter threshold value comprises: a press pressure threshold and/or a press duration-of-effect threshold.
10. The mobile terminal of claim 6, wherein the mobile terminal further comprises:
the recording module is used for recording the times of exiting the full screen state and re-entering the full screen state within second preset time of the target application program when the target application program is detected to exit the full screen state due to the triggering of the target function key and re-enter the full screen state within first preset time;
and the second setting module is used for setting the target application program as a preset application program and setting the target function key as a preset function key when the times are greater than preset times.
11. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on said memory and executable on said processor, said computer program, when executed by said processor, implementing the steps of the method of response of a function key according to any one of claims 1 to 5.
12. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the method of responding to a function key according to any one of claims 1 to 5.
CN201810064003.XA 2018-01-23 2018-01-23 Function key response method and mobile terminal Active CN108459796B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810064003.XA CN108459796B (en) 2018-01-23 2018-01-23 Function key response method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810064003.XA CN108459796B (en) 2018-01-23 2018-01-23 Function key response method and mobile terminal

Publications (2)

Publication Number Publication Date
CN108459796A true CN108459796A (en) 2018-08-28
CN108459796B CN108459796B (en) 2020-08-18

Family

ID=63238554

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810064003.XA Active CN108459796B (en) 2018-01-23 2018-01-23 Function key response method and mobile terminal

Country Status (1)

Country Link
CN (1) CN108459796B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110597411A (en) * 2019-08-21 2019-12-20 维沃移动通信有限公司 Pressure detection circuit, electronic device, and control method for pressure detection circuit
CN113885712A (en) * 2021-09-29 2022-01-04 联想(北京)有限公司 Information processing method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103699318A (en) * 2014-01-06 2014-04-02 联想(北京)有限公司 Touch response method and touch response device of electronic device
US20140184551A1 (en) * 2012-06-06 2014-07-03 Panasonic Corporation Input device, input support method, and program
CN104866362A (en) * 2015-06-10 2015-08-26 努比亚技术有限公司 Activation method and system
CN106527818A (en) * 2016-12-16 2017-03-22 广东欧珀移动通信有限公司 Control method and device for touch operation on mobile terminal, and mobile terminal
CN107390936A (en) * 2017-07-31 2017-11-24 北京小米移动软件有限公司 Trigger action processing method, device and computer-readable recording medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140184551A1 (en) * 2012-06-06 2014-07-03 Panasonic Corporation Input device, input support method, and program
CN103699318A (en) * 2014-01-06 2014-04-02 联想(北京)有限公司 Touch response method and touch response device of electronic device
CN104866362A (en) * 2015-06-10 2015-08-26 努比亚技术有限公司 Activation method and system
CN106527818A (en) * 2016-12-16 2017-03-22 广东欧珀移动通信有限公司 Control method and device for touch operation on mobile terminal, and mobile terminal
CN107390936A (en) * 2017-07-31 2017-11-24 北京小米移动软件有限公司 Trigger action processing method, device and computer-readable recording medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110597411A (en) * 2019-08-21 2019-12-20 维沃移动通信有限公司 Pressure detection circuit, electronic device, and control method for pressure detection circuit
CN110597411B (en) * 2019-08-21 2021-10-29 维沃移动通信有限公司 Pressure detection circuit, electronic device, and control method for pressure detection circuit
CN113885712A (en) * 2021-09-29 2022-01-04 联想(北京)有限公司 Information processing method and device and electronic equipment

Also Published As

Publication number Publication date
CN108459796B (en) 2020-08-18

Similar Documents

Publication Publication Date Title
CN108459797B (en) Control method of folding screen and mobile terminal
CN108845853B (en) Application program starting method and mobile terminal
CN109078319B (en) Game interface display method and terminal
CN109710349B (en) Screen capturing method and mobile terminal
CN107728923B (en) Operation processing method and mobile terminal
CN108958593B (en) Method for determining communication object and mobile terminal
CN108388400B (en) Operation processing method and mobile terminal
CN109814799A (en) Screen response control mehtod and terminal device
CN109871253A (en) A kind of display methods and terminal
CN109189514B (en) Terminal device control method and terminal device
CN108388459B (en) Message display processing method and mobile terminal
CN110769303A (en) Playing control method and device and mobile terminal
CN108459796B (en) Function key response method and mobile terminal
CN111526248B (en) Audio output mode switching method and electronic equipment
CN110471808B (en) Pressure key detection method and device and mobile terminal
CN110213437B (en) Editing method and mobile terminal
CN110213439B (en) Message processing method and terminal
CN109614827B (en) Control method of mobile terminal and mobile terminal
CN109947323B (en) Terminal display method and terminal
CN109327605B (en) Display control method and device and mobile terminal
CN109660657B (en) Application program control method and device
CN109491572B (en) Screen capturing method of mobile terminal and mobile terminal
CN108234745B (en) Signal receiving method, mobile terminal and computer readable storage medium
CN111459323B (en) Control method, electronic device and medium
CN110769153B (en) Image processing method and electronic equipment

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