CN114840351A - Key event processing method and device, control equipment and readable storage medium - Google Patents

Key event processing method and device, control equipment and readable storage medium Download PDF

Info

Publication number
CN114840351A
CN114840351A CN202210271131.8A CN202210271131A CN114840351A CN 114840351 A CN114840351 A CN 114840351A CN 202210271131 A CN202210271131 A CN 202210271131A CN 114840351 A CN114840351 A CN 114840351A
Authority
CN
China
Prior art keywords
key
cloud desktop
application
key event
cloud
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
CN202210271131.8A
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.)
Alibaba China Co Ltd
Original Assignee
Alibaba China 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 Alibaba China Co Ltd filed Critical Alibaba China Co Ltd
Priority to CN202210271131.8A priority Critical patent/CN114840351A/en
Publication of CN114840351A publication Critical patent/CN114840351A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/452Remote windowing, e.g. X-Window System, desktop virtualisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a key event processing method, a key event processing device, control equipment and a readable storage medium, wherein the method comprises the following steps: responding to a key event input by a user on a displayed cloud desktop, processing the key event through a cloud desktop application, and simultaneously storing the key event to a key processing queue; the key event is sent by a user through operating an area displayed on the cloud desktop; and responding to a consumption instruction returned by the cloud desktop application, consuming the key events in the key processing queue, and transmitting the key events to a target local application associated with the key events. Therefore, the isolation state between the cloud desktop application and other local applications is broken, and the local application window covered by the cloud desktop can receive the key event of the system and enter a normal working state.

Description

