[go: up one dir, main page]

CN104765466B - Key control method and device for mobile terminal - Google Patents

Key control method and device for mobile terminal Download PDF

Info

Publication number
CN104765466B
CN104765466B CN201510223398.XA CN201510223398A CN104765466B CN 104765466 B CN104765466 B CN 104765466B CN 201510223398 A CN201510223398 A CN 201510223398A CN 104765466 B CN104765466 B CN 104765466B
Authority
CN
China
Prior art keywords
key
button
mobile terminal
interruption signal
duration
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.)
Expired - Fee Related
Application number
CN201510223398.XA
Other languages
Chinese (zh)
Other versions
CN104765466A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510223398.XA priority Critical patent/CN104765466B/en
Publication of CN104765466A publication Critical patent/CN104765466A/en
Application granted granted Critical
Publication of CN104765466B publication Critical patent/CN104765466B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The present invention is applied to technical field of mobile terminals, there is provided the key control method and device of mobile terminal.Methods described includes:When detecting keys interrupt signal, the duration of the keys interrupt signal is monitored;When the duration of the keys interrupt signal being more than preset value, button corresponding to the keys interrupt signal is disabled.The present invention is by when detecting keys interrupt signal, monitor the duration of keys interrupt signal, and when the duration of keys interrupt signal being more than preset value, disable button corresponding to keys interrupt signal, it thus avoid button caused by damaging due to button to be constantly in long-press state, persistently trigger the problem of keys interrupt, so as to which mobile terminal remains to normal use after button damage.

Description

移动终端的按键控制方法及装置Key control method and device for mobile terminal

技术领域technical field

本发明属于移动终端技术领域,尤其涉及移动终端的按键控制方法及装置。The invention belongs to the technical field of mobile terminals, and in particular relates to a key control method and device for a mobile terminal.

背景技术Background technique

每一台移动终端的按键寿命都是有限的,按键也可能由于结构不佳导致卡键,或者由于渗入液体导致按键腐蚀,从而按键一直处于长按状态,持续触发按键中断,使移动终端无法正常使用。例如,音量键一直处于长按状态,导致音量进度条一直显示在当前界面,且音量不断调节;电源键一直处于长按状态,导致一直出现关机重启选项;拍照按键一直处于长按状态,导致不断拍照。因此,需要提出一个新的技术方案,以解决上述技术问题。The key life of each mobile terminal is limited, and the key may also be stuck due to poor structure, or the key may be corroded due to the infiltration of liquid, so the key is always in a long-pressed state, continuously triggering key interruption, so that the mobile terminal cannot work normally. use. For example, the volume button has been in the long-press state, causing the volume progress bar to always be displayed on the current interface, and the volume is constantly adjusted; the power button has been in the long-press state, resulting in the option to shut down and restart; Photograph. Therefore, a new technical solution needs to be proposed to solve the above technical problems.

发明内容Contents of the invention

鉴于此,本发明实施例提供了一种移动终端的按键控制方法及装置,以解决现有技术中由于按键损坏导致按键一直处于长按状态,使移动终端无法正常使用的问题。In view of this, the embodiments of the present invention provide a key control method and device for a mobile terminal to solve the problem in the prior art that the key is always in a long-pressed state due to damage to the key, making the mobile terminal unable to use normally.

一方面,本发明实施例提供了一种移动终端的按键控制方法,包括:On the one hand, an embodiment of the present invention provides a key control method of a mobile terminal, including:

当检测到按键中断信号时,监控所述按键中断信号的持续时间;When a key interruption signal is detected, monitor the duration of the key interruption signal;

当所述按键中断信号的持续时间大于预设值时,禁用所述按键中断信号对应的按键。When the duration of the key interruption signal is greater than a preset value, the key corresponding to the key interruption signal is disabled.

第二方面,本发明实施例提供了一种移动终端的按键控制装置,包括:In a second aspect, an embodiment of the present invention provides a key control device for a mobile terminal, including:

监控单元,用于当检测到按键中断信号时,监控所述按键中断信号的持续时间;A monitoring unit, configured to monitor the duration of the key interruption signal when the key interruption signal is detected;

禁用单元,用于当所述按键中断信号的持续时间大于预设值时,禁用所述按键中断信号对应的按键。The disabling unit is configured to disable the key corresponding to the key interruption signal when the duration of the key interruption signal is greater than a preset value.

本发明实施例与现有技术相比存在的有益效果是:本发明实施例通过当检测到按键中断信号时,监控按键中断信号的持续时间,并当按键中断信号的持续时间大于预设值时,禁用按键中断信号对应的按键,由此避免了由于按键损坏导致的按键一直处于长按状态、持续触发按键中断的问题,从而在按键损坏后移动终端仍能正常使用。Compared with the prior art, the embodiment of the present invention has the following beneficial effects: the embodiment of the present invention monitors the duration of the key interruption signal when the key interruption signal is detected, and when the duration of the key interruption signal is greater than the preset value , disable the button corresponding to the button interrupt signal, thereby avoiding the problem that the button is always in the long-press state and continuously triggering the button interruption due to the button being damaged, so that the mobile terminal can still be used normally after the button is damaged.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the descriptions of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only of the present invention. For some embodiments, those of ordinary skill in the art can also obtain other drawings based on these drawings without paying creative efforts.

图1是本发明实施例提供的移动终端的按键控制方法的实现流程图;Fig. 1 is the implementation flowchart of the button control method of the mobile terminal provided by the embodiment of the present invention;

图2是本发明另一实施例提供的移动终端的按键控制方法的实现流程图;FIG. 2 is an implementation flow chart of a key control method of a mobile terminal provided by another embodiment of the present invention;

图3是本发明实施例提供的移动终端的按键控制装置的结构框图。Fig. 3 is a structural block diagram of a key control device for a mobile terminal provided by an embodiment of the present invention.

具体实施方式Detailed ways

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

图1示出了本发明实施例提供的移动终端的按键控制方法的实现流程图,详述如下:Fig. 1 shows the implementation flowchart of the button control method of the mobile terminal provided by the embodiment of the present invention, detailed description is as follows:

在步骤S101中,当检测到按键中断信号时,监控所述按键中断信号的持续时间。In step S101, when a key interruption signal is detected, the duration of the key interruption signal is monitored.

需要说明的是,本发明实施例中的移动终端可以包括移动电话(或称为“蜂窝”电话)和具有移动终端的计算机,例如,可以是便携式、袖珍式、手持式、计算机内置的或者车载的移动装置,它们与无线接入网交换语言和/或数据。例如,个人通信业务(PersonalCommunication Service,PCS)电话、无绳电话、会话发起协议(Session InitiationProtocol,SIP)话机、无线本地环路(Wireless Local Loop,WLL)站、个人数字助理(Personal Digital Assistant,PDA)等设备,在此不作限定。It should be noted that the mobile terminal in the embodiment of the present invention may include a mobile phone (or called a "cellular" phone) and a computer with a mobile terminal, for example, it may be a portable, pocket, hand-held, computer built-in or vehicle-mounted computer mobile devices that exchange voice and/or data with the radio access network. For example, Personal Communication Service (PCS) phone, cordless phone, Session Initiation Protocol (SIP) phone, Wireless Local Loop (WLL) station, Personal Digital Assistant (PDA) and other equipment are not limited here.

按键中断信号可能由于按键被用户按下而触发,也可能由于按键损坏而自动触发。The key interrupt signal may be triggered because the key is pressed by the user, or it may be triggered automatically because the key is broken.

优选地,所述当检测到按键中断信号时,监控所述按键中断信号的持续时间具体为:Preferably, when the key interruption signal is detected, the duration of monitoring the key interruption signal is specifically:

在接收到按键监控指令后,若检测到按键中断信号,则监控所述按键中断信号的持续时间。After receiving the key monitoring instruction, if a key interruption signal is detected, monitor the duration of the key interruption signal.

