Function Shortcut Key Customization Method, Device, Software Function Control Method, and Terminal

By displaying mask controls on the software interface and establishing a mapping relationship between identification information and shortcut keys, shortcut key configuration files are generated, the problem of shortcut key fixation in the existing technology is solved, the user-defined shortcut key function is realized, and the ease of use of the software is improved.

CN115373564BActive Publication Date: 2025-08-01XIAN NOVASTAR TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210956264.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-10
Publication Date
2025-08-01
Estimated Expiration
2042-08-10

AI Technical Summary

Technical Problem

In the prior art, the settings of software function shortcut keys are fixed and monotonous, which cannot adapt to the personalized needs of different users, resulting in low ease of use.

Method used

By displaying mask controls on the software interface, obtaining the identification information of the interface controls, and establishing a mapping relationship with user-defined shortcut keys, generating shortcut key configuration files, and realizing the user-defined shortcut key function.

Benefits of technology

It increases the flexibility and variability of software function shortcut keys, meets the personalized needs of different users, and improves the ease of use of the software.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115373564B_ABST
    Figure CN115373564B_ABST
Patent Text Reader

Abstract

This application is applicable to the field of computer software technology, and provides a method and device for customizing function shortcut keys, a software function control method, and a terminal. The method for customizing function shortcut keys includes: First, in response to a user's triggering operation on a shortcut key configuration button, a mask control is respectively displayed at the position where the interface control is located. Second, in response to a user's triggering operation on the mask control, the identification information of the interface control associated with the mask control is obtained, and a mapping relationship is established between the identification information of the interface control and the custom shortcut key. Finally, according to the mapping relationship between the identification information of all interface controls and the custom shortcut key, a shortcut key configuration file corresponding to the software function is generated to complete the custom shortcut key function. The above solution increases the flexibility and variability of software function shortcut keys through user-defined shortcut key functions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of computer software technology, and in particular relates to a function shortcut key customization method, device, software function control method and terminal. Background Art

[0002] With the development of intelligent software, intelligent software has become widely popular. Although the functions of intelligent software interfaces are gradually enriched, for users, the software usually adds common sense shortcut keys for individual functions. For example, in broadcast control software, the shortcut keys Ctrl+c are used to copy selected media data, Ctrl+v is used to paste, and Delete is used to delete. Other functions, such as video play, pause, and program switching, need to be accessed by clicking interface buttons.

[0003] Different users often use different functions, and a unified shortcut key function setting method often cannot be applied to all users. Therefore, the current shortcut keys for defining software functions generally have defects such as being fixed, monotonous, and inflexible. Summary of the Invention

[0004] The embodiments of the present application provide a function shortcut key customization method, device, software function control method and terminal, which allow users to customize shortcut key functions, thereby increasing the flexibility and variability of software function shortcut keys.

[0005] A first aspect of an embodiment of the present application provides a method for customizing a function shortcut key, the method comprising:

[0006] In response to a user triggering operation on a shortcut key configuration button, mask controls are displayed at the locations of the interface controls, wherein the mask controls are used to trigger the associated interface controls to execute software functions;

[0007] For each of the mask controls, in response to a triggering operation of the mask control by the user, obtaining identification information of an interface control associated with the mask control;

[0008] Based on the identification information of the interface control and the user-defined shortcut key, establishing a mapping relationship between the identification information of the interface control and the customized shortcut key, so that the interface control responds to the customized shortcut key and executes an associated software function;

[0009] Generate a shortcut key configuration file corresponding to the software function based on the mapping relationship between the identification information of all interface controls and the custom shortcut keys.

[0010] A second aspect of the embodiments of the present application provides a software function control method, the software function control method comprising:

[0011] After detecting the software startup, if a shortcut key configuration file corresponding to the software function is detected, read the shortcut key configuration file, where the shortcut key configuration file includes the mapping relationship between the identification information of the interface control and the custom shortcut keys;

[0012] Based on the mapping relationship between the identification information of the interface control and the custom shortcut keys, assign the string generated based on the custom shortcut key to the mask control of the interface control corresponding to the identification information;

[0013] In response to the user's triggering operation on a keyboard key, determine the target string generated based on the keyboard key, and the target string is broadcast by the bottommost interface parent control in the software interface to each mask control;

[0014] If there is a mask control whose string is the same as the target string, trigger the interface control associated with the mask control to respond and execute the associated software function.

[0015] The third aspect of the embodiments of the present application provides a function shortcut key customization device, and the function shortcut key customization device includes:

[0016] A configuration module, configured to, in response to the user's triggering operation on the shortcut key configuration button, display mask controls at the positions where the interface controls are located, where the mask controls are used to trigger the associated interface controls to execute software functions;

[0017] An identification acquisition module, configured to, for each of the mask controls, in response to the user's triggering operation on the mask control, acquire the identification information of the interface control associated with the mask control;

[0018] A mapping module, configured to establish the mapping relationship between the identification information of the interface control and the custom shortcut keys based on the identification information of the interface control and the user-defined shortcut keys, so that the interface control responds to the custom shortcut keys and executes the associated software functions;

[0019] A generation module, configured to generate a shortcut key configuration file corresponding to the software function according to the mapping relationship between the identification information of all interface controls and the custom shortcut keys.

[0020] The fourth aspect of the embodiments of the present application provides a software function control device, and the software function control device includes:

[0021] A file reading module, configured to, after detecting the software startup, if a shortcut key configuration file corresponding to the software function is detected, read the shortcut key configuration file, where the shortcut key configuration file includes the mapping relationship between the identification information of the interface control and the custom shortcut keys;

[0022] A relationship determination module, configured to assign a string generated based on the custom shortcut key to a mask control of an interface control corresponding to the identification information based on a mapping relationship between the identification information of the interface control and the custom shortcut key;

[0023] A target determination module, configured to determine a target string generated based on the keyboard key in response to a triggering operation of a user on a keyboard key, and the target string is broadcast by the bottommost interface parent control in the software interface to each mask control;

[0024] A function execution module, configured to trigger an interface control associated with the mask control to respond and execute an associated software function if there is a string of a mask control that is the same as the target string.

[0025] A fifth aspect of the embodiments of the present application provides a terminal, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the function shortcut key customization method described in the first aspect above is implemented, or the software function control method obtained in the second aspect above is implemented.

[0026] A sixth aspect of the embodiments of the present application provides a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the function shortcut key customization method described in the first aspect above is implemented, or the software function control method obtained in the second aspect above is implemented.

[0027] A seventh aspect of the embodiments of the present application provides a computer program product, and when the computer program product runs on a terminal, the terminal is caused to execute the function shortcut key customization method described in the first aspect above, or implement the software function control method obtained in the second aspect above.

[0028] The beneficial effects of the embodiments of the present application compared with the prior art are as follows: In the embodiments of the present application, after responding to the triggering operation of the user on the shortcut key configuration button, the mask control is respectively displayed at the position where the interface control is located, and the mask control can be used to trigger the associated interface control to execute software functions; after the mask control is displayed on the software interface, in response to the triggering operation of the user on the mask control, the identification information of the interface control associated with the mask control can be obtained, and then based on the identification information and the user-defined shortcut keys, a mapping relationship is established between the identification information of the interface control and the user-defined shortcut keys, so that after the interface control responds to the corresponding shortcut key input by the user, it executes the associated software function, and finally, according to the mapping relationship between the identification information of all interface controls and the user-defined shortcut keys, a shortcut key configuration file corresponding to the software function is generated to complete the function shortcut key customization of the software interface. The above method realizes the user-defined shortcut key function based on the mask control on the interface control, and increases the flexibility and variability of the software function shortcut keys. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for use in the embodiments or the description of the prior art. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0030] Figure 1 It is a schematic flowchart of a method for customizing function shortcut keys provided in Embodiment 1 of the present application;

[0031] Figure 2 It is a schematic flowchart of a software function control method provided in Embodiment 2 of the present application;

[0032] Figure 3 It is a schematic structural diagram of a device for customizing function shortcut keys provided in Embodiment 3 of the present application;

[0033] Figure 4 It is a schematic structural diagram of a software function control device provided in Embodiment 4 of the present application;

[0034] Figure 5 It is a schematic structural diagram of a terminal provided in Embodiment 5 of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0035] In the following description, specific details such as specific system architectures and technologies are presented for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, those skilled in the art should clearly understand that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid unnecessary details from interfering with the description of the present application.

[0036] It should be understood that when used in the specification and appended claims of the present application, the term "comprising" indicates the presence of the described features, wholes, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or their combinations.

[0037] It should also be understood that the term "and / or" as used in the specification and appended claims of the present application refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0038] As used in the specification and appended claims of the present application, the term "if" can be interpreted as "when" or "once" or "in response to determining" or "in response to detecting" depending on the context. Similarly, the phrases "if determined" or "if [the described condition or event] is detected" can be interpreted as meaning "once determined" or "in response to determining" or "once [the described condition or event] is detected" or "in response to detecting [the described condition or event]" depending on the context.

[0039] In addition, in the description of the specification and appended claims of the present application, the terms "first", "second", "third", etc. are only used for distinguishing descriptions and cannot be understood as indicating or implying relative importance.

[0040] The reference to "one embodiment" or "some embodiments" or the like described in the specification of the present application means that a specific feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, statements such as "in one embodiment", "in some embodiments", "in other some embodiments", "in still other embodiments", etc. that appear in different places in this specification do not necessarily all refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "comprising", "including", "having", and their variants all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0041] It should be understood that the sequence numbers of the steps in this embodiment do not indicate the order of execution. The order of execution of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0042] In the prior art, common sense shortcut keys are usually added for individual functions within software. For example, in a software interface, when an information data is selected, the copy operation can be achieved by using the shortcut key Ctrl+c, the paste operation by Ctrl+v, the delete operation by Delete, etc. That is, in the prior art, certain common functions are usually quickly called through mouse clicks and common sense shortcut keys. However, for different users, their commonly used functions are usually different, and the method of uniformly setting shortcut key functions often cannot be applicable to all users, resulting in low usability of the software. Therefore, the shortcut keys for defining software functions currently generally have defects such as being fixed, monotonous, and inflexible, and there is an urgent need to provide a method for customizing shortcut keys corresponding to software functions.

[0043] To overcome the above defects, the present application provides a method for customizing function shortcut keys. First, after responding to the user's triggering operation on the mask control, the mask control is displayed at the position of the interface control. Secondly, in response to the user's triggering operation on the mask control, the identification information of the interface control associated with the mask control is obtained, and a mapping relationship is established between the identification information of the interface control and the custom shortcut key, so that the interface control responds to the custom shortcut key and executes the associated software function. Finally, according to the mapping relationship between the identification information of all interface controls and the custom shortcut keys, a shortcut key configuration file corresponding to the software function is generated to complete the custom shortcut key function. The above solution increases the flexibility and variability of the software function shortcut keys through user-defined shortcut key functions.

[0044] To illustrate the technical solution of the present application, it will be described below through specific embodiments.

[0045] Refer to Figure 1 , which shows a flowchart of a method for customizing function shortcut keys provided in Embodiment 1 of the present application. As Figure 1 shown, the method for customizing function shortcut keys may include the following steps:

[0046] Step 101, in response to the user's triggering operation on the shortcut key configuration button, the mask control is respectively displayed at the position of the interface control.

[0047] In the embodiment of the present application, the shortcut key configuration button may refer to a configuration button located on the software interface. For example, there is a shortcut key configuration button in the settings group of the software interface. The specific process of responding to the user's triggering operation on the shortcut key configuration button may refer to that the user clicks the shortcut key configuration button with the mouse to generate a mouse event. After the terminal device receives the mouse event, it parses the mouse event to determine that the shortcut key configuration button is pressed.

[0048] In the embodiment of the present application, before the user's triggering operation on the shortcut key configuration button, a mask control can be added to all interface controls that can be configured with custom shortcut keys, that is, when the broadcast control software is downloaded, a mask control has been configured for each interface control that can be configured with custom shortcut keys; it is also possible that after the user triggers the shortcut key configuration button, the terminal device generates a mask control and adds it to all interfaces that can be configured with custom shortcut keys. Therefore, each interface control that can be configured with custom shortcut keys has a corresponding mask control, where the mask control is used to trigger the associated interface control to execute software functions. The software functions may refer to functions that can be realized by mouse clicks on the software interface, such as video playback, pause, stop, program switching, etc. in the broadcast control software.

[0049] It should be understood that the interface control and the mask control are in a parent-child control relationship, with the interface control as the parent and the mask control as the child. That is, the mask control is a child control of the interface control and is used to trigger the associated interface control to execute software functions. For example, if the associated interface control is a play button, the play function is executed; if the associated interface control is a program switching button, the program switching function is executed.

[0050] In the embodiment of the present application, in response to the user's triggering operation on the shortcut key configuration button, each mask control is respectively displayed at the position where the interface control is located, that is, the mask control is displayed on the interface control that can be configured with custom shortcut keys. Before the user's triggering operation on the shortcut key configuration button, the mask control is in a hidden (i.e., not displayed) state, and after the user's triggering operation on the shortcut key configuration button, the mask control will be displayed at the position where the interface control is located on the software interface. The style of the mask control can be freely set by the user. By way of example and not limitation, the style of the mask control can be set to a gray semi-transparent image. Displaying the mask control on the interface control means covering the interface control with the gray semi-transparent image, which is convenient for the user to see the mask control and the interface control covered under the mask control.

[0051] In a possible implementation manner, the method for customizing function shortcut keys further includes:

[0052] Encapsulate a mask control;

[0053] Add a mask control to each interface control with configurable custom shortcuts respectively.

[0054] In the embodiment of the present application, the mask control may refer to a common mask control, that is, the UI display, message reception, and message parsing processes of the mask controls added to each interface control with configurable custom shortcuts are the same. Using this common mask control, the interface controls at the lowest layer of the software can uniformly process all mask controls.

[0055] In the embodiment of the present application, different encapsulation technologies can be adopted according to different systems of the terminal when encapsulating a mask control. For example, QT technology and QML technology are used for Windows systems; IOS systems can use self-encapsulation by IOS. The present application does not limit the adopted encapsulation technology.

