Shortcut key setting method and device, equipment, storage medium and program product
By reusing keyboard shortcuts across different application interfaces, the problem of users needing to manually confirm shortcuts is solved, achieving more efficient keyboard shortcut interaction.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-10
- Publication Date
- 2026-03-10
AI Technical Summary
Users need to first determine the shortcut key for a function in the application interface, and then press the shortcut key to realize the function. This operation is cumbersome and affects the efficiency of interaction between users and the application interface when using shortcut keys.
By reusing the shortcut key of the first control as the shortcut key of the second control across different application interfaces, the user can simplify the steps of confirming and switching shortcut keys after switching application interfaces.
It improves the efficiency of user interaction with the application interface when using shortcut keys, simplifies the shortcut key setting process, and allows users to use the same shortcut key to trigger controls in two different application interfaces.
Smart Images

Figure CN121635778A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of human-computer interaction technology, and in particular to a method, apparatus, device, storage medium, and program product for setting shortcut keys. Background Technology
[0002] With the continuous development of computer technology, many applications set up keyboard shortcuts so that users can directly achieve specific functions when using the application.
[0003] In related technologies, during the application development phase, developers can set corresponding shortcut keys for controls in the application interface. When the application interface is displayed during operation, users can quickly trigger the function corresponding to the control by pressing the corresponding shortcut key.
[0004] However, in the above solution, users need to first determine the shortcut key corresponding to the function in the application interface, and then press the shortcut key to realize the function. The operation of using shortcut keys is relatively cumbersome and can easily affect the interaction efficiency between users and the application interface when using shortcut keys. Summary of the Invention
[0005] This application provides a method, apparatus, device, storage medium, and program product for setting shortcut keys, which can effectively improve the interaction efficiency between users and application interfaces when using shortcut keys. The technical solution is as follows:
[0006] On the one hand, a method for setting shortcut keys is provided, the method being executed by a terminal device, the method comprising:
[0007] Display the first application interface of the application, the first application interface contains a first control, and the first control has a corresponding shortcut key;
[0008] In response to a triggering operation that allows entry into the second application interface of the application from the first application interface, the second application interface is displayed;
[0009] If the second application interface includes a second control, the shortcut key of the first control is reused for the shortcut key of the second control.
[0010] On the other hand, a shortcut key setting device is provided, the device comprising:
[0011] The first application interface display module is used to display the first application interface of the application. The first application interface contains a first control, and the first control has a corresponding shortcut key.
[0012] The second application interface display module is used to display the second application interface in response to a trigger operation that enters the second application interface of the application from the first application interface.
[0013] The shortcut key setting module is used to reuse the shortcut key of the first control for the shortcut key of the second control when the second application interface contains a second control.
[0014] In some embodiments, the first control is a main function control in the first application interface; the second control is a main function control in the second application interface; wherein, the main function control is a control used to trigger the main function in the application interface.
[0015] In some embodiments, the first control is one of the entry controls of the second application interface;
[0016] The second application interface display module is used to display the second application interface in response to the triggering operation of the first control.
[0017] In some embodiments, the shortcut key setting module is used to reuse the shortcut key of the first control as the shortcut key of the second control when the second application interface includes a second control and the triggering operation for entering the second application interface of the application from the first application interface is performed by the shortcut key of the first control.
[0018] In some embodiments, the shortcut key setting module is configured to, when the second application interface includes the second control, obtain the attribute information of the entry control that most recently triggered the display of the second application interface as the attribute information of the first control; read the shortcut key information in the attribute information of the first control; and reuse the shortcut key indicated by the shortcut key information in the attribute information of the first control as the shortcut key of the second control.
[0019] In some embodiments, the apparatus further includes:
[0020] The attribute information acquisition module is used to acquire the attribute information of each control in the second application interface before reusing the shortcut key of the first control to the shortcut key of the second control when the second application interface contains a second control.
[0021] The second control determination module is used to determine, before reusing the shortcut key of the first control to the shortcut key of the second control when the second application interface contains a second control, the control whose attribute information contains a main function marker as the second control; the main function marker is used to indicate that the control is the main function control.
[0022] In some embodiments, the shortcut key setting module is configured to: obtain attribute information of each control in the first application interface when the second control is included in the second application interface; obtain attribute information of the main function marker from the attribute information of each control in the first application interface as the attribute information of the first control; read shortcut key information from the attribute information of the first control; and reuse the shortcut key indicated by the shortcut key information in the attribute information of the first control as the shortcut key of the second control.
[0023] In some embodiments, the shortcut key setting module is used to read the value of the shortcut key trigger marker when the second control is included in the second application interface; and to obtain the attribute information of each control in the first application interface when the value of the shortcut key trigger marker is a first value; the first value is used to indicate that the shortcut key of the main function control is triggered during the display of the previous application interface.
[0024] In some embodiments, the shortcut key setting module further includes:
[0025] The second value setting submodule is used to set the value of the shortcut key trigger marker to a second value after reading the value of the shortcut key trigger marker. The second value is used to indicate that the shortcut key of the main function control was not triggered during the display of the previous application interface.
[0026] The first value setting submodule is used to set the value of the shortcut key trigger marker to the first value when the shortcut key of the second control is triggered during the display of the second application interface.
[0027] In some embodiments, the shortcut key setting module is configured to obtain shortcut key information when the second application interface includes a second control, the shortcut key information being used to indicate the shortcut keys of each control in the second application interface; and, when the shortcut key information meets specified conditions, reuse the shortcut key of the first control for the shortcut key of the second control.
[0028] In some embodiments, the specified conditions include: among the controls indicated by the shortcut key information, there are no other controls besides the first control; or, among the controls indicated by the shortcut key information, the shortcut keys of the other controls besides the first control are different from the shortcut key of the first control.
[0029] In some embodiments, the shortcut key setting module is used to reuse the shortcut key of the first control for the shortcut key of the second control when the second application interface includes a second control and the number of the second control is the same as the number of the first control.
[0030] In some embodiments, the shortcut key setting module is used to add the shortcut key of the first control as the shortcut key of the second control when the second application interface includes the second control; or, when the second application interface includes the second control, to replace the shortcut key of the first control with the shortcut key of the second control.
[0031] In some embodiments, the shortcut key setting module is used to, when the second application interface includes a second control, write the identifier information of the shortcut key of the first control as the identifier information of the shortcut key of the second control into the shortcut key information of the attribute information of the second control.
[0032] The device further includes:
[0033] The shortcut key information reading module is used to read the shortcut key information in the attribute information of the second control and obtain the identification information of the second control;
[0034] The text display module is used to display the text of the shortcut key of the second control on the second control according to the identification information of the second control.
[0035] In another aspect, a computer device is provided, the computer device comprising a processor and a memory, the memory storing at least one instruction, at least one program, code set or instruction set, the at least one instruction, the at least one program, the code set or instruction set being loaded and executed by the processor to implement the shortcut key setting method as described above.
[0036] In another aspect, a computer-readable storage medium is provided, wherein at least one instruction, at least one program, code set, or instruction set is stored therein, wherein the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement the shortcut key setting method described above.
[0037] In another aspect, a computer program product is provided, comprising a computer program stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium and executes the computer program, causing the computer device to perform the shortcut key setting methods provided in the various optional implementations described above.
[0038] The technical solution provided in this application may include the following beneficial effects:
[0039] For two application interfaces with controls, when navigating from one application interface to another, the controls in the newly displayed application interface can reuse the shortcut keys from the previous application interface. This allows users to use the same shortcut keys to trigger controls in both application interfaces without needing to confirm the shortcut keys in the new application interface or switch to new shortcut keys. This simplifies the steps of confirming and switching shortcut keys after switching application interfaces and improves the efficiency of interaction between users and application interfaces when using shortcut keys.
[0040] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0041] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0042] Figure 1 This is a system configuration diagram of a shortcut key setting method according to an embodiment of this application;
[0043] Figure 2 This is a flowchart of a shortcut key setting method provided in one embodiment of this application;
[0044] Figure 3 This is a flowchart of a shortcut key setting method provided in one embodiment of this application;
[0045] Figure 4 This is a flowchart of a shortcut key setting method provided in one embodiment of this application;
[0046] Figure 5 This is a flowchart of a shortcut key setting method provided in one embodiment of this application;
[0047] Figure 6 This is a schematic diagram of an interface provided in an exemplary embodiment of this application;
[0048] Figure 7 This is a schematic diagram of an interface provided in an exemplary embodiment of this application;
[0049] Figure 8 This is a schematic diagram of an interface provided in an exemplary embodiment of this application;
[0050] Figure 9 This is a flowchart of the functional logic provided in an exemplary embodiment of this application;
[0051] Figure 10 This is a schematic diagram illustrating function button detection provided in an exemplary embodiment of this application;
[0052] Figure 11 This is a schematic diagram of the function button attributes provided in an exemplary embodiment of this application;
[0053] Figure 12 This is a schematic diagram of an entry button provided in an exemplary embodiment of this application;
[0054] Figure 13 This is a schematic diagram of the attributes of an entry button provided in an exemplary embodiment of this application;
[0055] Figure 14 This is a schematic diagram of a shortcut key provided in an exemplary embodiment of this application;
[0056] Figure 15 This is a block diagram of a shortcut key setting device provided in an exemplary embodiment of this application;
[0057] Figure 16 This is a schematic diagram of the structure of a computer device provided in an exemplary embodiment of this application. Detailed Implementation
[0058] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application.
[0059] Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0060] This application proposes a shortcut key setting scheme that allows users to use the application without manually setting shortcut keys. The second control in the current application interface directly uses the shortcut key of the first control in the previous interface, effectively improving the efficiency of shortcut key setting. For ease of understanding, some concepts involved in this application are explained below.
[0061] 1) Shortcut keys are keys in PC games that can be quickly triggered by keyboard keys to perform specified operations.
[0062] 2) A PC (Personal Computer) is a small computer designed for individual users. It is intended to be used by a single user and usually has a graphical user interface, input devices such as a keyboard and mouse, and an output device such as a monitor.
[0063] 3) Function buttons refer to interactive elements designed to perform a specific function in a particular scenario or interface. These buttons are one of the main ways for users to interact with software, and they can help users perform specific tasks or operations.
[0064] 4) An application is computer software used to perform a specific task or a set of related tasks. It runs in user mode, has a visual user interface, and allows users to interact with the program.
[0065] 5) A control is a graphical user interface element used to receive user input or display data. Users can trigger controls to achieve specified functional tasks.
[0066] Figure 1 This is a system configuration diagram of a shortcut key setting method according to an embodiment of this application. Figure 1 As shown, the system includes a terminal device 120 with shortcut key settings and a service provider device 130.
[0067] Terminal device 120 can be a personal computer device such as a desktop computer, a laptop computer, or a personal workstation.
[0068] The service provider equipment 130 can be a single server, several servers, a virtualization platform, or a cloud computing service center.
[0069] The terminal device 120 and the service provider device 130 can be connected via a communication network. Optionally, this communication network can be a wired network or a wireless network.
[0070] Optionally, the aforementioned wireless or wired networks use standard communication technologies and / or protocols. The network is typically the Internet, but can also be any network, including but not limited to Local Area Networks (LANs), Metropolitan Area Networks (MANs), Wide Area Networks (WANs), mobile, wired or wireless networks, private networks, or any combination of virtual private networks. In some embodiments, technologies and / or formats, including Hyper Text Markup Language (HTML), Extensible Markup Language (XML), etc., are used to represent data exchanged over the network. Furthermore, conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Networks (VPNs), and Internet Protocol Security (IPsec) can be used to encrypt all or some links. In other embodiments, custom and / or dedicated data communication technologies can be used to replace or supplement the aforementioned data communication technologies.
[0071] exist Figure 1 In the system shown, the terminal device 120 can run and display the application interface corresponding to the application, such as... Figure 1 As shown, the terminal device 120 can run an application and display a first application interface 10 corresponding to the application. The first application interface 10 includes a first control 11, and the first control 11 has a corresponding shortcut key 12. The user can perform a specified operation on the terminal device 120. From the first application interface 10, the user can enter a second application interface 20. The second application interface 20 includes a second control 21. In response to the trigger operation of entering the second application interface 20 of the application from the first application interface 10, the terminal device reuses the shortcut key 12 of the first control 11 as the shortcut key of the second control 21.
[0072] It should be noted that, in the embodiments of this application, the above solution is described using a single-side device (terminal device 120) as an example; optionally, the above solution can also be implemented by interaction between multiple side devices (terminal device 120 and server 130).
[0073] Figure 2This is a flowchart illustrating a shortcut key setting method according to an embodiment of this application. The shortcut key setting method can be executed by a terminal device running on a computer device; for example, the computer device can be the one described above. Figure 1 The terminal device 120 shown above. Taking the above shortcut key setting method executed by the terminal device as an example, it may include the following steps.
[0074] Step 220: Display the first application interface of the application. The first application interface contains a first control, and the first control has a corresponding shortcut key.
[0075] The aforementioned applications include, but are not limited to: office applications, game applications, and other utility applications.
[0076] The aforementioned shortcut keys are used to quickly trigger specified controls within the application interface. Examples include physical keys on a keyboard, physical buttons on a mouse, or the physical scroll wheel.
[0077] The first application interface is the interface corresponding to the application after the application starts. The first application interface may contain at least one control, and each control corresponds to a function. Users can perform the specified function in the first application interface by interacting with the control. Optionally, each control has a shortcut key. When there are multiple controls in the first application interface, the shortcut keys for different controls are different. During the display of the first application interface, users can trigger the corresponding control in the first application interface by pressing the shortcut key.
[0078] The first control can be at least one control in the first application interface that has a corresponding shortcut key.
[0079] In this embodiment of the application, the first application interface includes a first control, and the first control has a corresponding shortcut key. Users can quickly trigger the first control based on the shortcut key of the first control to realize the function corresponding to the first control, which can effectively ensure the triggering efficiency of the first control.
[0080] Step 240: In response to a triggering operation that enters the second application interface of the application from the first application interface, display the second application interface.
[0081] The aforementioned triggering operation is used to trigger the entry into the second application interface when the first application interface is displayed on the terminal device. After receiving the triggering operation, the terminal device can switch to display the second application interface.
[0082] In some embodiments, the above-mentioned triggering operation may be triggered actively by the user or automatically by the terminal device.
[0083] Optionally, in response to a user's active triggering of a transition from the first application interface to the second application interface of the application, the terminal device displays the second application interface.
[0084] In this embodiment, the user can trigger a specified control within the first application interface to enter the application's second application interface, causing the terminal device to switch to display the second application interface. Triggering methods may include, but are not limited to, click operations, long-press operations, voice instructions, and gesture instructions, etc.
[0085] Optionally, in response to the terminal device automatically triggering a transition from the first application interface to the second application interface of the application, the terminal device displays the second application interface.
[0086] In this embodiment, the terminal device can automatically trigger a specified control in the first application interface to enter the second application interface of the application from the first application interface, and switch the terminal device to display the second application interface. For example, the triggering conditions for automatically triggering the specified control may include: the display duration of the first application interface reaches a specified duration (e.g., the display duration of the first application interface reaches 10 minutes), the duration of receiving the specified operation executed in the first application interface reaches a specified duration, etc.
[0087] Optionally, the first application interface is the parent interface of the second application interface, and the second application interface is the child interface of the first application interface; or, the first application interface is the parent interface of the second application interface, and the second application interface is the child interface of the first application interface.
[0088] Optionally, the first application interface and the second application interface mentioned above can also be parallel application interfaces, that is, there is no clear hierarchical relationship between the first application interface and the second application interface.
[0089] In this embodiment of the application, the second application interface may include at least one control, each control corresponding to a function, and the user can perform the specified function in the second application interface by interacting with the control; optionally, each control has a shortcut key, and when the first application interface contains multiple controls, the shortcut keys corresponding to different controls are different; during the display of the second application interface, the user can trigger the corresponding control in the second application interface by pressing the shortcut key.
[0090] Step 260: If the second application interface contains a second control, reuse the shortcut key of the first control for the shortcut key of the second control.
[0091] In this embodiment of the application, when the second application interface includes a second control, the terminal device can set the value of the shortcut key of the second control to the value of the shortcut key of the first control.
[0092] In this embodiment of the application, for two application interfaces with controls in the application, when entering another application interface from one application interface, the controls in the newly displayed application interface can reuse the shortcut keys of the previous application interface. In this way, the user can use the same shortcut keys to trigger the controls in the two application interfaces without the user needing to confirm the shortcut keys in the new application interface or switch to new shortcut keys. This simplifies the steps of confirming and switching shortcut keys after switching application interfaces and improves the interaction efficiency between the user and the application interface when using shortcut keys.
[0093] For example, please refer to Figure 3 , Figure 3 This is a schematic diagram of an application interface provided in one embodiment of this application. For example... Figure 3 As shown, the application has three application interfaces: the first application interface 300, the second application interface 302, and the third application interface 303. Each application interface contains at least one control. For example, the first application interface 300 contains the first control 31, the second application interface 302 contains the second control 32, and the third application interface 303 contains the third control 33.
[0094] like Figure 3 As shown in part (a), during the process of displaying the first application interface 300, in response to the trigger operation of entering the second application interface 302 from the first application interface 300, the terminal device can display the second application interface 302 and make the second control 32 continue to use the shortcut key of the first control 31. For example, when displaying the first application interface 300, the shortcut key of the first control 31 is the F key, and when entering the second application interface 302 from the first application interface 300, the shortcut key of the second control 32 is also the F key.
[0095] like Figure 3 As shown in part (b), during the process of displaying the first application interface 300, in response to the trigger operation of entering the second application interface 302 from the third application interface 303, the terminal device can display the second application interface 302 and make the second control 32 continue to use the shortcut key of the third control 33. For example, when displaying the third application interface 303, the shortcut key of the third control 33 is the U key, and when entering the second application interface 302 from the third application interface 303, the shortcut key of the second control 32 is also the U key.
[0096] In this embodiment, when a terminal device responds to a trigger operation that moves from one application interface to another, the terminal device displays the other application interface, and the shortcut keys corresponding to the controls in the other application interface are automatically reused from the shortcut keys in the previous application interface. This allows the user to use the same shortcut keys to perform control trigger operations before and after switching application interfaces, thereby effectively improving the user's interaction efficiency when using shortcut keys.
[0097] Based on the solutions shown in the above embodiments, in some embodiments, the first control is the main function control in the first application interface; the second control is the main function control in the second application interface; wherein, the main function control is used to trigger the main function in the application interface.
[0098] In this embodiment of the application, the application interface may contain one or more controls, one or more of which may be pre-marked by the developer as the main function control corresponding to the main function.
[0099] Generally speaking, the controls with the above-mentioned main functions are those that occupy a core position in the application interface or perform key operations; or, in other words, the controls with the above-mentioned main functions are those that users trigger most frequently or with the highest probability of triggering.
[0100] In this embodiment, the shortcut keys of the main function controls in the first application interface are directly applied to the main function controls in the second application interface, so that the user can use the same shortcut keys to trigger the main functions in the two application interfaces before and after switching application interfaces, thereby effectively improving the interaction efficiency of the user when using shortcut keys.
[0101] Optionally, in the embodiments of this application, the first control and the second control may not be limited to the main function control, but may also include secondary function controls. For example, the secondary function controls include, but are not limited to, at least one of auxiliary function controls and navigation controls.
[0102] Optionally, the first control is an accessibility control in the first application interface; the second control is an accessibility control in the second application interface; wherein, the accessibility control is a control in the application interface that provides additional tools or functions, such as "Undo", "Redo", "Cut" and "Copy".
[0103] Optionally, the first control is a navigation control in the first application interface; the second control is a navigation control in the second application interface; wherein, the navigation control is a control used to help the user navigate between different parts of the application interface, such as "previous page", "next page" and "back".
[0104] In some embodiments, the first control is one of the entry controls of the second application interface.
[0105] In this embodiment of the application, the other application interface (any application interface other than the second application interface) corresponding to the application includes an entry control. The entry control can be one or more controls for entering the second application interface from the other application interface. The user can trigger the entry control in the other application interface to enter the second application interface.
[0106] Figure 2 Step 240 can be implemented as follows: in response to the trigger operation of the first control, display the second application interface.
[0107] In this embodiment of the application, the terminal device displays the second application interface in response to a triggering operation of a control in the entry control of the second application interface.
[0108] In this embodiment, the terminal device responds to the triggering of the entry control of the second application interface, displays the second application interface, and subsequently automatically reuses the shortcut key of the entry control for the shortcut key of the second control in the second application interface. The user can directly use the shortcut key corresponding to the previous application interface in the second application interface without having to switch to a new shortcut key. The user can directly continue to use the shortcut key in the previous application interface, which simplifies the user's confirmation steps for shortcut keys in the new application interface, makes the user's operation of shortcut keys more consistent, and effectively improves the interaction efficiency between the user and the application interface when using shortcut keys.
[0109] In some embodiments, where a second control is included in the second application interface, and the triggering operation for entering the second application interface of the application from the first application interface is performed by a shortcut key of the first control, the shortcut key of the first control is reused as the shortcut key of the second control.
[0110] In this embodiment of the application, the terminal device responds to the second application interface by being triggered by the shortcut key of the first control, and enters the second application interface from the first application interface, directly obtaining the shortcut key of the first control as the shortcut key of the second control.
[0111] In this embodiment, the shortcut key of the trigger control in the previous interface is directly reused as the shortcut key of the second control in the second application interface. The trigger control is used to trigger the second application interface of the application from the first application interface, which can maintain the continuity of the user's operation in the application interface and improve the interaction efficiency between the user and the application interface.
[0112] In some embodiments, step 260 above can be implemented as follows: when the second application interface includes a second control, the attribute information of the entry control that most recently triggered the display of the second application interface is obtained as the attribute information of the first control; the shortcut key information in the attribute information of the first control is read; and the shortcut key indicated by the shortcut key information in the attribute information of the first control is reused as the shortcut key of the second control.
[0113] In this embodiment of the application, when the terminal device displays a second application interface and the second application interface contains a second control, the terminal device obtains the attribute information of the most recently triggered entry control. The entry control is a control used to display the second application interface. That is, the terminal device obtains the attribute information of the entry control used to display the current application interface (second application interface) and uses the obtained attribute information as the attribute information of the first control.
[0114] In this embodiment, each entry control has attribute information, which includes at least shortcut key information. The shortcut key information is used to indicate the shortcut key corresponding to the entry control.
[0115] In this embodiment, the terminal device automatically reuses the shortcut key of the entry control that most recently triggered the display of the second application interface as the shortcut key of the second control. This means that the operation key that was just triggered in the previous interface of the current application interface is directly and automatically set as the shortcut key of the control in the current application interface, which expands the way shortcut keys are set. Since the shortcut keys are directly and automatically reused, the user can maintain the continuity of operation and improve the interaction efficiency between the user and the interface.
[0116] based on Figure 2 Please refer to Figure 4 , Figure 4 This is a flowchart illustrating a shortcut key setting method provided in one embodiment of this application. Prior to step 260 above, the method further includes:
[0117] Step 244: Obtain the property information of each control in the second application interface.
[0118] The aforementioned attribute information may include, but is not limited to: name information (i.e., the specific name of the control), type information (i.e., the display type of the control on the terminal device, such as button, text box, drop-down menu), status information (i.e., the current working status of the control, such as enabled or disabled), shortcut key information (i.e., whether the control has a corresponding shortcut key, and if so, the specific shortcut key corresponding to the control), and function marking information (i.e., whether the function corresponding to the control belongs to the main function; if marked, it indicates that the current control is the control corresponding to the main function; if not marked, it indicates that the current control is not the control corresponding to the main function).
[0119] In this embodiment of the application, each control in the second application interface corresponding to the application has control attribute information. The control attribute information includes at least a main function control marker. The main function control marker is used to indicate whether the control belongs to the main function of the application interface. The main function control marker can include two states: marked and unmarked. Marked indicates that the control belongs to the main function of the application interface, and unmarked indicates that the control does not belong to the main function of the application interface.
[0120] Step 248: Among the controls in the second application interface, the controls whose attribute information contains the main function marker are identified as the second controls; the main function marker is used to indicate that the control is the main function control.
[0121] In this embodiment, the attribute information of the control includes a main function marker, indicating that the control is a main function control.
[0122] In some embodiments, the property information of a control may include a description of its main functions.
[0123] Optionally, whether a control is a main function control can be indicated by whether the main function description item is checked; the main function description item is included in the control's property information, and the main function description item can be checked. If the main function description item is checked, the control is determined to be a main function control; if the main function description item is not checked, the control is determined not to be a main function control.
[0124] Optionally, the main function description item can be assigned a value, which indicates whether the control is the main function control. The main function description item is included in the control's property information. If the main function description item is assigned a value of "1", the control is determined to be the main function control. If the main function description item is assigned a value of "0", the control is determined not to be the main function control.
[0125] In this embodiment of the application, after the terminal device traverses the main function markers in the attribute information of each control in the second application interface, it determines the control corresponding to the attribute information as the second control.
[0126] In this embodiment, when the terminal device enters the second application interface, it automatically obtains the attribute information of each control and can automatically identify which controls are the main function controls. This reduces the steps required for users to manually specify the main function controls. Users can directly use the shortcut keys in the previous application interface, which simplifies the steps for users to confirm shortcut keys in the second application interface. This makes the operation of shortcut keys more consistent and effectively improves the interaction efficiency between users and the application interface when using shortcut keys.
[0127] In some embodiments, Figure 4Step 260 can be implemented as follows: when the second application interface contains a second control, obtain the attribute information of each control in the first application interface; obtain the attribute information of the main function marker from the attribute information of each control in the first application interface as the attribute information of the first control; retrieve the shortcut key information from the attribute information of the first control; reuse the shortcut key indicated by the shortcut key information in the attribute information of the first control as the shortcut key of the second control.
[0128] The aforementioned attribute information may include, but is not limited to: name information (i.e., the specific name of the control), type information (i.e., the display type of the control on the terminal device, such as button, text box, drop-down menu), status information (i.e., the current working status of the control, such as enabled or disabled), shortcut key information (i.e., whether the control has a corresponding shortcut key, and if so, the specific shortcut key corresponding to the control), and function marking information (i.e., whether the function corresponding to the control belongs to the main function; if marked, it indicates that the current control is the control corresponding to the main function; if not marked, it indicates that the current control is not the control corresponding to the main function).
[0129] In this embodiment of the application, each control in the first application interface has corresponding attribute information, which may include marker information indicating that the control is a main function control.
[0130] Optionally, the terminal device can traverse the attribute information corresponding to each control in the application's code and send the obtained attribute information to the terminal device, so that the terminal device can obtain the attribute information of each control in the first application interface.
[0131] After obtaining the attribute information of each control in the first application interface, the terminal device reads the attribute information. If the attribute information contains the main function marker, it obtains the attribute information as the attribute information of the first control.
[0132] In this embodiment, the terminal device automatically reuses the shortcut keys of the main function controls in the first application interface as the shortcut keys of the second control. This means that the operation keys that were just triggered in the previous interface of the current application interface are directly and automatically set as the shortcut keys of the controls in the current application interface, which expands the way shortcut keys are set. Since the shortcut keys are directly and automatically reused, users can maintain the continuity of operation and improve the interaction efficiency between users and the interface.
[0133] In some embodiments, when the second application interface includes a second control, the terminal device reads the value of the shortcut key trigger marker; when the value of the shortcut key trigger marker is a first value, it obtains the attribute information of each control in the first application interface; the first value is used to indicate that the shortcut key of the main function control is triggered during the display of the previous application interface.
[0134] The aforementioned shortcut key trigger flag is used to indicate whether the shortcut key of the main function control was triggered during the display of the previous application interface. The shortcut key trigger flag can be assigned a value, which can be a first value or a second value, and the first value and the second value are different; the first value is used to indicate that the shortcut key of the main function control was triggered during the display of the previous application interface; the second value is used to indicate that the shortcut key of the main function control was not triggered during the display of the previous application interface.
[0135] In this embodiment, when the user triggers the shortcut key of the main function control in the previous interface, the terminal device obtains the attribute information of each control in the first application interface to realize the automatic reuse of the shortcut key in subsequent steps. The user triggering the main function control in the previous interface indicates that the user is operating the application. In this case, obtaining the attribute information of each control can more accurately lay out the shortcut key according to the user's needs, simplify the operation steps when the user operates the application, avoid unnecessary operation that leads to waste of system resources, and effectively improve the interaction efficiency between the user and the application interface.
[0136] In some embodiments, after reading the value of the shortcut key trigger marker, the terminal device sets the value of the shortcut key trigger marker to a second value, which is used to indicate that the shortcut key of the main function control was not triggered during the display of the previous application interface; during the display of the second application interface, if the shortcut key of the second control is triggered, the value of the shortcut key trigger marker is set to a first value.
[0137] In this embodiment of the application, if the triggering operation for entering the second application interface from the previous application interface is not triggered by the shortcut key of the main function control in the previous application interface, the shortcut key triggering flag is set to the second value.
[0138] When the shortcut key of the second control is triggered, the shortcut key trigger marker of the second control is automatically updated to the first value.
[0139] In this embodiment, when a user moves from one application interface to another, the value of the shortcut key trigger mark is automatically updated in a timely manner. This helps the terminal device to obtain information about the trigger status of shortcut keys for controls in the application interface, facilitating the subsequent deployment of shortcut keys to meet the user's interaction needs for the application interface.
[0140] In some embodiments, Figure 2Step 260 can be implemented as follows: when the second application interface contains a second control, obtain shortcut key information, which is used to indicate the shortcut keys of each control in the second application interface; when the shortcut key information meets the specified conditions, reuse the shortcut key of the first control for the shortcut key of the second control.
[0141] Optionally, the terminal device can iterate through the shortcut key information of each control in the program code corresponding to the application and send the obtained shortcut key information to the terminal device, so that the terminal device can obtain the shortcut keys of each control in the second application interface.
[0142] The specified conditions are intended to limit the reuse of the shortcut key of the first control to the shortcut key of the second control under specific circumstances. For example, when the shortcut key information is empty, it indicates that none of the controls in the second application interface have corresponding shortcut keys. In this case, the shortcut key of the first control can be reused for the shortcut key of the second control.
[0143] In this embodiment of the application, by reusing the shortcut key of the first control to the shortcut key of the second control when the shortcut key information meets the specified conditions, the shortcut key setting is automated, which simplifies the user's operation steps for setting shortcut keys, makes the user's operation of shortcut keys more consistent, and effectively improves the interaction efficiency between the user and the application interface when using shortcut keys.
[0144] In some embodiments, the specified conditions include: among the controls indicated by the shortcut key information, there are no other controls besides the first control; or, among the controls indicated by the shortcut key information, the shortcut keys of the other controls besides the first control are different from the shortcut key of the first control.
[0145] Optionally, if no other control in the second application interface has the same shortcut key as the first control, the shortcut key of the first control can be reused for the shortcut key of the second control.
[0146] Optionally, if the shortcut keys of each control in the second application interface are different from the shortcut keys of the first control, the shortcut keys of the first control can be reused for the shortcut keys of the second control.
[0147] In this application embodiment, two additional conditions are provided for reusing the shortcut keys of the first control with the shortcut keys of the second control. These two conditions ensure that no other control in the second application interface uses the same shortcut key as the first control, effectively avoiding shortcut key conflicts. This also ensures that users do not accidentally trigger other controls when using shortcut keys, thereby improving the interaction efficiency between users and the application interface when using shortcut keys.
[0148] In some embodiments, Figure 2Step 260 can be implemented as follows: if the second application interface contains a second control and the number of the second control is the same as the number of the first control, reuse the shortcut key of the first control for the shortcut key of the second control.
[0149] In this embodiment of the application, when the number of first controls in the first application interface is the same as the number of second controls in the second application interface, the terminal device can reuse the shortcut keys of multiple first controls one by one to the shortcut keys of multiple second controls.
[0150] In this embodiment of the application, the terminal device can set shortcut keys one by one based on the arrangement order, function, relative position and attribute information of the first control and the second control in their respective application interfaces.
[0151] Optionally, the terminal device can assign shortcut keys one by one according to the arrangement order of the first and second controls in their respective application interfaces. Specifically, the terminal device obtains the arrangement order of the first controls in the first application interface and the arrangement order of the second controls in the second application interface; and reuses the shortcut key of the Nth control in the first control sequence as the shortcut key of the Nth control in the second control sequence.
[0152] For example, the first application interface has three first controls arranged in sequence: A1, B1, and C1. The second application interface has three second controls arranged in sequence: A2, B2, and C2. The terminal device reuses the shortcut key of one first control A1 as the shortcut key of one second control A2, reuses the shortcut key of another first control B1 as the shortcut key of another second control B2, and reuses the shortcut key of yet another first control C1 as the shortcut key of yet another second control C2.
[0153] Optionally, the terminal device can assign shortcut keys to the first and second controls one by one according to their respective functions in their application interfaces; that is, controls with similar functions correspond to the same shortcut keys. Specifically, the terminal device obtains the function information of the first and second controls respectively; and reuses the shortcut keys of the first controls with the same or similar functions for the shortcut keys of the second controls.
[0154] For example, the first application interface has three primary controls: a save button, an undo button, and a redo button. The second application interface has three secondary controls: a submit button, an undo button, and a redo button. The terminal device reuses the shortcut key of one primary control, the "save button," for one secondary control, the "submit button," and so on.
[0155] Optionally, the terminal device can assign shortcut keys to the first and second controls one by one based on their relative positions in their respective application interfaces. Specifically, the terminal device obtains the position coordinates of the first and second controls in their respective application interfaces; and reuses the shortcut keys of the first controls in the same or similar positions for the shortcut keys of the second controls.
[0156] For example, the first application interface has three primary controls: a "Save" button in the upper left corner, an "Undo" button in the middle, and a "Redo" button in the lower right corner. The second application interface has three secondary controls: a "Submit" button in the upper left corner, an "Undo" button in the middle, and a "Redo" button in the lower right corner. The terminal device reuses the shortcut key of the "Save" button in the upper left corner of the first application interface as the shortcut key of the "Submit" button in the upper left corner of the second application interface; reuses the shortcut key of the "Undo" button in the middle of another primary control in the first application interface as the shortcut key of the "Undo" button in the middle of the second application interface; and reuses the shortcut key of the "Redo" button in the lower right corner of the first application interface as the shortcut key of the "Redo" button in the lower right corner of the second application interface.
[0157] Optionally, the terminal device can set shortcut keys for each of the first and second controls based on their respective attribute information. Specifically, the terminal device obtains the attribute information of the first and second controls, such as control name and control type; and reuses the shortcut keys of the first controls with the same or similar attributes for the shortcut keys of the second controls.
[0158] For example, the first application interface has three primary controls: a save button named "save", an undo button named "undo", and a redo button named "redo". The second application interface has three secondary controls: a submit button named "submit", an undo button named "undo", and a redo button named "redo". The terminal device reuses the shortcut key of the save button for the submit button, the shortcut key of the undo button for the redo button for the redo button for the redo button for the redo button for the redo button for the redo button for the redo button for the redo button.
[0159] In this application embodiment, a method for automatically setting shortcut keys for multiple controls is extended. By automatically setting shortcut keys for second controls in batches, multiple second controls in the second application interface can use the shortcut keys of multiple first controls in the first application interface. This can save users the time of manually setting shortcut keys for individual controls, make the operation of shortcut keys by users more consistent, and effectively improve the interaction efficiency between users and the application interface when using shortcut keys.
[0160] In some embodiments, Figure 2 Step 260 can be implemented as follows: if the second application interface contains a second control, add the shortcut key of the first control as the shortcut key of the second control; or, if the second application interface contains a second control, replace the shortcut key of the first control with the shortcut key of the second control.
[0161] In this embodiment of the application, the terminal device can add an additional shortcut key for the first control as a new shortcut key for the second control, provided that the second control has a corresponding shortcut key. The user can trigger the second control by pressing the shortcut key corresponding to the second control itself, or by triggering the second operation through the newly added shortcut key of the second control.
[0162] In this embodiment of the application, the terminal device can directly replace the shortcut key of the second control itself with the shortcut key of the first control.
[0163] It should be noted that, in the embodiments of this application, the terminal device can automatically determine whether to replace or add the shortcut key of the second control based on the current operation of the application or application interface; the terminal device can also pop up a prompt interface when it receives a trigger operation to switch from the first application interface to the second application interface. The prompt interface contains two options: one option is used to indicate that the shortcut key of the second control is replaced with the shortcut key of the first control; the other option is used to indicate that the shortcut key of the first control is added to the shortcut key of the second control. In response to the user selecting at least one of the two options, the terminal device performs the shortcut key setting operation.
[0164] In this application embodiment, two additional methods for setting shortcut keys are provided. Different methods can be selected for different situations, making the set shortcut keys more closely match user needs and effectively improving the interaction efficiency between the user and the application interface when using shortcut keys.
[0165] based on Figure 2 Please refer to Figure 5 , Figure 5 This is a flowchart of a shortcut key setting method provided in one embodiment of this application. Figure 2 Step 260 in the process can be implemented as step 260a, and Figure 2 The scheme shown also includes steps 280 and 300:
[0166] Step 260a: If the second application interface contains a second control, the shortcut key identification information of the first control is used as the shortcut key identification information of the second control and written into the shortcut key information in the attribute information of the second control.
[0167] The shortcut key identification information is used to indicate the display format of the shortcut key on the terminal device, including but not limited to at least one of display type, display color, and color shape. In this embodiment, each trigger control with a shortcut key in the application interface has a shortcut key identification information, which is stored in the attribute information corresponding to the trigger control.
[0168] In this embodiment of the application, the terminal device can obtain the identification information of the shortcut key of the first control, use the identification information of the shortcut key of the first control as the identification information of the shortcut key of the second control, and write it into the attribute information of the second control. That is, the identification information of the shortcut key of the second control directly reuses the identification information of the shortcut key of the first control.
[0169] Optionally, the terminal device can obtain the identification information of the shortcut key of the first control, use the identification information of the shortcut key of the first control as the new identification information of the shortcut key of the second control, and write it into the attribute information of the second control. That is, the identification information of the shortcut key of the second control is supplemented with the identification information of the shortcut key of the first control.
[0170] Step 280: Read the shortcut key information in the property information of the second control to obtain the identification information of the second control.
[0171] In this embodiment of the application, the terminal device reads the shortcut key information in the attribute information of the second control, and can obtain the original identification information of the first control as the identification information of the second control.
[0172] Step 300: Based on the identification information of the second control, display the text of the shortcut key of the second control on the second control.
[0173] In this embodiment, the terminal device obtains the identification information of the second control and displays the obtained shortcut key information on the second control. For example, the identification information contains the text of the shortcut key "F", and the text indicating the shortcut key is displayed in the center of the control. The second control is a button, and the terminal device displays the text "F" of its corresponding shortcut key, with the text "F" displayed in the center of the button.
[0174] In this embodiment of the application, when the terminal device enters the second application interface from an interface different from the first application interface, it uses the identification information of the shortcut key of the specified control in the other interface as the identification information of the shortcut key of the second control, writes it into the shortcut key information in the attribute information of the second control, and updates and displays the text of the shortcut key on the second control in the terminal device.
[0175] In some embodiments, the display brightness of the shortcut key text in the second control can be adjusted according to the update time. The more recent the update time, the brighter the shortcut key text is displayed, providing a highlight; the longer the update time, the dimmer the shortcut key text is displayed. Displaying the shortcut key text with different brightness according to the update time effectively indicates the current update status of the shortcut key text to the user, facilitating subsequent user interaction with the second application interface.
[0176] In this embodiment, the shortcut key information in the attribute information of the second control can be updated in a timely manner to the identification information of the control in the previous application interface. By obtaining the shortcut key information in the attribute information of the second control, the terminal device can display the shortcut key text of the control in the current application interface according to the identification information of the shortcut key of the control in the previous application interface, and update the shortcut key text of the control in the current application interface in a timely manner. The solution shown in this embodiment supports the terminal device to dynamically display the shortcut key text of the control, which is beneficial for users to understand the shortcut key text in the current application interface in a timely manner, simplifies the steps for users to confirm shortcut keys after switching application interfaces, and improves the interaction efficiency between users and the application interface when using shortcut keys.
[0177] Based on the above Figure 2 , Figure 4 as well as Figure 5 The steps in the embodiments will be as described above. Figure 2 , Figure 4 as well as Figure 5 The solutions shown in the embodiments are applied to game applications. The embodiments of this application illustrate a solution for dynamically deploying shortcut keys.
[0178] This application example proposes a dynamic deployment solution for game PCs, aiming to solve the problem of inconsistent operation when players use shortcut keys in existing games, which can only be statically set, as well as the high cost for players to learn shortcut keys in different game interfaces.
[0179] The solution illustrated in this application example introduces a dynamic shortcut mapping mechanism. When a player navigates from one game interface to another within a game application, the main operation shortcut for the later interface is automatically adjusted to match the shortcut of the most recently used control in the previous interface. This allows for smoother and more efficient continuous operation of the game application (e.g., switching between game interfaces multiple times), eliminating the need to memorize and search for shortcuts between different game interfaces. This solution effectively improves the continuity of user operations after switching game interfaces, reduces the learning cost of shortcuts for controls in different application interfaces, and thus significantly optimizes the player's gaming experience.
[0180] When the above solution is applied to a game application, the specific display process of the game interface is as follows.
[0181] For example, please refer to Figure 6 The diagram illustrates an interface provided in an exemplary embodiment of this application.
[0182] Players open interface 600, which contains a button 61. Clicking this button will take you to the next interface. Button 61 has a shortcut key "F," which players can use to access the next interface by pressing the F key on their keyboard.
[0183] For example, based on Figure 6 Please refer to Figure 7 The diagram illustrates an interface provided in an exemplary embodiment of this application.
[0184] Players enter interface 700 by clicking button 61 on interface 600. If interface 700 has a clear main function (i.e., the player's operational needs for entering this interface are very clear and often unique), then the function button corresponding to that main function inherits the shortcut key F from interface 600, such as... Figure 7 As shown, the main function "Breakthrough" exists in interface 700. The function button 72 corresponding to "Breakthrough" inherits the shortcut key "F" in interface 600. Players can use the main function "Breakthrough" more quickly by clicking "F".
[0185] For example, based on Figure 7 Please refer to Figure 8 The diagram illustrates an interface provided in an exemplary embodiment of this application.
[0186] When a player enters interface 700 through another interface, the shortcut key for the entry button 81 in interface 800 is "U". After the player presses the shortcut key "U", interface 700 is displayed in the game scene, and the shortcut key 71 of the corresponding button in interface 700 is inherited as "U".
[0187] For example, please refer to Figure 9 It illustrates a flowchart of the functional logic provided by an exemplary embodiment of this application, and the solution shown in the flowchart can be applied to the above. Figures 6 to 8 The application scheme shown.
[0188] Step 901: The player opens the interface.
[0189] Players can click a button in the game scene interface to enter a new interface. When a player enters a new interface, the server automatically detects all function buttons on that interface and retrieves the corresponding controls.
[0190] Please refer to Figure 10The diagram illustrates a function button detection method provided in an exemplary embodiment of this application. When a player enters a new interface 1000, the server is triggered to automatically detect all function buttons (function button 1001, function button 1002, function button 1003, and function button 1004) in the interface and obtain the controls corresponding to these function buttons.
[0191] Step 902: Determine if there are buttons marked as having a primary function.
[0192] After the server obtains all the function buttons on the interface, it reads the attributes corresponding to these function buttons and determines whether there are buttons marked as main functions in the attributes of these function buttons.
[0193] Please refer to Figure 11 The diagram illustrates the function button attributes provided in an exemplary embodiment of this application.
[0194] Figure 11 The option box 1101 contains a main function button. The option box 1101 is used to indicate whether the current function button is the main function button. If the option box 1101 is checked, it means that the current function button is configured as the main function button, and step 902-1 is executed; if the option box 1101 is not checked, it means that the current function button is not configured as the main function button, and the process ends.
[0195] Step 902-1: Determine if there is a shortcut key to enter this interface in the upper layer interface.
[0196] based on Figure 11 If option box 1101 is checked, it means that there are buttons for the main functions in the current interface. The server obtains the attributes of the entry button used to enter the current interface from the upper layer interface of the current interface.
[0197] After obtaining the properties of the entry button, retrieve the shortcut key configuration of the entry button from its properties.
[0198] The process ends if the shortcut key configuration for the entry control is not obtained.
[0199] If you have obtained the shortcut key configuration for this entry control, please refer to... Figure 12 The diagram illustrates an entry button provided in an exemplary embodiment of this application.
[0200] After the server obtains the entry button for the current interface, it reads the properties of that entry button from the upper-level interface, retrieves the shortcut key configuration of the entry button, and records the value of the shortcut key. For example, if the shortcut key for the entry button is F, it records temp = F.
[0201] Please refer to Figure 13 This diagram illustrates the properties of an entry button provided in an exemplary embodiment of this application.
[0202] exist Figure 13 The configuration includes shortcut key configuration 1301. The server reads the configuration value "F" from it, which means that the shortcut key for the entry button is "F".
[0203] The server reads the attributes of other function buttons on the interface and determines whether the shortcut key of the function button is the same as the shortcut key of the main function button. In other words, it determines whether there is a conflict between the key of the main function button and the key of other buttons on the current interface. If there is a conflict, the process ends; if not, the shortcut key value of the entry button in the upper layer interface is assigned to the main function button in this interface, and the shortcut key is displayed on the terminal interface.
[0204] Please refer to Figure 14 The diagram illustrates a shortcut key provided in an exemplary embodiment of this application.
[0205] In interface 1400, buttons 1401 corresponding to the main functions are displayed, and the shortcut key "Z" corresponding to the button is displayed on button 1401.
[0206] In the embodiments of this application, the above solution can achieve the following beneficial effects:
[0207] 1) Improved operational efficiency: By dynamically adjusting shortcut keys, players can perform continuous operations between different game interfaces more quickly without having to relearn or memorize them, greatly improving operational efficiency.
[0208] 2) Reduced learning cost: Players do not need to memorize the shortcut key configurations for each interface, simplifying the shortcut key memorization mode and reducing the difficulty of getting started with the game and the cognitive burden.
[0209] 3) Enhance player experience: The smoothness and ease of operation directly affect the player's gaming experience. This solution significantly enhances the smoothness of the game and player satisfaction by providing consistent operating habits.
[0210] 4) Enhanced personalization and flexibility: This solution supports dynamic adjustment of shortcut keys based on players' operating habits and game needs, providing more personalized and flexible game settings options.
[0211] In summary, this technical solution not only improves game operation efficiency and reduces learning costs, but also provides players with a smoother and more personalized gaming experience, significantly optimizing the way players interact with the game.
[0212] The above is merely one embodiment of this application and should not be considered as a limitation thereof. Those skilled in the art will understand that various modifications and variations can be made to the embodiments to adapt to different application requirements. Therefore, the scope of this application should be defined by the claims appended to the claims.
[0213] Please refer to Figure 15 The diagram illustrates a block diagram of a shortcut key setting device provided in an exemplary embodiment of this application. This shortcut key setting device can be implemented as all or part of a computer device through hardware or a combination of hardware and software, to achieve the above-described functionality. Figure 2 , Figure 4 as well as Figure 5 All or part of the steps in the illustrated embodiments. For example... Figure 15 As shown, the shortcut key setting device includes:
[0214] The first application interface display module 1501 is used to display the first application interface of the application. The first application interface contains a first control, and the first control has a corresponding shortcut key.
[0215] The second application interface display module 1502 is used to display the second application interface in response to a trigger operation that enters the second application interface of the application from the first application interface.
[0216] The shortcut key setting module 1503 is used to reuse the shortcut key of the first control for the shortcut key of the second control when the second application interface contains a second control.
[0217] In some embodiments, the first control is a main function control in a first application interface; the second control is a main function control in a second application interface; wherein, the main function control is a control used to trigger the main function in the application interface.
[0218] In some embodiments, the first control is one of the entry controls of the second application interface;
[0219] The second application interface display module 1502 is used to display the second application interface in response to the trigger operation of the first control.
[0220] In some embodiments, the shortcut key setting module 1503 is used to reuse the shortcut key of the first control as the shortcut key of the second control when the second application interface includes a second control and the triggering operation for entering the second application interface of the application from the first application interface is performed by the shortcut key of the first control.
[0221] In some embodiments, the shortcut key setting module 1503 is used to, when the second application interface contains a second control, obtain the attribute information of the entry control that most recently triggered the display of the second application interface as the attribute information of the first control; read the shortcut key information in the attribute information of the first control; and reuse the shortcut key indicated by the shortcut key information in the attribute information of the first control as the shortcut key of the second control.
[0222] In some embodiments, the apparatus further includes:
[0223] The attribute information acquisition module is used to acquire the attribute information of each control in the second application interface before reusing the shortcut key of the first control to the shortcut key of the second control when the second control is included in the second application interface.
[0224] The second control determination module is used to determine the controls whose attribute information contains the main function marker as the second control before reusing the shortcut key of the first control to the shortcut key of the second control when the second application interface contains the second control. The main function marker is used to indicate that the control is the main function control.
[0225] In some embodiments, the shortcut key setting module 1503 is used to, when the second application interface contains a second control, obtain the attribute information of each control in the first application interface; obtain the attribute information containing the main function marker from the attribute information of each control in the first application interface as the attribute information of the first control; read the shortcut key information in the attribute information of the first control; and reuse the shortcut key indicated by the shortcut key information in the attribute information of the first control as the shortcut key of the second control.
[0226] In some embodiments, the shortcut key setting module 1503 is used to read the value of the shortcut key trigger marker when the second application interface contains a second control; and to obtain the attribute information of each control in the first application interface when the value of the shortcut key trigger marker is a first value; the first value is used to indicate that the shortcut key of the main function control is triggered during the display of the previous application interface.
[0227] In some embodiments, the shortcut key setting module 1503 further includes:
[0228] The second value setting submodule is used to set the value of the shortcut key trigger marker to the second value after reading the value of the shortcut key trigger marker. The second value is used to indicate that the shortcut key of the main function control was not triggered during the display of the previous application interface.
[0229] The first value setting submodule is used to set the value of the shortcut key trigger marker to the first value when the shortcut key of the second control is triggered during the display of the second application interface.
[0230] In some embodiments, the shortcut key setting module 1503 is used to obtain shortcut key information when the second application interface includes a second control, the shortcut key information being used to indicate the shortcut keys of each control in the second application interface; and to reuse the shortcut key of the first control for the shortcut key of the second control when the shortcut key information meets specified conditions.
[0231] In some embodiments, the specified conditions include: among the controls indicated by the shortcut key information, there are no other controls besides the first control; or, among the controls indicated by the shortcut key information, the shortcut keys of the other controls besides the first control are different from the shortcut key of the first control.
[0232] In some embodiments, the shortcut key setting module 1503 is used to reuse the shortcut keys of the first controls for the shortcut keys of the second controls when the second application interface includes a second control and the number of the second controls is the same as the number of the first controls.
[0233] In some embodiments, the shortcut key setting module 1503 is used to add the shortcut key of the first control as the shortcut key of the second control when the second application interface contains the second control; or, when the second application interface contains the second control, to replace the shortcut key of the first control as the shortcut key of the second control.
[0234] In some embodiments, the shortcut key setting module 1503 is used to, when the second application interface includes a second control, write the identification information of the shortcut key of the first control as the identification information of the shortcut key of the second control into the shortcut key information of the attribute information of the second control.
[0235] The above-mentioned device also includes:
[0236] The shortcut key information reading module is used to read the shortcut key information from the property information of the second control and obtain the identification information of the second control;
[0237] The text display module is used to display the text of the shortcut key of the second control on the second control based on the identification information of the second control.
[0238] Please refer to Figure 16 , Figure 16This is a schematic diagram of the structure of a computer device provided in an exemplary embodiment of this application. The computer device 1600 includes a Central Processing Unit (CPU) 1601, a system memory 1604 including Random Access Memory (RAM) 1602 and Read-Only Memory (ROM) 1603, and a system bus 1605 connecting the system memory 1604 and the CPU 1601. The computer device 1600 also includes a Basic Input / Output System (I / O System) 1606 to facilitate information transfer between various devices within the computer, and a mass storage device 1607 for storing the operating system 1613, application programs 1614, and other program modules 1615.
[0239] The basic input / output system 1606 includes a display 1608 for displaying information and an input device 1609 for user input, such as a mouse or keyboard. Both the display 1608 and the input device 1609 are connected to the central processing unit 1601 via an input / output controller 1610 connected to the system bus 1605. The basic input / output system 1606 may also include the input / output controller 1610 for receiving and processing input from multiple other devices such as a keyboard, mouse, or electronic stylus. Similarly, the input / output controller 1610 also provides output to a display screen, printer, or other types of output devices.
[0240] The mass storage device 1607 is connected to the central processing unit 1601 via a mass storage controller (not shown) connected to the system bus 1605. The mass storage device 1607 and its associated computer-readable media provide non-volatile storage for the computer device 1600. That is, the mass storage device 1607 may include computer-readable media (not shown) such as a hard disk or a CD-ROM (Compact Disc Read-Only Memory) drive.
[0241] Without loss of generality, the computer-readable medium may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented using any method or technology for storing information such as computer-readable instructions, data structures, program modules, or other data. Computer storage media include RAM (Random Access Memory), ROM (Read-Only Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory or other solid-state storage technologies, CD-ROM, DVD (Digital Video Disc) or other optical storage, magnetic tape cassettes, magnetic tape, disk storage, or other magnetic storage devices. Of course, those skilled in the art will recognize that the computer storage media are not limited to the above-mentioned types. The system memory 1604 and mass storage device 1607 described above can be collectively referred to as memory.
[0242] Computer device 1600 can be connected to the Internet or other network devices via network interface unit 1611 connected to the system bus 1605.
[0243] The memory also includes one or more programs stored in the memory, and the central processing unit 1601 implements these programs by executing them. Figure 2 , Figure 4 as well as Figure 5 All or some of the steps in the method shown.
[0244] In an exemplary embodiment, a chip is also provided, the chip including programmable logic circuitry and / or program instructions, which, when the chip is run on a computer device, are used to implement all or part of the steps of the methods shown in the above embodiments of this application.
[0245] In an exemplary embodiment, a computer program product is also provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions to implement all or part of the steps of the methods shown in the above embodiments of this application.
[0246] In an exemplary embodiment, a computer-readable storage medium is also provided, which stores a computer program that is loaded and executed by a processor to implement all or part of the steps of the methods shown in the above embodiments of this application.
[0247] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.
[0248] Those skilled in the art will recognize that the functions described in the embodiments of this application in one or more of the above examples can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or code on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any medium that facilitates the transfer of a computer program from one place to another. Storage media can be any available medium that can be accessed by a general-purpose or special-purpose computer.
[0249] The above description is merely an optional embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A shortcut setting method, characterized by, The method is executed by a terminal device, and the method comprises: displaying a first application interface of an application program, the first application interface comprising a first control, the first control corresponding to a shortcut key; in response to a trigger operation of entering a second application interface of the application program from the first application interface, displaying the second application interface; in the case where the second application interface comprises a second control, reusing the shortcut key of the first control as the shortcut key of the second control.
2. The method of claim 1, wherein: the first control is a main function control in the first application interface; the second control is a main function control in the second application interface; wherein the main function control is a control for triggering a main function in an application interface.
3. The method of claim 2, wherein, the first control is one of the entry controls of the second application interface; the displaying of the second application interface in response to the trigger operation of entering the second application interface of the application program from the first application interface comprises: in response to the trigger operation of the first control, displaying the second application interface.
4. The method of claim 3, wherein, the reusing of the shortcut key of the first control as the shortcut key of the second control in the case where the second application interface comprises the second control comprises: in the case where the second application interface comprises the second control and the trigger operation of entering the second application interface of the application program from the first application interface is an operation performed by the shortcut key of the first control, reusing the shortcut key of the first control as the shortcut key of the second control.
5. The method of claim 3, wherein, the reusing of the shortcut key of the first control as the shortcut key of the second control in the case where the second application interface comprises the second control comprises: in the case where the second application interface comprises the second control, obtaining attribute information of the first control as attribute information of the first control, the attribute information comprising shortcut key information; reading the shortcut key information in the attribute information of the first control; reusing the shortcut key indicated by the shortcut key information in the attribute information of the first control as the shortcut key of the second control.
6. The method according to claim 2 or 3, characterized in that, before the reusing of the shortcut key of the first control as the shortcut key of the second control in the case where the second application interface comprises the second control, the method further comprises: obtaining attribute information of each control in the second application interface; determining, as the second control, a control in the second application interface whose attribute information comprises a main function marker, the main function marker being used to indicate that the control is the main function control.
7. The method of claim 6, wherein, the reusing of the shortcut key of the first control as the shortcut key of the second control in the case where the second application interface comprises the second control comprises: in the case where the second application interface comprises the second control, obtaining attribute information of each control in the first application interface; obtaining, as attribute information of the first control, attribute information of each control in the first application interface, the attribute information comprising the main function marker; reading the shortcut key information in the attribute information of the first control; Reuse the shortcut key indicated by the shortcut key information in the attribute information of the first control as the shortcut key of the second control.
8. The method of claim 7, wherein, The attribute information of each control in the first application interface is acquired in the case that the second control is contained in the second application interface, including: In the case that the second control is contained in the second application interface, the value of the shortcut key trigger mark is read; In the case that the value of the shortcut key trigger mark is the first numerical value, the attribute information of each control in the first application interface is acquired; the first numerical value is used to indicate that the shortcut key of the main function control is triggered in the display process of the previous application interface.
9. The method of claim 8, wherein, The method further includes: After the value of the shortcut key trigger mark is read, the value of the shortcut key trigger mark is set to a second numerical value, and the second numerical value is used to indicate that the shortcut key of the main function control is not triggered in the display process of the previous application interface; In the case that the shortcut key of the second control is triggered in the display process of the second application interface, the value of the shortcut key trigger mark is set to the first numerical value.
10. The method according to any one of claims 1 to 5, characterized in that, The method further includes: In the case that the second control is contained in the second application interface, shortcut key information is acquired, and the shortcut key information is used to indicate the shortcut key of each control in the second application interface; In the case that the shortcut key information meets a specified condition, the shortcut key of the first control is reused as the shortcut key of the second control.
11. The method of claim 10, wherein, The specified condition includes: There is no control other than the first control in each control indicated by the shortcut key information; or The shortcut key of the control other than the first control is different from the shortcut key of the first control in each control indicated by the shortcut key information.
12. The method according to any one of claims 1 to 5, characterized in that, The method further includes: In the case that the second control is contained in the second application interface and the number of the second control is the same as the number of the first control, the shortcut key of the first control is reused as the shortcut key of the second control.
13. The method according to any one of claims 1 to 5, characterized in that, The method further includes: In the case that the second control is contained in the second application interface, the shortcut key of the first control is added to the shortcut key of the second control; or In the case that the second control is contained in the second application interface, the shortcut key of the first control is replaced by the shortcut key of the second control.
14. The method according to any one of claims 1 to 5, characterized in that, The method further includes: In the case that the second control is contained in the second application interface, the identification information of the shortcut key of the first control is written into the shortcut key information in the attribute information of the second control as the identification information of the shortcut key of the second control. The method further includes: reading shortcut key information in the attribute information of the second control to obtain identification information of the second control; displaying text of the shortcut key of the second control on the second control according to the identification information of the second control.
15. A shortcut setting apparatus characterized by comprising: The device includes: a first application interface display module configured to display a first application interface of an application program, the first application interface including a first control, the first control corresponding to a shortcut key; a second application interface display module configured to display a second application interface of the application program in response to a trigger operation of entering the second application interface from the first application interface; a shortcut key setting module configured to reuse the shortcut key of the first control as a shortcut key of a second control in a case where the second application interface includes the second control.
16. A computer device, comprising: The computer device includes a processor and a memory, the memory storing instructions, the instructions being executed by the processor to implement the shortcut key setting method according to any one of claims 1 to 14.
17. A computer-readable storage medium, characterized in that, The storage medium stores instructions, the instructions being executed by the processor of the computer device to implement the shortcut key setting method according to any one of claims 1 to 14.
18. A computer program product, characterised in that, The computer program product includes computer instructions stored in a computer readable storage medium; the computer instructions are read and executed by the processor of the computer device to implement the shortcut key setting method according to any one of claims 1 to 14.