在这里,接收按键监控指令可以为,接收用户通过移动终端上预设按钮或已有的按钮中一个按钮或者多个按钮的组合发出的按键监控指令;或者,接收用户通过移动终端触摸屏发出的按键监控指令(例如逆时针滑动两圈)。若接收到用户输入的按键监控指令,则表明此时移动终端的某一个或多个按键存在故障,需要进行监控。可选地,在接收到按键监控指令后,若在正常开机模式、工厂模式和/或快速启动模式中检测到按键中断信号,则启动定时器,监控按键中断信号的持续时间。在这里,按键中断信号的持续时间指的是按键被按下的持续时间。Here, receiving the button monitoring instruction may be receiving a button monitoring instruction sent by the user through a preset button or a combination of buttons or a plurality of buttons in the existing buttons on the mobile terminal; or receiving a button sent by the user through the touch screen of the mobile terminal Monitor commands (e.g. slide two turns counterclockwise). If a button monitoring instruction input by the user is received, it indicates that one or more buttons of the mobile terminal are faulty and need to be monitored. Optionally, after receiving the button monitoring instruction, if a button interrupt signal is detected in normal boot mode, factory mode and/or quick start mode, a timer is started to monitor the duration of the button interrupt signal. Here, the duration of the key interrupt signal refers to the duration of the key being pressed.

在步骤S102中,当所述按键中断信号的持续时间大于预设值时,禁用所述按键中断信号对应的按键。In step S102, when the duration of the key interruption signal is greater than a preset value, the key corresponding to the key interruption signal is disabled.

例如,预设值可以为10秒,在此不做限定。在按键未损坏的情况下,按键中断信号的持续时间一般不会超过预设值,即按键被按下的持续时间一般不会超过预设值。当按键中断信号的持续时间大于预设值时,在很大程度上表明该按键中断信号对应的按键已损坏,因此,禁用按键中断信号对应的按键。禁用按键中断信号对应的按键指的是忽略该按键的按键中断信号,不对该按键的按键中断信号进行处理。For example, the preset value may be 10 seconds, which is not limited here. In the case that the key is not damaged, the duration of the key interruption signal generally does not exceed the preset value, that is, the duration of the key being pressed generally does not exceed the preset value. When the duration of the key interruption signal is greater than the preset value, it largely indicates that the key corresponding to the key interruption signal is damaged, and therefore, the key corresponding to the key interruption signal is disabled. Disabling the button corresponding to the button interrupt signal refers to ignoring the button interrupt signal of the button, and not processing the button interrupt signal of the button.

图2示出了本发明另一实施例提供的移动终端的按键控制方法的实现流程图,参照图2:Fig. 2 shows the implementation flowchart of the button control method of the mobile terminal provided by another embodiment of the present invention, referring to Fig. 2:

在步骤S201中,当检测到按键中断信号时,监控所述按键中断信号的持续时间;In step S201, when a key interruption signal is detected, monitor the duration of the key interruption signal;

在步骤S202中,当所述按键中断信号的持续时间大于预设值时,禁用所述按键中断信号对应的按键;In step S202, when the duration of the key interruption signal is greater than a preset value, disable the key corresponding to the key interruption signal;

在步骤S203中,在所述移动终端的触摸屏上设置虚拟按键,所述虚拟按键用于执行所述按键中断信号对应的按键的功能。In step S203, a virtual key is set on the touch screen of the mobile terminal, and the virtual key is used to execute the function of the key corresponding to the key interruption signal.

作为本发明的一个实施例,在禁用按键中断信号对应的按键后,在移动终端的触摸屏上设置虚拟按键,并将该按键中断信号对应的按键的功能映射到该虚拟按键上,以通过该虚拟按键完成该按键中断信号对应的按键的功能,从而在按键损坏的情况下,移动终端也能正常使用。As an embodiment of the present invention, after the button corresponding to the button interrupt signal is disabled, a virtual button is set on the touch screen of the mobile terminal, and the function of the button corresponding to the button interrupt signal is mapped to the virtual button, so as to pass the virtual button. The button completes the function of the button corresponding to the button interrupt signal, so that the mobile terminal can be used normally even if the button is damaged.

可选地,在所述禁用所述按键中断信号对应的按键之后,所述方法还包括:Optionally, after the key corresponding to the key interruption signal is disabled, the method further includes:

