CN108513157A - The method, apparatus and computer readable storage medium of keystroke handling - Google Patents

The method, apparatus and computer readable storage medium of keystroke handling Download PDF

Info

Publication number
CN108513157A
CN108513157A CN201810281335.3A CN201810281335A CN108513157A CN 108513157 A CN108513157 A CN 108513157A CN 201810281335 A CN201810281335 A CN 201810281335A CN 108513157 A CN108513157 A CN 108513157A
Authority
CN
China
Prior art keywords
function button
instruction
function
broadcast message
keystroke handling
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.)
Pending
Application number
CN201810281335.3A
Other languages
Chinese (zh)
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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Huizhou TCL Home Appliances Group 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 Huizhou TCL Home Appliances Group Co Ltd filed Critical Huizhou TCL Home Appliances Group Co Ltd
Priority to CN201810281335.3A priority Critical patent/CN108513157A/en
Publication of CN108513157A publication Critical patent/CN108513157A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • H04N21/42206User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor characterized by hardware details
    • H04N21/4221Dedicated function buttons, e.g. for the control of an EPG, subtitles, aspect ratio, picture-in-picture or teletext
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a kind of methods of keystroke handling, including:Judge whether the key command received is function button instruction, it is instructed if it is function button, the processing mode of the function button instruction is selected according to current platform type, the processing mode instructed according to the function button, operation and the function button instruct associated application processing, are instructed with handling the function button.The invention also discloses a kind of device of keystroke handling and computer readable storage mediums.The present invention sends broadcast message function by system registry and starts service function, when system receives function key instruction according to Platform Type by the way of sending broadcast message or startup service, the global operation for realizing function button makes function button instruction that can be timely responded under any application scenarios.

Description

