





技术领域technical field
本公开涉及移动终端技术领域,特别涉及一种按键控制方法及装置。The present disclosure relates to the technical field of mobile terminals, and in particular, to a key control method and device.
背景技术Background technique
诸如手机之类的终端的机身上通常设置有按键,上述按键可以是触控按键,也可以是物理按键。终端通过响应作用于按键的操作,以实现按键对应的功能。The body of a terminal such as a mobile phone is usually provided with keys, and the keys may be touch keys or physical keys. The terminal implements the function corresponding to the key by responding to the operation acting on the key.
在相关技术中,假设终端的前面板(也即屏幕所在一面的面板)上设置有三个触控按键,分别为菜单键、Home键与返回键。终端在获取到对应于上述任一触控按键的操作时,响应上述操作,执行该触控按键对应的功能。例如,当终端获取到对应于返回键的操作时,终端在屏幕中显示最近一次显示的页面。In the related art, it is assumed that the front panel of the terminal (that is, the panel on the side where the screen is located) is provided with three touch keys, which are the menu key, the Home key and the return key respectively. When acquiring an operation corresponding to any one of the above touch keys, the terminal responds to the above operation and executes the function corresponding to the touch key. For example, when the terminal acquires the operation corresponding to the return key, the terminal displays the most recently displayed page on the screen.
发明内容SUMMARY OF THE INVENTION
本公开实施例提供了一种按键控制方法及装置,所述技术方案如下:The embodiments of the present disclosure provide a key control method and device, and the technical solutions are as follows:
根据本公开实施例的第一方面,提供了一种按键控制方法,所述方法包括:According to a first aspect of the embodiments of the present disclosure, a key control method is provided, and the method includes:
当检测到前台运行的应用属于目标应用时,控制位于机身上的至少一个按键进入锁定状态,所述至少一个按键包括至少一个触控按键和/或至少一个物理按键;When detecting that the application running in the foreground belongs to the target application, control at least one key located on the fuselage to enter a locked state, the at least one key including at least one touch key and/or at least one physical key;
在所述按键处于所述锁定状态的情况下,若获取到对应于所述按键的操作,则判断所述操作是否为解锁操作,所述解锁操作是指触发所述按键由所述锁定状态切换至解锁状态的操作;When the key is in the locked state, if an operation corresponding to the key is acquired, it is determined whether the operation is an unlocking operation, and the unlocking operation refers to triggering the key to switch from the locked state Operation to unlocked state;
若所述操作是所述解锁操作,则控制所述按键进入所述解锁状态;If the operation is the unlocking operation, controlling the key to enter the unlocking state;
若所述操作不是所述解锁操作,则不响应所述操作。If the operation is not the unlocking operation, the operation is not responded to.
可选地,所述当检测到前台运行的应用属于目标应用时,控制位于机身上的至少一个按键进入锁定状态,包括:Optionally, when it is detected that the application running in the foreground belongs to the target application, controlling at least one key located on the fuselage to enter the locked state, including:
获取所述前台运行的应用的类型标签,所述类型标签用于指示应用的类型;Obtain the type label of the application running in the foreground, where the type label is used to indicate the type of the application;
根据所述前台运行的应用的类型标签,确定所述前台运行的应用的类型是否为游戏类型,所述目标应用是指所述游戏类型的应用;According to the type label of the application running in the foreground, determine whether the type of the application running in the foreground is a game type, and the target application refers to an application of the game type;
若所述前台运行的应用的类型为所述游戏类型,则控制位于机身上的至少一个按键进入所述锁定状态。If the type of the application running in the foreground is the game type, control at least one key located on the fuselage to enter the locked state.
可选地,所述当检测到前台运行的应用属于目标应用时,控制位于机身上的至少一个按键进入锁定状态,包括:Optionally, when it is detected that the application running in the foreground belongs to the target application, controlling at least one key located on the fuselage to enter the locked state, including:
获取所述前台运行的应用的标识;Obtain the identifier of the application running in the foreground;
根据预设对应关系,获取与所述前台运行的应用的标识对应的目标配置信息,其中,所述预设对应关系包括应用的标识与配置信息之间的对应关系,所述配置信息用于指示应用在前台运行时是否控制位于机身上的按键进入所述锁定状态,存在至少两个应用对应的配置信息指示控制不同的按键进入所述锁定状态,所述目标应用是指对应的配置信息指示控制所述位于机身上的按键进入所述锁定状态的应用;Target configuration information corresponding to the identifier of the application running in the foreground is acquired according to a preset corresponding relationship, wherein the preset corresponding relationship includes a corresponding relationship between the identifier of the application and the configuration information, and the configuration information is used to indicate Whether the application controls the keys located on the fuselage to enter the locked state when the application is running in the foreground, there are at least two application corresponding configuration information instructions to control different keys to enter the locked state, and the target application refers to the corresponding configuration information indicating an application that controls the key located on the fuselage to enter the locked state;
若所述目标配置信息指示控制位于机身上的至少一个按键进入所述锁定状态,则控制所述至少一个按键进入所述锁定状态。可选地,所述解锁操作与所述按键处于所述解锁状态下所响应的操作不同。If the target configuration information indicates to control at least one key located on the fuselage to enter the locked state, control the at least one key to enter the locked state. Optionally, the unlocking operation is different from the operation that the key responds to when the key is in the unlocking state.
可选地,所述方法还包括:Optionally, the method further includes:
在所述按键处于所述解锁状态的情况下,若所述前台运行的应用仍然保持在前台运行且持续时间大于预设阈值,则控制所述按键进入所述锁定状态。When the key is in the unlocked state, if the application running in the foreground still runs in the foreground and the duration is greater than a preset threshold, the key is controlled to enter the locked state.
可选地,所述方法还包括:Optionally, the method further includes:
当检测到前台运行的应用属于目标应用时,控制侧边菜单进入锁定状态;When it is detected that the application running in the foreground belongs to the target application, control the side menu to enter the locked state;
在所述侧边菜单处于所述锁定状态的情况下,若获取到对应于所述侧边菜单的呼出指示,则不显示所述侧边菜单。When the side menu is in the locked state, if a call-out instruction corresponding to the side menu is acquired, the side menu is not displayed.
可选地,所述方法还包括:Optionally, the method further includes:
在获取到对应于所述按键的解锁操作时,控制所述侧边菜单由所述锁定状态切换至解锁状态。When the unlocking operation corresponding to the key is acquired, the side menu is controlled to switch from the locked state to the unlocked state.
根据本公开实施例的第二方面,提供了一种按键控制装置,所述装置包括:According to a second aspect of the embodiments of the present disclosure, there is provided a key control device, the device comprising:
第一控制模块,被配置为当检测到前台运行的应用属于目标应用时,控制位于机身上的至少一个按键进入锁定状态,所述至少一个按键包括至少一个触控按键和/或至少一个物理按键;The first control module is configured to control at least one key located on the fuselage to enter a locked state when it is detected that the application running in the foreground belongs to the target application, the at least one key includes at least one touch key and/or at least one physical key. button;
操作判断模块,被配置为在所述按键处于所述锁定状态的情况下,当获取到对应于所述按键的操作时,判断所述操作是否为解锁操作,所述解锁操作是指触发所述按键由所述锁定状态切换至解锁状态的操作;An operation judging module is configured to, when the button is in the locked state, when an operation corresponding to the button is acquired, determine whether the operation is an unlocking operation, and the unlocking operation refers to triggering the The operation of switching the key from the locked state to the unlocked state;
第二控制模块,被配置为当所述操作是所述解锁操作时,控制所述按键进入所述解锁状态;a second control module, configured to control the key to enter the unlocked state when the operation is the unlocking operation;
第三控制模块,被配置为当所述操作不是所述解锁操作时,不响应所述操作。A third control module configured to not respond to the operation when the operation is not the unlocking operation.
可选地,所述第一控制模块,包括:Optionally, the first control module includes:
标签获取子模块,被配置为获取所述前台运行的应用的类型标签,所述类型标签用于指示应用的类型;The label obtaining submodule is configured to obtain the type label of the application running in the foreground, where the type label is used to indicate the type of the application;
类型确定子模块,被配置为根据所述前台运行的应用的类型标签,确定所述前台运行的应用的类型是否为游戏类型,所述目标应用是指所述游戏类型的应用;a type determination submodule, configured to determine whether the type of the application running in the foreground is a game type according to the type label of the application running in the foreground, and the target application refers to the application of the game type;
锁定控制子模块,被配置为当所述前台运行的应用的类型为所述游戏类型时,控制位于机身上的至少一个按键进入所述锁定状态。The lock control sub-module is configured to control at least one key located on the body to enter the lock state when the type of the application running in the foreground is the game type.
可选地,所述第一控制模块,包括:Optionally, the first control module includes:
标识获取子模块,被配置为获取所述前台运行的应用的标识;an identification acquisition submodule, configured to acquire the identification of the application running in the foreground;
信息获取子模块,被配置为根据预设对应关系,获取与所述前台运行的应用的标识对应的目标配置信息,其中,所述预设对应关系包括应用的标识与配置信息之间的对应关系,所述配置信息用于指示应用在前台运行时是否控制位于机身上的按键进入所述锁定状态,存在至少两个应用对应的配置信息指示控制不同的按键进入所述锁定状态,所述目标应用是指对应的配置信息指示控制所述位于机身上的按键进入所述锁定状态的应用;an information acquisition sub-module, configured to acquire target configuration information corresponding to the identifier of the application running in the foreground according to a preset corresponding relationship, wherein the preset corresponding relationship includes the corresponding relationship between the identifier of the application and the configuration information , the configuration information is used to indicate whether the application controls the keys located on the fuselage to enter the locked state when the application is running in the foreground, and there are at least two application corresponding configuration information to indicate that different keys are controlled to enter the locked state, the target The application refers to the application that the corresponding configuration information instructs to control the key located on the fuselage to enter the locked state;
锁定控制子模块,被配置为当所述目标配置信息指示控制位于机身上的至少一个按键进入所述锁定状态时,控制所述至少一个按键进入所述锁定状态。可选地,所述解锁操作与所述按键处于所述解锁状态下所响应的操作不同。The lock control submodule is configured to control the at least one key to enter the locked state when the target configuration information indicates to control the at least one key located on the fuselage to enter the locked state. Optionally, the unlocking operation is different from the operation that the key responds to when the key is in the unlocking state.
可选地,所述装置还包括:Optionally, the device further includes:
第四控制模块,被配置为在所述按键处于所述解锁状态的情况下,当所述前台运行的应用仍然保持在前台运行且持续时间大于预设阈值时,控制所述按键进入所述锁定状态。The fourth control module is configured to control the button to enter the lock when the application running in the foreground is still running in the foreground and the duration is greater than a preset threshold when the button is in the unlocked state state.
可选地,所述装置还包括:Optionally, the device further includes:
第五控制模块,被配置为当检测到前台运行的应用属于目标应用时,控制侧边菜单进入锁定状态;a fifth control module, configured to control the side menu to enter a locked state when it is detected that the application running in the foreground belongs to the target application;
第六控制模块,被配置为在所述侧边菜单处于所述锁定状态的情况下,若获取到对应于所述侧边菜单的呼出指示,则不显示所述侧边菜单。The sixth control module is configured to not display the side menu if a call-out instruction corresponding to the side menu is acquired when the side menu is in the locked state.
可选地,所述装置还包括:Optionally, the device further includes:
第七控制模块,被配置为在获取到对应于所述按键的解锁操作时,控制所述侧边菜单由所述锁定状态切换至解锁状态。The seventh control module is configured to control the side menu to switch from the locked state to the unlocked state when the unlocking operation corresponding to the key is acquired.
根据本公开实施例的第三方面,提供了一种按键控制装置,所述装置包括:According to a third aspect of the embodiments of the present disclosure, there is provided a key control device, the device comprising:
处理器;processor;
用于存储所述处理器的可执行指令的存储器;memory for storing executable instructions for the processor;
其中,所述处理器被配置为:wherein the processor is configured to:
当检测到前台运行的应用属于目标应用时,控制位于机身上的至少一个按键进入锁定状态,所述至少一个按键包括至少一个触控按键和/或至少一个物理按键;When detecting that the application running in the foreground belongs to the target application, control at least one key located on the fuselage to enter a locked state, the at least one key including at least one touch key and/or at least one physical key;
在所述按键处于所述锁定状态的情况下,当获取到对应于所述按键的操作时,判断所述操作是否为解锁操作,所述解锁操作是指触发所述按键由所述锁定状态切换至解锁状态的操作;When the key is in the locked state, when an operation corresponding to the key is acquired, it is determined whether the operation is an unlocking operation, and the unlocking operation refers to triggering the key to switch from the locked state Operation to unlocked state;
当所述操作是所述解锁操作时,控制所述按键进入所述解锁状态;When the operation is the unlocking operation, controlling the key to enter the unlocking state;
当所述操作不是所述解锁操作时,不响应所述操作。When the operation is not the unlocking operation, the operation is not responded to.
本公开实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
通过在检测到前台运行的应用属于目标应用时,控制位于机身上的至少一个按键进入锁定状态,并且只有通过特定的解锁操作,才能触发上述按键由锁定状态切换至解锁状态,从而避免在使用目标应用的过程中,因无意触碰到位于机身上的按键而导致误操作的发生。When it is detected that the application running in the foreground belongs to the target application, at least one key located on the fuselage is controlled to enter the locked state, and only through a specific unlocking operation can the above key be triggered to switch from the locked state to the unlocked state, thereby avoiding the use of During the process of the target application, a misoperation occurs due to the accidental touch of the button located on the fuselage.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.
图1是根据一示例性实施例示出的一种按键控制方法的流程图;1 is a flowchart of a key control method according to an exemplary embodiment;
图2是根据一示例性实施例示出的一种终端的示意图;FIG. 2 is a schematic diagram of a terminal according to an exemplary embodiment;
图3是根据另一示例性实施例示出的一种按键控制方法的流程图;3 is a flowchart of a key control method according to another exemplary embodiment;
图4是根据一示例性实施例示出的一种按键控制装置的框图;4 is a block diagram of a key control device according to an exemplary embodiment;
图5是根据另一示例性实施例示出的一种按键控制装置的框图;5 is a block diagram of a key control device according to another exemplary embodiment;
图6是根据一示例性实施例示出的一种装置的框图。Fig. 6 is a block diagram of an apparatus according to an exemplary embodiment.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. Where the following description refers to the drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with this disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as recited in the appended claims.
由于按键通常设置在终端的前面板(也即屏幕所在一面的面板)上,用户在使用终端进行打游戏、看视频的过程中,经常会不小心触碰到按键,导致误操作的情况发生。基于此,本公开实施例提供了一种按键控制方法,以及基于该方法的装置。在本公开实施例中,终端在检测到前台运行的应用属于目标应用时,通过控制位于机身上的按键进入锁定状态,只有获取到预先设定的解锁操作时,才可触发按键由锁定状态切换成解锁状态,从而避免因无意触碰到按键而导致误操作的发生。Since the keys are usually arranged on the front panel of the terminal (that is, the panel on the side where the screen is located), users often accidentally touch the keys when using the terminal to play games and watch videos, resulting in misoperation. Based on this, the embodiments of the present disclosure provide a key control method and a device based on the method. In the embodiment of the present disclosure, when the terminal detects that the application running in the foreground belongs to the target application, it enters the locked state by controlling the key located on the body, and only when the preset unlocking operation is obtained, the key can be triggered to change from the locked state. Switch to the unlocked state, so as to avoid misoperation caused by unintentionally touching the button.
本公开实施例提供的方法,各步骤的执行主体可以是终端,如手机、平板电脑、电子书阅读器、多媒体播放设备、PDA(Personal Digital Assistant,个人数字助理)、可穿戴设备等移动终端设备。In the method provided by the embodiments of the present disclosure, the execution subject of each step may be a terminal, such as a mobile terminal device such as a mobile phone, a tablet computer, an e-book reader, a multimedia playback device, a PDA (Personal Digital Assistant, personal digital assistant), a wearable device, and the like .
图1是根据一示例性实施例示出的一种按键控制方法的流程图。该方法可以包括如下几个步骤:Fig. 1 is a flow chart of a method for controlling keys according to an exemplary embodiment. The method may include the following steps:
在步骤101中,当检测到前台运行的应用属于目标应用时,控制位于机身上的至少一个按键进入锁定状态。In
前台运行的应用是指终端的屏幕中当前显示的应用程序。目标应用是指预先设定的应用,目标应用可以是某一个或多个应用,也可以是某一类型或多个类型的应用。例如,目标应用可以是名称为“xx游戏”的应用;又例如,目标应用可以是游戏类型的应用。The application running in the foreground refers to the application currently displayed on the screen of the terminal. The target application refers to a preset application, and the target application may be one or more applications, or may be a certain type or multiple types of applications. For example, the target application may be an application named "xx game"; for another example, the target application may be a game-type application.
终端的机身上设置有至少一个按键,该至少一个按键包括至少一个触控按键和/或至少一个物理按键。触控按键是指通过触控操作触发相应功能的按键。上述触控操作通常为触摸操作。例如,触控按键可以由电容式或者电阻式的触摸感应电极构成,能够检测到用户的触摸操作并进行响应。当然,在其它可能的情况下,触控操作也可以是按压操作。物理按键也称为实体按键,用户通过按压操作触发相应的功能,且物理按键能够给用户按下和弹起的按压反馈。At least one key is provided on the body of the terminal, and the at least one key includes at least one touch key and/or at least one physical key. A touch key refers to a key that triggers a corresponding function through a touch operation. The above touch operation is usually a touch operation. For example, the touch buttons may be composed of capacitive or resistive touch sensing electrodes, which can detect and respond to a user's touch operation. Of course, in other possible situations, the touch operation may also be a pressing operation. The physical button is also called a physical button. The user triggers a corresponding function through a pressing operation, and the physical button can give the user a pressing feedback of pressing and popping up.
在本公开实施例中,对按键在机身上的位置不作限定,例如按键可以设置在机身的前面板的非屏幕区域(如屏幕下方),又例如按键也可以设置在机身的背板上,或者按键还可以设置在机身的中框上。另外,在本公开实施例中,对按键的数量及其功能也不作限定,其可以根据实际需求进行设定。在一个示例中,如图2所示,终端20设置有如下3个按键22:菜单键、Home键和返回键,上述3个按键22均为触控按键,且该3个按键22均设置在机身前面板的屏幕21下方。In the embodiments of the present disclosure, the positions of the buttons on the fuselage are not limited. For example, the buttons may be arranged in a non-screen area (eg, below the screen) of the front panel of the fuselage, and, for example, the buttons may also be arranged on the back panel of the fuselage. , or the buttons can also be set on the middle frame of the fuselage. In addition, in the embodiments of the present disclosure, the number of keys and their functions are not limited, and they can be set according to actual needs. In an example, as shown in FIG. 2 , the terminal 20 is provided with the following three keys 22: a menu key, a Home key and a return key, the three
当检测到前台运行的应用属于目标应用时,终端控制位于机身上的全部或部分按键进入锁定状态。在一个示例中,当检测到前台运行的应用属于目标应用时,终端控制位于机身上的全部触控按键进入锁定状态。在另一个示例中,当检测到前台运行的应用属于目标应用时,终端控制位于机身上的部分触控按键进入锁定状态。在又一个示例中,当检测到前台运行的应用属于目标应用时,终端控制位于机身上的全部物理按键进入锁定状态。在又一个示例中,当检测到前台运行的应用属于目标应用时,终端控制位于机身上的部分物理按键进入锁定状态。可选地,对于不同的应用,终端控制位于机身上的不同按键进入锁定状态。在实际实现时,需要控制哪个或哪些按键进入锁定状态可以预先设定,例如由终端默认设定或者由用户自定义设定。When it is detected that the application running in the foreground belongs to the target application, the terminal controls all or part of the keys located on the fuselage to enter the locked state. In an example, when it is detected that the application running in the foreground belongs to the target application, the terminal controls all the touch keys located on the body to enter a locked state. In another example, when it is detected that the application running in the foreground belongs to the target application, the terminal controls some touch keys located on the body to enter a locked state. In yet another example, when it is detected that the application running in the foreground belongs to the target application, the terminal controls all physical keys located on the body to enter a locked state. In yet another example, when it is detected that the application running in the foreground belongs to the target application, the terminal controls some physical keys located on the body to enter a locked state. Optionally, for different applications, the terminal controls different keys located on the body to enter a locked state. In actual implementation, which key or keys need to be controlled to enter the locked state can be preset, for example, set by default by the terminal or set by the user.
在按键处于锁定状态的情况下,按键不响应任何操作。例如,某一触控按键在解锁状态下,通过单次触摸点击操作能够触发该触控按键对应的功能,当该触控按键处于锁定状态的情况下,用户单次触摸点击该触控按键时,无法触发该触控按键对应的功能,终端不对用户的单次触摸点击操作进行响应。When the keys are locked, the keys do not respond to any action. For example, when a touch key is in the unlocked state, the function corresponding to the touch key can be triggered by a single touch and click operation. , the function corresponding to the touch button cannot be triggered, and the terminal does not respond to the user's single-touch click operation.
在一个示例中,步骤101包括如下子步骤:In one example,
1、获取前台运行的应用的类型标签;1. Get the type tag of the application running in the foreground;
类型标签用于指示应用的类型。类型标签包括但不限于游戏、社交、生活服务、娱乐、旅行、阅读、视频等标签。示例性地,应用名称为“XX单车”的应用的类型标签为生活服务,应用名称为“XX飞车”的应用的类型标签为游戏。Type labels are used to indicate the type of application. Type tags include but are not limited to games, social, life services, entertainment, travel, reading, video and other tags. Exemplarily, the type label of the application with the application name "XX Bicycle" is life service, and the type label of the application with the application name "XX Speed" is the game.
可选地,终端从应用商店下载并安装应用时,将该应用的标识与类型标签对应存储,得到应用的标识与类型标签之间的对应关系。终端根据前台运行的应用的标识,查找上述对应关系,得到前台运行的应用的类型标签。Optionally, when the terminal downloads and installs the application from the application store, the identification of the application is stored in correspondence with the type label, and the corresponding relationship between the identification and the type label of the application is obtained. The terminal searches the above correspondence according to the identifier of the application running in the foreground, and obtains the type label of the application running in the foreground.
2、根据前台运行的应用的类型标签,确定前台运行的应用的类型是否为游戏类型。2. According to the type label of the application running in the foreground, determine whether the type of the application running in the foreground is a game type.
在本实施例中,考虑到用户在玩游戏时容易误触到位于机身上的按键,因此可以将游戏类型的应用设定为目标应用。当前台运行的应用的类型标签为游戏时,终端确定该前台运行的应用的类型为游戏类型,也即确定该前台运行的应用属于目标应用。In this embodiment, considering that the user is likely to accidentally touch the buttons located on the fuselage when playing the game, the game-type application may be set as the target application. When the type label of the application running in the foreground is game, the terminal determines that the type of the application running in the foreground is the game type, that is, it is determined that the application running in the foreground belongs to the target application.
当然,在其它可能的实现方式中,目标应用还可以是任意一种或多种类型的应用,其可以由系统预先设定或者由用户自定义设定。例如,目标应用为游戏类型的应用和视频类型的应用。Of course, in other possible implementation manners, the target application can also be any one or more types of applications, which can be preset by the system or set by the user. For example, the target applications are game-type applications and video-type applications.
若前台运行的应用的类型为游戏类型,则控制位于机身上的至少一个按键进入锁定状态;若前台运行的应用的类型不是游戏类型,则结束流程。If the type of the application running in the foreground is a game type, control at least one key located on the fuselage to enter a locked state; if the type of the application running in the foreground is not a game type, the process ends.
在另一个示例中,步骤101包括如下子步骤:In another example,
1、获取前台运行的应用的标识;1. Obtain the identity of the application running in the foreground;
2、根据预设对应关系,获取与前台运行的应用的标识对应的目标配置信息;2. Obtain target configuration information corresponding to the identifier of the application running in the foreground according to the preset correspondence;
其中,预设对应关系包括应用的标识与配置信息之间的对应关系,配置信息用于指示应用在前台运行时是否控制位于机身上的按键进入锁定状态。相应地,目标应用是指对应的配置信息指示控制位于机身上的按键进入锁定状态的应用。其中,预设对应关系可以由系统预设设定或者由用户自定义设定。例如,终端的设置选项中提供有设定各个应用的配置信息的功能,用户可使用该功能设置和修改应用的配置信息。The preset corresponding relationship includes the corresponding relationship between the identifier of the application and the configuration information, and the configuration information is used to indicate whether the application controls the keys located on the fuselage to enter the locked state when the application is running in the foreground. Correspondingly, the target application refers to an application whose corresponding configuration information indicates to control a key located on the body to enter a locked state. The preset corresponding relationship may be preset by the system or set by the user. For example, a function of setting configuration information of each application is provided in the setting options of the terminal, and the user can use this function to set and modify the configuration information of the application.
可选地,配置信息还用于指示应用在前台运行时需要控制进入锁定状态的按键,例如采用按键标识指示。可选地,存在至少两个应用对应的配置信息指示控制不同的按键进入锁定状态,也即,针对不同的应用,其对应的配置信息可以相同,也可以不同。例如,对于游戏应用A,其对应的配置信息用于指示控制位于机身前面板的触控按键进入锁定状态;对于游戏应用B,其对应的配置信息用于指示控制位于机身上的全部触控按键和物理按键进入锁定状态。Optionally, the configuration information is also used to indicate that the application needs to control the key to enter the locked state when the application is running in the foreground, for example, using key identification to indicate. Optionally, there are configuration information corresponding to at least two applications indicating that different keys are controlled to enter the locked state, that is, for different applications, the corresponding configuration information may be the same or different. For example, for game application A, its corresponding configuration information is used to instruct the touch buttons located on the front panel of the fuselage to enter the locked state; for game application B, its corresponding configuration information is used to instruct to control all touch buttons located on the fuselage. The control keys and physical keys are locked.
若目标配置信息指示控制位于机身上的至少一个按键进入锁定状态,则控制位于机身上的至少一个按键进入锁定状态;若目标配置信息指示位于机身上的按键不进入锁定状态,则结束流程。If the target configuration information indicates to control at least one button located on the fuselage to enter the locked state, then control at least one button located on the fuselage to enter the locked state; if the target configuration information indicates that the button located on the fuselage does not enter the locked state, the process ends process.
在其它可能的示例中,终端在检测到前台运行的应用属于目标应用时,屏幕中的一侧显示用于控制位于机身上的至少一个按键进入锁定状态的虚拟按键,终端获取到作用于上述屏幕中的虚拟按键的触控操作时,执行控制位于机身上的至少一个按键进入锁定状态的步骤。In another possible example, when the terminal detects that the application running in the foreground belongs to the target application, one side of the screen displays a virtual key used to control at least one key located on the body to enter the locked state, and the terminal obtains the effect on the above During the touch operation of the virtual keys on the screen, the step of controlling at least one key located on the fuselage to enter the locked state is performed.
在其它可能的示例中,终端在检测到屏幕处于横放状态,且屏幕获取到的触控操作的频率和/或次数超过预设阈值时,确定前台运行的应用属于目标应用,执行控制位于机身上的至少一个按键进入锁定状态的步骤。In other possible examples, when the terminal detects that the screen is in a horizontal state and the frequency and/or number of touch operations obtained by the screen exceeds a preset threshold, the terminal determines that the application running in the foreground belongs to the target application, and executes the control on the machine. The steps of entering at least one key on the body into a locked state.
在步骤102中,在按键处于锁定状态的情况下,若获取到对应于该按键的操作,则判断该操作是否为解锁操作。若是,则执行下述步骤103;若否,则执行下述步骤104。In
对于机身上的任一按键,在该按键处于锁定状态的情况下,若获取到对应于该按键的操作,则终端判断该操作是否为解锁操作。解锁操作是指触发按键由锁定状态切换至解锁状态的操作。按键在解锁状态下,能够正常响应操作。For any key on the fuselage, when the key is in a locked state, if an operation corresponding to the key is acquired, the terminal determines whether the operation is an unlocking operation. The unlocking operation refers to the operation of triggering the button to switch from the locked state to the unlocked state. When the button is in the unlocked state, it can respond normally to the operation.
可选地,解锁操作与按键处于解锁状态下所响应的操作不同。对应于按键的解锁操作可以是作用于按键的触控操作或按压操作,也可以是其它用户操作,例如作用于实体按键(也称为物理按键)的按压操作、特定的语音信号,等等。Optionally, the unlocking operation is different from the operation responsive to when the key is in the unlocked state. The unlocking operation corresponding to the key may be a touch operation or a pressing operation acting on the key, or other user operations, such as a pressing operation acting on a physical key (also called a physical key), a specific voice signal, and so on.
在一个示例中,假设触控按键处于解锁状态下所响应的操作为单次触摸点击操作,则解锁操作可以是长按触控按键的操作;或者,也可以是长按触控按键的操作和单次触摸点击触控按键的操作的组合,并且,上述长按触控按键的操作和单次触摸点击触控按键的操作的间隔时长需小于预设时长,例如预设时长为1s。In an example, it is assumed that the operation responded by the touch button in the unlocked state is a single-touch click operation, the unlock operation may be an operation of long-pressing the touch button; or, it may also be an operation of long-pressing the touch button and A combination of operations of single-touch clicking on a touch-sensitive button, and the interval between the above-mentioned operation of long-pressing the touch-sensitive button and the operation of single-touching and clicking the touch-sensitive button must be less than the preset time length, for example, the preset time length is 1s.
在步骤103中,控制按键进入解锁状态。In
若上述操作是解锁操作,则终端控制处于锁定状态的按键进入解锁状态。在按键处于解锁状态的情况下,终端能够正常响应作用于按键的操作。If the above operation is an unlocking operation, the terminal controls the keys in the locked state to enter the unlocked state. When the key is in the unlocked state, the terminal can normally respond to the operation acting on the key.
在一个示例中,结合上述图2,终端20中的任意一个触控按键22获取到解锁操作时,终端20控制触控按键22进入解锁状态,此时终端20能够正常响应作用于触控按键22的触控操作。In an example, referring to FIG. 2 above, when any
在步骤104中,不响应上述操作。In
若上述操作不是解锁操作,则终端不响应上述操作,从而避免引发误操作。If the above operation is not an unlocking operation, the terminal does not respond to the above operation, so as to avoid misoperation.
可选地,在步骤103之后,还包括如下步骤:Optionally, after
在按键处于解锁状态的情况下,若前台运行的应用仍然保持在前台运行且持续时间大于预设阈值,则控制按键进入锁定状态。其中,预设阈值可以根据实际经验设定,示例性地,预设阈值为5s。通过上述方式,终端能够自动控制按键由解锁状态切换至锁定状态,简化用户操作。When the button is in the unlocked state, if the application running in the foreground still keeps running in the foreground and the duration is longer than the preset threshold, the control button enters the locked state. The preset threshold may be set according to actual experience, and for example, the preset threshold is 5s. In the above manner, the terminal can automatically control the keys to be switched from the unlocked state to the locked state, which simplifies user operations.
综上所述,本公开实施例提供的方法,通过在检测到前台运行的应用属于目标应用时,控制位于机身上的至少一个按键进入锁定状态,并且只有通过特定的解锁操作,才能触发上述按键由锁定状态切换至解锁状态,从而避免在使用目标应用的过程中,因无意触碰到位于机身上的按键而导致误操作的发生。To sum up, the method provided by the embodiments of the present disclosure controls at least one key located on the fuselage to enter the locked state when it is detected that the application running in the foreground belongs to the target application, and only through a specific unlocking operation can trigger the above-mentioned The keys are switched from the locked state to the unlocked state, so as to avoid the occurrence of misoperation caused by unintentionally touching the keys located on the fuselage during the use of the target application.
在基于图1所示实施例提供的一个可选实施例中,如图3所示,终端在检测到前台运行的应用属于目标应用时,除控制位于机身上的至少一个按键进入锁定状态之外,还执行如下步骤:In an optional embodiment provided based on the embodiment shown in FIG. 1, as shown in FIG. 3, when the terminal detects that the application running in the foreground belongs to the target application, in addition to controlling at least one key located on the body to enter the locked state In addition, perform the following steps:
在步骤301中,当检测到前台运行的应用属于目标应用时,控制侧边菜单进入锁定状态。In
侧边菜单是指可以通过滑动操作从屏幕侧边呼出显示的菜单。可选地,侧边菜单包括下拉显示的通知栏或菜单栏、左右拉动显示的通知栏或菜单栏、上拉显示的通知栏或者菜单栏中的至少一种。侧边菜单在进入锁定状态之后,其无法被呼出显示。The side menu refers to the menu that can be displayed from the side of the screen by swiping. Optionally, the side menu includes at least one of a notification bar or menu bar displayed by pulling down, a notification bar or menu bar displayed by pulling left and right, a notification bar or menu bar displayed by pulling up. After the side menu is locked, it cannot be displayed.
用户在使用终端进行打游戏、看视频的过程中,除了会不小心误触发按键之外,还有可能不小心误触发侧边菜单。在本实施例中,通过控制侧边菜单进入锁定状态,从而避免侧边菜单被误触发。In the process of using the terminal to play games and watch videos, in addition to accidentally triggering the buttons by mistake, users may also accidentally trigger the side menu by mistake. In this embodiment, the side menu is controlled to enter the locked state, thereby preventing the side menu from being triggered by mistake.
在步骤302中,在侧边菜单处于锁定状态的情况下,若获取到对应于侧边菜单的呼出指示,则不显示侧边菜单。In
在步骤303中,在获取到对应于按键的解锁操作时,控制侧边菜单由锁定状态切换至解锁状态。In
在按键由锁定状态切换至解锁状态的同时,终端控制侧边菜单也从锁定状态切换至解锁状态。这样,用户通过一次解锁操作即可同时将按键和侧边菜单的状态进行切换,操作简单高效。When the key is switched from the locked state to the unlocked state, the terminal control side menu is also switched from the locked state to the unlocked state. In this way, the user can switch the state of the button and the side menu at the same time by one unlocking operation, and the operation is simple and efficient.
综上所述,本公开实施例提供的方法,终端在检测到前台运行的应用属于目标应用时,除控制位于机身上的至少一个按键进入锁定状态之外,还控制侧边菜单进入锁定状态,从而避免侧边菜单被误触发。To sum up, in the method provided by the embodiments of the present disclosure, when the terminal detects that the application running in the foreground belongs to the target application, in addition to controlling at least one key located on the body to enter the locked state, the terminal also controls the side menu to enter the locked state , so as to prevent the side menu from being triggered by mistake.
下述为本公开装置实施例,可以用于执行本公开方法实施例。对于本公开装置实施例中未披露的细节,请参照本公开方法实施例。The following are the apparatus embodiments of the present disclosure, which can be used to execute the method embodiments of the present disclosure. For details not disclosed in the apparatus embodiments of the present disclosure, please refer to the method embodiments of the present disclosure.
图4是根据一示例性实施例示出的一种按键控制装置的框图。该装置具有实现上述方法示例的功能,所述功能可以由硬件实现,也可以由硬件执行相应的软件实现。该装置可以包括:第一控制模块401、操作判断模块402、第二控制模块403和第三控制模块404。Fig. 4 is a block diagram of a key control device according to an exemplary embodiment. The apparatus has the function of implementing the above method example, and the function may be implemented by hardware or by executing corresponding software by hardware. The apparatus may include: a
第一控制模块401,被配置为当检测到前台运行的应用属于目标应用时,控制位于机身上的至少一个按键进入锁定状态,所述至少一个按键包括至少一个触控按键和/或至少一个物理按键。The
操作判断模块402,被配置为在所述按键处于所述锁定状态的情况下,当获取到对应于所述按键的操作时,判断所述操作是否为解锁操作,所述解锁操作是指触发所述按键由所述锁定状态切换至解锁状态的操作。The
第二控制模块403,被配置为当所述操作是所述解锁操作时,控制所述按键进入所述解锁状态。The
第三控制模块404,被配置为当所述操作不是所述解锁操作时,不响应所述操作。The
综上所述,本公开实施例提供的装置,通过在检测到前台运行的应用属于目标应用时,控制位于机身上的至少一个按键进入锁定状态,并且只有通过特定的解锁操作,才能触发上述按键由锁定状态切换至解锁状态,从而避免在使用目标应用的过程中,因无意触碰到位于机身上的按键而导致误操作的发生。To sum up, the device provided by the embodiments of the present disclosure controls at least one key on the body to enter the locked state when detecting that the application running in the foreground belongs to the target application, and only through a specific unlocking operation can trigger the above-mentioned The keys are switched from the locked state to the unlocked state, so as to avoid the occurrence of misoperation caused by unintentionally touching the keys located on the fuselage during the use of the target application.
在基于图4实施例提供的一个可选实施例中,请参考图5,所述第一控制模块401,包括:标签获取子模块401a、类型确定子模块401b和锁定控制子模块401c。In an optional embodiment provided based on the embodiment of FIG. 4 , please refer to FIG. 5 , the
标签获取子模块401a,被配置为获取所述前台运行的应用的类型标签,所述类型标签用于指示应用的类型。The label obtaining sub-module 401a is configured to obtain the type label of the application running in the foreground, where the type label is used to indicate the type of the application.
类型确定子模块401b,被配置为根据所述前台运行的应用的类型标签,确定所述前台运行的应用的类型是否为游戏类型,所述目标应用是指所述游戏类型的应用。The
锁定控制子模块401c,被配置为当所述前台运行的应用的类型为所述游戏类型时,控制位于机身上的至少一个按键进入所述锁定状态。The lock control sub-module 401c is configured to control at least one key located on the fuselage to enter the lock state when the type of the application running in the foreground is the game type.
在基于图4实施例提供的一个可选实施例中,请参考图5,所述锁定控制模块401,包括:标识获取子模块401d、信息获取子模块401e和锁定控制子模块401c。In an optional embodiment provided based on the embodiment of FIG. 4 , please refer to FIG. 5 , the
标识获取子模块401d,被配置为获取所述前台运行的应用的标识。The identification obtaining sub-module 401d is configured to obtain the identification of the application running in the foreground.
信息获取子模块401e,被配置为根据预设对应关系,获取与所述前台运行的应用的标识对应的目标配置信息,其中,所述预设对应关系包括应用的标识与配置信息之间的对应关系,所述配置信息用于指示应用在前台运行时是否控制位于机身上的按键进入所述锁定状态,存在至少两个应用对应的配置信息指示控制不同的按键进入所述锁定状态,所述目标应用是指对应的配置信息指示控制位于机身上的按键进入所述锁定状态的应用。The
锁定控制子模块401c,被配置为当所述目标配置信息指示控制位于机身上的至少一个按键进入所述锁定状态时,控制所述至少一个按键进入所述锁定状态。在基于图4实施例提供的一个可选实施例中,所述解锁操作与所述按键处于解锁状态下所响应的操作不同。The lock control sub-module 401c is configured to control at least one key located on the body to enter the locked state when the target configuration information indicates to control the at least one key located on the fuselage to enter the locked state. In an optional embodiment provided based on the embodiment of FIG. 4 , the unlocking operation is different from the corresponding operation when the key is in the unlocking state.
在基于图4实施例提供的一个可选实施例中,请参考图4,所述装置还包括:第四控制模块405。In an optional embodiment provided based on the embodiment in FIG. 4 , please refer to FIG. 4 , the apparatus further includes: a
第四控制模块405,被配置为在所述按键处于所述解锁状态的情况下,当所述前台运行的应用仍然保持在前台运行且持续时间大于预设阈值时,控制所述按键进入所述锁定状态。The
在基于图4实施例提供的一个可选实施例中,所述装置还包括:第五控制模块和第六控制模块(图中未示出)。In an optional embodiment provided based on the embodiment of FIG. 4 , the apparatus further includes: a fifth control module and a sixth control module (not shown in the figure).
第五控制模块,被配置为当检测到前台运行的应用属于目标应用时,控制侧边菜单进入锁定状态。The fifth control module is configured to control the side menu to enter a locked state when it is detected that the application running in the foreground belongs to the target application.
第六控制模块,被配置为在所述侧边菜单处于所述锁定状态的情况下,若获取到对应于所述侧边菜单的呼出指示,则不显示所述侧边菜单。The sixth control module is configured to not display the side menu if a call-out instruction corresponding to the side menu is acquired when the side menu is in the locked state.
可选地,所述装置还包括:第七控制模块(图中未示出)。Optionally, the apparatus further includes: a seventh control module (not shown in the figure).
第七控制模块,被配置为在获取到对应于所述按键的解锁操作时,控制所述侧边菜单由所述锁定状态切换至解锁状态。The seventh control module is configured to control the side menu to switch from the locked state to the unlocked state when the unlocking operation corresponding to the key is acquired.
需要说明的一点是,上述实施例提供的装置在实现其功能时,仅以上述各个功能模块的划分进行举例说明,实际应用中,可以根据实际需要而将上述功能分配由不同的功能模块完成,即将设备的内容结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。It should be noted that, when the device provided in the above embodiment realizes its functions, only the division of the above functional modules is used as an example for illustration. In practical applications, the above functions can be allocated to different functional modules according to actual needs. That is, the content structure of the device is divided into different functional modules to complete all or part of the functions described above.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above-mentioned embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be described in detail here.
本公开一示例性实施例还提供了一种按键控制装置,能够实现本公开实施例提供的方法。该装置包括:处理器,以及用于存储处理器的可执行指令的存储器。其中,所述处理器被配置为:An exemplary embodiment of the present disclosure further provides a key control device, which can implement the method provided by the embodiment of the present disclosure. The apparatus includes a processor, and a memory for storing executable instructions for the processor. wherein the processor is configured to:
当检测到前台运行的应用属于目标应用时,控制位于机身上的至少一个按键进入锁定状态,所述至少一个按键包括至少一个触控按键和/或至少一个物理按键;When detecting that the application running in the foreground belongs to the target application, control at least one key located on the fuselage to enter a locked state, the at least one key including at least one touch key and/or at least one physical key;
在所述按键处于所述锁定状态的情况下,当获取到对应于所述按键的操作时,判断所述操作是否为解锁操作,所述解锁操作是指触发所述按键由所述锁定状态切换至解锁状态的操作;When the key is in the locked state, when an operation corresponding to the key is acquired, it is determined whether the operation is an unlocking operation, and the unlocking operation refers to triggering the key to switch from the locked state Operation to unlocked state;
当所述操作是所述解锁操作时,控制所述按键进入所述解锁状态;When the operation is the unlocking operation, controlling the key to enter the unlocking state;
当所述操作不是所述解锁操作时,不响应所述操作。When the operation is not the unlocking operation, the operation is not responded to.
可选地,所述处理器被配置为:Optionally, the processor is configured to:
获取所述前台运行的应用的类型标签,所述类型标签用于指示应用的类型;Obtain the type label of the application running in the foreground, where the type label is used to indicate the type of the application;
根据所述前台运行的应用的类型标签,确定所述前台运行的应用的类型是否为游戏类型,所述目标应用是指所述游戏类型的应用;According to the type label of the application running in the foreground, determine whether the type of the application running in the foreground is a game type, and the target application refers to an application of the game type;
当所述前台运行的应用的类型为所述游戏类型时,控制位于机身上的按键进入所述锁定状态。When the type of the application running in the foreground is the game type, the key located on the main body is controlled to enter the locked state.
可选地,所述处理器被配置为:Optionally, the processor is configured to:
获取所述前台运行的应用的标识;Obtain the identifier of the application running in the foreground;
根据预设对应关系,获取与所述前台运行的应用的标识对应的目标配置信息,其中,所述预设对应关系包括应用的标识与配置信息之间的对应关系,所述配置信息用于指示应用在前台运行时是否控制位于机身上的按键进入所述锁定状态,存在至少两个应用对应的配置信息指示控制不同的按键进入所述锁定状态,所述目标应用是指对应的配置信息指示控制位于机身上的按键进入所述锁定状态的应用;Target configuration information corresponding to the identifier of the application running in the foreground is acquired according to a preset corresponding relationship, wherein the preset corresponding relationship includes a corresponding relationship between the identifier of the application and the configuration information, and the configuration information is used to indicate Whether the application controls the keys located on the fuselage to enter the locked state when the application is running in the foreground, there are at least two application corresponding configuration information instructions to control different keys to enter the locked state, and the target application refers to the corresponding configuration information indicating An application that controls the keys located on the fuselage to enter the locked state;
当所述目标配置信息指示控制位于机身上的至少一个按键进入所述锁定状态时,控制所述至少一个按键进入所述锁定状态。可选地,所述解锁操作与所述按键处于解锁状态下所响应的操作不同。When the target configuration information indicates to control at least one key located on the fuselage to enter the locked state, the at least one key is controlled to enter the locked state. Optionally, the unlocking operation is different from the operation responding when the key is in the unlocking state.
可选地,所述处理器还被配置为:Optionally, the processor is further configured to:
在所述按键处于所述解锁状态的情况下,当所述前台运行的应用仍然保持在前台运行且持续时间大于预设阈值时,控制所述按键进入所述锁定状态。When the key is in the unlocked state, when the application running in the foreground still runs in the foreground and the duration is greater than a preset threshold, the key is controlled to enter the locked state.
可选地,所述处理器还被配置为:Optionally, the processor is further configured to:
当检测到前台运行的应用属于目标应用时,控制侧边菜单进入锁定状态;When it is detected that the application running in the foreground belongs to the target application, control the side menu to enter the locked state;
在所述侧边菜单处于所述锁定状态的情况下,若获取到对应于所述侧边菜单的呼出指示,则不显示所述侧边菜单。When the side menu is in the locked state, if a call-out instruction corresponding to the side menu is acquired, the side menu is not displayed.
可选地,所述处理器还被配置为:Optionally, the processor is further configured to:
在获取到对应于所述按键的解锁操作时,控制所述侧边菜单由所述锁定状态切换至解锁状态。When the unlocking operation corresponding to the key is acquired, the side menu is controlled to switch from the locked state to the unlocked state.
图6是根据一示例性实施例示出的一种装置600的框图。例如,装置600可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。FIG. 6 is a block diagram of an
参照图6,装置600可以包括以下一个或多个组件:处理组件602,存储器604,电源组件606,多媒体组件608,音频组件610,输入/输出(I/O)接口612,传感器组件614,以及通信组件616。6,
处理组件602通常控制装置600的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件602可以包括一个或多个处理器620来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件602可以包括一个或多个模块,便于处理组件602和其他组件之间的交互。例如,处理组件602可以包括多媒体模块,以方便多媒体组件608和处理组件602之间的交互。The
存储器604被配置为存储各种类型的数据以支持在装置600的操作。这些数据的示例包括用于在装置600上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器604可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
电源组件606为装置600的各种组件提供电力。电源组件606可以包括电源管理系统,一个或多个电源,及其他与为装置600生成、管理和分配电力相关联的组件。
多媒体组件608包括在所述装置600和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件608包括一个前置摄像头和/或后置摄像头。当装置600处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件610被配置为输出和/或输入音频信号。例如,音频组件610包括一个麦克风(MIC),当装置600处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器604或经由通信组件616发送。在一些实施例中,音频组件610还包括一个扬声器,用于输出音频信号。
I/O接口612为处理组件602和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/
传感器组件614包括一个或多个传感器,用于为装置600提供各个方面的状态评估。例如,传感器组件614可以检测到装置600的打开/关闭状态,组件的相对定位,例如所述组件为装置600的显示器和小键盘,传感器组件614还可以检测装置600或装置600一个组件的位置改变,用户与装置600接触的存在或不存在,装置600方位或加速/减速和装置600的温度变化。传感器组件614可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件614还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件614还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。
通信组件616被配置为便于装置600和其他设备之间有线或无线方式的通信。装置600可以接入基于通信标准的无线网络,如Wi-Fi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件616经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件616还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。
在示例性实施例中,装置600可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述按键控制方法。In an exemplary embodiment,
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器604,上述指令可由装置600的处理器620执行以完成上述按键控制方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions, such as a
一种非临时性计算机可读存储介质,当所述存储介质中的指令由装置600的处理器执行时,使得装置600能够执行一种上述按键控制方法。A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the
应当理解的是,在本文中提及的“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。It should be understood that references herein to "a plurality" means two or more. "And/or", which describes the association relationship of the associated objects, means that there can be three kinds of relationships, for example, A and/or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone. The character "/" generally indicates that the associated objects are an "or" relationship.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or techniques in the technical field not disclosed by the present disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It is to be understood that the present disclosure is not limited to the precise structures described above and illustrated in the accompanying drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710288740.3ACN107193553B (en) | 2017-04-27 | 2017-04-27 | Button control method and device |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710288740.3ACN107193553B (en) | 2017-04-27 | 2017-04-27 | Button control method and device |
| Publication Number | Publication Date |
|---|---|
| CN107193553A CN107193553A (en) | 2017-09-22 |
| CN107193553Btrue CN107193553B (en) | 2020-09-15 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710288740.3AActiveCN107193553B (en) | 2017-04-27 | 2017-04-27 | Button control method and device |
| Country | Link |
|---|---|
| CN (1) | CN107193553B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107493396A (en)* | 2017-09-28 | 2017-12-19 | 努比亚技术有限公司 | Button screen method, terminal and computer-readable recording medium |
| CN109002438A (en)* | 2018-07-02 | 2018-12-14 | 北京分音塔科技有限公司 | False-touch prevention method, apparatus and translator |
| CN109151181A (en)* | 2018-07-27 | 2019-01-04 | 南昌黑鲨科技有限公司 | Control method, device and the terminal of smart phone function key |
| CN110825293A (en)* | 2018-08-07 | 2020-02-21 | 西安中兴新软件有限责任公司 | Control method, terminal and storage medium |
| CN109597501A (en)* | 2018-12-10 | 2019-04-09 | 深圳市网心科技有限公司 | A kind of shortcut key management method and relevant apparatus |
| CN109857305B (en)* | 2018-12-26 | 2021-02-23 | 维沃移动通信有限公司 | An input response method and mobile terminal |
| CN109847369B (en)* | 2019-03-18 | 2023-05-16 | 网易(杭州)网络有限公司 | Method and device for switching postures of virtual roles in game |
| CN112016076A (en)* | 2019-05-28 | 2020-12-01 | 北京小米移动软件有限公司 | Method and device for controlling computer and electronic device |
| CN112506452A (en)* | 2020-12-02 | 2021-03-16 | 珠海奔图电子有限公司 | Control method of control panel for image forming apparatus, and image forming apparatus |
| CN114879876B (en)* | 2022-04-22 | 2024-03-12 | 湖南孝文电子科技有限公司 | Key mode switching method and device, storage medium and electronic equipment |
| CN114980458A (en)* | 2022-05-16 | 2022-08-30 | 深圳拓邦股份有限公司 | Working state switching method and system, computer readable medium and lighting equipment |
| CN118264257A (en)* | 2024-04-22 | 2024-06-28 | 深圳市华怡丰科技有限公司 | Key scanning method and device of sensor, sensor and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR101608673B1 (en)* | 2009-10-30 | 2016-04-05 | 삼성전자주식회사 | Operation Method for Portable Device including a touch lock state And Apparatus using the same |
| CN102495768B (en)* | 2011-12-14 | 2014-04-02 | 华为终端有限公司 | Instruction processing method and terminal equipment |
| CN102981717B (en)* | 2012-11-12 | 2016-01-13 | 东莞宇龙通信科技有限公司 | Terminal and touch key-press locking means |
| CN103699298A (en)* | 2013-12-16 | 2014-04-02 | 联想(北京)有限公司 | Information processing method and electronic equipment |
| CN105138272B (en)* | 2015-09-14 | 2018-12-07 | Tcl移动通信科技(宁波)有限公司 | A kind of the key activation control device and its method of touch screen |
| CN106325594A (en)* | 2016-08-04 | 2017-01-11 | 北京奇虎科技有限公司 | Locking method and locking device for virtual keys and mobile terminal |
| CN106598630A (en)* | 2016-12-30 | 2017-04-26 | 深圳天珑无线科技有限公司 | Key control method and apparatus, and terminal |
| Publication number | Publication date |
|---|---|
| CN107193553A (en) | 2017-09-22 |
| Publication | Publication Date | Title |
|---|---|---|
| CN107193553B (en) | Button control method and device | |
| CN107562322B (en) | Page switching method and device | |
| CN107908351B (en) | Application interface display method, device and storage medium | |
| CN105975166B (en) | Application control method and device | |
| JP6199510B2 (en) | Method and apparatus for switching display modes | |
| CN105893136B (en) | Multitask management method and device | |
| CN108509232A (en) | Screen recording method, device and computer readable storage medium | |
| US20170060320A1 (en) | Method for controlling a mobile terminal using a side touch panel | |
| US20190235745A1 (en) | Method and device for displaying descriptive information | |
| CN110020313A (en) | Show the method and device of task management interface | |
| CN108073328B (en) | Touch response method and device | |
| CN107885418B (en) | Terminal, split screen display method and device | |
| EP3232301B1 (en) | Mobile terminal and virtual key processing method | |
| CN110968364B (en) | Methods, devices and smart devices for adding shortcut plug-ins | |
| CN107390977A (en) | Button operation method, device and storage medium | |
| US20170293494A1 (en) | Method and device for starting application interface | |
| KR20150122574A (en) | Method and device for executing user instructions | |
| CN111381738B (en) | Interface display method, device, electronic device and storage medium | |
| CN106095285B (en) | Operation execution method and device | |
| CN113361305B (en) | Fingerprint collection method, electronic device and computer-readable storage medium | |
| CN106201250A (en) | Account changing method and device | |
| CN108124058A (en) | information display control method and device | |
| CN106527919A (en) | Method and device for adjusting screen display | |
| CN115129203A (en) | Interface display method and device of application program | |
| CN106610777A (en) | Application starting method and device and mobile terminal |
| 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 |