Key event processing method and device, control equipment and readable storage medium
Technical Field
The application relates to the technical field of cloud computing, in particular to a key event processing method and device, control equipment and a readable storage medium.
Background
The cloud desktop is obtained by virtualizing components such as a processor, a memory, a hard disk and the like contained in a computer host, is a new mode for replacing a traditional computer, and can be used by installing local application of the cloud desktop on a terminal, so that the cloud desktop and various cloud application programs on the cloud desktop can be used. However, due to the limitation of data transmission and the like, compared with local application, the actual use effect of part of cloud application is poor, and the cloud desktop and the local application need to be used in combination.
However, different local applications are isolated from each other, and when the cloud desktop is overlaid on another local application window, the local application window on the bottom layer cannot receive the key event of the system.
Disclosure of Invention
The problem solved by the application is that the local application window covered by the cloud desktop cannot receive the key event of the system.
In order to solve the above problem, a first aspect of the present application provides a method for processing a key event, including:
responding to a key event input by a user on a displayed cloud desktop, processing the key event through a cloud desktop application, and simultaneously storing the key event to a key processing queue; the key event is sent by a user through operating an area displayed on the cloud desktop;
and responding to a consumption instruction returned by the cloud desktop application, consuming the key events in the key processing queue, and transmitting the key events to a target local application associated with the key events.
A second aspect of the present application provides a key event processing apparatus, including:
the button storage module is used for responding to a button event input by a user on a displayed cloud desktop, processing the button event through a cloud desktop application and storing the button event to a button processing queue; the key event is sent by a user through operating an area displayed on the cloud desktop;
and the key consumption module is used for responding to a consumption instruction returned by the cloud desktop application, consuming the key events in the key processing queue and transmitting the key events to a target local application associated with the key events.
A third aspect of the present application provides a control apparatus comprising: a memory and a processor;
the memory for storing a program;
the processor, coupled to the memory, to execute the program to:
responding to a key event input by a user on a displayed cloud desktop, processing the key event through a cloud desktop application, and simultaneously storing the key event to a key processing queue; the key event is sent by a user through operating an area displayed on the cloud desktop;
and responding to a consumption instruction returned by the cloud desktop application, consuming the key events in the key processing queue, and transmitting the key events to a target local application associated with the key events.
A fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, the program being executed by a processor to implement the key event processing method described above.
According to the method and the device, the key events are temporarily stored by setting the key processing queue, after the cloud desktop application determines that the key events are key events of other local applications, the key events are transmitted to the associated local applications to be processed, and the isolation state between the cloud desktop application and the other local applications is broken, so that the local application window covered by the cloud desktop can receive the key events of the system and enter a normal working state.
The key event processing method can uniformly process key logics between different cloud desktop applications and other local applications, breaks the limitation of application management, and improves user experience.
Drawings
FIG. 1 is a schematic diagram of a key event processing method according to the present application;
FIG. 2 is a flow chart of a method for key event processing according to one embodiment of the present application;
FIG. 3 is a flowchart illustrating a method for processing a key event according to another embodiment of the present application;
FIG. 4 is an example of a window of a target local application and a window of a cloud application being independent of each other on a cloud desktop;
FIG. 5 is an example of a window of a target local application on a cloud desktop being obscured by a window of a cloud application;
FIG. 6 is an example of a window of a target local application on a cloud desktop obscuring a window of a cloud application;
FIG. 7 is a block diagram of a key event processing device according to an embodiment of the present application;
fig. 8 is a block diagram of a control device according to an embodiment of the present application.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, embodiments accompanying the present application are described in detail below. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
It is to be noted that, unless otherwise specified, technical or scientific terms used herein shall have the ordinary meaning as understood by those skilled in the art to which this application belongs.
The local applications are isolated from each other, the traditional local application key logic can only be transferred between windows of a single local application, and when one local application window is covered on another local application window, the underlying local application window cannot receive key events of the system.
The cloud desktop application is a local application, but in the specific running process of the cloud desktop application, the actual processing of the content is completed through the cloud. After the cloud desktop application is opened, the cloud desktop covers windows of all local applications, so that the local applications at the bottom layer cannot receive key events of the system; and is unable to respond to any operation of a key event.
Although a lot of cloud applications exist on the cloud desktop, due to the limitation of data transmission and the like, partial functions of the cloud applications have a poor use effect compared with local applications; video functions such as stapling and conferencing require a large amount of data transmission due to the requirements of clarity and real-time, and when video or conferencing is performed using staples in a cloud desktop, the clarity and latency are poor compared to local stapling.
In order to solve the problem, when the cloud desktop is used, a part of the local application can be used. But the above solution cannot be implemented due to the mutual isolation of the local applications.
In order to solve the problems, the application provides a new key interaction scheme, which can uniformly process the key logic of the cloud desktop applied to other local applications and break the limitation of application management.
For ease of understanding, the following terms that may be used are explained herein:
application redirection: with the technique of redirection, the native application redirects to a technique on the cloud.
The embodiment of the application provides a key event processing method, which can be executed by a key event processing device, wherein the key event processing device can be integrated in electronic equipment such as a pad, a computer, a server cluster, a data center and the like. FIG. 2 is a flowchart of a method for processing a key event according to an embodiment of the present application, and is shown in conjunction with FIG. 1; the key event processing method comprises the following steps:
s200, responding to a key event input by a user on a displayed cloud desktop, processing the key event through a cloud desktop application, and storing the key event to a key processing queue; the key event is sent by a user through operating an area displayed on the cloud desktop;
in the processing of the key event through the cloud desktop application, when the key event is an operation on a cloud application on the cloud desktop or an operation on a blank area on the cloud desktop, the cloud desktop application returns a non-consumption instruction; and when the key event is the operation of the local application, returning a consumption instruction by the cloud desktop application.
And S300, responding to a consumption instruction returned by the cloud desktop application, consuming the key events in the key processing queue, and transmitting the key events to a target local application associated with the key events.
When a user needs to operate a local application or a cloud application on a cloud desktop, the user operates the cloud desktop through a mouse or a keyboard to generate a key event. After the key event is generated, on one hand, the key event is processed by the cloud desktop application, and on the other hand, the key event is simultaneously stored in a key processing queue; the cloud desktop application processes the key event to obtain a processing result in an instruction form; if the key event is an operation on a cloud application on the cloud desktop or an operation on a blank area on the cloud desktop, the processing result is a non-consumption instruction, and if the key event is an operation on a local application, the processing result is a consumption instruction.
In another embodiment, the key event is generated not by the user operating on the cloud desktop through a mouse or a keyboard, but by the user operating on the cloud desktop through touching or sliding a touch screen; the cloud desktop can also be generated by a user operating the voice software through voice control, or generated by another user operating the cloud desktop of the user through remote operation. It can be appreciated that any user operation on the cloud desktop can generate a keystroke event. The specific operation mode is not limited in the present application.
After receiving the consumption instruction, the key processing queue directly consumes the associated key event and transmits the key event to the local application associated with the key event, namely the target local application, and the key event is processed by the target local application.
Specifically, the key events in the consumption key processing queue are the key events which are transmitted outwards and are popped out from the key processing queue; and directly popping the key event from the key processing queue without consuming the instruction, namely transmitting the key event.
In this way, the key event is temporarily stored by setting the key processing queue, and after the cloud desktop application determines that the key event is the key event of other local applications, the key event is transmitted to the associated local applications for processing, so that the isolation state between the cloud desktop application and other local applications is broken, and the local application window covered by the cloud desktop can receive the key event of the system and enter a normal working state.
The embodiment of the present application provides another key event processing method, which is similar to the aforementioned key event processing method, and the difference is that the method further includes:
s400, responding to a non-consumption instruction returned by the cloud desktop application, and popping up the key event from the key processing queue.
The cloud desktop comprises a display area of the target local application, a display area of the cloud application and other areas, and key events generated by clicking the different areas are operations on the target local application, the cloud application and the other areas (blank areas); wherein, the operation on other areas is generally regarded as an invalid operation. The operation and the invalid operation of the cloud application are operations inside the cloud desktop application, and can be normally processed by the cloud desktop application, and the specific processing process is not repeated herein.
The display area and other areas of the cloud application are clicked, other local applications are not operated, the key events stored in the key processing queue do not need to be transmitted, and the key events are directly popped out of the key processing queue, so that the cloud desktop application returns a non-consumption instruction corresponding to the key events which are directly popped out.
The embodiment of the present application provides another key event processing method, which is similar to the aforementioned key event processing method, except that before responding to a key event input by a user on a displayed cloud desktop, the method further includes:
s100, redirecting the target local application to the cloud desktop.
The system comprises a plurality of native applications, wherein the target native application which needs to be opened when the cloud desktop application is executed can be used.
In one embodiment, the target native application is determined according to usage scenario requirements. For example, in an application scene needing video, a local application such as a nail and a video is taken as a target local application; in an application scene needing to listen to music, local applications such as Tiantian star, star and the like are used as target local applications.
In another embodiment, a local application list is set, and if the local application is in the local application list, the local application is taken as a target local application, and if the local application is not in the local application list, the local application is taken as a normal local application.
Specifically, when the cloud desktop application is opened, information of a currently opened local application and a local application list are acquired, and if the currently opened local application is recorded in the local application list, the currently opened local application is taken as a target local application.
In addition, if a local application of an application has an advantage in some aspect, such as video, audio, display, timbre, fluency, etc., compared with a corresponding cloud application on a cloud desktop, the application can be recorded in the local application list.
The target local application can be displayed on the cloud desktop by redirecting the target local application to the cloud desktop, and a user can operate the target local application according to a window of the target local application displayed on the cloud desktop.
In one embodiment, as shown in fig. 3, the S100 redirecting the target native application onto the cloud desktop includes:
s101, acquiring window parameters of a target local application;
s102, setting a target area associated with the window on the cloud desktop according to the window parameter, and displaying the window in the target area.
A window management module is arranged in the system and used for managing windows opened by local applications; the window parameters of the target local application can be obtained through the window management module.
After the window parameters of the target native application are acquired on the cloud desktop according to step S101, a target area for displaying the window of the target native application may be set on the cloud desktop.
By setting the target area, the association relationship between the target area and the window displaying the target local application is established, so that after a user clicks the target area to generate a key event, information in the key event can be directly associated with the target local application, the existence form of the association relationship can be a mapping table, a mapping formula or other forms, and the specific existence form is not limited in the application.
For example, the position information of the event is set in the key event, and when the key event in the key processing queue is transmitted, the target local application associated with the position information is directly determined through the association relationship and is transmitted to the target local application.
In one embodiment, the S100 redirecting the target native application onto the cloud desktop further includes:
s103, adjusting the level of the target area on the cloud desktop.
Different hierarchies are set on the cloud desktop, and particularly, the hierarchies can comprise a first hierarchy for corresponding cloud applications, a second hierarchy for corresponding target local applications and a third hierarchy for corresponding other areas. After the key event is generated, the cloud desktop application can process the key event according to the hierarchy to obtain a corresponding processing result.
In another embodiment, the hierarchy may include only a second hierarchy for corresponding target native applications and a first hierarchy for corresponding cloud applications or other areas; more than three levels can be included, for example, for a plurality of cloud applications, each cloud application is provided with one level; the specific level is not limited in this application.
And setting the hierarchies, and then performing unified operation on one or more hierarchies, for example, uniformly performing unified operation on a second hierarchy corresponding to the target local application, wherein after the window of the target local application is changed, the adjustment effect can be achieved only by adjusting the hierarchy of the changed window part.
And setting a hierarchy, and then directly obtaining a processing result according to the hierarchy of the key event, so that the processing time of the key event is shortened.
In one embodiment, in displaying the window within the target area, the window is displayed by setting the target area to a transparent area.
The target area is directly set to be a transparent area, a window of the lower layer can be displayed on the cloud desktop through the transparent area, and a user can operate at a corresponding position of the window through the window displayed in the transparent area to generate a key event. The specific implementation manner of setting the target area as the transparent area is not described herein again.
The method comprises the steps of obtaining window parameters of a target local application through a window management module of the system, uploading the window parameters to a cloud desktop, determining an area corresponding to a window on the cloud desktop by combining the corresponding relation between the cloud desktop and the local desktop, setting the area as a target area, setting the target area as a transparent area and changing the level.
Specifically, the window parameters include a window size parameter and a window position parameter.
In another embodiment, the window is displayed within the target area by way of a dashed line showing the window in the target area. The mode of displaying the window through the dotted line can keep the uniformity of the color and the pattern of the cloud desktop, but the display of the text and pattern contents in the window under a certain size is fuzzy.
In one embodiment, the target native application is a plurality. And a plurality of target local applications can be displayed on the cloud desktop at the same time for the user to operate.
The target local application can be displayed on the cloud desktop, and can be displayed on a window, or an application icon and an icon of the target local application in the task bar can be displayed on the premise of displaying the window; for the target native application, only in an open state, the corresponding window is provided, and therefore the target native application displayed on the cloud desktop is necessarily the started target native application. In the present application, the operation of the target native application that is not started is meaningless, and is not described in the present application.
When the target local application is multiple, the target local application is displayed on a local desktop system as a plurality of windows which are stacked together, wherein the window positioned at the uppermost layer is the current display window. The display of the multiple target native applications on the cloud desktop may be a window that displays only one current target native application, a window that displays all target native applications, or a window that displays part of the target native applications, where a specific displayed window is selected, which is not limited in this application.
When the window of the target local application is partially overlapped with the window of the cloud application, the window of the target local application can be defined as the window of the target local application to shield the window of the cloud application, the window of the cloud application can also be defined as the window of the cloud application to shield the window of the target local application, and the newly operated application window can also be defined as the window of the target local application and the window of the cloud application to shield the windows of other applications; the specific shielding rule can be set and adjusted according to requirements, and the application does not limit the rule.
As shown in fig. 4, 5, and 6, which are examples of the position relationship between the window of the target local application and the window of the cloud application displayed on the cloud desktop; the window of the target local application and the window of the cloud application may be independent of each other or partially overlapped, and the window of the target local application may block the window of the cloud application or may be blocked by the window of the cloud application.
In one embodiment, when a window of the target local application is occluded, an occluded region of the window is determined, and the occluded region is clipped within the target region.
Specifically, window parameters of the cloud application are obtained, the window parameters of the target local application are uploaded to the cloud desktop, the folding area is calculated through the cloud desktop application, and the folding area (the shielded area) of the window of the target local application is cut out in the target area through a cutting scheme.
In one embodiment, after the occluded region is cropped from the target region, the level of the cropped occluded region is adjusted to the level associated with the occluded cloud application.
In one embodiment, the key event comprises hierarchy information for identifying a hierarchy, and the cloud desktop application determines the hierarchy of the key event according to the hierarchy information and returns a consumption instruction or a non-consumption instruction according to the hierarchy.
The hierarchy information used for identifying the hierarchy is information that the cloud desktop application can determine the hierarchy of the key event according to the information, that is, the hierarchy information, and the specific form of the hierarchy information may be specific hierarchy data, or other information that has a direct or indirect mapping relationship with the hierarchy data, such as position information, area information, or a hierarchy identifier, a position identifier, an area identifier, and the like that refer to the above information.
The key event may include an interface click event and a keyboard click event, where the interface click event is a key event triggered by a user clicking the interface with a mouse or a finger, and the keyboard click event is a key event triggered by a user inputting information in a keyboard or other manner, where the interface click event has obvious position information and the keyboard click event has no position information, and the position information of the interface click event needs to be determined according to a currently flashing cursor or the like.
For example, the key events have timestamps, the timestamps of each key event are different, and the timestamps can be used as event identifiers of the key events; the key event has position information, the position information has a mapping relation with regional information such as target regions, each target region has preset hierarchical information, and the region where the target region is located and the specific hierarchy of the target region can be determined by the cloud desktop application according to the position information.
In an embodiment, in the processing of the key event by the cloud desktop application, after receiving the key event, the local program of the cloud desktop application forwards the key event to the cloud program of the cloud desktop application, and receives a consumption instruction or a non-consumption instruction returned by the cloud program.
After a user can trigger a key event by clicking, double-stage or right-hand keys, and the like, the key event comprises an event identifier for identifying the key event and position information; after the key event is triggered, a local program of the cloud desktop application receives the key event and forwards the key event to a cloud program of the cloud desktop application, the cloud program determines hierarchy information and a corresponding area according to position information and the like of the key event, and determines a corresponding processing result according to the hierarchy information; the area corresponding to the key event comprises a target area, a cloud application area and an invalid area, and if the area corresponding to the current key event is the target area, the processing result of a cloud program of the cloud desktop application is a consumption instruction; if the area corresponding to the current key event is the area of the cloud application, the cloud program of the cloud desktop application can be forwarded to the corresponding cloud application at the cloud end for processing or directly processed by the cloud program, and a non-consumption instruction is returned; if the area corresponding to the current key event is an invalid area, the processing result of the cloud program of the cloud desktop application is a non-consumption instruction; a local program of the cloud desktop application directly sends a consumption instruction and a non-consumption instruction to a key processing queue; and after receiving the consumption instruction, the key processing queue determines the key event to be consumed according to the event identifier in the consumption instruction, determines the target local application associated with the position relationship according to the mapping of the position relationship in the key event, transmits the associated key event to the target local application, and processes and executes the key event by the target local application.
In one embodiment, the key processing queue is arranged inside the cloud desktop application, and after a key event is generated, a local program of the cloud desktop application forwards the key event to a cloud program for processing, and the key event is stored in the key processing queue inside the cloud desktop application; and after the cloud program returns the processing result, the key processing queue determines whether to consume the key events in the queue according to the processing result.
In another embodiment, the key processing queue is arranged outside the cloud desktop application, and after the key event is generated, on one hand, the local program of the cloud desktop application is forwarded to the cloud program for processing, and on the other hand, the local program of the cloud desktop application is stored in the key processing queue; and after the cloud program returns the processing result, the local program of the cloud desktop application forwards the processing result to the key processing queue, and the key processing queue determines whether to consume the key events in the queue according to the processing result.
The method in the application can be realized by a C + + program at a fixed terminal such as a computer terminal and can be realized by a Java program at a mobile terminal.
In the application, the key processing queue comprises a plurality of key events, and after the key processing queue receives the consumption instruction or the non-consumption instruction, the key event to be processed is determined and the instruction is executed according to the event identifier in the instruction.
In the application, a plurality of key events in the key processing queue are sequenced according to a preset sequence, after the key processing queue receives a consumption instruction or a non-consumption instruction, the key event to be processed is determined according to an event identifier in the instruction, the sequenced key events are processed in sequence, and after the key event is processed, consumption or non-consumption is performed according to the instruction.
The key event processing method can uniformly process key logics between different cloud desktop applications and other local applications, breaks the limitation of application management, and improves user experience.
The method comprises the steps that a transparent area is set, and a window picture of a target local application is transmitted to a cloud desktop; the key events of the system are transmitted to the cloud desktop application and the key processing queue at the same time, and whether the event stack of the key processing queue is consumed or not is determined according to the internal hierarchy and the click position of the cloud desktop, so that the key events of the system are consumed and processed from the application layer according to the hierarchy and the sequence of the internal application of the cloud desktop, the limitation that the key events cannot be effectively transmitted between applications is broken, and the key events can be effectively transmitted across processes.
An embodiment of the present application provides a key event processing apparatus, which is configured to execute the key event processing method described above in the present application, and the key event processing apparatus is described in detail below.
As shown in fig. 7, the key event processing apparatus includes:
the key storage module 102 is used for responding to a key event input by a user on a displayed cloud desktop, processing the key event through a cloud desktop application, and simultaneously storing the key event to a key processing queue; the key event is sent by a user through operating an area displayed on the cloud desktop;
and the key consumption module 103 is configured to consume the key events in the key processing queue in response to a consumption instruction returned by the cloud desktop application, and transmit the key events to a target local application associated with the key events.
In one embodiment, the apparatus further comprises:
a key popping module 104, configured to pop the key event from the key processing queue in response to a non-consumption instruction returned by the cloud desktop application.
In one embodiment, in the processing the key event through the cloud desktop application, the key storage module 102 is further configured to: when the key event is an operation on a cloud application on the cloud desktop or an operation on a blank area on the cloud desktop, returning a non-consumption instruction by the cloud desktop application; and when the key event is the operation of the local application, the cloud desktop application returns a consumption instruction.
In one embodiment, the apparatus further comprises:
a redirection module 101, configured to redirect a target native application onto the cloud desktop.
The redirection module 101 is further configured to:
acquiring window parameters of a target local application;
and setting a target area associated with the window on the cloud desktop according to the window parameter, and displaying the window in the target area.
The redirection module 101 is further configured to:
adjusting a level of the target area on the cloud desktop.
The redirection module 101 is further configured to:
the displaying the window in a target area, the window being displayed by setting the target area to a transparent area.
The redirection module 101 is further configured to:
when the window of the target local application is occluded, determining the occluded area of the window, and cutting off the occluded area in the target area.
In one embodiment, the key event includes hierarchy information for identifying a hierarchy, and the key storage module 102 is further configured to: and the cloud desktop application determines the hierarchy of the key events according to the hierarchy information and returns a consumption instruction or a non-consumption instruction according to the hierarchy.
The key storage module 102 is further configured to: in the process of processing the key event through the cloud desktop application, after receiving the key event, the local program of the cloud desktop application forwards the key event to the cloud program of the cloud desktop application, and receives a consumption instruction or a non-consumption instruction returned by the cloud program.
The key event processing device provided by the above embodiment of the present application and the key event processing method provided by the embodiment of the present application have the same inventive concept and have the same beneficial effects as the method adopted, operated or implemented by the application program stored in the key event processing device.
Having described the internal functions and structure of the key event processing apparatus as described above, as shown in fig. 8, in practice, the key event processing apparatus may be implemented as a control device including: a memory 301 and a processor 303.
A memory 301, which may be configured to store a program.
In addition, the memory 301 may also be configured to store other various data to support operations on the control device. Examples of such data include instructions for any application or method operating on the control device, contact data, phonebook data, messages, pictures, videos, and the like.
The memory 301 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
A processor 303, coupled to the memory 301, for executing programs in the memory 301 for:
responding to a key event input by a user on a displayed cloud desktop, processing the key event through a cloud desktop application, and simultaneously storing the key event to a key processing queue; the key event is sent by a user through operating an area displayed on the cloud desktop;
and responding to a consumption instruction returned by the cloud desktop application, consuming the key events in the key processing queue, and transmitting the key events to a target local application associated with the key events.
In one embodiment, the processor 303 is specifically configured to:
and responding to a non-consumption instruction returned by the cloud desktop application, and popping the key event from the key processing queue.
In an embodiment, in the processing of the key event by the cloud desktop application, the processor 303 is specifically configured to:
when the key event is an operation on a cloud application on the cloud desktop or an operation on a blank area on the cloud desktop, returning a non-consumption instruction by the cloud desktop application; and when the key event is the operation of the local application, returning a consumption instruction by the cloud desktop application.
In one embodiment, the processor 303 is specifically configured to:
the target native application is redirected onto the cloud desktop in response to a key event input by a user on the displayed cloud desktop.
In one embodiment, the processor 303 is specifically configured to:
acquiring window parameters of a target local application;
and setting a target area associated with the window on the cloud desktop according to the window parameter, and displaying the window in the target area.
In one embodiment, the processor 303 is specifically configured to:
adjusting a level of the target area on the cloud desktop.
In one embodiment, the processor 303 is specifically configured to:
the displaying the window in the target area displays the window by setting the target area as a transparent area.
In one embodiment, the processor 303 is specifically configured to:
when the window of the target local application is occluded, determining the occluded area of the window, and cutting off the occluded area in the target area.
In one embodiment, the key event includes hierarchy information for identifying a hierarchy, and the processor 303 is specifically configured to: and the cloud desktop application determines the hierarchy of the key events according to the hierarchy information and returns a consumption instruction or a non-consumption instruction according to the hierarchy.
In one embodiment, the processor 303 is specifically configured to:
in the process of processing the key event through the cloud desktop application, after receiving the key event, the local program of the cloud desktop application forwards the key event to the cloud program of the cloud desktop application, and receives a consumption instruction or a non-consumption instruction returned by the cloud program.
In the present application, only some of the components are schematically shown in fig. 8, and it is not intended that the control apparatus includes only the components shown in fig. 8.
The control device provided by the embodiment of the present application and the key event processing method provided by the embodiment of the present application have the same beneficial effects as the methods adopted, operated, or implemented by the application programs stored in the control device.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
The present application further provides a computer-readable storage medium corresponding to the key event processing method provided in the foregoing embodiments, and a computer program (i.e., a program product) is stored thereon, and when being executed by a processor, the computer program will execute the key event processing method provided in any of the foregoing embodiments.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
The computer-readable storage medium provided by the above-mentioned embodiment of the present application and the key event processing method provided by the embodiment of the present application have the same beneficial effects as the method adopted, run or implemented by the application program stored in the computer-readable storage medium.
It should be noted that in the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the application may be practiced without these specific details. In some instances, well-known structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (14)