当所述按键中断信号对应的按键为电源键时,对指定按键增加开机功能,以在所述移动终端关机后,通过所述指定按键进行开机。When the key corresponding to the key interruption signal is a power key, a power-on function is added to the designated key, so that the mobile terminal can be powered on through the designated key after the mobile terminal is shut down.

在这里,指定按键可以为除电源键以外的任意一个物理按键。作为本发明的一个实施例,当按键中断信号对应的按键为电源键时,对指定按键增加开机功能,以在移动终端关机后,通过该指定按键进行开机,从而在电源键损坏的情况下,仍能正常开机。Here, the specified key may be any physical key except the power key. As an embodiment of the present invention, when the button corresponding to the button interrupt signal is a power button, a power-on function is added to the designated button, so that after the mobile terminal is shut down, the designated button is used to start the computer, so that when the power button is damaged, Still able to boot normally.

可选地,在所述禁用所述按键中断信号对应的按键之后,所述方法还包括:Optionally, after the key corresponding to the key interruption signal is disabled, the method further includes:

当所述按键中断信号对应的按键为电源键时,在所述移动终端关机后,若检测到所述移动终端进入充电状态,则直接开机。When the button corresponding to the button interruption signal is a power button, after the mobile terminal is turned off, if it is detected that the mobile terminal is in a charging state, it will be turned on directly.

作为本发明的另一个实施例,当按键中断信号对应的按键为电源键时,在移动终端关机后,若检测到移动终端进入充电状态,则直接开机,从而在电源键损坏的情况下,仍能正常开机。As another embodiment of the present invention, when the key corresponding to the key interruption signal is the power key, after the mobile terminal is turned off, if it is detected that the mobile terminal enters the charging state, it will be turned on directly, so that the power key is damaged. Can boot normally.

应理解,在本发明实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that in the embodiment of the present invention, the sequence numbers of the above-mentioned processes do not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, rather than the implementation process of the embodiment of the present invention. constitute any limitation.

本发明实施例通过当检测到按键中断信号时,监控按键中断信号的持续时间,并当按键中断信号的持续时间大于预设值时,禁用按键中断信号对应的按键,由此避免了由于按键损坏导致的按键一直处于长按状态、持续触发按键中断的问题,从而在按键损坏后移动终端仍能正常使用。The embodiment of the present invention monitors the duration of the key interruption signal when the key interruption signal is detected, and when the duration of the key interruption signal is greater than the preset value, disables the key corresponding to the key interruption signal, thus avoiding damage to the key. As a result, the button is always in a long-pressed state and continuously triggers button interruption, so that the mobile terminal can still be used normally after the button is damaged.

图3示出了本发明实施例提供的移动终端的按键控制装置的结构框图,该装置可以用于运行图1或图2所示的移动终端的按键控制方法。为了便于说明,仅示出了与本发明实施例相关的部分。FIG. 3 shows a structural block diagram of a device for controlling keys of a mobile terminal provided by an embodiment of the present invention, and the device can be used to run the method for controlling keys of a mobile terminal shown in FIG. 1 or 2 . For ease of description, only parts related to the embodiments of the present invention are shown.

参照图3,该装置包括:Referring to Figure 3, the device includes:

监控单元31,用于当检测到按键中断信号时,监控所述按键中断信号的持续时间;A monitoring unit 31, configured to monitor the duration of the key interruption signal when the key interruption signal is detected;

禁用单元32,用于当所述按键中断信号的持续时间大于预设值时,禁用所述按键中断信号对应的按键。The disabling unit 32 is configured to disable the key corresponding to the key interruption signal when the duration of the key interruption signal is greater than a preset value.

优选地,所述装置还包括:Preferably, the device also includes:

虚拟按键设置单元33,用于在所述移动终端的触摸屏上设置虚拟按键,所述虚拟按键用于执行所述按键中断信号对应的按键的功能。The virtual key setting unit 33 is configured to set a virtual key on the touch screen of the mobile terminal, and the virtual key is used to execute the function of the key corresponding to the key interruption signal.

可选地,所述装置还包括:Optionally, the device also includes:

第一开机设置单元34,用于当所述按键中断信号对应的按键为电源键时,对指定按键增加开机功能,以在所述移动终端关机后,通过所述指定按键进行开机。The first power-on setting unit 34 is configured to add a power-on function to a designated key when the key corresponding to the key interruption signal is a power key, so that the mobile terminal can be powered on through the designated key after the mobile terminal is shut down.

可选地,所述装置还包括:Optionally, the device also includes:

第二开机设置单元35,用于当所述按键中断信号对应的按键为电源键时,在所述移动终端关机后,若检测到所述移动终端进入充电状态,则直接开机。The second power-on setting unit 35 is configured to directly power on the mobile terminal if it is detected that the mobile terminal is in a charging state after the mobile terminal is powered off when the key corresponding to the key interruption signal is a power key.

优选地,所述监控单元31具体用于:Preferably, the monitoring unit 31 is specifically used for:

在接收到按键监控指令后,若检测到按键中断信号,则监控所述按键中断信号的持续时间。After receiving the key monitoring instruction, if a key interruption signal is detected, monitor the duration of the key interruption signal.

本发明实施例通过当检测到按键中断信号时,监控按键中断信号的持续时间,并当按键中断信号的持续时间大于预设值时,禁用按键中断信号对应的按键,由此避免了由于按键损坏导致的按键一直处于长按状态、持续触发按键中断的问题,从而在按键损坏后移动终端仍能正常使用。The embodiment of the present invention monitors the duration of the key interruption signal when the key interruption signal is detected, and when the duration of the key interruption signal is greater than the preset value, disables the key corresponding to the key interruption signal, thus avoiding damage to the key. As a result, the button is always in a long-pressed state and continuously triggers button interruption, so that the mobile terminal can still be used normally after the button is damaged.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the above-described devices and units can refer to the corresponding process in the foregoing method embodiments, and details are not repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes. .

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (6)

