CN109582195A - Report the method and device of key-press event - Google Patents
Report the method and device of key-press event Download PDFInfo
- Publication number
- CN109582195A CN109582195A CN201710908844.XA CN201710908844A CN109582195A CN 109582195 A CN109582195 A CN 109582195A CN 201710908844 A CN201710908844 A CN 201710908844A CN 109582195 A CN109582195 A CN 109582195A
- Authority
- CN
- China
- Prior art keywords
- key
- target key
- event
- sensor
- corresponding sensor
- 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.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
- G06F21/32—User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
Abstract
The disclosure is directed to a kind of method and apparatus for reporting key-press event, belong to electronic technology field.The described method includes: the operating mode of the corresponding sensor of detection target key is switched to non-report dot pattern by report dot pattern in the use process of terminal;Key is reported to lift event by the corresponding sensor of the target key.Using the disclosure, the efficiency for executing operation can be improved.
Description
Technical field
This disclosure relates to electronic technology field more particularly to a kind of method and device for reporting key-press event.
Background technique
With the development of electronic technology and Internet technology, the terminals such as mobile phone, computer are widely used, accordingly
Terminal on function it is more and more abundant.User can be by certain button operation terminal of touch terminal, for example, user can lead to
Crossing touch home key makes terminal show desktop.
Currently, the corresponding sensor of home key often corresponds to two operating modes, respectively navigation mode
(report dot pattern) and non-report dot pattern, wherein when terminal detect entrance go out shield screen lock state when, the corresponding sensing of home key
Device works in non-report dot pattern, and the corresponding working sensor of home key is in non-report dot pattern, no longer to the key detected
It presses event and key lifts event and reports, when terminal detects unlocking screen, the corresponding working sensor of home key exists
Dot pattern is reported, the corresponding working sensor of home key can be used for reporting key press event and key when reporting dot pattern
Lift event.
In implementing the present disclosure, inventor discovery the prior art has at least the following problems:
Currently, can be gone out and be shielded at screen locking come triggering terminal execution by finger long-pressing home key when user wants screen locking
Reason, wherein user is before pressing home key, and the corresponding working sensor of home key is in report dot pattern, and thus user presses
After pressing home key, the corresponding sensor of home key can report key press event, and often the finger of user is in terminal
Go out and lifted again after shielding screen locking, terminal is gone out shield screen locking after the corresponding sensor of home key i.e. from report dot pattern be switched to non-report point mould
Formula, after finger lifts, the corresponding sensor of home key no longer will report key to lift event.
Due to the matching mechanisms of key-press event, when continuously having identical key-press event twice, occur in key below
Event will be dropped.After terminal unlocks again (home key can enter report dot pattern after wherein, unlocking again), when user's
Operation is when needing to press home key, and what is reported due to the last time is key press event, this key detected by
Lower event will be dropped, and terminal is that can not execute the operation that this time pressing home key triggers to need user in such cases
Finger is lifted, pressing ability triggering terminal executes the operation again, thus, cause the efficiency for executing operation lower.
Summary of the invention
The disclosure provides a kind of method and device, electronic equipment, to solve deficiency in the related technology.
According to the first aspect of the embodiments of the present disclosure, a kind of method reporting key-press event is provided, which comprises
In the use process of terminal, the operating mode of the corresponding sensor of detection target key is switched to by report dot pattern
Non- report dot pattern, the non-report dot pattern are recognition mode;
Key is reported to lift event by the corresponding sensor of the target key.
Optionally, the method also includes:
In the state that the corresponding sensor of the target key is in recognition mode, detected when by the sensor
When the key press event of the corresponding target key, the first finger print information currently entered is acquired by the sensor;
It, will be collected described when the key for detecting the corresponding target key by the sensor lifts event
First finger print information is compared with pre-stored reference finger information;
If first finger print information matches with the reference finger information, unlocking screen processing is executed, and will
The operating mode of the corresponding sensor of the target key is switched to report dot pattern.
Optionally, the method also includes:
When receiving finger print information setting instruction, acquired by the corresponding sensor of the target key currently entered
Second finger print information;
Second finger print information is stored as reference finger information.
It is optionally, described to report key to lift event by the corresponding sensor of the target key, comprising:
Key is reported to lift event to input program by the main program of the corresponding sensor of the target key.
According to the second aspect of an embodiment of the present disclosure, a kind of device for reporting key-press event is provided, described device includes:
Detection module, in the use process of terminal, the operating mode of the corresponding sensor of detection target key by
Report dot pattern is switched to non-report dot pattern;
Reporting module, for reporting key to lift event by the corresponding sensor of the target key.
Optionally, the non-report dot pattern is recognition mode.
Optionally, described device further include:
First acquisition module is used in the state that the corresponding sensor of the target key is in recognition mode, when logical
When crossing the sensor and detecting the key press event of the corresponding target key, pass through the current input of sensor acquisition
The first finger print information;
Comparison module, for when the key for detecting the corresponding target key by the sensor lifts event,
Collected first finger print information is compared with pre-stored reference finger information;
Unlocked state executes screen if matched for first finger print information and the reference finger information
Unlock processing, and the operating mode of the corresponding sensor of the target key is switched to report dot pattern.
Optionally, described device further include:
Second acquisition module, for passing through the corresponding biography of the target key when receiving finger print information setting instruction
Sensor acquires the second finger print information currently entered;
Memory module, for second finger print information to be stored as reference finger information.
Optionally, the reporting module, is used for:
Key is reported to lift event to the main program program of the corresponding sensor of input by the target key.
According to the third aspect of an embodiment of the present disclosure, a kind of terminal is provided, the terminal includes processor and memory, institute
It states and is stored at least one instruction, at least a Duan Chengxu, code set or instruction set in memory, at least one instruction, institute
An at least Duan Chengxu, the code set or instruction set is stated to be loaded by the processor and executed to realize as described in relation to the first aspect
The method for reporting key-press event.
According to a fourth aspect of embodiments of the present disclosure, a kind of computer readable storage medium is provided, in the storage medium
It is stored at least one instruction, at least a Duan Chengxu, code set or instruction set, described at least one instructs, is at least one section described
Program, the code set or instruction set are loaded by processor and are executed to realize the key-press event that reports as described in relation to the first aspect
Method.
The technical scheme provided by this disclosed embodiment can include the following benefits:
In the embodiment of the present disclosure, in the use process of terminal, the operating mode of the corresponding sensor of detection target key
Non- report dot pattern is switched to by report dot pattern;Key is reported to lift event by the corresponding sensor of target key.In this way, user
It is gone out by long according to target key come triggering terminal execution when shielding screen locking processing, terminal can actively pass through the corresponding biography of target key
Sensor reports key to lift event.In such cases, after terminal unlocks again, when the operation of user needs to press home key
When, since what is reported before this is that key lifts event, the corresponding sensor of target key, which will report, this time to be detected
Key press event, in turn, terminal can execute the operation of this time pressing target key triggering, press target again without user
Key, it is thus possible to improve the efficiency for executing operation.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure
Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of flow chart of method for reporting key-press event shown according to an exemplary embodiment;
Fig. 2 is a kind of screen locking schematic diagram shown according to an exemplary embodiment;
Fig. 3 is a kind of schematic device for reporting key-press event shown according to an exemplary embodiment;
Fig. 4 is a kind of schematic device for reporting key-press event shown according to an exemplary embodiment;
Fig. 5 is a kind of schematic device for reporting key-press event shown according to an exemplary embodiment;
Fig. 6 is a kind of structural schematic diagram of terminal shown according to an exemplary embodiment.
Through the above attached drawings, it has been shown that the specific embodiment of the disclosure will be hereinafter described in more detail.These attached drawings
It is not intended to limit the scope of this disclosure concept by any means with verbal description, but is by referring to specific embodiments
Those skilled in the art illustrate the concept of the disclosure.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the application.
It is only to be not intended to be limiting the application merely for for the purpose of describing particular embodiments in term used in this application.
It is also intended in the application and the "an" of singular used in the attached claims, " described " and "the" including majority
Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps
It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application
A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from
In the case where the application range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determination ".
An exemplary embodiment of the present disclosure provides a kind of method for reporting key-press event, this method can be used for terminal
In, wherein the terminal can be the terminal with target key, for example, can be the mobile phone with home key, tablet computer
Equal mobile terminals.
Terminal may include the components such as processor, memory, target key.Processor can be CPU (Central
Processing Unit, central processing unit) etc., the operating mode that can be used for detecting target key is switched by report dot pattern
To the relevant treatment of non-report dot pattern.Memory can for RAM (Random Access Memory, random access memory),
Flash (flash memory) etc., data needed for can be used for storing the data received, treatment process, the number generated in treatment process
According to etc., such as reference finger information.Target key can be corresponding with sensor, and sensor can be used for detecting key-press event, and
The key-press event detected is reported, so that terminal executes the operation that user this time presses the triggering of target key.Terminal is also
It may include screen, screen can be touch screen, can be used for detecting touching signal etc..
Below in conjunction with embodiment, process flow shown in FIG. 1 is described in detail, content can be such that
In a step 101, in the use process of terminal, the operating mode of the corresponding sensor of detection target key is by reporting
Dot pattern is switched to non-report dot pattern.
In an implementation, the corresponding sensor of target key in terminal can have the function of detection key-press event, key
Event may include that key press event (key down event) and key lift event (key up event), wherein press
Key pressing event can be the event that triggers when user's finger touches target key, key lift event can be user's finger from
The event triggered when opening target key., can be by operation when user wants screen locking during using terminal, triggering is eventually
End executes screen locking processing, wherein the operating mode of the corresponding sensor of target key is report dot pattern at this time, so that user passes through
Finger touch target key when, corresponding sensor can report key press event, when user lifts finger, can report by
Key lifts event.Specifically, user can grow according to target key, at this point, the corresponding sensor of target key can detecte by
Key pressing event, and can reporting can be held when terminal detects that the duration of key press event reaches preset duration
Row screen locking processing, in turn, the operating mode that terminal can control the corresponding sensor of target key is switched to non-by report dot pattern
Dot pattern is reported, i.e., at this point, the operating mode that terminal can be detected the corresponding sensor of target key is switched to by report dot pattern
Non- report dot pattern, as shown in Figure 2.
Optionally, terminal can also support fingerprint identification function, correspondingly, non-report dot pattern can be recognition mode (
It is properly termed as fingerprint recognition mode).Under fingerprint recognition mode, when user touches target key, the corresponding biography of target key
Sensor will no longer report key press event, but acquire the finger print information of user.
In a step 102, key is reported to lift event by the corresponding sensor of target key.
In an implementation, terminal detects that the operating mode of the corresponding sensor of target key is switched to non-report by report dot pattern
After dot pattern, event can be lifted by the corresponding sensor active reporting key of target key.
Optionally, key can be lifted event and be reported to input program by target key, correspondingly, the processing of step 102
Process can be such that reports key to lift event by the main program of the corresponding sensor of target key to input program.
In an implementation, when the operating mode for detecting the corresponding sensor of target key is switched to non-report point by report dot pattern
After mode, the main program of the corresponding sensor of target key can lift event to input program active reporting key, wherein
Key-press event matching mechanisms have can be set in input program, and when continuously receiving identical key-press event, input program will
The key-press event occurred below can be abandoned, be not reported to framework, thus, framework will be unable to execute this time by
The operation of key events triggering.In the embodiment of the present invention, when detecting the operating mode of the corresponding sensor of target key by report point
When pattern switching is to non-report dot pattern, the main program of the corresponding sensor of target key can actively to the transmitting of input program (or
Report) key lifts event, so as to input program this key can be lifted detect before event and screen locking processing by
Key pressing event matches when subsequent user touches target key again, can be reported by key pressing thing in turn to framework
Part, so that framework executes the operation that user this time touches the triggering of target key.In addition, user can also be by pressing piezoelectricity
Source key triggers screen locking processing, and for such situation, the main program of the corresponding sensor of target key is actively reported to input program
After key lifts event, since execute that input receives before screen locking is handled in terminal is that key lifts event, input
Program receives after the key this time reported lifts event, can be abandoned, will not generate other problems.
Optionally, the corresponding sensor of target key can also not be that key lifts event in the key-press event that last time reports
In the case where active reporting key lift event, correspondingly, the treatment process of step 102 can be such that if what last time reported
Key-press event is key press event, then reports key to lift event by the corresponding sensor of target key.
In an implementation, when the operating mode for detecting the corresponding sensor of target key switches to non-report point by report dot pattern
After mode, it can be determined that whether the key-press event that last time reports is key press event, if the key-press event that last time reports is
Key press event, then terminal can report key to lift event by the corresponding sensor of target key.If last time reports
Key-press event be key lift event, then terminal can be without any processing.
Optionally, the case where supporting fingerprint recognition for terminal, correspondingly, terminal can also be handled as follows: in mesh
The corresponding sensor of mark key is in the state of recognition mode, when detected by sensor the key of corresponding target key by
When lower event, the first finger print information currently entered is acquired by sensor;When detecting corresponding target key by sensor
Key when lifting event, collected first finger print information is compared with pre-stored reference finger information;If
First finger print information matches with reference finger information, then executes unlocking screen processing, and by the corresponding sensor of target key
Operating mode be switched to report dot pattern.
In an implementation, (wherein, at this point, the corresponding sensor of target key is in identification mould when terminal is in screen lock state
Under formula), when user is wanted to continue using the terminal, target key can be touched by finger, at this point, terminal will pass through sensing
Device detects the key press event of corresponding target key, in turn, finger print information currently entered can be acquired by sensor
(can be described as the first finger print information).After user touches target key, finger can be lifted, at this point, terminal can pass through sensing
Device detects that the key of corresponding target key lifts event, at this point, terminal can by collected first finger print information and in advance
The reference finger information of storage is compared, if the first finger print information matches with reference finger information, terminal can be held
The processing of row unlocking screen, and screen is lighted, meanwhile, the operating mode of the corresponding sensor of target key can be switched to report point
Mode.In this way, user during using terminal, can operate terminal by target key.
Optionally, reference finger information can be what user prerecorded, connect correspondingly, treatment process can be such that work as
When receiving finger print information setting instruction, the second finger print information currently entered is acquired by the corresponding sensor of target key;It will
Second finger print information is stored as reference finger information.
In an implementation, user can prerecord the reference finger information for unlocking screen.Specifically, user can lead to
Operation is crossed, triggering terminal receives finger print information setting instruction, and then, when user touches target key by finger, terminal will
Finger print information currently entered (can be described as the second finger print information) can be collected by the corresponding sensor of target key, in turn,
Second finger print information can be stored as reference finger information by terminal.
In the embodiment of the present disclosure, in the use process of terminal, the operating mode of the corresponding sensor of detection target key
Non- report dot pattern is switched to by report dot pattern;Key is reported to lift event by the corresponding sensor of target key.In this way, user
It is gone out by long according to target key come triggering terminal execution when shielding screen locking processing, terminal can actively pass through the corresponding biography of target key
Sensor reports key to lift event.In such cases, after terminal unlocks again, when the operation of user needs to press home key
When, since what is reported before this is that key lifts event, the corresponding sensor of target key, which will report, this time to be detected
Key press event, in turn, terminal can execute the operation of this time pressing target key triggering, press target again without user
Key, it is thus possible to improve the efficiency for executing operation.
Disclosure another exemplary embodiment provides a kind of device for reporting key-press event, as shown in figure 3, the device packet
It includes:
Detection module 310, for detecting the operating mode of the corresponding sensor of target key in the use process of terminal
Non- report dot pattern is switched to by report dot pattern;
Reporting module 320, for reporting key to lift event by the corresponding sensor of the target key.
Optionally, the non-report dot pattern is recognition mode.
Optionally, as shown in figure 4, described device further include:
First acquisition module 330 is used in the state that the corresponding sensor of the target key is in recognition mode, when
It is current defeated by the sensor acquisition when detecting the key press event of the corresponding target key by the sensor
The first finger print information entered;
Comparison module 340 detects that the key of the corresponding target key lifts event by the sensor for working as
When, collected first finger print information is compared with pre-stored reference finger information;
Unlocked state 350 executes screen if matched for first finger print information and the reference finger information
Curtain unlock processing, and the operating mode of the corresponding sensor of the target key is switched to report dot pattern.
Optionally, as shown in figure 5, described device further include:
Second acquisition module 360, for when receive finger print information setting instruction when, it is corresponding by the target key
Sensor acquires the second finger print information currently entered;
Memory module 370, for second finger print information to be stored as reference finger information.
Optionally, the reporting module 320, is used for:
Key is reported to lift event to input program by the main program of the corresponding sensor of the target key.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
In the embodiment of the present disclosure, in the use process of terminal, the operating mode of the corresponding sensor of detection target key
Non- report dot pattern is switched to by report dot pattern;Key is reported to lift event by the corresponding sensor of target key.In this way, user
It is gone out by long according to target key come triggering terminal execution when shielding screen locking processing, terminal can actively pass through the corresponding biography of target key
Sensor reports key to lift event.In such cases, after terminal unlocks again, when the operation of user needs to press home key
When, since what is reported before this is that key lifts event, the corresponding sensor of target key, which will report, this time to be detected
Key press event, in turn, terminal can execute the operation of this time pressing target key triggering, press target again without user
Key, it is thus possible to improve the efficiency for executing operation.
It should be understood that the device provided by the above embodiment for reporting key-press event is when reporting key-press event, only with
The division progress of above-mentioned each functional module can according to need and for example, in practical application by above-mentioned function distribution by not
Same functional module is completed, i.e., the internal structure of terminal is divided into different functional modules, to complete whole described above
Or partial function.In addition, the device provided by the above embodiment for reporting key-press event and the method for reporting key-press event are implemented
Example belongs to same design, and specific implementation process is detailed in embodiment of the method, and which is not described herein again.
The another exemplary embodiment of the disclosure shows a kind of structural schematic diagram of terminal.The terminal can be mobile phone etc..
Referring to Fig. 6, terminal 600 may include following one or more components: processing component 602, memory 604, power supply
Component 606, multimedia component 608, audio component 610, the interface 612 of input/output (I/O), sensor module 614, and
Communication component 616.
The integrated operation of the usual controlling terminal 600 of processing component 602, such as with display, telephone call, data communication, phase
Machine operation and record operate associated operation.Processing element 602 may include that one or more processors 620 refer to execute
It enables, to perform all or part of the steps of the methods described above.In addition, processing component 602 may include one or more modules, just
Interaction between processing component 602 and other assemblies.For example, processing component 602 may include multi-media module, it is more to facilitate
Interaction between media component 608 and processing component 602.
Memory 604 is configured as storing various types of data to support the operation in terminal 600.These data are shown
Example includes the instruction of any application or method for operating in terminal 600, contact data, and telephone book data disappears
Breath, picture, video etc..Memory 604 can be by any kind of volatibility or non-volatile memory device or their group
It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile
Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash
Device, disk or CD.
Electric power assembly 606 provides electric power for the various assemblies of terminal 600.Electric power assembly 606 may include power management system
System, one or more power supplys and other with for audio output apparatus 600 generate, manage, and distribute the associated component of electric power.
Multimedia component 608 includes the screen of one output interface of offer between the terminal 600 and user.One
In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings
Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action
Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers
Body component 608 includes a front camera and/or rear camera.When terminal 600 is in operation mode, such as screening-mode or
When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and
Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 610 is configured as output and/or input audio signal.For example, audio component 610 includes a Mike
Wind (MIC), when audio output apparatus 600 is in operation mode, when such as call mode, recording mode, and voice recognition mode, wheat
Gram wind is configured as receiving external audio signal.The received audio signal can be further stored in memory 604 or warp
It is sent by communication component 616.
I/O interface 612 provides interface between processing component 602 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock
Determine button.
Sensor module 614 includes one or more sensors, and the state for providing various aspects for terminal 600 is commented
Estimate.For example, sensor module 614 can detecte the state that opens/closes of terminal 600, and the relative positioning of component, for example, it is described
Component is the display and keypad of terminal 600, and sensor module 614 can also detect 600 1 components of terminal 600 or terminal
Position change, the existence or non-existence that user contacts with terminal 600,600 orientation of terminal or acceleration/deceleration and terminal 600
Temperature change.Sensor module 614 may include proximity sensor, be configured to detect without any physical contact
Presence of nearby objects.Sensor module 614 can also include optical sensor, such as CMOS or ccd image sensor, at
As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors
Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 616 is configured to facilitate the communication of wired or wireless way between terminal 600 and other equipment.Terminal
600 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation
In example, communication component 616 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 616 further includes near-field communication (NFC) module, to promote short range communication.Example
Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology,
Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, terminal 600 can be believed by one or more application specific integrated circuit (ASIC), number
Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 604 of instruction, above-metioned instruction can be executed by the processor 620 of terminal 600 to complete the above method.For example,
The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk
With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is held by the processor of terminal
When row, enable the terminal to execute the method for reporting key-press event, this method comprises:
In the use process of terminal, the operating mode of the corresponding sensor of detection target key is switched to by report dot pattern
Non- report dot pattern;
Key is reported to lift event by the corresponding sensor of the target key.
Optionally, the non-report dot pattern is recognition mode.
Optionally, the method also includes:
In the state that the corresponding sensor of the target key is in recognition mode, detected when by the sensor
When the key press event of the corresponding target key, the first finger print information currently entered is acquired by the sensor;
It, will be collected described when the key for detecting the corresponding target key by the sensor lifts event
First finger print information is compared with pre-stored reference finger information;
If first finger print information matches with the reference finger information, unlocking screen processing is executed, and will
The operating mode of the corresponding sensor of the target key is switched to report dot pattern.
Optionally, the method also includes:
When receiving finger print information setting instruction, acquired by the corresponding sensor of the target key currently entered
Second finger print information;
Second finger print information is stored as reference finger information.
It is optionally, described to report key to lift event by the corresponding sensor of the target key, comprising:
Key is reported to lift event to input program by the main program of the corresponding sensor of the target key.
In the embodiment of the present disclosure, in the use process of terminal, the operating mode of the corresponding sensor of detection target key
Non- report dot pattern is switched to by report dot pattern;Key is reported to lift event by the corresponding sensor of target key.In this way, user
It is gone out by long according to target key come triggering terminal execution when shielding screen locking processing, terminal can actively pass through the corresponding biography of target key
Sensor reports key to lift event.In such cases, after terminal unlocks again, when the operation of user needs to press home key
When, since what is reported before this is that key lifts event, the corresponding sensor of target key, which will report, this time to be detected
Key press event, in turn, terminal can execute the operation of this time pressing target key triggering, press target again without user
Key, it is thus possible to improve the efficiency for executing operation.
Those skilled in the art will readily occur to its of the disclosure after considering specification and practicing disclosure disclosed herein
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following
Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.
Claims (10)
1. a kind of method for reporting key-press event, which is characterized in that the described method includes:
In the use process of terminal, the operating mode of the corresponding sensor of detection target key is switched to non-report by report dot pattern
Dot pattern, the non-report dot pattern are recognition mode;
Key is reported to lift event by the corresponding sensor of the target key.
2. the method according to claim 1, wherein the method also includes:
In the state that the corresponding sensor of the target key is in recognition mode, when detecting correspondence by the sensor
When the key press event of the target key, the first finger print information currently entered is acquired by the sensor;
When the key for detecting the corresponding target key by the sensor lifts event, by collected described first
Finger print information is compared with pre-stored reference finger information;
If first finger print information matches with the reference finger information, unlocking screen processing is executed, and will be described
The operating mode of the corresponding sensor of target key is switched to report dot pattern.
3. the method according to claim 1, wherein the method also includes:
When receiving finger print information setting instruction, pass through the corresponding sensor acquisition currently entered second of the target key
Finger print information;
Second finger print information is stored as reference finger information.
4. the method according to claim 1, wherein described reported by the corresponding sensor of the target key
Key lifts event, comprising:
Key is reported to lift event to input program by the main program of the corresponding sensor of the target key.
5. a kind of device for reporting key-press event, which is characterized in that described device includes:
Detection module, in the use process of terminal, the operating mode of the corresponding sensor of detection target key to be by report point
For pattern switching to non-report dot pattern, the non-report dot pattern is recognition mode;
Reporting module, for reporting key to lift event by the corresponding sensor of the target key.
6. device according to claim 5, which is characterized in that described device further include:
First acquisition module is used in the state that the corresponding sensor of the target key is in recognition mode, when passing through
When stating sensor and detecting the key press event of the corresponding target key, currently entered the is acquired by the sensor
One finger print information;
Comparison module, for will adopt when the key for detecting the corresponding target key by the sensor lifts event
First finger print information collected is compared with pre-stored reference finger information;
Unlocked state executes unlocking screen if matched for first finger print information and the reference finger information
Processing, and the operating mode of the corresponding sensor of the target key is switched to report dot pattern.
7. device according to claim 5, which is characterized in that described device further include:
Second acquisition module, for passing through the corresponding sensor of the target key when receiving finger print information setting instruction
Acquire the second finger print information currently entered;
Memory module, for second finger print information to be stored as reference finger information.
8. device according to claim 5, which is characterized in that the reporting module is used for:
Key is reported to lift event to input program by the main program of the corresponding sensor of the target key.
9. a kind of terminal, which is characterized in that the terminal includes processor and memory, and at least one is stored in the memory
Item instruction, at least a Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Chengxu, the code
Collection or instruction set are loaded by the processor and are executed to realize the key-press event as claimed in claim 1 to 5 that reports
Method.
10. a kind of computer readable storage medium, which is characterized in that be stored at least one instruction, extremely in the storage medium
A few Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Chengxu, the code set or instruction
Collection is loaded by processor and is executed to realize the method for reporting key-press event as described in Claims 1-4 is any.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710908844.XA CN109582195A (en) | 2017-09-29 | 2017-09-29 | Report the method and device of key-press event |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710908844.XA CN109582195A (en) | 2017-09-29 | 2017-09-29 | Report the method and device of key-press event |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109582195A true CN109582195A (en) | 2019-04-05 |
Family
ID=65914889
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710908844.XA Withdrawn CN109582195A (en) | 2017-09-29 | 2017-09-29 | Report the method and device of key-press event |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109582195A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110737359A (en) * | 2019-09-05 | 2020-01-31 | Oppo(重庆)智能科技有限公司 | Point reporting method, touch screen and storage medium |
CN111291653A (en) * | 2020-01-21 | 2020-06-16 | Oppo(重庆)智能科技有限公司 | Fingerprint event reporting method and device and electronic equipment |
-
2017
- 2017-09-29 CN CN201710908844.XA patent/CN109582195A/en not_active Withdrawn
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110737359A (en) * | 2019-09-05 | 2020-01-31 | Oppo(重庆)智能科技有限公司 | Point reporting method, touch screen and storage medium |
CN110737359B (en) * | 2019-09-05 | 2022-10-25 | Oppo(重庆)智能科技有限公司 | Point reporting method, touch screen and storage medium |
CN111291653A (en) * | 2020-01-21 | 2020-06-16 | Oppo(重庆)智能科技有限公司 | Fingerprint event reporting method and device and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3043236B1 (en) | Method and apparatus for implementing a stacked touch key and fingerprint sensor | |
CN104951159B (en) | Touch key-press and fingerprint identification method | |
CN105138171B (en) | Touch key-press and fingerprint identification method | |
JP6997792B2 (en) | Message reading method and device | |
CN105657173B (en) | Volume adjusting method, device and mobile terminal | |
CN104732201B (en) | Touch key-press and fingerprint recognition realization device, method and terminal device | |
CN106951884A (en) | Gather method, device and the electronic equipment of fingerprint | |
CN104866749A (en) | Operation responding method and device | |
CN106815546A (en) | fingerprint identification method and device | |
CN108319886A (en) | Fingerprint identification method and device | |
CN108460352A (en) | The method and apparatus of fingerprint detection | |
CN106021077B (en) | The alarming method for power and device of terminal | |
CN107390977A (en) | Button operation method, apparatus and storage medium | |
CN108319836A (en) | The method and apparatus for executing processing based on fingerprint recognition | |
CN108133180A (en) | Fingerprint identification method, device and terminal | |
CN106406535B (en) | A kind of mobile device operation method, apparatus and mobile device | |
CN106503516A (en) | Terminal, unlocked by fingerprint method and device | |
CN105630239B (en) | Operate detection method and device | |
CN109582195A (en) | Report the method and device of key-press event | |
CN106778169A (en) | Unlocked by fingerprint method and device | |
CN106650569B (en) | Fingerprint input method and device | |
CN106095313A (en) | The method and device that touch panel device event triggers | |
CN106126050B (en) | Menu display method and device | |
CN105373318B (en) | Information display method and device | |
CN106325621B (en) | Mobile terminal and touch-responsive method |
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 | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20190405 |