1. A key event processing method is characterized by comprising the following steps:
responding to a key event input by a user on a displayed cloud desktop, processing the key event through a cloud desktop application, and simultaneously storing the key event to a key processing queue; the key event is sent by a user through operating an area displayed on the cloud desktop;
and responding to a consumption instruction returned by the cloud desktop application, consuming the key events in the key processing queue, and transmitting the key events to a target local application associated with the key events.
2. The method of claim 1, further comprising:
and responding to a non-consumption instruction returned by the cloud desktop application, and popping the key event from the key processing queue.
3. The method according to claim 1 or 2, wherein in the processing of the key event by the cloud desktop application, the cloud desktop application returns a no-consumption instruction when the key event is an operation on a cloud application on the cloud desktop or an operation on a blank area on the cloud desktop; and when the key event is the operation of the local application, returning a consumption instruction by the cloud desktop application.
4. The method of claim 1 or 2, wherein in response to a key event entered by a user on a displayed cloud desktop, the method further comprises:
redirecting the target native application onto the cloud desktop.
5. The method of claim 4, wherein redirecting the target native application onto the cloud desktop comprises:
acquiring window parameters of the target local application;
and setting a target area associated with the window on the cloud desktop according to the window parameter, and displaying the window in the target area.
6. The method of claim 5, wherein the redirecting the target native application onto the cloud desktop further comprises:
adjusting a level of the target area on the cloud desktop.
7. The method of claim 5, wherein in displaying the window within a target area, the window is displayed by setting the target area to a transparent area.
8. The method of claim 5, wherein when the window of the target native application is occluded, determining an occluded region of the window, and clipping the occluded region within the target region.
9. The method of claim 1 or 2, wherein the key event comprises hierarchy information for identifying a hierarchy, and the cloud desktop application determines the hierarchy of the key event according to the hierarchy information and returns a consume instruction or a not consume instruction according to the hierarchy.
10. The method according to claim 1 or 2, wherein in the processing of the key event by the cloud desktop application, after receiving the key event, a native program of the cloud desktop application forwards the key event to a cloud program of the cloud desktop application, and receives a consumption instruction or a non-consumption instruction returned by the cloud program.
11. A key event processing apparatus, comprising:
the button storage module is used for responding to a button event input by a user on a displayed cloud desktop, processing the button event through a cloud desktop application and storing the button event to a button processing queue; the key event is sent by a user through operating an area displayed on the cloud desktop;
and the key consumption module is used for responding to a consumption instruction returned by the cloud desktop application, consuming the key events in the key processing queue and transmitting the key events to a target local application associated with the key events.
12. The apparatus of claim 11, further comprising:
a redirection module to redirect a target native application onto the cloud desktop.
13. A control apparatus, characterized by comprising: a memory and a processor;
the memory for storing a program;
the processor, coupled to the memory, to execute the program to:
responding to a key event input by a user on a displayed cloud desktop, processing the key event through a cloud desktop application, and simultaneously storing the key event to a key processing queue; the key event is sent by a user through operating an area displayed on the cloud desktop;
and responding to a consumption instruction returned by the cloud desktop application, consuming the key events in the key processing queue, and transmitting the key events to a target local application associated with the key events.
14. A computer-readable storage medium, on which a computer program is stored, characterized in that the program is executed by a processor to implement the method of any of claims 1-10.
CN202210271131.8A 2022-03-18 2022-03-18 Key event processing method and device, control equipment and readable storage medium Pending CN114840351A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210271131.8A CN114840351A (en) 2022-03-18 2022-03-18 Key event processing method and device, control equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210271131.8A CN114840351A (en) 2022-03-18 2022-03-18 Key event processing method and device, control equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN114840351A true CN114840351A (en) 2022-08-02