1.一种移动终端的按键控制方法,其特征在于,包括:1. A button control method of a mobile terminal, characterized in that, comprising: 当检测到按键中断信号时,监控所述按键中断信号的持续时间,包括:在接收到按键监控指令后,若检测到按键中断信号,则监控所述按键中断信号的持续时间;其中,接收按键监控指令为,接收用户通过移动终端上预设按钮或已有的按钮中一个按钮或者多个按钮的组合发出的按键监控指令;或者,接收用户通过移动终端触摸屏发出的按键监控指令;When the key interruption signal is detected, monitoring the duration of the key interruption signal includes: after receiving the key monitoring instruction, if the key interruption signal is detected, then monitoring the duration of the key interruption signal; wherein, receiving the key The monitoring instruction is to receive the button monitoring instruction sent by the user through a preset button or a combination of buttons or a plurality of buttons in the existing buttons on the mobile terminal; or receive the button monitoring instruction sent by the user through the touch screen of the mobile terminal; 当所述按键中断信号的持续时间大于预设值时,禁用所述按键中断信号对应的按键;其中,禁用按键中断信号对应的按键指的是忽略该按键的按键中断信号,不对该按键的按键中断信号进行处理;When the duration of the button interrupt signal is greater than the preset value, the button corresponding to the button interrupt signal is disabled; wherein, disabling the button corresponding to the button interrupt signal refers to ignoring the button interrupt signal of the button, and not pressing the button corresponding to the button Interrupt signal processing; 在所述禁用所述按键中断信号对应的按键之后,所述方法还包括:After the key corresponding to the key interruption signal is disabled, the method further includes: 在所述移动终端的触摸屏上设置虚拟按键,所述虚拟按键用于执行所述按键中断信号对应的按键的功能。A virtual key is set on the touch screen of the mobile terminal, and the virtual key is used to execute the function of the key corresponding to the key interruption signal. 2.如权利要求1所述的方法,其特征在于,在所述禁用所述按键中断信号对应的按键之后,所述方法还包括:2. The method according to claim 1, wherein after the key corresponding to the key interruption signal is disabled, the method further comprises: 当所述按键中断信号对应的按键为电源键时,对指定按键增加开机功能,以在所述移动终端关机后,通过所述指定按键进行开机。When the key corresponding to the key interruption signal is a power key, a power-on function is added to the designated key, so that the mobile terminal can be powered on through the designated key after the mobile terminal is shut down. 3.如权利要求1所述的方法,其特征在于,在所述禁用所述按键中断信号对应的按键之后,所述方法还包括:3. The method according to claim 1, wherein after the key corresponding to the key interruption signal is disabled, the method further comprises: 当所述按键中断信号对应的按键为电源键时,在所述移动终端关机后,若检测到所述移动终端进入充电状态,则直接开机。When the button corresponding to the button interruption signal is a power button, after the mobile terminal is turned off, if it is detected that the mobile terminal is in a charging state, it will be turned on directly. 4.一种移动终端的按键控制装置,其特征在于,包括:4. A button control device for a mobile terminal, characterized in that it comprises: 监控单元,用于当检测到按键中断信号时,监控所述按键中断信号的持续时间;A monitoring unit, configured to monitor the duration of the key interruption signal when the key interruption signal is detected; 禁用单元,用于当所述按键中断信号的持续时间大于预设值时,禁用所述按键中断信号对应的按键;其中,禁用按键中断信号对应的按键指的是忽略该按键的按键中断信号,不对该按键的按键中断信号进行处理;The disabling unit is configured to disable the key corresponding to the key interruption signal when the duration of the key interruption signal is greater than a preset value; wherein, disabling the key corresponding to the key interruption signal refers to ignoring the key interruption signal of the key, Do not process the key interrupt signal of the key; 所述监控单元具体用于:The monitoring unit is specifically used for: 在接收到按键监控指令后,若检测到按键中断信号,则监控所述按键中断信号的持续时间;其中,接收按键监控指令为,接收用户通过移动终端上预设按钮或已有的按钮中一个按钮或者多个按钮的组合发出的按键监控指令;或者,接收用户通过移动终端触摸屏发出的按键监控指令;After receiving the button monitoring instruction, if the button interruption signal is detected, then monitor the duration of the button interruption signal; wherein, receiving the button monitoring instruction is to receive the user through a preset button on the mobile terminal or one of the existing buttons A key monitoring command sent by a button or a combination of multiple buttons; or, receiving a key monitoring command sent by a user through a touch screen of a mobile terminal; 所述装置还包括:The device also includes: 虚拟按键设置单元,用于在所述移动终端的触摸屏上设置虚拟按键,所述虚拟按键用于执行所述按键中断信号对应的按键的功能。The virtual key setting unit is configured to set a virtual key on the touch screen of the mobile terminal, and the virtual key is used to execute the function of the key corresponding to the key interruption signal. 5.如权利要求4所述的装置,其特征在于,所述装置还包括:5. The device of claim 4, further comprising: 第一开机设置单元,用于当所述按键中断信号对应的按键为电源键时,对指定按键增加开机功能,以在所述移动终端关机后,通过所述指定按键进行开机。The first power-on setting unit is configured to add a power-on function to a designated key when the key corresponding to the key interruption signal is a power key, so that the mobile terminal can be powered on through the designated key after the mobile terminal is shut down. 6.如权利要求4所述的装置,其特征在于,所述装置还包括:6. The device of claim 4, further comprising: 第二开机设置单元,用于当所述按键中断信号对应的按键为电源键时,在所述移动终端关机后,若检测到所述移动终端进入充电状态,则直接开机。The second power-on setting unit is configured to directly power on the mobile terminal after it is detected that the mobile terminal is in a charging state after the mobile terminal is powered off when the key corresponding to the key interruption signal is a power key.
CN201510223398.XA 2015-05-04 2015-05-04 Key control method and device for mobile terminal Expired - Fee Related CN104765466B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510223398.XA CN104765466B (en) 2015-05-04 2015-05-04 Key control method and device for mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510223398.XA CN104765466B (en) 2015-05-04 2015-05-04 Key control method and device for mobile terminal

Publications (2)

Publication Number Publication Date
CN104765466A CN104765466A (en) 2015-07-08
CN104765466B true CN104765466B (en) 2018-01-26

Family

ID=53647352

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510223398.XA Expired - Fee Related CN104765466B (en) 2015-05-04 2015-05-04 Key control method and device for mobile terminal