[0056] Step 102, for each mask control, in response to a user's trigger operation on the mask control, obtain the identification information of the interface control associated with the mask control.

[0057] In the embodiment of the present application, in order to facilitate the saving of custom shortcuts when the software is closed and the parsing of custom shortcuts when the software is started, the terminal needs to pre-assign one-to-one corresponding identification information to each interface control. The specific process of responding to the user's trigger operation on the mask control can be: the terminal device responds to the user's operation of clicking the mask control, generates a mouse event, parses the mouse event, and determines that the mask control is clicked. After determining that the mask control is clicked, obtain the identification information of the interface control associated with the mask control.

[0058] In a possible implementation manner, before obtaining the identification information of the interface control associated with the mask control, it further includes:

[0059] Determine the category to which the interface control associated with the mask control belongs;

[0060] Correspondingly, obtaining the identification information of the interface control associated with the mask control includes:

[0061] Obtain the identification information of the interface control according to the category to which the interface control associated with the mask control belongs.

[0062] In the embodiment of the present application, the categories to which the interface control belongs may include fixed controls and newly added controls. That is, when the software is started, the interface controls that already exist on the software interface are fixed controls, and the interface controls newly added during the use of the software are newly added controls. For example, in a broadcast control software, during the use of the software, an input picture control is added to a certain layer, and this output picture control is a newly added control.

[0063] Among them, there is a one-to-one correspondence between the identification information and the interface controls, but the ways of obtaining the identification information corresponding to different categories of interface controls are different.

[0064] In a possible implementation manner, when the category to which the interface control associated with the mask control belongs is a fixed control, according to the category to which the interface control associated with the mask control belongs, obtaining the identification information of the interface control includes:

[0065] Assigning a plurality of preset identification information to the interface controls whose category is a fixed control respectively.

[0066] In the embodiments of the present application, for the fixed controls on the software interface, the terminal can preset a plurality of identification information, and respectively assign the preset plurality of identification information to each fixed control in a one-to-one correspondence. For example, the play control, program switching control, and mirror effect control on the playback control software interface are all fixed controls on the software interface. Assigning a plurality of identification information to each fixed control one by one. As an example rather than a limitation, play1 can be assigned to the play control, and cut1 can be assigned to the program switching control.

[0067] It should be understood that there is a one-to-one correspondence between the identification information and the interface controls, and the identification information can be any type of data. For example, English characters or numerical characters are not limited in the present application.

[0068] In a possible implementation manner, when the category to which the interface control associated with the mask control belongs is a newly added control, according to the category to which the interface control associated with the mask control belongs, obtaining the identification information of the interface control includes:

[0069] Generating the identification information of the interface control according to the attribute status information and the identification information generation rule of the interface control.

[0070] In the embodiments of the present application, a newly added control refers to a control that does not exist on the interface when the software is started. Usually, when the number of interface controls on the software interface is insufficient, a new interface control is added, and this interface control is the newly added control. The identification information generation rule may refer to a set of rules preset by the terminal for generating unique identification information and parsing the unique identification. The attribute status information is the attribute information of the interface control required for generating the identification information in the identification information generation rule. For example, it may refer to the position, layer, and type of the newly added control. For example, in the grouping area of a broadcast control software, a program 5 is newly added on layer A. It can be known that the control corresponding to the program 5 is the newly added control. At this time, the position coordinate information, layer information (such as layer A), and type (such as newly added) of the newly added control can be obtained. According to the identification information generation rule, the identification information of the newly added interface control can be generated as: LayerAIndex5 + position coordinate information; and according to the identification information generation rule, it can be reversely parsed which interface control on the software interface the identification information corresponds to. For example, according to LayerAIndex5 + position coordinate information and the identification information generation rule, it can be obtained that LayerAIndex5 + position coordinate information corresponds to the program 5 interface control on layer A.

[0071] It should be understood that the attribute status information of the interface control and the identification information generation rule are corresponding, and different identification information generation rules require different attribute status information of the interface control to be obtained.

[0072] Step 103, based on the identification information of the interface control and the user-defined shortcut key, establish a mapping relationship between the identification information of the interface control and the user-defined shortcut key.

[0073] In the embodiments of the present application, in order to enable the interface control to respond to the user-defined shortcut key and execute the associated software function, therefore, it is necessary to establish a mapping relationship between the interface control and the user-defined shortcut key. Establishing the mapping relationship between the interface control and the user-defined shortcut key means establishing the mapping relationship between the identification information of the interface control and the user-defined shortcut key.

[0074] Exemplarily, after the user clicks on the mask control, a shortcut key can be input. The input method can be directly pressing the upper shortcut key on the keyboard, and the terminal obtains the input signal of the shortcut key. It can also be pressing the shortcut key on the keyboard and displaying it at the position of the interface control on the software interface. For example, after the user clicks on the mask control for program switching and inputs o, the terminal will establish a mapping relationship between the identification information of program switching and the user-defined shortcut key o based on the identification information of program switching and the user-defined shortcut key o.

[0075] It should be understood that when the user clicks on the mask control, only one mask control is in the process of configuring the custom shortcut key at the same time, that is, only one mask control can be configured with a custom shortcut key at the same time.

[0076] In a possible implementation manner, in response to a triggering operation of the user on the mask control, a selection identifier of the mask control is displayed on the mask control.

[0077] Exemplarily, after the user clicks on the mask control, four corners can be displayed on the mask control to determine that the mask control is selected, and the shortcut key input at the current moment is the shortcut key configured for the mask control.

[0078] Step 104, generate a shortcut key configuration file corresponding to the software function according to the mapping relationship between the identification information of all interface controls and the custom shortcut keys.

[0079] In the embodiment of the present application, after configuring the custom shortcut keys of all interface controls, the mapping relationship between the identification information of all interface controls and the custom shortcut keys can be saved as a configuration file. This configuration file is a shortcut key configuration file corresponding to the software function, which saves the configuration result of the user. So that when the software is opened next time, the interface control corresponding to the custom shortcut key can be obtained according to this configuration file. Further, the shortcut key configuration file can be found in the software configuration folder, including but not limited to, for example, the.xml file type. When the mapping relationship in the shortcut key configuration file is modified, the corresponding relationship between the interface control of the software interface and the shortcut key will also change.

[0080] In the embodiment of the present application, first, after responding to the triggering operation of the user on the shortcut key configuration button, each mask control is respectively displayed at the position of the interface control, and the mask control can be used to trigger the associated interface control to execute the software function; after the mask control is displayed on the software interface, in response to the triggering operation of the user on the mask control, the identification information of the interface control associated with the mask control can be obtained, and then based on this identification information and the custom shortcut key of the user, a mapping relationship between the identification information of the interface control and the custom shortcut key is established, so that the interface control executes the associated software function in response to the corresponding shortcut key input by the user. Finally, according to the mapping relationship between the identification information of all interface controls and the custom shortcut keys, a shortcut key configuration file corresponding to the software function is generated to complete the function shortcut key of the custom software interface. The above method realizes the user-defined shortcut key function based on the mask control on the interface control, and increases the flexibility and variability of the software function shortcut key.

[0081] See Figure 2 , which shows a schematic flow chart of a software function control method provided in the second embodiment of the present application. AsFigure 2 As shown, the software function control method may include the following steps:

[0082] Step 201, after detecting that the software is turned on, if a shortcut key configuration file corresponding to the software function is detected, read the shortcut key configuration file.

[0083] In the embodiment of the present application, after detecting the shortcut key configuration file corresponding to the software function, the shortcut key configuration file can be read by means of data writing.

[0084] Among them, the shortcut key configuration file includes the mapping relationship between the identification information of the interface control and the custom shortcut keys. The identification information of the interface control can be used to identify the corresponding interface control, that is, according to the shortcut key configuration file, the mapping relationship between the identification information of the interface control and the custom shortcut keys can be obtained. However, according to the identification information of the interface control, the interface control corresponding to the identification information can be obtained. Therefore, according to the shortcut key configuration file, the mapping relationship between the interface control and the custom shortcut keys can be determined.

[0085] Step 202, based on the mapping relationship between the identification information of the interface control and the custom shortcut keys, assign the string generated based on the custom shortcut key to the mask control of the interface control corresponding to the identification information.

[0086] In the embodiment of the present application, since the mapping relationship between the interface control and the custom shortcut keys can be determined based on the mapping relationship between the identification information of the interface control and the custom shortcut keys, the string generated based on the custom shortcut key can be assigned to the mask control of the corresponding interface control based on this mapping relationship.

[0087] Step 203, in response to a triggering operation of a user on a keyboard key, determine a target string generated based on the keyboard key.

[0088] In the embodiment of the present application, the target string is broadcast by the interface parent control at the bottom layer of the software interface to each mask control, and the association relationship between the interface parent control, the interface control, and the mask control can be specifically learned from the following description.

[0089] In the original software interface structure, the software interface is composed of the interface parent control at the bottom layer and multiple levels of interface controls located on this parent control. The multiple levels of interface controls are all child controls of the interface parent control at the bottom layer. In the prior art, when implementing software function control, the interface control can listen for the click events input by the user, obtain the click signal corresponding to the click event, and this click signal can trigger the interface control to execute the software function corresponding to the interface control. However, in the prior art, the interface control can respond to specific keyboard events but cannot handle custom keyboard events. Therefore, the interface control in the prior art cannot respond to custom shortcut keys.

[0090] Without changing the original software, this application can add an identical mask control to each interface control, which is used to receive messages forwarded by the parent control and make judgments to determine whether to trigger the associated interface control to respond to keyboard events, so as to realize the control of software functions through custom keyboard shortcuts.

[0091] The software interface structure of this application consists of the interface parent control at the bottom layer, multiple interface controls built on the parent control, and mask controls built on each interface control. It can be concluded that this application does not change the original software interface structure, but only adds a mask control to each interface control respectively, which is used to trigger the associated interface control to execute corresponding functions. That is, all interface controls displayed in the software interface are child controls of the interface parent control, and the mask control is a child control of the interface control. The child control can process the received events according to its own permissions. If its own permissions can process the received events, there is no need to pass the event to the corresponding parent control. If its own permissions cannot process the received events, the event needs to be passed to the corresponding parent control until it is transmitted to the bottom-layer parent control.

[0092] Exemplarily, for example, when a user clicks an interface control with the mouse, assuming that the interface control is video cutting, when the interface control detects the mouse click event, it can obtain the corresponding video cutting signal and trigger the interface control to execute the video cutting function. Since the software interface control does not need to process all custom keyboard events, the keyboard events can be passed layer by layer to the interface parent control at the bottom layer of the software, and the interface parent control at the bottom layer parses the keyboard event and forwards it to all mask controls. Here, it can be understood that the interface parent control at the bottom layer parses the keyboard event and forwards it to all top-level child controls.

[0093] Among them, the keyboard event refers to the event that a keyboard key is pressed. When a user presses a keyboard key, the bottom-layer parent control parses the keyboard key, obtains the string corresponding to the keyboard key, determines the string as the target string, and broadcasts the target string from the interface parent control of the software bottom layer to each mask control.

[0094] Step 204, if there is a string of a mask control that is the same as the target string, trigger the interface control associated with the mask control to respond and execute the associated software function.

[0095] In an embodiment of the present application, based on the mapping relationship between the identification information of the interface control and the custom shortcut key, the mask control of each interface control is assigned a corresponding string based on the set custom shortcut key. That is, the mask control of each interface control configured with a custom shortcut key has a corresponding string. Therefore, after each mask control receives the target string broadcast by the interface parent control at the bottom layer, it compares the target string with the string of the associated interface control. If there is a string of a mask control that is the same as the target string, the associated interface control is triggered to respond and the associated software function is executed; if the strings of all mask controls are different from the target string, all interface controls do not respond, that is, it can be known that the keyboard key corresponding to the target string is not the custom shortcut key corresponding to the interface control.

[0096] In an embodiment of the present application, after detecting that the software is started, if a shortcut key configuration file corresponding to the software function is detected, the mapping relationship between the identification information of the interface control and the custom shortcut key can be determined by reading the shortcut key configuration file. Furthermore, according to this mapping relationship, the string generated based on the custom shortcut key can be assigned to the mask control of the interface control corresponding to the identification information. Secondly, in response to the triggering operation of the user on a keyboard key, the target string generated based on the keyboard key is determined and broadcast by the interface parent control at the bottom layer of the software interface to each mask control. After receiving the target string, the mask control makes a judgment based on the string of the associated interface control to determine whether to trigger the response of the associated interface control, so as to realize software function control through custom shortcut keys. This solves the problem in the prior art that only fixed shortcut keys for specific functions can be realized, and the functional requirements of configuring custom shortcut keys are not met.

[0097] See Figure 3 , which shows the structural schematic diagram of a function shortcut key customization device provided in Embodiment 3 of the present application. For the convenience of description, only the parts related to the embodiment of the present application are shown.

[0098] The function shortcut key customization device may specifically include the following modules:

[0099] A configuration module 301, configured to display each mask control at the position where the interface control is located in response to the triggering operation of the user on the shortcut key configuration button, where the mask control is used to trigger the associated interface control to execute a software function;

[0100] An identification acquisition module 302, configured to, for each mask control, acquire the identification information of the interface control associated with the mask control in response to the triggering operation of the user on the mask control;

[0101] A mapping module 303, configured to establish a mapping relationship between the identification information of an interface control and a user-defined shortcut key based on the identification information of the interface control and the user-defined shortcut key, so that the interface control responds to the user-defined shortcut key and executes the associated software function;

[0102] A generation module 304, configured to generate a shortcut key configuration file corresponding to the software function according to the mapping relationship between the identification information of all interface controls and the user-defined shortcut keys.

[0103] In the embodiment of the present application, the configuration module 301 may specifically include the following sub-modules:

[0104] An encapsulation sub-module, configured to encapsulate a mask control;

[0105] An addition sub-module, configured to add the mask control to each interface control that can be configured with a user-defined shortcut key respectively.

[0106] In the embodiment of the present application, the function shortcut key customization device may further include the following modules:

[0107] A category determination module, configured to determine the category to which the interface control associated with the mask control belongs;

[0108] Correspondingly, the identification acquisition module 302 may specifically include the following sub-modules:

[0109] An information acquisition sub-module, configured to acquire the identification information of the interface control according to the category to which the interface control associated with the mask control belongs.

[0110] In the embodiment of the present application, when the category to which the interface control associated with the mask control belongs is a fixed control, the information acquisition sub-module may specifically include the following units:

[0111] An assignment unit, configured to assign a plurality of preset identification information to the interface controls whose category is a fixed control respectively.

[0112] In the embodiment of the present application, when the category to which the interface control associated with the mask control belongs is a newly added control, the information acquisition sub-module may specifically include the following units:

[0113] An identification generation unit, configured to generate the identification information of the interface control according to the attribute status information of the interface control and the identification information generation rule, where the attribute status information is the attribute information of the interface control required for generating the identification information in the identification information generation rule.

[0114] The function shortcut key customization device provided in the embodiment of the present application can be applied to the first method embodiment described above. For details, refer to the description of the first method embodiment above, and details will not be repeated here.

[0115] See Figure 4 , which shows a schematic structural diagram of a software function control device provided in Embodiment 4 of the present application. For the convenience of description, only the parts related to the embodiments of the present application are shown.

[0116] The software function control device may specifically include the following modules:

[0117] A file reading module 401, configured to, after detecting that the software is started, if a shortcut key configuration file corresponding to the software function is detected, read the shortcut key configuration file, where the shortcut key configuration file includes the mapping relationship between the identification information of the interface control and the custom shortcut key;

[0118] A relationship determination module 402, configured to assign the string generated based on the custom shortcut key to the mask control of the interface control corresponding to the identification information based on the mapping relationship between the identification information of the interface control and the custom shortcut key;

[0119] A target determination module 403, configured to determine a target string generated based on a keyboard key in response to a trigger operation of a user on a keyboard key, where the target string is broadcast by the bottommost interface parent control in the software interface to each mask control;

[0120] A function execution module 404, configured to, if there is a string of a mask control that is the same as the target string, trigger the interface control associated with the mask control to respond and execute the associated software function.

[0121] The software function control device provided in the embodiments of the present application can be applied to the second method embodiment described above. For details, see the description of the second method embodiment above, and details will not be repeated here.

[0122] Figure 5 is a schematic structural diagram of a terminal provided in Embodiment 5 of the present application. As Figure 5 shown, the terminal 500 of this embodiment includes: at least one processor 510 ( Figure 5 only one is shown in the figure), a memory 520, and a computer program 521 stored in the memory 520 and executable on the at least one processor 510. When the processor 510 executes the computer program 521, the steps in the method embodiment of the above function shortcut key customization method or the steps in the method embodiment of the above software function control method are implemented.

[0123] The terminal 500 may be a computing device such as a desktop computer, a notebook, a palm computer, and a cloud server. The terminal may include, but is not limited to, a processor 510 and a memory 520. Those skilled in the art can understand, Figure 5The above is only an example of the terminal 500, which does not constitute a limitation to the terminal 500. It may include more or fewer components than those shown in the figure, or combine some components, or different components. For example, it may also include input / output devices, network access devices, etc.

[0124] The so-called processor 510 may be a central processing unit (CPU). The processor 510 may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.

[0125] In some embodiments, the memory 520 may be an internal storage unit of the terminal 500, such as the hard disk or memory of the terminal 500. In other embodiments, the memory 520 may also be an external storage device of the terminal 500, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal 500. Further, the memory 520 may also include both the internal storage unit and the external storage device of the terminal 500. The memory 520 is used to store an operating system, application programs, a boot loader, data, and other programs, such as the program code of the computer program, etc. The memory 520 may also be used to temporarily store data that has been output or is to be output.

[0126] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the above division of each functional unit and module is used as an example. In actual applications, the above functions can be allocated to different functional units and modules according to needs, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiments can be integrated into a processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit. In addition, the specific names of each functional unit and module are only for the convenience of mutual distinction and do not limit the protection scope of this application. The specific working processes of the units and modules in the above system can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated here.

[0127] In the above embodiments, the descriptions of the respective embodiments have their own emphases. For parts not detailed or recorded in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0128] Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, or by a combination of computer software and electronic hardware. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.

[0129] In the embodiments provided in this application, it should be understood that the disclosed device / terminal and method can be implemented in other ways. For example, the device / terminal embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division, and there can be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection to each other can be through some interfaces. The indirect coupling or communication connection of the device or unit can be in electrical, mechanical or other forms.

[0130] The unit described as a separated component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0131] In addition, in each embodiment of the present application, each functional unit may be integrated into a processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of a software functional unit.

[0132] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium. Based on this understanding, to implement all or part of the processes in the above method embodiments of the present application, it may also be completed by a computer program instructing relevant hardware. The computer program may be stored in a computer-readable storage medium. When the computer program is executed by a processor, the steps of the above method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disc, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium, etc. It should be noted that the content included in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electrical carrier signals and telecommunication signals.

[0133] All or part of the processes in the above method embodiments of the present application may also be completed by a computer program product. When the computer program product runs on a terminal, the terminal can execute the steps in the above method embodiments.

[0134] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for customizing function shortcut keys, characterized in that, including: In response to a user's trigger operation on a shortcut key configuration button, a mask control is respectively displayed at the position where the interface control is located, where the mask control is used to trigger the associated interface control to execute software functions; For each of the mask controls, in response to the user's trigger operation on the mask control, obtain the identification information of the interface control associated with the mask control; Based on the identification information of the interface control and the user-defined shortcut keys, establish a mapping relationship between the identification information of the interface control and the custom shortcut keys, so that the interface control responds to the custom shortcut keys and executes the associated software functions; Generate a shortcut key configuration file corresponding to the software functions according to the mapping relationship between the identification information of all interface controls and the custom shortcut keys.

2. The function shortcut key customization method according to claim 1, wherein The method for customizing function shortcut keys further includes: Encapsulate a mask control; Add the mask control to each interface control that can be configured with custom shortcut keys respectively.

3. The function shortcut key customization method according to claim 1, characterized in that, Before obtaining the identification information of the interface control associated with the mask control, it further includes: Determine the category to which the interface control associated with the mask control belongs; The obtaining of the identification information of the interface control associated with the mask control includes: Obtain the identification information of the interface control according to the category to which the interface control associated with the mask control belongs.

4. The method for customizing function shortcut keys according to claim 3, wherein When the category to which the interface control associated with the mask control belongs is a fixed control, the obtaining of the identification information of the interface control according to the category to which the interface control associated with the mask control belongs includes: Assign a plurality of preset identification information to the interface controls whose category is a fixed control respectively.

5. The function shortcut key customization method according to claim 3, characterized in that, When the category to which the interface control associated with the mask control belongs is a newly added control, the obtaining of the identification information of the interface control according to the category to which the interface control associated with the mask control belongs includes: Generate the identification information of the interface control according to the attribute status information of the interface control and the identification information generation rule, where the attribute status information is the attribute information of the interface control required for generating the identification information in the identification information generation rule.

6. A software function control method, characterized in that, including: After detecting that the software is started, if a shortcut key configuration file corresponding to the software function is detected, read the shortcut key configuration file, where the shortcut key configuration file includes the mapping relationship between the identification information of the interface control and the custom shortcut keys; Based on the mapping relationship between the identification information of the interface control and the custom shortcut keys, assign the string generated based on the custom shortcut keys to the mask control of the interface control corresponding to the identification information; In response to a user's trigger operation on a keyboard key, determine the target string generated based on the keyboard key, and the target string is broadcast by the lowest-level interface parent control in the software interface to each mask control; If there is a mask control whose string is the same as the target string, trigger the associated interface control of the mask control to respond and execute the associated software function.

7. A function shortcut key customizing device, characterized in that, including: A configuration module, which is configured to, in response to a user's triggering operation on a shortcut key configuration button, display a mask control at the position where an interface control is located, where the mask control is used to trigger an associated interface control to execute a software function; An identifier acquisition module, which is configured to, for each of the mask controls, in response to the user's triggering operation on the mask control, acquire the identifier information of the interface control associated with the mask control; A mapping module, which is configured to establish a mapping relationship between the identifier information of the interface control and a user-defined shortcut key based on the identifier information of the interface control and the user-defined shortcut key, so that the interface control responds to the user-defined shortcut key and executes an associated software function; A generation module, which is configured to generate a shortcut key configuration file corresponding to a software function according to the mapping relationship between the identifier information of all interface controls and the user-defined shortcut key.

8. A software function control device, characterized in that, including: A file reading module, which is configured to, after detecting that the software is started, if a shortcut key configuration file corresponding to a software function is detected, read the shortcut key configuration file, where the shortcut key configuration file includes the mapping relationship between the identifier information of an interface control and a user-defined shortcut key; A relationship determination module, which is configured to assign a string generated based on the user-defined shortcut key to the mask control of the interface control corresponding to the identifier information based on the mapping relationship between the identifier information of the interface control and the user-defined shortcut key; A target determination module, which is configured to, in response to a user's triggering operation on a keyboard key, determine a target string generated based on the keyboard key, and the target string is broadcast by the bottommost interface parent control in the software interface to each mask control; A function execution module, which is configured to, if there is a mask control whose string is the same as the target string, trigger the associated interface control of the mask control to respond and execute an associated software function.

9. A terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method according to any one of claims 1 to 5, or implements the method according to claim 6.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the method according to any one of claims 1 to 5, or implements the method according to claim 6.

Citation Information

Patent Citations

  • Software shortcut key keypad

    CN104317406A

  • A method and electronic device for customizing shortcuts base on an educational system

    CN109271039A