CN113552993A - Key-based instruction triggering method and device, storage medium and terminal equipment - Google Patents

Key-based instruction triggering method and device, storage medium and terminal equipment Download PDF

Info

Publication number
CN113552993A
CN113552993A CN202010337576.2A CN202010337576A CN113552993A CN 113552993 A CN113552993 A CN 113552993A CN 202010337576 A CN202010337576 A CN 202010337576A CN 113552993 A CN113552993 A CN 113552993A
Authority
CN
China
Prior art keywords
keys
key
target key
instruction
event
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010337576.2A
Other languages
Chinese (zh)
Other versions
CN113552993B (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.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN202010337576.2A priority Critical patent/CN113552993B/en
Publication of CN113552993A publication Critical patent/CN113552993A/en
Application granted granted Critical
Publication of CN113552993B publication Critical patent/CN113552993B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/004Error avoidance
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

The embodiment of the application discloses a button-based instruction triggering method and device, a storage medium and terminal equipment, and belongs to the field of interactive control. When a plurality of keys are detected to be pressed simultaneously, states of the keys are detected, if a lifting event occurs to a target key in the keys but other keys are still in a pressed state, an instruction is generated according to pressing operation occurring on the target key, and a function indicated by the instruction is executed. Therefore, the user presses the keys through a plurality of fingers to realize accurate positioning of the keys, and false triggering of the case by the user during blind operation is reduced.

Description

Key-based instruction triggering method and device, storage medium and terminal equipment
Technical Field
The present application relates to the field of interactive control, and in particular, to a method and an apparatus for instructing based on a key, a storage medium, and a terminal device.
Background
The terminal device is generally provided with an entity key, a user executes corresponding operation by pressing the entity key, and for some terminal devices, the user cannot see the position of the key during operation and can only click the key by blind operation, for example: the head-wearing type equipment such as bluetooth headset, AR glasses are all worn on the head, and the touch button on it generally sets up on the side face position again, and is unseen, and it is also very inconvenient to operate, and the key still need rely on the sensation to operate, causes the false triggering of button very easily.
Disclosure of Invention
The embodiment of the application provides a key-based instruction triggering method, a key-based instruction triggering device, a storage medium and a terminal device, which can reduce the possibility of false triggering caused by blind operation of a key. The technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a method for triggering an instruction based on a key, where the method includes:
detecting the state of each key in the N keys when the N keys simultaneously generate a pressing event; wherein N is an integer greater than or equal to 2;
detecting the state of a target key when a lifting event occurs on the target key; the target key is any one of the N keys;
generating a first instruction when a first pressing operation occurs on the target key within a first preset time length; the first pressing operation comprises a pressing event and a lifting event, and the time interval between the pressing event and the lifting event is less than a second preset time length;
the function indicated by the first instruction is known.
In a second aspect, an embodiment of the present application provides a button-based instruction triggering apparatus, where the apparatus includes:
the device comprises a detection unit, a processing unit and a display unit, wherein the detection unit is used for detecting the state of each key in N keys when the N keys simultaneously generate a pressing event; wherein N is an integer greater than or equal to 2;
detecting the state of a target key when a lifting event occurs on the target key; the target key is any one of the N keys;
the generating unit is used for generating a first instruction when a first pressing operation occurs on the target key within a first preset time length; the pressing operation comprises a pressing event and a lifting event, and the time interval between the pressing event and the lifting event is less than a second preset time length;
and the execution unit is used for executing the function indicated by the first instruction.
In a third aspect, embodiments of the present application provide a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the above-mentioned method steps.
In a fourth aspect, an embodiment of the present application provides a terminal device, including: the device comprises a processor, a memory and N keys; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the above-mentioned method steps.
The beneficial effects brought by the technical scheme provided by some embodiments of the application at least comprise:
when a plurality of keys are detected to be pressed simultaneously, states of the keys are detected, if a lifting event occurs to a target key in the keys but other keys are still in a pressed state, an instruction is generated according to pressing operation occurring on the target key, and a function indicated by the instruction is executed. Therefore, the user can accurately determine the target key to be clicked by pressing the key through a plurality of fingers to realize the accurate positioning of the key, and then execute the corresponding function on the pressing of one key in the keys, so that the possibility of carrying out false triggering on the key in full operation is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a key-based instruction triggering method according to an embodiment of the present disclosure;
fig. 2 is a schematic distribution diagram of keys on a terminal device provided in the present application;
fig. 3 is another schematic flow chart of a key-based instruction triggering method according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a key-based instruction triggering device according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the application, as detailed in the appended claims.
In the description of the present application, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
In order to make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The terminal devices of the present application include but are not limited to: wearable devices (such as VR glasses, AR glasses, smart watches, etc.), Mobile stations (MS, Mobile Station), Mobile Terminal devices (Mobile Terminal), Mobile phones (Mobile phone), Mobile phones (handset), portable devices (portable equipment), etc., where the Terminal devices may communicate with one or more core networks via a Radio Access Network (RAN), for example, the Terminal devices may be Mobile phones (or "cellular" phones), computers with wireless communication functions, etc., and the Terminal devices may also be portable, pocket, hand-held, computer-embedded, or vehicle-mounted Mobile devices or devices. The terminal device is generally provided with a plurality of physical keys, and a user clicks the keys to perform functions such as volume control, power on/off or photographing. On some terminal devices, a plurality of keys are arranged side by side in a straight line, and the interval between two adjacent keys is small. If the user performs blind operation on a plurality of keys, the user cannot see the positions of the correctly estimated keys, which is easy to cause false triggering of the keys.
Referring to fig. 1, a schematic flow chart of a key-based instruction triggering method is provided in an embodiment of the present application. The present embodiment is exemplified by applying a processing method of instruction triggering to a terminal device, where the instruction triggering method based on a key may include the following steps:
s101, detecting the state of each key in the N keys when the N keys are pressed simultaneously.
The terminal equipment is provided with N entity keys, the types of the keys can be touch keys or mechanical keys, when a user presses the keys, a pressing event can occur on the keys firstly, and then a lifting event occurs on the keys after a certain time. The terminal device may measure the magnitude of the level on the key to detect a press event or a lift event occurring on the key. In an initial state, N keys arranged on the terminal equipment are all in an un-pressed state, and when the terminal equipment detects that pressing events simultaneously occur on the N keys, the state of each key in the N keys is detected. It should be noted that, in this embodiment, it is not necessarily required that the N keys are pressed at the same time point, a certain time error may be allowed, and as long as an error between the time points of the N key press events is smaller than the duration threshold, it is considered that the N keys are pressed by the user at the same time, that is, the terminal detects that the N keys are pressed at the same time, and the specific duration threshold may be determined according to actual requirements, which is not limited in this embodiment.
When the N keys are pressed simultaneously, the terminal detects the states of the keys in the N keys, mainly detects which key in the N keys is switched from the pressed state to the lifted state, and the detection mode can be realized by detecting the level.
In one or more embodiments, the method further comprises:
when the N keys are all in a lifted state, generating a second instruction when detecting that a second pressing operation occurs on any one key in the N keys; and executing the function indicated by the second instruction.
And the second pressing operation consists of a pressing event and a lifting event, N keys arranged on the terminal are all in a lifting state under the condition that the user does not perform any key operation on the terminal equipment, at the moment, the terminal equipment detects that the pressing event occurs on any key in the N keys, then determines a corresponding function according to the ID of the key when the lifting event occurs on the key, and then executes the function.
S102, detecting the state of the target key when the lifting event occurs on the target key.
When the target key is lifted, namely a user releases the pressing of the target key, the target key is switched from a pressed state to a lifted state, and in the process of switching the pressed state of the target key to the lifted state, other keys except the target key in the N keys are still kept in the pressed state. The terminal detects the state of the target key, mainly detects whether the target key is switched from the lifting state to the pressing state again.
In one or more embodiments, the detecting the state of the target key includes:
when the fact that the level of the target key is switched from a first level to a second level is detected, determining that a pressing event occurs on the target key;
and when the fact that the level of the target key is switched from the second level to the first level is detected, determining that a lifting event occurs on the target key.
The first level and the second level may be determined according to actual requirements, the first level may be greater than the second level or smaller than the second level, and a difference between the first level and the second level should be large, so that sufficient discrimination is ensured.
S103, generating a first instruction when a first pressing operation occurs on the target key.
The first pressing operation consists of two processes of a pressing event and a lifting event, and under the condition that other keys except for the target key in the N keys are still in a pressed state, if the first pressing operation occurs on the target key, a first instruction is generated, and the function of the first instruction can be determined according to actual requirements, for example: the first command has the functions of volume control, photographing, video recording or power on and off. In addition, the time interval between the pressing event and the lifting event in the first pressing operation is smaller than a first preset time, and the first pressing operation is a short pressing operation, the size of the first preset time may be determined according to an actual requirement, which is not limited in this embodiment.
In one or more embodiments, further comprising:
and before the first pressing operation is finished, stopping detecting the states of the N keys if the other keys except the target key in the N keys are lifted.
The first pressing operation is composed of a pressing event and a lifting event, namely, if other keys except the target key in the N keys are switched from a pressing state to a lifting state before the lifting event is completed, the terminal equipment does not generate and execute the first instruction, and the terminal equipment stops detecting the states of the N keys.
In one or more embodiments, when the keys other than the target key of the N keys are pressed, a time interval between the lift event occurring on the target key and the first pressing operation should be less than a second duration threshold, and the size of the second duration threshold may be determined according to actual requirements.
And S104, executing the function indicated by the first instruction.
And the terminal equipment determines the ID of the target key and the function corresponding to the pressing mode according to the preset mapping relation and executes the function.
The following describes, by way of example, the key-based instruction triggering method according to the present application with reference to fig. 2, where the terminal device in fig. 2 is an AR glasses, the AR glasses are provided with 3 physical keys, that is, a key 1, a key 2, and a key 3 from left to right, and a forefinger in fig. 2 corresponds to the key 1, a middle finger corresponds to the key 2, and a ring finger corresponds to the key 3. Optionally, 3 buttons on the AR glasses are arranged in a straight line, and the AR glasses are further provided with a blind guiding column, so that a user can conveniently position the buttons during blind operation, and the blind guiding column can be arranged in front of or behind the 3 buttons. When a user does not perform any key operation on the AR glasses, keys 1 to 3 on the AR glasses are all in a lifted state, when the index finger, the middle finger and the ring finger of the user simultaneously press the 3 keys, when the AR glasses detect that the keys 1 to 3 simultaneously press down events, the AR glasses detect the states of the keys 1 to 3, and when the AR glasses detect that one key in the keys 1 to 3 is lifted up and other cases are still in a pressed state, the state of the key is detected; assuming that the target key is the key 2, when the key 1 and the case 3 are in a pressed state and the lift event occurs on the key 2, the AR glasses detect the states of the keys 1 to 3 to be continuously detected, when the first pressing operation occurs on the key 2, a first instruction is generated according to the ID of the key 2, the AR glasses execute the function indicated by the first instruction, and the key 1 and the key 3 are always in a pressed state before the first pressing operation is completed. If at least one key in the keys 1 and 3 is lifted before the first pressing operation is finished, a first instruction is not generated, and the states of the keys are continuously detected.
As can be seen from the above, when a simultaneous pressing event of multiple keys is detected, the states of the multiple keys are detected, and if a lifting event occurs to a target key of the multiple keys but other keys are still in a pressed state, an instruction is generated according to the pressing operation occurring on the target key, and a function instructed by the instruction is executed. Therefore, the user can accurately determine the target key to be clicked by pressing the key through a plurality of fingers to realize the accurate positioning of the key, and then execute the corresponding function on the pressing of one key in the keys, so that the possibility of carrying out false triggering on the key in full operation is reduced.
Referring to fig. 3, another schematic flow chart of a key-based instruction triggering method is provided in an embodiment of the present application. The present embodiment is exemplified by applying a button-based instruction triggering method to a terminal device. The instruction triggering method based on the key can comprise the following steps:
s301, the N keys are all in a lifting state.
The terminal equipment is provided with N entity keys, and in an initial state, a user does not perform any key operation on the terminal equipment, and the N keys are all in a lifting state.
S302, when the N keys are pressed simultaneously, the state of each key in the N keys is detected.
In this embodiment, it is not necessarily required that the N keys are pressed at the same time point, a certain time error may be allowed, and as long as an error between the time points of the N key press events is smaller than the duration threshold, it is considered that the N keys are pressed by the user at the same time, that is, the terminal detects that the N keys are pressed at the same time, and the specific duration threshold may be determined according to actual requirements, which is not limited in this embodiment.
For example: the time of the pressing event on the key 1 is t1, the time of the pressing event on the key 2 is t2, the time of the pressing event on the key 3 is t3, and the time threshold value is 0.1ms, and the simultaneous pressing events on the key 1, the key 2 and the key 3 are determined as long as the time interval between any two times of t1, t2 and t3 is less than 0.1ms of the time threshold value.
And S303, detecting the state of the target key when the lifting event occurs on the target key.
When the target key is lifted, namely a user releases the pressing of the target key, the target key is switched from a pressed state to a lifted state, and in the process of switching the pressed state of the target key to the lifted state, other keys except the target key in the N keys are still kept in the pressed state. The terminal detects the state of the target key, mainly detects whether the target key is switched from the lifting state to the pressing state again.
S304, generating a first instruction when the first pressing operation is generated on the target key.
The first pressing operation consists of two processes of a pressing event and a lifting event, and under the condition that other keys except for the target key in the N keys are still in a pressed state, if the first pressing operation occurs on the target key, a first instruction is generated, and the function of the first instruction can be determined according to actual requirements, for example: the first command has the functions of volume control, photographing, video recording or power on and off. In addition, the time interval between the pressing event and the lifting event in the first pressing operation is smaller than a first preset time, and the first pressing operation is a short pressing operation, the size of the first preset time may be determined according to an actual requirement, which is not limited in this embodiment.
S305, executing the function indicated by the first instruction.
S306, generating a second instruction when detecting a second key operation on any one of the N keys.
If detecting that a second key operation occurs on any one of the N keys when the N keys are in the lifted state, generating a corresponding second instruction according to the ID of the key
And S307, executing the function indicated by the second instruction.
And S308, if the time interval between the pressing event and the lifting event in the first pressing operation is greater than or equal to the first time length threshold value, generating a third instruction.
And S309, executing the function indicated by the third instruction.
S310, before the first pressing operation is finished, if the lifting event happens to the cases except the target key in the N keys, the states of the N keys are continuously detected
According to the embodiment of the application, when the simultaneous pressing events of the plurality of keys are detected, the states of the plurality of keys are detected, if the lifting event of one target key in the plurality of keys occurs but other keys are still in the pressing state, the instruction is generated according to the pressing operation on the target key, and the function indicated by the instruction is executed. Therefore, the user can accurately determine the target key to be clicked by pressing the key through a plurality of fingers to realize the accurate positioning of the key, and then execute the corresponding function on the pressing of one key in the keys, so that the possibility of carrying out false triggering on the key in full operation is reduced.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Referring to fig. 4, a schematic structural diagram of a key-based instruction triggering device according to an exemplary embodiment of the present application is shown, which is hereinafter referred to as device 4. The apparatus 4 may be implemented as all or part of a terminal device by software, hardware or a combination of both. The apparatus 4 is applied to a terminal device, and the apparatus 4 includes: a detection unit 401, a generation unit 402 and an execution unit 403.
A detecting unit 401, configured to detect a state of each key of N keys when N keys simultaneously have a pressing event; wherein N is an integer greater than or equal to 2;
detecting the state of a target key when a lifting event occurs on the target key; the target key is any one of the N keys, and other keys except the target key in the N keys are kept in a pressed state;
a generating unit 402, configured to generate a first instruction when a first pressing operation occurs on the target key; the pressing operation comprises a pressing event and a lifting event, and the time interval between the pressing event and the lifting event is smaller than a first time threshold;
an execution unit 403, configured to execute the function indicated by the first instruction.
In one or more embodiments of the present invention,
the generating unit 402 is further configured to generate a second instruction when detecting that a second pressing operation occurs on any one of the N keys when the N keys are all in the lifted state;
and the execution unit 403 is further configured to execute the function indicated by the second instruction.
In one or more embodiments of the present invention,
the detecting unit 401 is further configured to detect states of the N keys if a lift event occurs on other keys of the N keys except the target key before the first pressing operation is completed.
In one or more embodiments, a time interval between the occurrence of the lift event on the target key and the first press operation is less than a second time threshold.
In one or more embodiments of the present invention,
a generating unit 402, configured to generate a third instruction when a time interval between a press-down event and a lift-up event in the first press operation is greater than or equal to a first duration threshold;
and the execution unit 403 is further configured to execute the operation performed by the third instruction.
In one or more embodiments, the first instruction is used to perform a volume control operation, a power-on/off operation, a photographing operation, or a video recording operation.
In one or more embodiments, the detecting the state of the target key includes:
when the fact that the level of the target key is switched from a first level to a second level is detected, determining that a pressing event occurs on the target key;
and when the fact that the level of the target key is switched from the second level to the first level is detected, determining that a lifting event occurs on the target key.
It should be noted that, when the instruction triggering device based on a key provided in the foregoing embodiment executes the instruction triggering method based on a key, the division of the functional modules is merely used as an example, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the functions described above. In addition, the instruction triggering device based on the key provided by the above embodiment and the instruction triggering method based on the key provided by the embodiment belong to the same concept, and the embodiment of the method for embodying the implementation process is detailed in the embodiment, which is not described herein again.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
An embodiment of the present application further provides a computer storage medium, where the computer storage medium may store a plurality of instructions, where the instructions are suitable for being loaded by a processor and executing the above method steps, and a specific execution process may refer to a specific description of the embodiment shown in fig. 4, which is not described herein again.
The application also provides a terminal device, which comprises a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the above-mentioned method steps.
Referring to fig. 5, a schematic structural diagram of a terminal device according to an embodiment of the present invention is shown, where the terminal device may be used to implement the instruction triggering method based on a key in the foregoing embodiment. Specifically, the method comprises the following steps:
the memory 503 may be used to store software programs and modules, and the processor 500 executes various functional applications and data processing by operating the software programs and modules stored in the memory 503. The memory 503 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal device, and the like. Further, the memory 503 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 503 may also include a memory controller to provide the processor 500 and the input unit 505 access to the memory 503.
The input unit 505 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 505 may comprise a touch sensitive surface 506 (e.g., a touch screen, a touch pad, or a touch frame). The touch-sensitive surface 506, also referred to as a touch screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 506 (e.g., operations by a user on or near the touch-sensitive surface 506 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 506 may comprise both touch sensing devices and touch controllers. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 500, and can receive and execute commands sent by the processor 500. Additionally, touch sensitive surface 506 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves.
The display unit 513 may be used to display information input by or provided to the user and various graphical user interfaces of the terminal device, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 513 may include a Display panel 514, and optionally, the Display panel 514 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 506 may overlay the display panel 514, and when a touch operation is detected on or near the touch-sensitive surface 506, the touch operation is transmitted to the processor 500 to determine the type of touch event, and then the processor 500 provides a corresponding visual output on the display panel 514 according to the type of touch event. Although in FIG. 5, touch-sensitive surface 506 and display panel 514 are shown as two separate components to implement input and output functions, in some embodiments, touch-sensitive surface 506 may be integrated with display panel 514 to implement input and output functions.
The processor 500 is a control center of the terminal device, connects various parts of the entire terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by running or executing software programs and/or modules stored in the memory 503 and calling data stored in the memory 503, thereby performing overall monitoring of the terminal device. Optionally, processor 500 may include one or more processing cores; the processor 500 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 500.
Specifically, in this embodiment, the display unit of the terminal device is a touch screen display, the terminal device further includes a memory and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors includes implementing the following steps:
detecting the state of each key in the N keys when the N keys simultaneously generate a pressing event; wherein N is an integer greater than or equal to 2;
detecting the state of a target key when a lifting event occurs on the target key; the target key is any one of the N keys, and other keys except the target key in the N keys are kept in a pressed state;
generating a first instruction when a first pressing operation occurs on the target key; the pressing operation comprises a pressing event and a lifting event, and the time interval between the pressing event and the lifting event is smaller than a first time threshold;
and executing the function indicated by the first instruction.
In one or more embodiments, processor 500 is further configured to perform:
when the N keys are all in a lifted state, generating a second instruction when any one key in the N keys is detected to be subjected to second pressing operation;
and executing the function indicated by the second instruction.
In one or more embodiments, processor 500 is further configured to perform:
before the first pressing operation is completed, if lifting events occur on other keys except the target key in the N keys, the states of the N keys are detected.
In one or more embodiments, a time interval between the occurrence of the lift event on the target key and the first press operation is less than a second time threshold.
In one or more embodiments, processor 500 is further configured to perform:
generating a third instruction when the time interval between the press-down event and the lift-up event in the first press operation is greater than or equal to a first time length threshold;
and executing the operation executed by the third instruction.
In one or more embodiments, the first instruction is used to perform a volume control operation, a power-on/off operation, a photographing operation, or a video recording operation.
In one or more embodiments, processor 500 performs the detecting the state of the target key, including:
when the fact that the level of the target key is switched from a first level to a second level is detected, determining that a pressing event occurs on the target key;
and when the fact that the level of the target key is switched from the second level to the first level is detected, determining that a lifting event occurs on the target key.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
All functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for triggering a key-based instruction is characterized by comprising the following steps:
detecting the state of each key in the N keys when the N keys simultaneously generate a pressing event; wherein N is an integer greater than or equal to 2;
detecting the state of a target key when a lifting event occurs on the target key; the target key is any one of the N keys, and other keys except the target key in the N keys are kept in a pressed state;
generating a first instruction when a first pressing operation occurs on the target key; the pressing operation comprises a pressing event and a lifting event, and the time interval between the pressing event and the lifting event is smaller than a first time threshold;
and executing the function indicated by the first instruction.
2. The method of claim 1, further comprising:
when the N keys are all in a lifted state, generating a second instruction when any one key in the N keys is detected to be subjected to second pressing operation;
and executing the function indicated by the second instruction.
3. The method of claim 1, further comprising:
before the first pressing operation is completed, if lifting events occur on other keys except the target key in the N keys, the states of the N keys are detected.
4. The method of claim 1, wherein a time interval between a lift event on the target key and the first press operation is less than a second duration threshold.
5. The method of claim 1, further comprising:
generating a third instruction when the time interval between the press-down event and the lift-up event in the first press operation is greater than or equal to a first time length threshold;
and executing the operation executed by the third instruction.
6. The method of claim 1, wherein the first instruction is used to perform a volume control operation, a power on/off operation, a photo operation, or a video recording operation.
7. The method of claim 1, wherein the detecting the state of the target key comprises:
when the fact that the level of the target key is switched from a first level to a second level is detected, determining that a pressing event occurs on the target key;
and when the fact that the level of the target key is switched from the second level to the first level is detected, determining that a lifting event occurs on the target key.
8. A button-based command trigger device, comprising:
the device comprises a detection unit, a processing unit and a display unit, wherein the detection unit is used for detecting the state of each key in N keys when the N keys simultaneously generate a pressing event; wherein N is an integer greater than or equal to 2;
detecting the state of a target key when a lifting event occurs on the target key; the target key is any one of the N keys, and other keys except the target key in the N keys are kept in a pressed state;
the generating unit is used for generating a first instruction when a first pressing operation occurs on the target key; the pressing operation comprises a pressing event and a lifting event, and the time interval between the pressing event and the lifting event is smaller than a first time threshold;
and the execution unit is used for executing the function indicated by the first instruction.
9. A computer storage medium, characterized in that it stores a plurality of instructions adapted to be loaded by a processor and to carry out the method steps according to any one of claims 1 to 7.
10. A terminal device, comprising: the device comprises a processor, a memory and N keys, wherein N is an integer greater than or equal to 2; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps of any of claims 1 to 7.
CN202010337576.2A 2020-04-23 2020-04-23 Instruction triggering method and device based on key, storage medium and terminal equipment Active CN113552993B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010337576.2A CN113552993B (en) 2020-04-23 2020-04-23 Instruction triggering method and device based on key, storage medium and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010337576.2A CN113552993B (en) 2020-04-23 2020-04-23 Instruction triggering method and device based on key, storage medium and terminal equipment

Publications (2)

Publication Number Publication Date
CN113552993A true CN113552993A (en) 2021-10-26
CN113552993B CN113552993B (en) 2023-06-27

Family

ID=78129831

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010337576.2A Active CN113552993B (en) 2020-04-23 2020-04-23 Instruction triggering method and device based on key, storage medium and terminal equipment

Country Status (1)

Country Link
CN (1) CN113552993B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114827803A (en) * 2022-03-28 2022-07-29 荣耀终端有限公司 Earphone, electronic equipment and earphone key detection method
CN115793869A (en) * 2022-10-27 2023-03-14 广芯微电子(广州)股份有限公司 Key state identification method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103207655A (en) * 2012-01-12 2013-07-17 宇龙计算机通信科技(深圳)有限公司 Mobile terminal with reset function and reset method
US20140187226A1 (en) * 2011-08-05 2014-07-03 Yulong Computer Telecommunication Scientific (Shenzhen) Co., Ltd. Mobile terminal and method of displaying according to environmental data
CN105988704A (en) * 2015-03-03 2016-10-05 上海触乐信息科技有限公司 Efficient touch screen text input system and method
CN109101118A (en) * 2018-08-10 2018-12-28 山东超越数控电子股份有限公司 It is a kind of to combine the method and apparatus for realizing shortcut key based on character keys

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140187226A1 (en) * 2011-08-05 2014-07-03 Yulong Computer Telecommunication Scientific (Shenzhen) Co., Ltd. Mobile terminal and method of displaying according to environmental data
CN103207655A (en) * 2012-01-12 2013-07-17 宇龙计算机通信科技(深圳)有限公司 Mobile terminal with reset function and reset method
CN105988704A (en) * 2015-03-03 2016-10-05 上海触乐信息科技有限公司 Efficient touch screen text input system and method
CN109101118A (en) * 2018-08-10 2018-12-28 山东超越数控电子股份有限公司 It is a kind of to combine the method and apparatus for realizing shortcut key based on character keys

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114827803A (en) * 2022-03-28 2022-07-29 荣耀终端有限公司 Earphone, electronic equipment and earphone key detection method
CN115793869A (en) * 2022-10-27 2023-03-14 广芯微电子(广州)股份有限公司 Key state identification method and device
CN115793869B (en) * 2022-10-27 2023-08-25 广芯微电子(广州)股份有限公司 Key state identification method and device

Also Published As

Publication number Publication date
CN113552993B (en) 2023-06-27

Similar Documents

Publication Publication Date Title
US10996834B2 (en) Touchscreen apparatus user interface processing method and touchscreen apparatus
WO2018107898A1 (en) Method and device for preventing false triggering of touch button, terminal and storage medium
CN104145236B (en) Method and apparatus for the content in mobile terminal
CN111158540B (en) Position adjusting method of application icon and electronic equipment
EP3336679B1 (en) Method and terminal for preventing unintentional triggering of a touch key and storage medium
US10423264B2 (en) Screen enabling method and apparatus, and electronic device
US20130038541A1 (en) Portable Electronic Device and Method of Controlling Same
WO2014206101A1 (en) Gesture-based conversation processing method, apparatus, and terminal device
CN109032447B (en) Icon processing method and mobile terminal
WO2015043194A1 (en) Virtual keyboard display method and apparatus, and terminal
CN109933252B (en) Icon moving method and terminal equipment
KR20140019530A (en) Method for providing user's interaction using mutil touch finger gesture
CN106502470A (en) Prevent method, device and the terminal of touch key-press false triggering
CN111610904B (en) Icon arrangement method, electronic device and storage medium
CN103197880A (en) Method and apparatus for displaying keypad in terminal having touch screen
WO2021057301A1 (en) File control method and electronic device
CN110049486B (en) SIM card selection method and terminal equipment
CN107463290A (en) Response control mehtod, device, storage medium and the mobile terminal of touch operation
KR20090039206A (en) Device and method for inputting letter of mobile station using touch screen
CN113552993B (en) Instruction triggering method and device based on key, storage medium and terminal equipment
EP3572921A1 (en) Portable electronic device and method of controlling same
CN111090529A (en) Method for sharing information and electronic equipment
CN108696642B (en) Method for arranging icons and mobile terminal
CN103677624A (en) Method of processing touch input for mobile device
EP3528103B1 (en) Screen locking method, terminal and screen locking device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant