CN107562350A - A kind of method and apparatus for reporting key-press event - Google Patents

A kind of method and apparatus for reporting key-press event Download PDF

Info

Publication number
CN107562350A
CN107562350A CN201710866906.5A CN201710866906A CN107562350A CN 107562350 A CN107562350 A CN 107562350A CN 201710866906 A CN201710866906 A CN 201710866906A CN 107562350 A CN107562350 A CN 107562350A
Authority
CN
China
Prior art keywords
button
sensor
target button
event
terminal
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
CN201710866906.5A
Other languages
Chinese (zh)
Other versions
CN107562350B (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710866906.5A priority Critical patent/CN107562350B/en
Publication of CN107562350A publication Critical patent/CN107562350A/en
Application granted granted Critical
Publication of CN107562350B publication Critical patent/CN107562350B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)
  • Telephone Function (AREA)

Abstract

The disclosure is directed to a kind of method and apparatus for reporting key-press event, belong to electronic technology field.Methods described includes:During the use of terminal, the mode of operation for detecting sensor corresponding to target button is switched to non-report dot pattern by report dot pattern;Button is reported to lift event by sensor corresponding to the target button.Using the disclosure, the efficiency for performing operation can be improved.

Description

A kind of method and apparatus for reporting key-press event
Technical field
The disclosure is directed to electronic technology field, especially with respect to a kind of method and apparatus for reporting key-press event.
Background technology
With the development of electronic technology and Internet technology, the terminal such as mobile phone, computer is widely used, accordingly Terminal on function it is increasingly abundanter.User can by certain button operation terminal of touch terminal, such as, user can lead to Crossing touch home buttons makes terminal show desktop.
At present, sensor corresponding to home buttons often corresponds to two mode of operations, respectively navigation mode (report dot pattern) and non-report dot pattern, wherein, when terminal is detected into death of monks or nuns screen screen lock state, sensed corresponding to home buttons Device is operated in non-report dot pattern, and working sensor corresponding to home buttons is in non-report dot pattern, the no longer button to detecting Press event and button lifts reporting events, when terminal detects unlocking screen, working sensor corresponding to home buttons exists Dot pattern is reported, working sensor corresponding to home buttons can be used for reporting key press event and button when reporting dot pattern Lift event.
During the disclosure is realized, inventor has found problems with least be present:
At present, when user wants screen locking, can be performed by finger long-press home buttons come triggering terminal at screen screen locking of going out Reason, wherein, user before home buttons are pressed, in report dot pattern, thus user press by working sensor corresponding to home buttons After pressing home buttons, sensor can report key press event corresponding to home buttons, and often the finger of user is in terminal Go out and lift again after screen screen locking, the terminal sensor corresponding to home buttons after screen screen locking that goes out is switched to a non-report mould from report dot pattern Formula, after finger lifts, sensor no longer will report button to lift event corresponding to home buttons.
Due to the matching mechanisms of key-press event, when continuously having identical key-press event twice, the button below occurs Event will be dropped.After terminal unlocks again (home buttons can enter report dot pattern after wherein, unlocking again), when user's When operation needs to press home buttons, due to the last time, report is key press event, therefore, this button detected by Lower event will be dropped, and terminal is that can not perform the operation of this time pressing home buttons triggering, in such cases, it is necessary to user Finger is lifted, pressing ability triggering terminal performs the operation again, so as to cause to perform the less efficient of operation.
The content of the invention
In order to overcome performed present in correlation technique operation it is less efficient the problem of, present disclose provides one kind to report The method and apparatus of key-press event.The technical scheme is as follows:
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of method for reporting key-press event, methods described include:
During the use of terminal, the mode of operation for detecting sensor corresponding to target button is switched to by report dot pattern Non- report dot pattern;
Button is reported to lift event by sensor corresponding to the target button.
Optionally, the non-report dot pattern is recognition mode.
Optionally, methods described also includes:
In the state of sensor is in recognition mode corresponding to the target button, detected when by the sensor During the key press event of the corresponding target button, the first finger print information currently inputted is gathered by the sensor;
When the button that the corresponding target button is detected by the sensor lifts event, described in collecting First finger print information is compared with the reference finger information prestored;
If first finger print information and the reference finger information match, unlocking screen processing is performed, and will The mode of operation of sensor switches to report dot pattern corresponding to the target button.
Optionally, methods described also includes:
When receiving finger print information setting instruction, currently inputted by sensor collection corresponding to the target button Second finger print information;
Second finger print information is stored as reference finger information.
Optionally, it is described to report button to lift event by sensor corresponding to the target button, including:
Button is reported to lift event to input programs by the main program of sensor corresponding to the target button.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of device for reporting key-press event, described device include:
Detection module, for during the use of terminal, detect the mode of operation of sensor corresponding to target button by Report dot pattern is switched to non-report dot pattern;
Reporting module, for reporting button to lift event by sensor corresponding to the target button.
Optionally, the non-report dot pattern is recognition mode.
Optionally, described device also includes:
First acquisition module, in the state of sensor is in recognition mode corresponding to the target button, when logical When crossing the sensor and detecting the key press event of the corresponding target button, pass through the current input of sensor collection The first finger print information;
Comparison module, for when the button that the corresponding target button is detected by the sensor lifts event, By first finger print information collected compared with the reference finger information prestored;
Unlocked state, if for first finger print information and the reference finger information match, perform screen Unblock is handled, and the mode of operation of sensor corresponding to the target button is switched into report dot pattern.
Optionally, described device also includes:
Second acquisition module, for when receiving finger print information setting instruction, passing through biography corresponding to the target button The second finger print information that sensor collection currently inputs;
Memory module, for second finger print information to be stored as into reference finger information.
Optionally, the reporting module, is used for:
Button is reported to lift event to the main program program of sensor corresponding to input by the target button.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of terminal, the terminal include processor and memory, institute State and at least one instruction, at least one section of program, code set or instruction set are stored with memory, at least one instruction, institute At least one section of program, the code set or instruction set is stated to be loaded by the processor and performed to realize as described in relation to the first aspect The method for reporting key-press event.
According to the fourth aspect of the embodiment of the present disclosure, there is provided a kind of computer-readable recording medium, in the storage medium At least one instruction, at least one section of program, code set or instruction set are stored with, described at least one instructs, be described at least one section Program, the code set or instruction set are loaded by processor and performed 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, during the use of terminal, the mode of operation of sensor corresponding to target button is detected Non- report dot pattern is switched to by report dot pattern;Button is reported to lift event by sensor corresponding to target button.So, user When performing screen screen locking of going out come triggering terminal by long according to target button and handling, terminal can actively pass through biography corresponding to target button Sensor reports button to lift event.In such cases, after terminal unlocks again, when the operation of user needs to press home buttons When, because what is reported before this is that button lifts event, therefore, sensor will report what is this time detected corresponding to target button Key press event, and then, terminal can perform the operation of this time pressing target button triggering, and target is pressed again without user Button, it is thus possible to improve the efficiency for performing operation.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, not The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the disclosure Example, and be used to together with specification to explain the principle of the disclosure.In the accompanying drawings:
Fig. 1 is the flow chart for a kind of method that according to an exemplary embodiment reports key-press event;
Fig. 2 is a kind of screen locking schematic diagram according to an exemplary embodiment;
Fig. 3 is a kind of schematic device for reporting key-press event according to an exemplary embodiment;
Fig. 4 is a kind of schematic device for reporting key-press event according to an exemplary embodiment;
Fig. 5 is a kind of schematic device for reporting key-press event according to an exemplary embodiment;
Fig. 6 is a kind of structural representation of terminal according to an exemplary embodiment.
Pass through above-mentioned accompanying drawing, it has been shown that the clear and definite embodiment of the disclosure, will hereinafter be described in more detail.These accompanying drawings It is not intended to limit the scope of disclosure design by any mode with word description, but is by reference to specific embodiment Those skilled in the art illustrate the concept of the disclosure.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended The example of the consistent apparatus and method of some aspects be described in detail in claims, the disclosure.
The exemplary embodiment of the disclosure one provides a kind of method for reporting key-press event, and this method can be used for terminal In, wherein, the terminal can be the terminal for having target button, such as, can be mobile phone, the tablet personal computer with home buttons Deng mobile terminal.
Terminal can include the parts such as processor, memory, target button.Processor can be CPU (Central Processing Unit, CPU) etc., the mode of operation that can be used for detecting target button is switched by report dot pattern To the relevant treatment of non-report dot pattern.Memory can be RAM (Random Access Memory, random access memory), Flash (flash memory) etc., it can be used for storing the number generated in the data received, the data needed for processing procedure, processing procedure According to etc., such as reference finger information.Target button 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 performs the operation of user's this time pressing target button triggering.Terminal is also Screen can be included, screen can be touch screen, can be used for detection touching signal etc..
Below in conjunction with embodiment, the handling process shown in Fig. 1 is described in detail, content can be as follows:
In a step 101, during the use of terminal, the mode of operation of sensor corresponding to target button is detected by reporting Dot pattern is switched to non-report dot pattern.
In force, sensor corresponding to the target button in terminal can have the function of detection key-press event, button Event can include key press event (key down event) and button lifts event (key up event), wherein, press It can be the event that triggers when user's finger touches target button that key, which presses event, button lift event can be user's finger from Open the event triggered during target button., can be by operation when user wants screen locking during using terminal, triggering is eventually End performs screen locking processing, wherein, now the mode of operation of sensor corresponding to target button is report dot pattern, so that user passes through Finger touch target button 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 button, now, sensor corresponding to target button can detect by Key presses event, and can report, and when terminal detects that the duration of key press event reaches preset duration, can hold Row screen locking is handled, and then, terminal can be switched to by report dot pattern non-with the mode of operation of sensor corresponding to control targe button Dot pattern is reported, i.e., now, terminal is that the mode of operation of sensor corresponding to detectable target button is switched to by report dot pattern Non- report dot pattern, as shown in Figure 2.
Optionally, terminal can also support fingerprint identification function, accordingly, it is non-report dot pattern can be recognition mode ( It is properly termed as fingerprint recognition pattern).Under fingerprint recognition pattern, when user touches target button, passed corresponding to target button Sensor will no longer report key press event, but gather the finger print information of user.
In a step 102, button is reported to lift event by sensor corresponding to target button.
In force, terminal detects that the mode of operation of sensor corresponding to target button is switched to non-report by report dot pattern After dot pattern, event can be lifted by sensor active reporting button corresponding to target button.
Optionally, button can be lifted reporting events and give input programs by target button, accordingly, the processing of step 102 Process can be as follows:Button is reported to lift event to input programs by the main program of sensor corresponding to target button.
In force, when the mode of operation for detecting sensor corresponding to target button is switched to non-report point by report dot pattern After pattern, the main program of sensor corresponding to target button can lift event to input program active reporting buttons, wherein, Input programs can be provided with key-press event matching mechanisms, and when continuously receiving identical key-press event, input programs will The key-press event occurred below can be abandoned, do not reported framework, so as to, framework will be unable to perform this time by The operation of key events triggering.In the embodiment of the present invention, when detecting the mode of operation of sensor corresponding to target button by report point Pattern switching to it is non-report dot pattern when, the main program of sensor corresponding to target button can actively to the transmission of input programs (or Report) button lifts event, so as to input programs this button can lift to event and screen locking before processing detect by Key presses event matches, and then, when subsequent user touches target button again, to framework button can be reported to press thing Part, so that framework performs the operation of user's this time touch target button triggering.In addition, user can also be by by piezoelectricity Source key triggering screen locking processing, for such a situation, the main program of sensor corresponding to target button actively reports to input programs After button lifts event, because perform that screen locking before processing input receives in terminal is that button lifts event, therefore, input Program is received after the button this time reported lifts event, can be abandoned, will not produce other problemses.
Optionally, the key-press event that sensor corresponding to target button can also report in last time does not lift event for button In the case of active reporting button lift event, accordingly, the processing procedure of step 102 can be as follows:What if last time reported Key-press event is key press event, then reports button to lift event by sensor corresponding to target button.
In force, when the mode of operation for detecting sensor corresponding to target button switches to non-report point by report dot pattern After pattern, 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 by sensor corresponding to target button button can be reported to lift event.If last time reports Key-press event lift event for button, then terminal can be without any processing.
Optionally, the situation of fingerprint recognition is supported for terminal, accordingly, terminal can also be handled as follows:In mesh Sensor corresponding to mark button be in the state of recognition mode, when detected by sensor the button of correspondence target button by During lower event, the first finger print information currently inputted is gathered by sensor;Target button is corresponded to when being detected by sensor Button when lifting event, by the first finger print information collected compared with the reference finger information prestored;If First finger print information and reference finger information match, then perform unlocking screen processing, and by sensor corresponding to target button Mode of operation switch to report dot pattern.
In force, (wherein, now, sensor corresponding to target button is in identification mould when terminal is in screen lock state Under formula), when user wants to continue to use the terminal, target button can be touched by finger, now, terminal will pass through sensing Device detects the key press event of corresponding target button, and then, the finger print information currently inputted can be gathered by sensor (can be described as the first finger print information).After user touches target button, finger can be lifted, now, terminal can pass through sensing Device detects that the button of corresponding target button lifts event, now, terminal can by the first finger print information collected with advance The reference finger information of storage is compared, if the first finger print information and reference finger information match, terminal can be held The processing of row unlocking screen, and screen is lighted, meanwhile, the mode of operation of sensor corresponding to target button can be switched to report point Pattern.So, user is during using terminal, you can terminal is operated by target button.
Optionally, reference finger information can be that user prerecords, and accordingly, processing procedure can be as follows:When connecing When receiving finger print information setting instruction, the second finger print information currently inputted is gathered by sensor corresponding to target button;Will Second finger print information is stored as reference finger information.
In force, user can prerecord the reference finger information for unlocking screen.Specifically, user can lead to Operation is crossed, triggering terminal receives finger print information and sets instruction, and then, when user touches target button by finger, terminal will The finger print information currently inputted (can be described as the second finger print information) can be collected by sensor corresponding to target button, and then, Second finger print information can be stored as reference finger information by terminal.
In the embodiment of the present disclosure, during the use of terminal, the mode of operation of sensor corresponding to target button is detected Non- report dot pattern is switched to by report dot pattern;Button is reported to lift event by sensor corresponding to target button.So, user When performing screen screen locking of going out come triggering terminal by long according to target button and handling, terminal can actively pass through biography corresponding to target button Sensor reports button to lift event.In such cases, after terminal unlocks again, when the operation of user needs to press home buttons When, because what is reported before this is that button lifts event, therefore, sensor will report what is this time detected corresponding to target button Key press event, and then, terminal can perform the operation of this time pressing target button triggering, and target is pressed again without user Button, it is thus possible to improve the efficiency for performing operation.
Disclosure further example embodiment provides a kind of device for reporting key-press event, as shown in figure 3, the device bag Include:
Detection module 310, for during the use of terminal, detecting the mode of operation of sensor corresponding to target button Non- report dot pattern is switched to by report dot pattern;
Reporting module 320, for reporting button to lift event by sensor corresponding to the target button.
Optionally, the non-report dot pattern is recognition mode.
Optionally, as shown in figure 4, described device also includes:
First acquisition module 330, in the state of sensor is in recognition mode corresponding to the target button, when When detecting the key press event of the corresponding target button by the sensor, gathered by the sensor current defeated The first finger print information entered;
Comparison module 340, detect that the button of the corresponding target button lifts event by the sensor for working as When, by first finger print information collected compared with the reference finger information prestored;
Unlocked state 350, if for first finger print information and the reference finger information match, perform screen Curtain unblock processing, and the mode of operation of sensor corresponding to the target button is switched into report dot pattern.
Optionally, as shown in figure 5, described device also includes:
Second acquisition module 360, for when receive finger print information set instruction when, by corresponding to the target button The second finger print information that sensor collection currently inputs;
Memory module 370, for second finger print information to be stored as into reference finger information.
Optionally, the reporting module 320, is used for:
Button is reported to lift event to input programs by the main program of sensor corresponding to the target button.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
In the embodiment of the present disclosure, during the use of terminal, the mode of operation of sensor corresponding to target button is detected Non- report dot pattern is switched to by report dot pattern;Button is reported to lift event by sensor corresponding to target button.So, user When performing screen screen locking of going out come triggering terminal by long according to target button and handling, terminal can actively pass through biography corresponding to target button Sensor reports button to lift event.In such cases, after terminal unlocks again, when the operation of user needs to press home buttons When, because what is reported before this is that button lifts event, therefore, sensor will report what is this time detected corresponding to target button Key press event, and then, terminal can perform the operation of this time pressing target button triggering, and target is pressed again without user Button, it is thus possible to improve the efficiency for performing operation.
It should be noted that:Above-described embodiment provide report the device of key-press event when reporting key-press event, only with The division progress of above-mentioned each functional module, can be as needed and by above-mentioned function distribution by not for example, in practical application 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, above-described embodiment offer reports the device of key-press event with reporting the method for key-press event to implement Example belongs to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
The another exemplary embodiment of the disclosure shows a kind of structural representation of terminal.The terminal can be mobile phone etc..
Reference picture 6, terminal 600 can include following one or more assemblies:Processing component 602, memory 604, power supply Component 606, multimedia groupware 608, audio-frequency assembly 610, the interface 612 of input/output (I/O), sensor cluster 614, and Communication component 616.
Processing component 602 generally controls the integrated operation of terminal 600, is such as communicated with display, call, data, phase The operation that machine operates and record operation is associated.Treatment element 602 can refer to including one or more processors 620 to perform Order, to complete all or part of step of above-mentioned method.In addition, processing component 602 can include one or more modules, just Interaction between processing component 602 and other assemblies.For example, processing component 602 can 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 program or method for being operated in terminal 600, contact data, 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 Close and realize, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) are erasable to compile Journey read-only storage (EPROM), programmable read only memory (PROM), read-only storage (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 can include power management system System, one or more power supplys, and other components associated with generating, managing and distributing electric power for audio output apparatus 600.
Multimedia groupware 608 is included in the screen of one output interface of offer between the terminal 600 and user.One In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch sensings Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action Border, but also detect and touched or the related duration and pressure of slide with described.In certain embodiments, more matchmakers Body component 608 includes a front camera and/or rear camera.When terminal 600 is in operator scheme, such as screening-mode or During video mode, front camera and/or rear camera can receive outside multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio-frequency assembly 610 is configured as output and/or input audio signal.For example, audio-frequency assembly 610 includes a Mike Wind (MIC), when audio output apparatus 600 is in operator scheme, during such as call model, logging mode and speech recognition mode, wheat Gram wind is configured as receiving external audio signal.The audio signal received can be further stored in memory 604 or warp Sent by communication component 616.
I/O interfaces 612 provide 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 be not limited to:Home button, volume button, start button and lock Determine button.
Sensor cluster 614 includes one or more sensors, and the state for providing various aspects for terminal 600 is commented Estimate.For example, sensor cluster 614 can detect opening/closed mode 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 cluster 614 can be with 600 1 components of detection terminal 600 or terminal Position change, the existence or non-existence that user contacts with terminal 600, the orientation of terminal 600 or acceleration/deceleration and terminal 600 Temperature change.Sensor cluster 614 can include proximity transducer, be configured to detect in no any physical contact The presence of neighbouring object.Sensor cluster 614 can also include optical sensor, such as CMOS or ccd image sensor, for into As being used in application.In certain embodiments, the sensor cluster 614 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 combinations thereof.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 also includes near-field communication (NFC) module, to promote junction service.Example Such as, in NFC module radio frequency identification (RFID) technology can be based on, 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 circuits (ASIC), numeral Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 604 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 620 of terminal 600.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 During row so that the method that terminal is able to carry out reporting key-press event, this method include:
During the use of terminal, the mode of operation for detecting sensor corresponding to target button is switched to by report dot pattern Non- report dot pattern;
Button is reported to lift event by sensor corresponding to the target button.
Optionally, the non-report dot pattern is recognition mode.
Optionally, methods described also includes:
In the state of sensor is in recognition mode corresponding to the target button, detected when by the sensor During the key press event of the corresponding target button, the first finger print information currently inputted is gathered by the sensor;
When the button that the corresponding target button is detected by the sensor lifts event, described in collecting First finger print information is compared with the reference finger information prestored;
If first finger print information and the reference finger information match, unlocking screen processing is performed, and will The mode of operation of sensor switches to report dot pattern corresponding to the target button.
Optionally, methods described also includes:
When receiving finger print information setting instruction, currently inputted by sensor collection corresponding to the target button Second finger print information;
Second finger print information is stored as reference finger information.
Optionally, it is described to report button to lift event by sensor corresponding to the target button, including:
Button is reported to lift event to input programs by the main program of sensor corresponding to the target button.
In the embodiment of the present disclosure, during the use of terminal, the mode of operation of sensor corresponding to target button is detected Non- report dot pattern is switched to by report dot pattern;Button is reported to lift event by sensor corresponding to target button.So, user When performing screen screen locking of going out come triggering terminal by long according to target button and handling, terminal can actively pass through biography corresponding to target button Sensor reports button to lift event.In such cases, after terminal unlocks again, when the operation of user needs to press home buttons When, because what is reported before this is that button lifts event, therefore, sensor will report what is this time detected corresponding to target button Key press event, and then, terminal can perform the operation of this time pressing target button triggering, and target is pressed again without user Button, it is thus possible to improve the efficiency for performing operation.
Those skilled in the art will readily occur to the disclosure its after considering specification and putting into practice disclosure disclosed herein Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledges in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following Claim is pointed out.
It should be appreciated that the precision architecture that the disclosure is not limited to be described above and is shown in the drawings, and And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.

Claims (12)

  1. A kind of 1. method for reporting key-press event, it is characterised in that methods described includes:
    During the use of terminal, the mode of operation for detecting sensor corresponding to target button is switched to non-report by report dot pattern Dot pattern;
    Button is reported to lift event by sensor corresponding to the target button.
  2. 2. according to the method for claim 1, it is characterised in that the non-report dot pattern is recognition mode.
  3. 3. according to the method for claim 2, it is characterised in that methods described also includes:
    In the state of sensor is in recognition mode corresponding to the target button, detected correspondingly when by the sensor During the key press event of the target button, the first finger print information currently inputted is gathered by the sensor;
    When the button that the corresponding target button is detected by the sensor lifts event, will collect described first Finger print information is compared with the reference finger information prestored;
    If first finger print information and the reference finger information match, unlocking screen processing is performed, and by described in The mode of operation of sensor switches to report dot pattern corresponding to target button.
  4. 4. according to the method for claim 3, it is characterised in that methods described also includes:
    When receiving finger print information setting instruction, currently input second is gathered by sensor corresponding to the target button Finger print information;
    Second finger print information is stored as reference finger information.
  5. 5. according to the method for claim 1, it is characterised in that described to be reported by sensor corresponding to the target button Button lifts event, including:
    Button is reported to lift event to input programs by the main program of sensor corresponding to the target button.
  6. 6. a kind of device for reporting key-press event, it is characterised in that described device includes:
    Detection module, for during the use of terminal, detecting the mode of operation of sensor corresponding to target button by report point Pattern switching is to non-report dot pattern;
    Reporting module, for reporting button to lift event by sensor corresponding to the target button.
  7. 7. device according to claim 6, it is characterised in that the non-report dot pattern is recognition mode.
  8. 8. device according to claim 7, it is characterised in that described device also includes:
    First acquisition module, in the state of sensor is in recognition mode corresponding to the target button, when passing through When stating sensor and detecting the key press event of the corresponding target button, currently inputted by sensor collection the One finger print information;
    Comparison module, for when the button that the corresponding target button is detected by the sensor lifts event, will adopt First finger print information collected is compared with the reference finger information prestored;
    Unlocked state, if for first finger print information and the reference finger information match, perform unlocking screen Processing, and the mode of operation of sensor corresponding to the target button is switched into report dot pattern.
  9. 9. device according to claim 8, it is characterised in that described device also includes:
    Second acquisition module, for when receiving finger print information setting instruction, passing through sensor corresponding to the target button Gather the second finger print information currently inputted;
    Memory module, for second finger print information to be stored as into reference finger information.
  10. 10. device according to claim 6, it is characterised in that the reporting module, be used for:
    Button is reported to lift event to input programs by the main program of sensor corresponding to the target button.
  11. 11. a kind of terminal, it is characterised in that the terminal includes processor and memory, is stored with least in the memory One instruction, at least one section of program, code set or instruction set, at least one instruction, at least one section of program, the generation Code collection or instruction set are loaded by the processor and performed reports key-press event to realize as described in claim 1 to 5 is any Method.
  12. 12. a kind of computer-readable recording medium, it is characterised in that at least one instruction, extremely is stored with the storage medium Few one section of program, code set or instruction set, at least one instruction, at least one section of program, the code set or the instruction Collection is loaded by processor and performed to realize the method for reporting key-press event as described in claim 1 to 5 is any.
CN201710866906.5A 2017-09-22 2017-09-22 Method and device for reporting key event Active CN107562350B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710866906.5A CN107562350B (en) 2017-09-22 2017-09-22 Method and device for reporting key event

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710866906.5A CN107562350B (en) 2017-09-22 2017-09-22 Method and device for reporting key event

Publications (2)

Publication Number Publication Date
CN107562350A true CN107562350A (en) 2018-01-09
CN107562350B CN107562350B (en) 2020-09-04

Family

ID=60982618

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710866906.5A Active CN107562350B (en) 2017-09-22 2017-09-22 Method and device for reporting key event

Country Status (1)

Country Link
CN (1) CN107562350B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110691403A (en) * 2019-09-25 2020-01-14 出门问问信息科技有限公司 Information processing method, electronic equipment and computer readable storage medium
CN111291653A (en) * 2020-01-21 2020-06-16 Oppo(重庆)智能科技有限公司 Fingerprint event reporting method and device and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090324026A1 (en) * 2008-06-27 2009-12-31 Palo Alto Research Center Incorporated System and method for finding a picture image in an image collection using localized two-dimensional visual fingerprints
US8875263B1 (en) * 2012-03-29 2014-10-28 Emc Corporation Controlling a soft token running within an electronic apparatus
CN106133736A (en) * 2016-06-27 2016-11-16 北京小米移动软件有限公司 Fingerprint authentication method and device
CN106951759A (en) * 2017-03-07 2017-07-14 青岛海信移动通信技术股份有限公司 Unlocked by fingerprint control method and device
CN107018226A (en) * 2017-03-08 2017-08-04 广东欧珀移动通信有限公司 Unlocking screen method and mobile terminal
CN107025022A (en) * 2017-03-08 2017-08-08 广东欧珀移动通信有限公司 The control method and terminal device of terminal device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090324026A1 (en) * 2008-06-27 2009-12-31 Palo Alto Research Center Incorporated System and method for finding a picture image in an image collection using localized two-dimensional visual fingerprints
US8875263B1 (en) * 2012-03-29 2014-10-28 Emc Corporation Controlling a soft token running within an electronic apparatus
CN106133736A (en) * 2016-06-27 2016-11-16 北京小米移动软件有限公司 Fingerprint authentication method and device
CN106951759A (en) * 2017-03-07 2017-07-14 青岛海信移动通信技术股份有限公司 Unlocked by fingerprint control method and device
CN107018226A (en) * 2017-03-08 2017-08-04 广东欧珀移动通信有限公司 Unlocking screen method and mobile terminal
CN107025022A (en) * 2017-03-08 2017-08-08 广东欧珀移动通信有限公司 The control method and terminal device of terminal device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110691403A (en) * 2019-09-25 2020-01-14 出门问问信息科技有限公司 Information processing method, electronic equipment and computer readable storage medium
CN111291653A (en) * 2020-01-21 2020-06-16 Oppo(重庆)智能科技有限公司 Fingerprint event reporting method and device and electronic equipment

Also Published As

Publication number Publication date
CN107562350B (en) 2020-09-04

Similar Documents

Publication Publication Date Title
CN105138171B (en) Touch key-press and fingerprint identification method
CN104571922B (en) Touch-responsive method, apparatus and terminal
KR101836340B1 (en) Method and device for realizing touch button and fingerprint identification, and terminal device
CN104238912B (en) application control method and device
CN104866749B (en) Operate response method and device
CN106815546A (en) fingerprint identification method and device
CN106951884A (en) Gather method, device and the electronic equipment of fingerprint
CN104951159A (en) Touch key and fingerprint identification method
CN104598076B (en) Touch information screen method and device
CN103995838B (en) A kind of processing method of data record, device and electronic equipment
CN107102772A (en) Touch control method and device
CN105260115A (en) Method and device for realizing single-hand mode, and intelligent terminal
CN104536684A (en) Interface displaying method and device
CN108319886A (en) Fingerprint identification method and device
CN107562268A (en) Operation performs method, apparatus and storage medium
CN106201126A (en) Touch screen and fingerprint recognition realize device and terminal unit
CN106843592A (en) Touch control method and device and mobile terminal
CN107643818A (en) Function open method and device
CN106681618A (en) Method and device for waking up footprint identification module and mobile terminal
CN106503516A (en) Terminal, unlocked by fingerprint method and device
CN106469014A (en) Terminal, fingerprint Identification sensor awakening method and device
CN106469013A (en) Terminal, fingerprint Identification sensor awakening method and device
CN106980409A (en) Input control method and device
CN107168566A (en) Operator schema control method, device and terminal electronic device
CN107958239A (en) Fingerprint identification method and 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