



技术领域technical field
本发明涉及通信技术领域,尤其涉及一种功能键的响应方法及移动终端。The present invention relates to the technical field of communications, and in particular, to a function key response method and a mobile terminal.
背景技术Background technique
目前,用户使用移动终端(如手机、平板电脑等)玩游戏或者播放视频时,全屏状态的使用情况越来愈多。移动终端上常常会设置一些功能键,如home 键、返回键、电源键、任务管理器按键等,用户在使用期间可能会误触上述功能键,导致退出全屏状态,中断用户的使用,给用户的体验带来了一定影响。At present, 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 full-screen state is used more and more. Some function keys are often set on mobile terminals, such as home key, return key, power key, task manager key, etc. During use, users may touch the above function keys by mistake, resulting in exiting the full-screen state, interrupting the user's use, and giving the user experience had a certain impact.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供了一种功能键的响应方法及移动终端,以解决现有技术在使用移动终端的过程中,由于误触功能键而使前台运行的应用程序退出全屏状态的问题。Embodiments of the present invention provide a function key response method and a mobile terminal, so as to solve the problem in the prior art that an application running in the foreground exits the full-screen state due to mistakenly touching the function key in the process of using the mobile terminal.
为了解决上述技术问题,本发明是这样实现的:In order to solve the above-mentioned technical problems, the present invention is achieved in this way:
第一方面,本发明实施例提供了一种功能键的响应方法,应用于移动终端。该方法包括: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 includes:
当检测到对所述预设功能键的触发操作时,判断前台运行的应用程序是否为预设应用程序;When detecting the triggering operation on the preset function key, determine whether the application program running in the foreground is a preset application program;
当前台运行的应用程序为预设应用程序且所述预设应用程序处于全屏状态时,判断所述触发操作对应的触发参数值是否与所述预设应用程序对应的所述预设功能键的第一触发参数门限值相匹配;其中,所述第一触发参数门限值大于所述预设功能键的预置触发参数门限值;When the application running in the foreground is a preset application and the preset application is in a full-screen state, determine whether the trigger parameter value corresponding to the trigger operation is the same as that of the preset function key corresponding to the preset application. The first trigger parameter threshold value matches; wherein, the first trigger parameter threshold value is greater than the preset trigger parameter threshold value of the preset function key;
当所述触发参数值与所述第一触发参数门限值相匹配时,响应所述触发操作。When the trigger parameter value matches the first trigger parameter threshold value, the trigger operation is responded to.
第二方面,本发明实施例提供了一种移动终端,所述移动终端具有预设功能键。其中,所述移动终端包括:In a second aspect, an embodiment of the present invention provides a mobile terminal, where the mobile terminal has preset function keys. Wherein, the mobile terminal includes:
第一判断模块,用于当检测到对所述预设功能键的触发操作时,判断前台运行的应用程序是否为预设应用程序;a first judgment module, configured to judge whether the application program running in the foreground is a preset application program when a triggering operation on the preset function key is detected;
第二判断模块,用于当前台运行的应用程序为预设应用程序且所述预设应用程序处于全屏状态时,判断所述触发操作对应的触发参数值是否与所述预设应用程序对应的所述预设功能键的第一触发参数门限值相匹配;其中,所述第一触发参数门限值大于所述预设功能键的预置触发参数门限值;The second judging module is used for judging whether the trigger parameter value corresponding to the trigger operation corresponds to the value of the trigger parameter corresponding to the preset application when the application running in the foreground is a preset application and the preset application is in a full-screen state. The first trigger parameter threshold value of the preset function key is matched; wherein, the first trigger parameter threshold value is greater than the preset trigger parameter threshold value of the preset function key;
响应模块,用于当所述触发参数值与所述第一触发参数门限值相匹配时,响应所述触发操作。A response module, configured to respond to the trigger operation when the trigger parameter value matches 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 executable on the processor, where the computer program is executed by the processor When implementing the steps of the response method of the function key as described above.
第四方面,本发明实施例提供了一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如上所述的功能键的响应方法的步骤。In a fourth aspect, an embodiment of the present invention 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 above-mentioned method for responding to a function key is implemented. step.
在本发明实施例中,在前台运行的应用程序为预设应用程序且预设应用程序处于全屏状态时,提高预设功能键的触发参数门限值,从而降低预设功能键的灵敏度,减少误触事件的发生。In the embodiment of the present invention, when the application running in the foreground is a preset application and the preset application is in a full-screen state, the trigger parameter threshold value of the preset function key is increased, thereby reducing the sensitivity of the preset function key and reducing the The occurrence of false touch events.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the following briefly introduces the drawings that are used in the description of the embodiments of the present invention. Obviously, the drawings in the following description are only some embodiments of the present invention. , for those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative labor.
图1表示本发明实施例提供的功能键的响应方法的流程图;1 shows a flowchart of a method for responding to a function key provided by an embodiment of the present invention;
图2表示本发明实施例提供的移动终端的框图之一;2 shows one of the block diagrams of a mobile terminal provided by an embodiment of the present invention;
图3表示本发明实施例提供的移动终端的框图之二;3 shows the second block diagram of a mobile terminal provided by an embodiment of the present invention;
图4表示本发明实施例提供的移动终端的框图之三。FIG. 4 shows a third block diagram of a mobile terminal provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
本发明实施例提供了一种功能键的响应方法,应用于移动终端。The embodiment of the present invention provides a function key response method, which is applied to a mobile terminal.
如图1所示,该功能键的响应方法包括:As shown in Figure 1, the response method of the function key includes:
步骤101、当检测到对预设功能键的触发操作时,判断前台运行的应用程序是否为预设应用程序。Step 101: When a triggering operation on a preset function key is detected, determine whether the application program running in the foreground is a 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. If the function key is a preset function key, it is determined whether the application program running in the foreground is a preset application program corresponding to the preset function key.
其中,这里所述的预设应用程序与预设功能键预先建立了关联关系。Wherein, the preset application program described here is pre-established with the preset function key.
其中,这里所述的预设应用程序为:预先统计得到的易发生误操作的应用程序(以下简称易操作应用程序)。这里所述的易误操作应用程序为:因同一功能键被触发而误退出全屏状态的次数达到预定次数的应用程序。具体为:Wherein, the preset application program described here is an application program that is prone to misoperation (hereinafter referred to as an easy-to-operate application program) obtained by pre-statistics. The misoperation-prone application program described here is an application program that mistakenly exits the full-screen state for a predetermined number of times due to the triggering of the same function key. Specifically:
当检测到目标应用程序因目标功能键触发而退出全屏状态,且在第一预设时间内再次进入全屏状态时,记录目标应用程序退出全屏状态、致使目标应用程序退出全屏状态的目标功能键以及在第二预设时间内再次进入全屏状态的次数,当记录的次数大于预设次数时,将该目标应用程序设置为预设应用程序,将该目标功能键设置为预设功能键,并使该目标应用程序与该目标功能键之间建立关联关系。When it is detected that the target application exits the full-screen state due to the target function key, and enters the full-screen state again within the first preset time, record the target application's exit from the full-screen state, the target function key that causes the target application to exit the full-screen state, and The number of times the full-screen state is re-entered within the second preset time, and when the number of times recorded is greater than the preset number of times, the target application is set as the preset application, the target function key is set as the preset function key, and the An association relationship is established between the target application and the target function key.
也就是,当检测到一应用程序因一功能键触发而误退出全屏状态时,记录该功能键以及该应用程序因该功能键触发而误退出全屏状态的次数,当该应用程序因该功能键触发而误退出全屏状态的次数达到预定次数时,说明该应用程序在全屏状态时,易误触该功能键,则将该应用程序设置为预设应用程序,将该功能键设置为与该应用程序对应的预设功能键,并使该应用程序与该功能键之间建立关联关系。That is, when it is detected that an application program exits the full-screen state by mistake due to a function key, record the function key and the number of times that the application program exits the full-screen state by mistake due to the function key. When the number of times of triggering and exiting the full-screen state by mistake reaches the predetermined number of times, it means that the function key is easily touched by mistake when the application is in the full-screen state, then the application is set as the default application, and the function key is set to be the same as the application. The preset function key corresponding to the program, and the association relationship between the application program and the function key is established.
其中,这里所述的误退出全屏状态是指:当一应用程序因一功能键触发而退出全屏状态,并又在第一预设时间内再次进入全屏状态时,则认为是该应用程序误退出全屏状态。这里所述的第一预设时间为时间值较小的数值,如图2 秒、3秒等。这里所述的第二预设时间大于第一预设时间,为时间值较大的数值,如一天、一周、一个月等。第一预设时间和第二预设时间的具体取值,可根据实际需求选择,本发明实施例对此不进行限定。Wherein, the mistakenly exiting the full-screen state here refers to: when an application exits the full-screen state due to a function key trigger, and enters the full-screen state again within the first preset time, it is considered that the application has exited by mistake full screen state. The first preset time described here is a value with a smaller time value, such as 2 seconds, 3 seconds, etc. as shown in FIG. The second preset time described here is greater than the first preset time, and is a numerical value with a larger time value, such as one day, one week, one month, and the like. The specific values of the first preset time and the second preset time may be selected according to actual requirements, which are not limited in this embodiment of the present invention.
当然可以理解的是,一个预设应用程序对应的预设功能键至少为一个。如用户在使用应用程序A时,因触发移动终端底部的返回键而误退出全屏状态的次数达到预定次数时,而则将应用程序A设置为预设应用程序,将给返回键设置为与应用程序A对应的预设功能键,同时建立应用程序A与该返回键的关联关系,此外如果因触发移动终端底部的home键而误退出全屏状态的次数也达到预定次数时,则同样将该home键设置为与应用程序A对应的预设功能键,并建立应用程序A与该home键的关联关系。Of course, it can be understood that there is at least one preset function key corresponding to a preset application program. For example, when the user is using application A, and the number of times that the user exits the full-screen state by mistake reaches a predetermined number of times due to triggering the return key at the bottom of the mobile terminal, application A is set as the default application, and the return key is set as the same as the application. The preset function key corresponding to program A, and the association relationship between application A and the return key is established at the same time. In addition, if the number of times of exiting the full-screen state by mistake due to triggering the home button at the bottom of the mobile terminal also reaches a predetermined number of times, the home The key is set as a preset function key corresponding to application A, and an association relationship between application A and the home key is established.
步骤102、当前台运行的应用程序为预设应用程序且处于全屏状态时,判断触发操作对应的触发参数值是否与预设应用程序对应的预设功能键的第一触发参数门限值相匹配。Step 102: When the application running on the current platform is a preset application and is in a full-screen state, determine 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. .
也就是当前台运行的应用程序为与被触发的预设功能键对应的预设应用程序,且该预设应用程序处于全屏状态时,判断对该预设功能键的触发操作所对应的触发参数值,是否与该预设应用程序对应的预设功能键的第一触发参数门限值相匹配。That is, when the application running on the current platform is the preset application corresponding to the triggered preset function key, and the preset application is in a full-screen state, determine the trigger parameter corresponding to the trigger operation of the preset function key. value, whether it matches the first trigger parameter threshold value of the preset function key corresponding to the preset application program.
其中,第一触发参数门限值大于该预设功能键的预置触发参数门限值(即系统默认的触发参数门限值)。该第一触发参数门限值为能够降低该预设功能键的灵敏度的门限值。The first trigger parameter threshold value is greater than the preset trigger parameter threshold value of the preset function key (ie, the system default trigger parameter threshold value). The first trigger parameter threshold value is a threshold value capable of reducing the sensitivity of the preset function key.
步骤103、当该触发操作对应的触发参数值与第一触发参数门限值相匹配时,响应该触发操作。Step 103: When the trigger parameter value corresponding to the trigger operation matches the first trigger parameter threshold value, respond to the trigger operation.
也就是当触发操作对应的触发参数值大于或等于第一触发参数门限值(即与第一触发参数门限值相匹配),说明对该预设功能键的触发操作为有效触发操作,则相应该触发操作。That is, when the trigger parameter value corresponding to the trigger operation is greater than or equal to the first trigger parameter threshold value (that is, it matches the first trigger parameter threshold value), it means that the trigger operation on the preset function key is an effective trigger operation, then corresponding to the trigger action.
上述技术方案,在前台运行的应用程序为预设应用程序且预设应用程序处于全屏状态时,提高预设功能键的触发参数门限值,从而降低预设功能键的灵敏度,减少误触事件的发生。In the above technical solution, when the application running in the foreground is a preset application and the preset application is in a full-screen state, the trigger parameter threshold value of the preset function key is increased, thereby reducing the sensitivity of the preset function key and reducing accidental touch events happened.
当然可以理解的是,当该预设应用程序处于后台运行状态或关闭状态时,则在判断是否响应对该预设功能键的触发操作时,按照该预设功能键的预置触发参数门限值进行判断。Of course, it can be understood that when the preset application program is in the background running state or closed state, when judging whether to respond to the trigger operation of the preset function key, the preset trigger parameter threshold of the preset function key is used. value to be judged.
具体地,本发明实施例中,可以在一检测到前台运行的应用程序为预设应用程序且该预设应用程序处于全屏状态时,即将该述预设功能键的触发参数的门限值设置为所述第一触发参数门限值;或者,在检测到前台运行的应用程序为预设应用程序且该预设应用程序处于全屏状态时,先不将该述预设功能键的触发参数的门限值设置为所述第一触发参数门限值,而是在检测到对该预设功能键的触发操作后,且当前前台运行的应用程序为该预设应用程序并且该预设应用程序处于全屏状态时,再将该预设功能键的触发参数的门限值设置为所述第一触发参数门限值。Specifically, in this 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 can be set is the threshold value of the first trigger parameter; or, 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 trigger parameter of the preset function key is not set first. The threshold value is set to the threshold value of the first trigger parameter, but after detecting the trigger operation of the preset function key, and the application program currently running in the foreground is the preset application program and the preset application program When 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 is in the full screen state, the mobile terminal is in the vertical screen state. At this time, it is not easy for the user to 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 the horizontal screen state. , it is easy for the user to accidentally touch some function keys on the mobile terminal during use, causing the application program to exit the full-screen state by mistake. Therefore, in this embodiment of the present invention, when it is detected that the application program running in the foreground is a preset application program , in addition to judging whether the preset application is in a full-screen state, it can also determine whether the mobile terminal is in a landscape-screen state. If the preset application is in the full screen state and the mobile terminal is in the landscape state, continue to judge whether the trigger parameter value corresponding to the trigger operation of the preset function key is the same as the first trigger parameter threshold value of the preset function key matching to reduce unnecessary data processing and reduce power consumption.
具体地,本发明实施例中,这里所述的预设功能键包括但不限于:home 键、返回键、电源键和/或任务管理器按键。Specifically, in this embodiment of the present invention, the preset function keys described herein 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 trigger parameters include: contact area and/or contact effective duration. The first trigger parameter threshold value includes: a contact area threshold value and/or a contact effective duration threshold value. Wherein, the larger the contact area threshold value and the contact effective time threshold value, the smaller the sensitivity of the virtual function key.
其中,若该功能键为机械功能键,则触发参数包括:按压压力和/或按压有效时长。第一触发参数门限值包括:按压压力门限值和/或按压有效时长门限值。其中,按压压力门限值和按压时长门限值越大,机械功能键的灵敏度越小。Wherein, if the function key is a mechanical function key, the trigger parameters include: pressing pressure and/or pressing effective duration. The first trigger parameter threshold value includes: a pressing pressure threshold value and/or a pressing effective duration threshold value. Wherein, the larger the pressing pressure threshold value and the pressing duration threshold value, the smaller the sensitivity of the mechanical function key.
综上所述,本发明实施例提供的功能键的响应方法,在应用程序处于全屏状态的使用过程中,对于多次致使该应用程序误退出全屏状态的功能键以及该应用程序进行记录。这样,当该应用程序再次处于前台运行状态时,可根据记录结果判断处于前台运行的应用程序是否为易误操作应用程序,若为是,则降低与之对应的功能键的灵敏度,以减小该功能键的响应几率,减少误触事件的发生,提升用户的使用体验。To sum up, the function key response method provided by the embodiment of the present invention records the function keys and the application that cause the application to exit the full-screen state by mistake for many times during the use of the application in the full-screen state. In this way, when the application is running in the foreground again, it can be judged according to the recorded result whether the application running in the foreground is an application that is prone to misoperation, and if so, reduce the sensitivity of the corresponding function key to reduce the The response probability of the function key reduces the occurrence of accidental touch events and improves the user experience.
依据本发明实施例的另一个方面,提供了一种移动终端,该移动终端上具有预设功能键。According to another aspect of the embodiments of the present invention, a mobile terminal is provided, and the mobile terminal has preset function keys.
如图2所示,该移动终端包括:As shown in Figure 2, the mobile terminal includes:
第一判断模块201,用于当检测到对预设功能键的触发操作时,判断前台运行的应用程序是否为预设应用程序。The
第二判断模块202,用于当前台运行的应用程序为预设应用程序且预设应用程序处于全屏状态时,判断触发操作对应的触发参数值是否与预设应用程序对应的预设功能键的第一触发参数门限值相匹配。The
其中,第一触发参数门限值大于预设功能键的预置触发参数门限值。Wherein, the first trigger parameter threshold value is greater than the preset trigger parameter threshold value of the preset function key.
响应模块203,用于当触发参数值与第一触发参数门限值相匹配时,响应触发操作。The
进一步地,如图3所示,该移动终端还包括:Further, as shown in Figure 3, the mobile terminal also includes:
第一设置模块204,用于当检测到前台运行的应用程序为预设应用程序且预设应用程序处于全屏状态时,将预设功能键的触发参数的门限值设置为第一触发参数门限值;或者,当检测到对预设功能键的触发操作后,且前台运行的应用程序为预设应用程序并预设应用程序处于全屏状态时,将预设功能键的触发参数的门限值设置为第一触发参数门限值。The
进一步地,当预设功能键为虚拟功能键时,触发参数包括:接触面积和/ 或接触有效时长,第一触发参数门限值包括:接触面积门限值和/或接触有效时长门限值。Further, when the preset function key is a virtual function key, the trigger parameters include: contact area and/or contact effective duration, and the first trigger parameter threshold value includes: contact area threshold value and/or contact effective duration threshold value .
进一步地,当预设功能键为机械功能键时,触发参数包括:按压压力和/ 或按压有效时长,第一触发参数门限值包括:按压压力门限值和/或按压有效时长门限值。Further, when the preset function key is a mechanical function key, the trigger parameters include: pressing pressure and/or pressing effective duration, and the first trigger parameter threshold value includes: pressing pressure threshold value and/or pressing effective duration threshold value .
进一步地,如图3所示,该移动终端还包括:Further, as shown in Figure 3, the mobile terminal also includes:
记录模块205,用于当检测到目标应用程序因目标功能键触发而退出全屏状态,且在第一预设时间内再次进入全屏状态时,记录目标应用程序退出全屏状态并在第二预设时间内再次进入全屏状态的次数。The
第二设置模块206,用于当次数大于预设次数时,将目标应用程序设置为预设应用程序,将目标功能键设置为预设功能键。The
进一步地,该预设功能键包括:home键、返回键、电源键和/或任务管理器按键。Further, the preset function keys include: a home key, a return key, a power key and/or a task manager key.
综上所述,本发明实施例提供的移动终端,在应用程序处于全屏状态的使用过程中,对于多次致使该应用程序误退出全屏状态的功能键以及该应用程序进行记录。这样,当该应用程序再次处于前台运行状态时,可根据记录结果判断处于前台运行的应用程序是否为易误操作应用程序,若为是,则降低与之对应的功能键的灵敏度,以减小该功能键的响应几率,减少误触事件的发生,提升用户的使用体验。To sum up, the mobile terminal provided by the embodiment of the present invention records the function keys and the application that cause the application to exit the full-screen state by mistake for many times during the use of the application in the full-screen state. In this way, when the application is running in the foreground again, it can be judged according to the recorded result whether the application running in the foreground is an application that is prone to misoperation, and if so, reduce the sensitivity of the corresponding function key to reduce the The response probability of the function key reduces the occurrence of accidental touch events and improves the user experience.
图4为实现本发明各个实施例的一种移动终端的硬件结构示意图。FIG. 4 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention.
该移动终端400包括但不限于:射频单元401、网络模块402、音频输出单元403、输入单元404、传感器405、显示单元406、用户输入单元407、接口单元408、存储器409、处理器410、以及电源411等部件。本领域技术人员可以理解,图4中示出的移动终端结构并不构成对移动终端的限定,移动终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,移动终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。The
处理器410,用于当检测到对预设功能键的触发操作时,判断前台运行的应用程序是否为预设应用程序;当前台运行的应用程序为预设应用程序且预设应用程序处于全屏状态时,判断触发操作对应的触发参数值是否与预设应用程序对应的预设功能键的第一触发参数门限值相匹配;当触发参数值与第一触发参数门限值相匹配时,响应触发操作。The
其中,第一触发参数门限值大于预设功能键的预置触发参数门限值。Wherein, the first trigger parameter threshold value is greater than the preset trigger parameter threshold value of the preset function key.
本发明实施例中,在前台运行的应用程序为预设应用程序且预设应用程序处于全屏状态时,提高预设功能键的触发参数门限值,从而降低预设功能键的灵敏度,减少误触事件的发生。In the embodiment of the present invention, when the application program running in the foreground is a 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, thereby reducing the sensitivity of the preset function key and reducing errors the occurrence of a touch event.
应理解的是,本发明实施例中,射频单元401可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器 410处理;另外,将上行的数据发送给基站。通常,射频单元401包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元401还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in this embodiment of the present invention, the
移动终端通过网络模块402为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The mobile terminal provides the user with wireless broadband Internet access through the
音频输出单元403可以将射频单元401或网络模块402接收的或者在存储器409中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元403还可以提供与移动终端400执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元403包括扬声器、蜂鸣器以及受话器等。The
输入单元404用于接收音频或视频信号。输入单元404可以包括图形处理器(Graphics Processing Unit,GPU)4041和麦克风4042,图形处理器4041 对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元406 上。经图形处理器4041处理后的图像帧可以存储在存储器409(或其它存储介质)中或者经由射频单元401或网络模块402进行发送。麦克风4042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元401发送到移动通信基站的格式输出。The
移动终端400还包括至少一种传感器405,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板4061的亮度,接近传感器可在移动终端400移动到耳边时,关闭显示面板4061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击) 等;传感器405还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The
显示单元406用于显示由用户输入的信息或提供给用户的信息。显示单元 406可包括显示面板4061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板4061。The
用户输入单元407可用于接收输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元407 包括触控面板4071以及其他输入设备4072。触控面板4071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板4071上或在触控面板4071附近的操作)。触控面板 4071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器410,接收处理器410发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板4071。除了触控面板 4071,用户输入单元407还可以包括其他输入设备4072。具体地,其他输入设备4072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The
进一步的,触控面板4071可覆盖在显示面板4061上,当触控面板4071 检测到在其上或附近的触摸操作后,传送给处理器410以确定触摸事件的类型,随后处理器410根据触摸事件的类型在显示面板4061上提供相应的视觉输出。虽然在图4中,触控面板4071与显示面板4061是作为两个独立的部件来实现移动终端的输入和输出功能,但是在某些实施例中,可以将触控面板4071与显示面板4061集成而实现移动终端的输入和输出功能,具体此处不做限定。Further, the
接口单元408为外部装置与移动终端400连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入 /输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元408可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端400内的一个或多个元件或者可以用于在移动终端400和外部装置之间传输数据。The
存储器409可用于存储软件程序以及各种数据。存储器409可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器 409可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The
处理器410是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器409内的软件程序和/或模块,以及调用存储在存储器409内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。处理器410可包括一个或多个处理单元;优选的,处理器410可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器410中。The
移动终端400还可以包括给各个部件供电的电源411(比如电池),优选的,电源411可以通过电源管理系统与处理器410逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The
另外,移动终端400包括一些未示出的功能模块,在此不再赘述。In addition, the
优选的,本发明实施例还提供一种移动终端,包括处理器410,存储器409,存储在存储器409上并可在所述处理器410上运行的计算机程序,该计算机程序被处理器410执行时实现上述功能键的响应方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, an embodiment of the present invention further provides a mobile terminal, including a
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述功能键的响应方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称 ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。Embodiments of the present invention further provide 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, each process of the above-mentioned method for responding to a function key is implemented, and can achieve the same In order to avoid repetition, the technical effect will not be repeated here. The computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk, or an optical disk.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present invention.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。The embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of the present invention, without departing from the spirit of the present invention and the scope protected by the claims, many forms can be made, which all belong to the protection of the present invention.
所述触发门限参数为所述预设功能键响应触发操作时的门限值。The trigger threshold parameter is a threshold value when the preset function key responds to a trigger operation.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810064003.XACN108459796B (en) | 2018-01-23 | 2018-01-23 | Function key response method and mobile terminal |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810064003.XACN108459796B (en) | 2018-01-23 | 2018-01-23 | Function key response method and mobile terminal |
| Publication Number | Publication Date |
|---|---|
| CN108459796A CN108459796A (en) | 2018-08-28 |
| CN108459796Btrue CN108459796B (en) | 2020-08-18 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810064003.XAActiveCN108459796B (en) | 2018-01-23 | 2018-01-23 | Function key response method and mobile terminal |
| Country | Link |
|---|---|
| CN (1) | CN108459796B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110597411B (en)* | 2019-08-21 | 2021-10-29 | 维沃移动通信有限公司 | Pressure detection circuit, electronic device and control method of pressure detection circuit |
| CN113885712A (en)* | 2021-09-29 | 2022-01-04 | 联想(北京)有限公司 | Information processing method and device and electronic equipment |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP5579780B2 (en)* | 2012-06-06 | 2014-08-27 | パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ | Input device, input support method, and program |
| CN103699318B (en)* | 2014-01-06 | 2018-11-09 | 联想(北京)有限公司 | A kind of electronic equipment touch-control response method and device |
| CN104866362B (en)* | 2015-06-10 | 2018-08-21 | 努比亚技术有限公司 | A kind of Activiation method and system |
| CN106527818B (en)* | 2016-12-16 | 2019-07-02 | Oppo广东移动通信有限公司 | A control method, device and mobile terminal for touch operation on a mobile terminal |
| CN107390936A (en)* | 2017-07-31 | 2017-11-24 | 北京小米移动软件有限公司 | Trigger action processing method, device and computer-readable recording medium |
| Publication number | Publication date |
|---|---|
| CN108459796A (en) | 2018-08-28 |
| Publication | Publication Date | Title |
|---|---|---|
| CN108536411A (en) | A kind of method for controlling mobile terminal and mobile terminal | |
| CN107977113B (en) | Control method and mobile terminal | |
| CN110471559B (en) | False touch prevention method and mobile terminal | |
| CN107911445A (en) | A kind of information push method, mobile terminal and storage medium | |
| CN109032447A (en) | A kind of icon processing method and mobile terminal | |
| CN108924362A (en) | A kind of notification event processing method and terminal | |
| WO2020228538A1 (en) | Screenshot method and mobile terminal | |
| CN111443815A (en) | A vibration reminder method and electronic device | |
| WO2020024770A1 (en) | Method for determining communication object, and mobile terminal | |
| CN108924319B (en) | Proximity detection method and mobile terminal | |
| CN108388400B (en) | An operation processing method and mobile terminal | |
| CN110769303A (en) | Playing control method and device and mobile terminal | |
| CN110138963A (en) | A kind of message treatment method and mobile terminal | |
| CN107908983A (en) | A kind of method and mobile terminal for controlling mobile terminal screen | |
| CN108307048B (en) | Message output method and device and mobile terminal | |
| CN108540642B (en) | Operation method of mobile terminal and mobile terminal | |
| CN108008808B (en) | Operating parameter adjustment method and mobile terminal | |
| CN108459796B (en) | Function key response method and mobile terminal | |
| CN108089935B (en) | Application management method and mobile terminal | |
| CN109947323A (en) | A terminal display method and terminal | |
| CN111526248B (en) | Audio output mode switching method and electronic device | |
| CN108650392A (en) | A kind of call recording method and mobile terminal | |
| CN109614827B (en) | Control method of mobile terminal and mobile terminal | |
| CN111443968A (en) | Screenshot method and electronic equipment | |
| CN110673761A (en) | Detection method of touch key and terminal equipment thereof |
| 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 |