Family

ID=82562776

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210271131.8A Pending CN114840351A (en) 2022-03-18 2022-03-18 Key event processing method and device, control equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN114840351A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024061308A1 (en) * 2022-09-23 2024-03-28 杭州阿里云飞天信息技术有限公司 Notification processing method, and terminal device, server side and computer storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090300131A1 (en) * 2008-05-27 2009-12-03 Supportspace Ltd. Simultaneous remote and local control of computer desktop
CN103442060A (en) * 2013-08-27 2013-12-11 深圳市深信服电子科技有限公司 Local application access method and device based on remote desktop
WO2014035936A2 (en) * 2012-08-31 2014-03-06 Citrix Systems Inc. Reverse seamless integration between local and remote computing environments
WO2016078460A1 (en) * 2014-11-21 2016-05-26 中兴通讯股份有限公司 Method and apparatus for processing cloud desktop
WO2016095383A1 (en) * 2014-12-19 2016-06-23 中兴通讯股份有限公司 Method for implementing application call and virtual machine
CN108052377A (en) * 2017-12-29 2018-05-18 腾讯科技(深圳)有限公司 Input processing method based on cloud, device, server and storage medium
CN113778583A (en) * 2021-08-03 2021-12-10 福建升腾资讯有限公司 Method, device, equipment and medium for publishing local application of cloud desktop

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090300131A1 (en) * 2008-05-27 2009-12-03 Supportspace Ltd. Simultaneous remote and local control of computer desktop
WO2014035936A2 (en) * 2012-08-31 2014-03-06 Citrix Systems Inc. Reverse seamless integration between local and remote computing environments
CN103442060A (en) * 2013-08-27 2013-12-11 深圳市深信服电子科技有限公司 Local application access method and device based on remote desktop
WO2016078460A1 (en) * 2014-11-21 2016-05-26 中兴通讯股份有限公司 Method and apparatus for processing cloud desktop
WO2016095383A1 (en) * 2014-12-19 2016-06-23 中兴通讯股份有限公司 Method for implementing application call and virtual machine
CN108052377A (en) * 2017-12-29 2018-05-18 腾讯科技(深圳)有限公司 Input processing method based on cloud, device, server and storage medium
CN113778583A (en) * 2021-08-03 2021-12-10 福建升腾资讯有限公司 Method, device, equipment and medium for publishing local application of cloud desktop

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ANTONIO CELESTI 等: "Improving desktop as a Service in OpenStack", 《2016 IEEE SYMPOSIUM ON COMPUTERS AND COMMUNICATION》, 18 August 2016 (2016-08-18), pages 1 - 8 *
苏奎: "面向桌面云服务的虚拟化关键技术研究", 《中国博士学位论文全文数据库 信息科技辑》, no. 12, 15 December 2018 (2018-12-15), pages 139 - 12 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024061308A1 (en) * 2022-09-23 2024-03-28 杭州阿里云飞天信息技术有限公司 Notification processing method, and terminal device, server side and computer storage medium