Country Status (1)

Country Link
CN (1) CN104765466B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105376377A (en) * 2015-10-09 2016-03-02 广东欧珀移动通信有限公司 Physical button processing method and device
CN107155003A (en) * 2017-04-26 2017-09-12 深圳天珑无线科技有限公司 The emergency processing method and its system of a kind of physical button
CN107168828A (en) * 2017-04-26 2017-09-15 深圳天珑无线科技有限公司 A kind of utilization sensor circuit realizes the method and its system of button switching
CN107515754A (en) * 2017-08-24 2017-12-26 北京小米移动软件有限公司 System startup separator processing method, device and storage medium
CN108337372B (en) * 2018-01-19 2020-06-02 Oppo广东移动通信有限公司 Electronic device, physical key detection method, device, and computer-readable storage medium
CN109077685B (en) * 2018-07-17 2021-07-27 佛山市顺德区美的洗涤电器制造有限公司 Key control method and device of dish washing machine and computer readable storage medium
CN109040437A (en) * 2018-07-18 2018-12-18 奇酷互联网络科技(深圳)有限公司 The method and apparatus of mobile terminal and its test earphone exception
CN109831567B (en) * 2018-11-15 2021-01-19 芯海科技(深圳)股份有限公司 Method and system for improving reliability of pressure sensing power key of mobile terminal
CN109743449A (en) * 2018-12-27 2019-05-10 维沃移动通信有限公司 A virtual key display method and terminal
CN113946226A (en) * 2020-07-15 2022-01-18 炬芯科技股份有限公司 Key processing method and device, readable storage medium and electronic equipment
CN113054979B (en) * 2021-02-26 2024-09-13 深圳前海云充科技有限公司 Key fool-proof control method and device, computer equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103686356A (en) * 2013-12-10 2014-03-26 深圳Tcl新技术有限公司 Method and device for adjusting key values
CN104281410A (en) * 2009-08-18 2015-01-14 佳能株式会社 Information processing apparatus, control method therefor

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101896875B (en) * 2007-08-30 2013-12-18 雷蛇(亚太)私人有限公司 Keys deactivation system and method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104281410A (en) * 2009-08-18 2015-01-14 佳能株式会社 Information processing apparatus, control method therefor
CN103686356A (en) * 2013-12-10 2014-03-26 深圳Tcl新技术有限公司 Method and device for adjusting key values

Also Published As

Publication number Publication date
CN104765466A (en) 2015-07-08

Similar Documents

Publication Publication Date Title
CN104765466B (en) Key control method and device for mobile terminal
WO2017101047A1 (en) Charging control method and device, power adapter, and mobile terminal
CN104679336B (en) Adjust the method and device of touch-screen parameter
CN106331372B (en) Data transmission method and mobile terminal
EP3557942A1 (en) Automatically enabling wireless communication
CN106453511A (en) A data backup method and device
CN103685730B (en) The communication control method of a kind of mobile terminal and mobile terminal thereof
CN106484326A (en) A data transmission processing method and mobile terminal
CN106569910A (en) Data backup and transmission method, and mobile terminal
CN106658753A (en) Data migration method and terminal equipment
CN105162930B (en) The way of recording and device of mobile terminal
CN105100361B (en) The way of recording and device of mobile terminal
CN105282450A (en) Camera switching method and device and terminal equipment
CN106980554A (en) A kind of process handling method and device
CN106980558A (en) Backup data cleaning method and mobile terminal
CN107066859A (en) A fingerprint unlocking method and device
CN106502827A (en) A data backup method and device
CN111770522B (en) Method, device, terminal and storage medium for identifying data dialing abnormality
KR102757228B1 (en) Method and device for maintaining continuity of on-going session through wired or wireless interface
CN108475097B (en) Electric quantity management method and terminal equipment
CN107071153B (en) Fingerprint module mode switching method and device
CN106648205A (en) Dormancy control method, device and terminal
CN104080104B (en) communication control method and user equipment
CN104954567B (en) The power consumption control method and device of mobile terminal
CN105262894B (en) The way of recording and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523841 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180126