The method, apparatus and computer readable storage medium of keystroke handling
Technical field
The present invention relates to ntelligent television technolog field more particularly to the devices of a kind of method of keystroke handling, keystroke handling And computer readable storage medium.
Background technology
With the rise of Android intelligent operating system, Android operation system is using more and more extensive.Many intelligence electricity at present Depending on using Android operation system, since the operation application scenarios of TV and mobile phone are different, in the Android operation system of smart television To encountering many problems to be solved in the key command processing of intelligent remote controller.
In existing smart television Android system, the remote controller key received instructs Distribution Events by window management mould Block unifies intercept process, and is sent to currently running application and is handled, when key command be function key when, cannot achieve and When the associated application of calling function key come processing function key instruction function.
The above is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that the above is existing skill Art.
Invention content
The main purpose of the present invention is to provide a kind of method, apparatus of keystroke handling and computer readable storage medium, Aim to solve the problem that in the prior art when key command for function key when can not in time the associated application of calling function key carry out processing function The technical issues of key instructs.
To achieve the above object, the present invention provides a kind of method of keystroke handling, and the button processing method includes as follows Step:
Judge whether the key command received is function button instruction;
It is instructed if it is function button, the processing mode of the function button instruction is selected according to current platform type;
According to the processing mode that the function button instructs, operation and the function button instruct associated application processing, To handle the function button instruction.
Preferably, the processing mode instructed according to the function button, operation are associated with function button instruction Application processing, include to handle function button instruction step:
When it is to send broadcast message to select the processing mode of the function button instruction, broadcast message is sent, with notice Associated application is instructed to handle the function button instruction with the function button.
Preferably, it is wrapped after the processing mode step that the function button instruction is selected according to current platform type It includes:
Obtain the identifier that associated application is instructed with the function button;
When it is to send broadcast message to select the processing mode of the function button instruction, sends and carry the identifier Broadcast message for identifying the broadcast message with the associated application of the function button, and handles the function button instruction.
Preferably, described when it is to send broadcast message to select the processing mode of the function button instruction, send broadcast Message, to include before notice and the function button instruction associated application processing function button instruction step:
When it is to send broadcast message to select the processing mode of the function button instruction, judge that currently running application is It is no to handle the function button instruction;
If currently running application cannot handle the function button instruction, sends broadcast message and answered to other function buttons With.
Preferably, the processing mode instructed according to the function button, operation are associated with function button instruction Application, include to handle function button instruction step:
Obtain the identifier that associated application is instructed with the function button;
When it is to start service to select the processing mode of the function button instruction, the startup for carrying the identifier is sent It instructs and instructs associated application to the function button, start and the function button instructs associated application, to handle State function button instruction.
Preferably, described when it is to start service to select the processing mode of the function button instruction, startup and the work( Can the associated application of key command, include to handle function button instruction step:
When it is to start service to select the processing mode of the function button instruction, judge that currently running application whether may be used To handle the function button instruction;
If currently running application cannot handle the function button instruction, starts and function button instruction is associated Using to handle the function button instruction.
Preferably, described to judge whether the key command received is that function button instruction step includes before:
The process for sending broadcast message and the process for starting service are created in system initialization, and the hair is respectively set Send the Platform Type and the Platform Type for starting service processes and being supported that broadcast message process is supported.
Preferably, the process that the process for sending broadcast message and startup service are created in system initialization, and point The Platform Type and the Platform Type for starting service processes and being supported that the transmission broadcast message process is supported are not set Include after step:
Function key application is arranged to support to receive the broadcast message that the broadcast message process is sent;
The function key application is arranged simultaneously to support to receive the enabled instruction for starting service processes and sending.
In addition, to achieve the above object, the present invention also provides the device of the keystroke handling, which includes:Memory, Processor and it is stored in the keystroke handling program that can be run on the memory and on the processor, the keystroke handling journey The step of sequence realizes button processing method as described above when being executed by the processor.
In addition, to achieve the above object, the present invention also proposes a kind of computer readable storage medium, which is characterized in that institute It states and is stored with keystroke handling program on computer readable storage medium, realized such as when the keystroke handling program is executed by processor Above the step of button processing method.
The method, apparatus and readable computer storage medium for a kind of keystroke handling that the embodiment of the present invention proposes, display Judge whether the key command received is function button instruction, instructs if it is function button, is selected according to current platform type The processing mode for selecting the function button instruction, according to the processing mode that the function button instructs, operation and the function are pressed Key instructs associated application processing, is instructed with handling the function button.
The present invention sends broadcast message function by system registry and starts service function, refers to when system receives function key It enables, according to Platform Type by the way of sending broadcast message or starting service, realizes the global operation of function button, make function Key command can be timely responded under any application scenarios.It is simultaneous simultaneously this invention simplifies the processing of function button Appearance effectively solves the problems, such as that each cassette mechanism platform need to integrate different software since hardware is different, reduces Developmental Engineer and collection At the workload of engineer.
Description of the drawings
Fig. 1 is the terminal structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of the method first embodiment of keystroke handling of the present invention;
Fig. 3 is the flow diagram of the method second embodiment of keystroke handling of the present invention;
Fig. 4 is the flow diagram of the method 3rd embodiment of keystroke handling of the present invention;
Fig. 5 is the flow diagram of the method fourth embodiment of keystroke handling of the present invention;
Fig. 6 is the flow diagram of the 5th embodiment of method of keystroke handling of the present invention;
Fig. 7 is the flow diagram of the method sixth embodiment of keystroke handling of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific implementation mode
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The primary solutions of the embodiment of the present invention are:Judge whether the key command received is function button instruction, It is instructed if it is function button, the processing mode of the function button instruction is selected according to current platform type, according to the work( The processing mode of energy key command, operation and the function button instruct associated application processing, to handle the function button Instruction.
Since in the prior art, the window management module of system unifies the button that the remote controler that intercept process receives is sent out Instruction, sends it to currently running application and is handled, and when key command is that function button instructs, can not call in time Associated application is instructed to carry out the function that processing function key instructs with function button.
The present invention provides a solution, sends broadcast message function by system registry and starts service function, when System receives function key instruction, according to Platform Type by the way of sending broadcast message or starting service, realizes that function is pressed The global operation of key makes function button instruction that can be timely responded under any application scenarios.
As shown in Figure 1, the terminal structure schematic diagram for the hardware running environment that Fig. 1, which is the embodiment of the present invention, to be related to.
Terminal of the embodiment of the present invention is keystroke handling device.
As shown in Figure 1, the keystroke handling device may include:Processor 1001, such as CPU, communication bus 1002, storage Device 1003, display 1004.Wherein, communication bus 1002 is for realizing the connection communication between these components.Memory 1003 It can be high-speed RAM memory, can also be stable memory (non-volatile memory), such as magnetic disk storage. Memory 1003 optionally can also be the storage device independently of aforementioned processor 1001.
It will be understood by those skilled in the art that the restriction of the not structure paired terminal of terminal structure shown in Fig. 1, can wrap It includes than illustrating more or fewer components, either combines certain components or different components arrangement.
As shown in Figure 1, as may include operating system and button in a kind of memory 1003 of computer storage media Handle application program.
In device shown in Fig. 1, processor 1001 can be used for calling the keystroke handling journey stored in memory 1003 Sequence, and execute following operation:
Judge whether the key command received is function button instruction;
It is instructed if it is function button, the processing mode of the function button instruction is selected according to current platform type;
According to the processing mode that the function button instructs, operation and the function button instruct associated application processing, To handle the function button instruction.
Further, processor 1001 can call the keystroke handling application program stored in memory 1003, also execute It operates below:
When it is to send broadcast message to select the processing mode of the function button instruction, broadcast message is sent, with notice Associated application is instructed to handle the function button instruction with the function button.
Further, processor 1001 can call the keystroke handling application program stored in memory 1003, also execute It operates below:
Obtain the identifier that associated application is instructed with the function button;
When it is to send broadcast message to select the processing mode of the function button instruction, sends and carry the identifier Broadcast message for identifying the broadcast message with the associated application of the function button, and handles the function button instruction.
Further, processor 1001 can call the keystroke handling application program stored in memory 1003, also execute It operates below:
When it is to send broadcast message to select the processing mode of the function button instruction, judge that currently running application is It is no to handle the function button instruction;
If currently running application cannot handle the function button instruction, sends broadcast message and answered to other function buttons With.
Further, processor 1001 can call the keystroke handling application program stored in memory 1003, also execute It operates below:
Obtain the identifier that associated application is instructed with the function button;
When it is to start service to select the processing mode of the function button instruction, the startup for carrying the identifier is sent It instructs and instructs associated application to the function button, start and the function button instructs associated application, to handle State function button instruction.
Further, processor 1001 can call the keystroke handling application program stored in memory 1003, also execute It operates below:
When it is to start service to select the processing mode of the function button instruction, judge that currently running application whether may be used To handle the function button instruction;
If currently running application cannot handle the function button instruction, starts and function button instruction is associated Using to handle the function button instruction.
Further, processor 1001 can call the keystroke handling application program stored in memory 1003, also execute It operates below:
The process for sending broadcast message and the process for starting service are created in system initialization, and the hair is respectively set Send the Platform Type and the Platform Type for starting service processes and being supported that broadcast message process is supported.
Further, processor 1001 can call the keystroke handling application program stored in memory 1003, also execute It operates below:
Function key application is arranged to support to receive the broadcast message that the broadcast message process is sent;
The function key application is arranged simultaneously to support to receive the enabled instruction for starting service processes and sending.
With reference to Fig. 2, first embodiment of the invention provides a kind of method of keystroke handling, the method includes:
Step S10 judges whether the key command received is function button instruction.
The key command that display receives is segmented into function button and non-functional button two major classes.With TV remote controller For, wherein function button includes power supply, setting, signal, channel selecting key, volume adjustment key, history, collection etc., non-functional Button includes directionkeys, return key etc..As it can be seen that user by the instruction that function button is sent out be to the specific function of display into Row setting is checked, often first needs to come out the corresponding interface display of specific function, so that user is by including directionkeys It is configured with these non-functional buttons of return key.And the interface that user currently shows display by non-functional button It is manipulated.
Since the control function to display to be realized of two class buttons is different, display to judge to receive by Key instruction is function button instruction or non-functional key command, to carry out corresponding processing.Display and control display By the key assignments of protocol definition key command between equipment, display judged whether according to the key assignments of the key command received be Function button.
Step S20 is instructed if it is function button, and the processing of the function button instruction is selected according to current platform type Mode.
Display can design more money types according to different application scenarios or the market demand, using different movement hardware, Run different movement hardware platforms.The software function that different movement hardware platforms can cause display that can support is different, goes out In saving software development and the considerations of software maintenance cost, need the software platform system compatible run on display to support a variety of Movement hardware platform can recognize that the type of movement hardware platform, to identify its software function supported.
In this example it is shown that device provides the processing mode of multiple functions key command, and different movement hardware The processing mode that platform is supported is different.Display calls bottom layer driving function in the function button instruction for identifying reception Currently running hardware platform type is obtained, thereby determines that the processing mode of supported function button instruction.
Step S30, according to the processing mode that the function button instructs, operation and the function button instruct associated answer With processing, instructed with handling the function button.
What is run on display is Android operation system, and system is carried based on the application development frameworks on operating system The component of confession realizes the processing instructed to function button.
There are four big components in Android application program Development Framework:Activity, service, radio receiver, content supplier.This reality It applies and needs the service of using and radio receiver this two components in the technical solution of example.
Service is a kind of calculation type component, without user interface, for executing series of computation task on backstage, and can To be interacted with other assemblies.Radio receiver is a kind of message-type component, in different component or even different answering Message is transmitted between.Based on service and both components of radio receiver, system is capable of providing transmission broadcast message and starts Service two ways carrys out processing function key command.
When it is to send broadcast message to select the processing mode of the function button instruction, broadcast message is sent, with notice Associated application is instructed to handle the function button instruction with the function button.
When it is to start service to select the processing mode of the function button instruction, starts and function button instruction is closed The application of connection is instructed with handling the function button.
Specific steps of the system based on service and two kinds of component processing function key commands of radio receiver are described below:
1) there are one special application processes to receive and process the key command received.When the application program is according to default Function button value judge the key command being currently received be function button instruction when, according to the hardware platform type of acquisition Judge, is to send broadcast message or start service.
2) when judging it is to send broadcast message, the subclass of broadcast component is created, which calls sendBroadcast methods Intent objects are sent to send broadcast message, other applications passively receive broadcast message.
If 3) judged be start service, create the subclass of serviced component, the subclass call StartService methods or Person's BlindService methods send Intent objects and are serviced to start,
The application program for receiving the enabled instruction is activated operation, with processing function key command.
In the present embodiment, by identify function button instruct, according to Platform Type select send broadcast message or Start method of service and carry out processing function key command, realize the global operation of function button, makes function button instruction any It can be timely responded under application scenarios.
Further, with reference to Fig. 3, second embodiment of the invention provides a kind of side of keystroke handling based on first embodiment Method, the present embodiment further include after step S20:
Step S40 obtains the identifier that associated application is instructed with the function button.
Step S50 is sent when it is to send broadcast message to select the processing mode of the function button instruction described in carrying The broadcast message of identifier for identifying the broadcast message with the associated application of the function button, and handles the function Key command.
System sends broadcast message using broadcast component to realize, broadcast component is by the object of Intent classes and using journey Sequence component is communicated.The object of one Intent class is substantially a group information, and the information content may include the mark of application program Know symbol, the Intent object application components will be handled for specified.
When instructing associated application program to receive the broadcast message for being carried on Intent objects with function button, pass through reading When the application program identification that Intent objects carry being taken to identify that the broadcast message needs processing, immediately according to the broadcast message The function button instruction of middle carrying is handled.
In the present embodiment, the broadcast of the identifier of associated application program is instructed to disappear with function button by sending to carry Breath realizes and instructs associated application program that can quickly recognize broadcast message to be treated with function button, improves The efficiency of processing function key command.
Further, with reference to Fig. 4, third embodiment of the invention provides a kind of side of keystroke handling based on first embodiment Method, the present embodiment further include after step S20:
Step S60 obtains the identifier that associated application is instructed with the function button.
Step S70 sends when it is to start service to select the processing mode of the function button instruction and carries the mark The enabled instruction of symbol is given and the function button instructs associated application, starts and the function button instructs associated application, To handle the function button instruction.
System realizes startup application component using serviced component, and serviced component is by the objects of Intent classes and answers It is communicated with program assembly.The object of one Intent class is substantially a group information, and the information content may include application program Identifier, will handle the Intent object application components for specified.
When instructing associated application program to receive the enabled instruction for being carried on Intent objects with function button, pass through reading The application program identification that Intent objects carry is taken to identify that the enabled instruction needs to respond, the startup refers to according to response immediately It enables and starts operation program processing function key command.
In the present embodiment, the startup of the identifier of associated application program is instructed to refer to function button by sending to carry It enables, realizes and instruct associated application program that can quickly recognize the enabled instruction for needing to respond with function button, improve The efficiency of processing function key command.
Further, with reference to Fig. 5, fourth embodiment of the invention provides one kind based on the first embodiment or the second embodiment and presses The method of key processing, the present embodiment further include after step S20:
Step S80 judges current operation when it is to send broadcast message to select the processing mode of the function button instruction Application whether can handle function button instruction.
Step S90 sends broadcast message and gives other work(if currently running application cannot handle the function button instruction It can button application.
When system receives function button instruction, if the processing mode of selection is to send broadcast message, it can increase and be The transmission burden of communication information in system, and have certain processing delay.So when the processing mode that function button instruction is determined When to broadcast the message, it can first judge whether currently running application can be with processing function key command.If currently running Using can with processing function key command, directly transmit unicast messages give currently running application, notice application processing function press Key instructs;If currently running application is unable to processing function key command, broadcast message is retransmited to other function buttons Using waiting and function button instruct associated application to handle it.
In the present embodiment, by first judging whether currently running application can handle work(before sending broadcast message Energy key command sends out broadcast message when it cannot be handled to other function button applications, saves the communication money of system again Source optimizes process flow.
Further, with reference to Fig. 6, fifth embodiment of the invention is based on first embodiment or 3rd embodiment provides one kind and presses The method of key processing, the present embodiment further include after step S20:
Step S100 judges currently running when it is to start service to select the processing mode of the function button instruction Using whether function button instruction can be handled.
Step S110 starts and the function button if currently running application cannot handle the function button instruction Associated application is instructed, is instructed with handling the function button.
When system receives function button instruction, if the processing mode of selection is to start service, consumption system is needed Process resource, and have certain processing delay.So when it is to start service that the processing mode of function button instruction, which is determined, it can First to judge whether currently running application can be with processing function key command.If currently running application can be with processing function Key command directly transmits unicast messages to currently running application, notifies application processing function key command;If current fortune Capable application is unable to processing function key command, restarts and instructs associated application processing function key command with function button.
In the present embodiment, by first judging whether currently running application can be pressed with processing function before starting service Key instructs, and restarts when it cannot be handled and instructs associated application processing function button with function button, saves system Process resource improves treatment effeciency.
Further, with reference to Fig. 7, sixth embodiment of the invention is based on first embodiment to any one implementation of the 5th embodiment Example provides a kind of method of keystroke handling, and the present embodiment includes before step S10:
Step S120 creates the process for sending broadcast message and the process for starting service in system initialization, and respectively The Platform Type and the Platform Type for starting service processes and being supported that the transmission broadcast message process is supported are set.
The process for sending broadcast message and the process for starting service are created in system initialization, and are to be respectively created solely Vertical process sends broadcast message and operation service.It does not go to send in the process of application program and broadcasts or start service, it can be with It avoids broadcast or service when application program end of run from being terminated, broadcasts or service when process where application is moved to end and still transport Row, is not influenced by other processes, is conducive to provide broadcast and service for multiple processes, has higher flexibility.
Since hardware chip used by device, hardware platform type are different, the function button that can be supported instructs processing side Formula is different, so also needing to that the Platform Type and start service processes institute for sending that broadcast message process is supported is respectively set The Platform Type of support.
Step S130, setting function key application are supported to receive the broadcast message that the broadcast message process is sent, be set simultaneously The function key application is set to support to receive the enabled instruction for starting service processes and sending.
Function key application refers to that can handle the application component of corresponding function button instruction, is received to its support wide Message or enabled instruction are broadcast, needs first to register broadcast reception device assembly and service group in the configuration file of the application component Part, system obtain the function of the contained component of application and its support by reading the configuration file of the application.For example, system passes through< service>、<receiver>Label come judge application program whether comprising serviced component, broadcast reception device assembly.Simultaneously because The communication of inter-module will rely on the object of Intent classes, function key application component that need to also show connect in its configuration file Receive and respond the calling of Intent objects.
In the present embodiment, by system initialization create send broadcast message process and start service into Journey, and the Platform Type that two kinds of processing modes are supported is respectively set, and the configuration file that function key is applied is set, it realizes Different types of function key application program can flexibly choose supported processing according to the hardware platform type that device is run Mode.
The present invention also provides a kind of keystroke handling device, keystroke handling device includes:Memory, processor, display and It is stored in the keystroke handling program that can be run on the memory and on the processor, the keystroke handling program is described The step of button processing method is realized when processor executes.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, the computer readable storage medium On be stored with keystroke handling program, the step of the button processing method is realized when the keystroke handling program is executed by processor Suddenly.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that process, method, article or system including a series of elements include not only those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this There is also other identical elements in the process of element, method, article or system.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be expressed in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions use so that a station terminal equipment (can be mobile phone, Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of method of keystroke handling, which is characterized in that the method for the keystroke handling includes the following steps:
Judge whether the key command received is function button instruction;
It is instructed if it is function button, the processing mode of the function button instruction is selected according to current platform type;
According to the processing mode that the function button instructs, operation and the function button instruct associated application processing, with place Manage the function button instruction.
2. the method for keystroke handling as described in claim 1, which is characterized in that the place instructed according to the function button Reason mode, operation and the function button instruct associated application processing, include to handle the function button instruction step:
When it is to send broadcast message to select the processing mode of the function button instruction, broadcast message is sent, with notice and institute Stating function button instructs associated application to handle the function button instruction.
3. the method for keystroke handling as claimed in claim 2, which is characterized in that described according to described in the selection of current platform type Include after the processing mode step of function button instruction:
Obtain the identifier that associated application is instructed with the function button;
When it is to send broadcast message to select the processing mode of the function button instruction, the broadcast for carrying the identifier is sent Message for identifying the broadcast message with the associated application of the function button, and handles the function button instruction.
4. the method for keystroke handling as claimed in claim 2, which is characterized in that described to work as what the selection function button instructed Processing mode is when sending broadcast message, to send broadcast message, instructs associated application to handle with notice and the function button Include before the function button instruction step:
When it is to send broadcast message to select the processing mode of the function button instruction, judge that currently running application whether may be used To handle the function button instruction;
If currently running application cannot handle the function button instruction, sends broadcast message and give other function button applications.
5. the method for keystroke handling as described in claim 1, which is characterized in that the place instructed according to the function button Reason mode, operation and the function button instruct associated application, include to handle the function button instruction step:
Obtain the identifier that associated application is instructed with the function button;
When it is to start service to select the processing mode of the function button instruction, the enabled instruction for carrying the identifier is sent Associated application is instructed to the function button, starts and the function button instructs associated application, to handle the work( It can key command.
6. the method for keystroke handling as claimed in claim 5, which is characterized in that described to work as what the selection function button instructed Processing mode is to start when starting service and the function button instructs associated application, instructed with handling the function button Step includes:
When it is to start service to select the processing mode of the function button instruction, judge whether currently running application can be located Manage the function button instruction;
If currently running application cannot handle the function button instruction, starts and the function button instructs associated answer With to handle the function button instruction.
7. as claim 1 to 6 any one of them keystroke handling method, which is characterized in that it is described judge receive by Whether key instruction is that function button instruction step includes before:
The process for sending the process to broadcast the message and starting service is created in system initialization, and described send extensively is respectively set Broadcast the Platform Type and the Platform Type for starting service processes and being supported that message procedure is supported.
8. the method for keystroke handling as claimed in claim 7, which is characterized in that described created in system initialization sends extensively Broadcast the process of message and start the process of service, and be respectively set the Platform Type supported of transmission broadcast message process and Include after the Platform Type step that the startup service processes are supported:
Function key application is arranged to support to receive the broadcast message that the broadcast message process is sent;
The function key application is arranged simultaneously to support to receive the enabled instruction for starting service processes and sending.
9. a kind of device of keystroke handling, which is characterized in that described device includes:Memory, processor and it is stored in described deposit On reservoir and the keystroke handling program that can run on the processor, when the keystroke handling program is executed by the processor It realizes such as the step of button processing method described in any item of the claim 1 to 8.
10. a kind of computer readable storage medium, which is characterized in that be stored at button on the computer readable storage medium Program is managed, such as keystroke handling described in any item of the claim 1 to 8 is realized when the keystroke handling program is executed by processor The step of method.
CN201810281335.3A 2018-03-30 2018-03-30 The method, apparatus and computer readable storage medium of keystroke handling Pending CN108513157A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810281335.3A CN108513157A (en) 2018-03-30 2018-03-30 The method, apparatus and computer readable storage medium of keystroke handling

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810281335.3A CN108513157A (en) 2018-03-30 2018-03-30 The method, apparatus and computer readable storage medium of keystroke handling

Publications (1)

Publication Number Publication Date
CN108513157A true CN108513157A (en) 2018-09-07

Family

ID=63377909

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810281335.3A Pending CN108513157A (en) 2018-03-30 2018-03-30 The method, apparatus and computer readable storage medium of keystroke handling

Country Status (1)

Country Link
CN (1) CN108513157A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110309005A (en) * 2019-06-28 2019-10-08 百度在线网络技术(北京)有限公司 A kind of funcall method, apparatus, terminal device and storage medium
CN111930646A (en) * 2020-08-10 2020-11-13 天津七一二通信广播股份有限公司 Method for realizing external key extension module of Android embedded equipment
CN113170223A (en) * 2018-11-23 2021-07-23 索尼集团公司 Broadcaster application remote control key handling
CN113473230A (en) * 2021-07-02 2021-10-01 海信视像科技股份有限公司 Method for realizing channel switching by using third-party application and display equipment
US11924496B2 (en) 2020-12-07 2024-03-05 Hisense Visual Technology Co., Ltd. Channel switching method for display apparatus, and display apparatus

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105791990A (en) * 2014-12-15 2016-07-20 深圳Tcl数字技术有限公司 Global key processing method and system of smart television
CN106060617A (en) * 2016-06-17 2016-10-26 Tcl集团股份有限公司 Key function configuration method and system
CN106303639A (en) * 2015-05-14 2017-01-04 Tcl集团股份有限公司 A kind of realization method and system of intelligent television full keyboard function key
CN107135423A (en) * 2017-05-04 2017-09-05 山东浪潮商用系统有限公司 The method and device of application program in a kind of startup set top box
US9807446B2 (en) * 2012-06-14 2017-10-31 Hisense International Co., Ltd. Remote control having hotkeys with dynamically assigned functions

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9807446B2 (en) * 2012-06-14 2017-10-31 Hisense International Co., Ltd. Remote control having hotkeys with dynamically assigned functions
CN105791990A (en) * 2014-12-15 2016-07-20 深圳Tcl数字技术有限公司 Global key processing method and system of smart television
CN106303639A (en) * 2015-05-14 2017-01-04 Tcl集团股份有限公司 A kind of realization method and system of intelligent television full keyboard function key
CN106060617A (en) * 2016-06-17 2016-10-26 Tcl集团股份有限公司 Key function configuration method and system
CN107135423A (en) * 2017-05-04 2017-09-05 山东浪潮商用系统有限公司 The method and device of application program in a kind of startup set top box

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113170223A (en) * 2018-11-23 2021-07-23 索尼集团公司 Broadcaster application remote control key handling
CN113170223B (en) * 2018-11-23 2023-09-15 索尼集团公司 Broadcaster application remote key processing
CN110309005A (en) * 2019-06-28 2019-10-08 百度在线网络技术(北京)有限公司 A kind of funcall method, apparatus, terminal device and storage medium
CN110309005B (en) * 2019-06-28 2022-03-25 百度在线网络技术(北京)有限公司 Function calling method and device, terminal equipment and storage medium
CN111930646A (en) * 2020-08-10 2020-11-13 天津七一二通信广播股份有限公司 Method for realizing external key extension module of Android embedded equipment
CN111930646B (en) * 2020-08-10 2022-12-06 天津七一二移动通信有限公司 Method for realizing external key extension module of Android embedded equipment
US11924496B2 (en) 2020-12-07 2024-03-05 Hisense Visual Technology Co., Ltd. Channel switching method for display apparatus, and display apparatus
CN113473230A (en) * 2021-07-02 2021-10-01 海信视像科技股份有限公司 Method for realizing channel switching by using third-party application and display equipment

Similar Documents

Publication Publication Date Title
CN108513157A (en) The method, apparatus and computer readable storage medium of keystroke handling
CN110467070B (en) Elevator service request based on social media application component
CN103312528B (en) A kind of heartbeat message sending method and user terminal
CN104980898A (en) Information pushing method, system and equipment
CN113316198A (en) QoS generation method, device and system
CN112332997B (en) Distribution network method of terminal equipment, terminal equipment and computer readable storage medium
CN104656515B (en) The long-range control method and system of dual system smart machine
CN105577721A (en) Remote terminal control method and system thereof
CN108650667A (en) Terminal scheduling method and apparatus
CN103891175A (en) Method for providing an m2m service, and method and apparatus for m2m communication
CN103686956B (en) Mobile terminal and its data network communications method and data network request agent apparatus
CN103618967A (en) Method and device for interaction of mobile terminal and television end
CN109116832A (en) Vehicle diagnostic data wireless communication method
CN105227984B (en) Remote controller key distribution method and device
CN106941671A (en) Communication event processing method and mobile terminal based on double card dual system
CN113138812A (en) Spacecraft task scheduling method and device
CN111294252B (en) Cluster test system
CN108052401A (en) System property monitor method, terminal device and computer readable storage medium
CN114900558B (en) Universal equipment management protocol control method and device
CN114710522B (en) Vehicle-mounted network architecture system and method based on Android platform
CN114520827B (en) Message receiving method, pushing method, system and medium
CN103686863A (en) Control signaling transfer method and control signaling transfer system
CN106303742B (en) The response method and device of panel button operation
CN110515662A (en) Long-range control method, system, equipment and the readable storage medium storing program for executing of dual-system device
CN114490134A (en) Event processing method, system, device, computer equipment and storage medium

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20201231

Address after: 9 / F, building D4, international e city, 1001 Zhongshan Garden Road, Xili street, Nanshan District, Shenzhen City, Guangdong Province

Applicant after: SHENZHEN TCL NEW TECHNOLOGY Co.,Ltd.

Address before: 516001, 6th Floor, TCL Building, No. 6, Eling South Road, Huizhou City, Guangdong Province

Applicant before: HUIZHOU TCL HOME APPLIANCE GROUP Co.,Ltd.

WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180907