Similar Documents

Publication Publication Date Title
US11782581B2 (en) Display control method and device, electronic device and storage medium
US10762277B2 (en) Optimization schemes for controlling user interfaces through gesture or touch
US10116525B2 (en) Extensible infrastructure for representing networks including virtual machines
US9927958B2 (en) User interface for networks including virtual machines
JP7138804B2 (en) INTERFACE DISPLAY METHOD AND DEVICE, TERMINAL AND COMPUTER PROGRAM
CN109902255B (en) Page mixed browsing record generation method, device, equipment and storage medium
US20060085758A1 (en) Desktop alert management
US20060242584A1 (en) Heterogeneous content channel manager for ubiquitous computer software systems
US20170185275A1 (en) Method and system for integrated application notifications
US20090193363A1 (en) Representing Multiple Computing Resources Within A Predefined Region Of A Graphical User Interface For Displaying A Single Icon
US11972089B2 (en) Computer system with a plurality of work environments where each work environment affords one or more workspaces
US11886678B2 (en) Multiple windows for a group-based communication system
US20090132939A1 (en) Method and apparatus for a floating island for user navigation in an interactive environment
US20180181553A1 (en) Providing insertion feature with clipboard manager application
US20130254318A1 (en) Dynamic message retrieval
CN114840351A (en) Key event processing method and device, control equipment and readable storage medium
US9207965B2 (en) Managing multi-application contexts
WO2021218455A1 (en) Interface display method, apparatus, terminal, and medium
US6864905B2 (en) Method to redisplay active panels
CN110908552B (en) Multi-window operation control method, device, equipment and storage medium
US20140013323A1 (en) System and method for dynamic scaling based on a reference architecture
US20180341717A1 (en) Providing instant preview of cloud based file
US11907503B2 (en) Switching display of page between a window of a graphical user interface and an independent child window
US20240126577A1 (en) Visualization of application capabilities
WO2023217177A1 (en) Method for processing application window, and storage medium and intelligent interaction tablet computer

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