A shortcut value prompting method and device, a storage medium and an electronic device
By obtaining and displaying the shortcut key values corresponding to the second development environment in the first development environment, the communication difficulties caused by unfamiliarity with shortcut keys in different development environments are solved, and cross-environment prompts and communication of shortcut key values are realized.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- PINGAN YIQIANBAO E COMMERCE CO LTD
- Filing Date
- 2022-11-15
- Publication Date
- 2026-06-12
AI Technical Summary
In different development environments, developers often encounter communication difficulties due to unfamiliarity with each other's keyboard shortcuts, and existing technologies lack effective shortcut suggestion methods.
By obtaining the shortcut key value in the first development environment, finding the mapping relationship of the target storage area, obtaining the corresponding shortcut key value in the second development environment, and displaying it in the first development environment to prompt the shortcut key value of the second development environment.
It provides convenient shortcut key suggestions in different development environments, promoting communication among developers.
Smart Images

Figure CN115794277B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of software development technology, and in particular to a method, apparatus, storage medium, and electronic device for providing shortcut key value prompts. Background Technology
[0002] With the continuous development of software development technology, various development environments exist. Each development environment corresponds to various development functions, and each function has pre-set shortcut key combinations for implementation. When programmers in different development environments communicate, they may need to consult on code issues. However, programmers in different environments are only familiar with their own environment and are unaware of each other's shortcut key usage, leading to various communication difficulties. Currently, there is no method in software development technology to prompt for shortcut keys in another development environment when using shortcut keys in the current development environment. Summary of the Invention
[0003] In view of this, the present invention provides a data verification system, method, apparatus and device based on state channels, the main purpose of which is to solve the problem that the possibility of data leakage exists and reduces the security of data verification.
[0004] To address the above problems, this application provides a method for providing shortcut key value hints, including:
[0005] Obtain the first target shortcut key value triggered by executing the first target function in the first development environment. The first target shortcut key value is a pre-set key value for the shortcut key corresponding to executing the first target function in the first development environment.
[0006] Based on the first target shortcut key value, the mapping relationship of each shortcut key value pre-stored in the target storage area is found to obtain the second target shortcut key value corresponding to the first target shortcut key value. The second target shortcut key value is a pre-set key value for the shortcut key corresponding to the first target function in the second development environment.
[0007] The shortcut key value of the second target is displayed at a predetermined location in the first development environment to provide a prompt for the shortcut key value of the first target function to be executed in the second development environment.
[0008] Optionally, before obtaining the first target shortcut key value triggered by executing the first target function in the first development environment, the method further includes: constructing each shortcut value, including:
[0009] Based on the target development environment, determine the development functions corresponding to the target development environment, wherein the target development environment is a first development environment or a second development environment;
[0010] Based on each of the aforementioned development functions, shortcut key values corresponding to each of the aforementioned development functions are set to obtain shortcut key values corresponding to the target development environment.
[0011] Optionally, before searching for the mapping relationship of each shortcut key value pre-stored in the target storage area based on the first target shortcut key value, the method further includes: constructing the mapping relationship of each shortcut key value, including:
[0012] Get the first shortcut key value corresponding to the first development environment and the second shortcut key value corresponding to the second development environment, which are preset to achieve the same development function;
[0013] Establish a mapping relationship between the first and second shortcut key values corresponding to the same development function, so as to obtain the mapping relationship of each shortcut key value.
[0014] Optionally, the shortcut key value of the second target is displayed at a predetermined location in the first development environment to provide a prompt for the shortcut key value for executing the first target function in the second development environment, including:
[0015] Use the second target shortcut key value as the preset information of the pop-up window;
[0016] A pop-up view to be displayed is generated based on the preset information of the pop-up;
[0017] The target position for inserting the pop-up view is determined based on the current mouse cursor position information;
[0018] Insert the pop-up view into the target location to provide a key value for the shortcut key used to execute the first target function in the second development environment.
[0019] Optionally, the method further includes:
[0020] Obtain the shortcut key value of the third target triggered in the first development environment. The shortcut key value of the third target is a preset key value of a combination key used to execute the second target function in the second development environment.
[0021] Based on the third target combination key value, the mapping relationship of each shortcut key value pre-stored in the target storage area is searched to obtain the fourth target shortcut key value corresponding to the third target shortcut key value. The fourth target shortcut key is a preset key value of the shortcut key corresponding to the execution of the second target function in the first development environment.
[0022] Execute the function corresponding to the second target based on the shortcut key value of the fourth target, and obtain the execution result.
[0023] Optionally, the step of searching for the mapping relationship of each shortcut key value pre-stored in the target storage area based on the first target shortcut key value, when more than one mapping relationship is found:
[0024] Based on the found mapping relationships, queue information of shortcut key values to be prompted corresponding to the first target combination key value is generated in a preset queue generation order.
[0025] The queue information is displayed at a predetermined location in the first development environment.
[0026] Optionally, the method further includes:
[0027] Based on the selected target queue information, obtain the target shortcut key value corresponding to the target queue information;
[0028] Execute the target function corresponding to the target shortcut key value and the first target combination key value to obtain the execution result.
[0029] To address the above problems, this application provides a shortcut key value prompting device, comprising:
[0030] Acquisition module: used to acquire the first target shortcut key value triggered by executing the first target function in the first development environment. The first target shortcut key value is a pre-set key value corresponding to the shortcut key used to execute the first target function in the first development environment.
[0031] The lookup module is used to look up the mapping relationship of each shortcut key value pre-stored in the target storage area based on the first target shortcut key value, and obtain the second target shortcut key value corresponding to the first target shortcut key value. The second target shortcut key value is a pre-set key value that is used to execute the shortcut key corresponding to the first target function in the second development environment.
[0032] The prompt module is used to display the shortcut key value of the second target at a predetermined location in the first development environment, so as to provide a prompt for the shortcut key value of the first target function in the second development environment.
[0033] To address the aforementioned problems, this application provides a storage medium storing a computer program that, when executed by a processor, implements the steps of the shortcut key value prompting method described above.
[0034] To address the aforementioned problems, this application provides an electronic device, comprising at least a memory and a processor, wherein the memory stores a computer program, and the processor, when executing the computer program in the memory, implements the steps of the aforementioned shortcut key value prompting method.
[0035] This application obtains a first target shortcut key value triggered by executing a first target function in a first development environment. Then, based on the first target shortcut key value, it searches a pre-stored mapping relationship of shortcut key values in a target storage area to obtain a second target shortcut key value corresponding to the first target shortcut key value. Finally, it displays the second target shortcut key value at a predetermined location in the first development environment to provide a prompt for the shortcut key value of executing the first target function in the second development environment. This shortcut key value prompting method allows for the prompting of a preset shortcut key value in another development environment corresponding to the current target function when the target function in the current development environment is used to trigger a preset shortcut key in the current environment. This facilitates communication between developers in two different development environments.
[0036] The above description is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of the present invention more apparent and understandable, specific embodiments of the present invention are described below. Attached Figure Description
[0037] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:
[0038] Figure 1 This is a flowchart illustrating a shortcut key value suggestion method according to an embodiment of this application;
[0039] Figure 2 This is a flowchart illustrating a shortcut key value suggestion method according to another embodiment of this application;
[0040] Figure 3 This is a structural block diagram of a shortcut key value prompting device according to another embodiment of this application. Detailed Implementation
[0041] Various embodiments and features of this application are described herein with reference to the accompanying drawings.
[0042] It should be understood that various modifications can be made to the embodiments described herein. Therefore, the above description should not be considered as limiting, but merely as an example of embodiments. Other modifications within the scope and spirit of this application will be apparent to those skilled in the art.
[0043] The accompanying drawings, which are included in and form part of this specification, illustrate embodiments of the present application and, together with the general description of the present application given above and the detailed description of the embodiments given below, serve to explain the principles of the present application.
[0044] These and other features of this application will become apparent from the following description of preferred forms of embodiments given as non-limiting examples, with reference to the accompanying drawings.
[0045] It should also be understood that although this application has been described with reference to some specific examples, those skilled in the art can certainly implement many other equivalent forms of this application.
[0046] The above and other aspects, features and advantages of this application will become more apparent when taken in conjunction with the accompanying drawings and in view of the following detailed description.
[0047] Specific embodiments of this application are described thereafter with reference to the accompanying drawings; however, it should be understood that the claimed embodiments are merely examples of this application, which can be implemented in various ways. Well-known and / or repeated functions and structures are not described in detail to avoid unnecessary or redundant details that could obscure the application. Therefore, the specific structural and functional details claimed herein are not intended to be limiting, but merely serve as the basis and representative basis for the claims to teach those skilled in the art to use this application in a variety of substantially any suitable detailed structures.
[0048] This specification may use the phrases “in one embodiment,” “in another embodiment,” “in yet another embodiment,” or “in other embodiments,” all of which may refer to one or more of the same or different embodiments according to this application.
[0049] This application provides a method for providing shortcut key value suggestions, such as... Figure 1 As shown, it includes:
[0050] Step S101: Obtain the first target shortcut key value triggered by executing the first target function in the first development environment. The first target shortcut key value is a pre-set key value for the shortcut key corresponding to executing the first target function in the first development environment.
[0051] In the specific implementation process, the shortcut key prompting method in this application is applicable to any development environment. For example, the first development environment can be the development environment used when developing software using IntelliJ IDEA software. This application does not impose specific restrictions on the first development environment. The first target function can be a function to view the method call stack, a function to copy a line of content, a function to import a package name, a function to jump to the line number code corresponding to the number entered in the pop-up window, etc. The first target shortcut key value is a pre-set key value used to execute the shortcut key corresponding to the first target function in the first development environment. For example, the first target shortcut key value set for the function to view the method call stack in the first development environment is "Alt+F7"; the first target shortcut key value set for the function to copy a line of content in the first development environment is "Ctrl+D"; the first target shortcut key value set for the function to import a package name in the first development environment is "Ctrl+Alt+O"; the first target shortcut key value set for the function to jump to the line number code corresponding to the number entered in the pop-up window in the first development environment is "Ctrl+G", etc.
[0052] Step S102: Based on the first target shortcut key value, find the mapping relationship of each shortcut key value pre-stored in the target storage area to obtain the second target shortcut key value corresponding to the first target shortcut key value. The second target shortcut key value is a pre-set key value for the shortcut key corresponding to the first target function in the second development environment.
[0053] In the specific implementation of this step, the second development environment in this application can be any development environment other than the first development environment. For example, the second development environment can be a development environment using Eclipse software. This application does not impose specific restrictions on the second development environment. Specifically, based on the triggered first target shortcut key, the mapping relationship of each shortcut key pre-stored in the target area is searched to obtain the second target shortcut key corresponding to the first target shortcut key. The value of the second target shortcut key is a pre-set key value for the shortcut key corresponding to the execution of the first target function in the second development environment. Specifically, the second target shortcut key value set for the function of viewing the method call stack in the second development environment is "Ctrl+H"; the second target shortcut key value set for the function of copying a line of content in the second development environment is "Ctrl+Alt+↑ / ↓"; the second target shortcut key value set for the function of importing package names in the second development environment is "Ctrl+Shift+O"; the second target shortcut key value set for the function of jumping to the line code corresponding to the number entered in the pop-up window in the second development environment is "Ctrl+L", etc. This lays the foundation for subsequent prompts for the second target shortcut key.
[0054] Step S103: Display the second target shortcut key value at a predetermined location in the first development environment to provide a prompt for the shortcut key value for executing the first target function in the second development environment.
[0055] In this step, the second target shortcut key value is used as the preset information for the pop-up window; a pop-up view to be displayed is generated based on the preset information; the target position for inserting the pop-up view is determined based on the current mouse cursor position information; and the pop-up view is inserted into the target position to provide a prompt for the shortcut key value for executing the first target function in the second development environment. This application enables the system to retrieve a pre-stored mapping relationship from the target storage area when programming in the first development environment detects that a shortcut key for a function in the first development environment has been triggered, thus prompting the programmer with the shortcut key value. This method allows programmers to become familiar with the various shortcut key values in the second development environment, facilitating communication between personnel from different development environments.
[0056] This application obtains a first target shortcut key value triggered by executing a first target function in a first development environment. Then, based on the first target shortcut key value, it searches a pre-stored mapping relationship of shortcut key values in a target storage area to obtain a second target shortcut key value corresponding to the first target shortcut key value. Finally, it displays the second target shortcut key value at a predetermined location in the first development environment to provide a prompt for the shortcut key value of executing the first target function in the second development environment. This shortcut key value prompting method allows for the prompting of a preset shortcut key value in another development environment corresponding to the current target function when the target function in the current development environment is used to trigger a preset shortcut key in the current environment. This facilitates communication between developers in two different development environments.
[0057] Another embodiment of this application provides a method for prompting shortcut key values, such as... Figure 2 As shown, it includes:
[0058] Step S201: Construct shortcut key values corresponding to each development function;
[0059] In the specific implementation of this step, developers will use the various development functions during programming. Specifically, firstly, based on the target development environment, determine the development functions corresponding to that environment. The target development environment can be a first development environment or a second development environment. For example, the development functions include: viewing the method call stack, copying a line of content, importing package names, and jumping to the corresponding line of code in a pop-up window when a number is entered, etc. Then, based on each development function, set corresponding shortcut key values to obtain the shortcut key values corresponding to the target development environment. Because the development functions mentioned above are frequently used and will be used many times during a single development process, shortcut keys for each development function are defined in the development program. For example, in the development environment of IntelliJ IDEA, the shortcut key values for the above development functions are defined as follows: The primary shortcut key for viewing the method call stack in IntelliJ IDEA is "Alt+F7"; the primary shortcut key for copying a line of content in IntelliJ IDEA is "Ctrl+D"; the primary shortcut key for importing package names in IntelliJ IDEA is "Ctrl+Alt+O"; and the primary shortcut key for jumping to the corresponding line of code in a pop-up window is "Ctrl+G", etc. In another development environment, such as the Eclipse development environment, the shortcut key values for implementing the above functions are defined as follows: For viewing the method call stack in Eclipse, the second target shortcut key is "Ctrl+H"; for copying a line of content in Eclipse, the second target shortcut key is "Ctrl+Alt+↑ / ↓"; for importing package names in Eclipse, the second target shortcut key is "Ctrl+Shift+O"; for jumping to the corresponding line of code after entering a number in a pop-up window in Eclipse, the second target shortcut key is "Ctrl+L", and so on. This lays the foundation for building a mapping relationship for shortcut keys based on the same function in the future.
[0060] Step S202: Obtain the first target shortcut key value triggered by executing the first target function in the first development environment. The first target shortcut key value is a pre-set key value for the shortcut key corresponding to executing the first target function in the first development environment.
[0061] In the specific implementation process, the shortcut key prompting method in this application is applicable to any development environment. For example, the first development environment can be the development environment used when developing software using IntelliJ IDEA software. This application does not impose specific restrictions on the first development environment. The first target function can be a function to view the method call stack, a function to copy a line of content, a function to import a package name, a function to jump to the line number code corresponding to the number entered in a pop-up window, etc. The first target shortcut key value is a pre-set key value used to execute the shortcut key corresponding to the first target function in the first development environment. For example, the first target shortcut key value set for the function to view the method call stack in the first development environment is "Alt+F7"; the first target shortcut key value set for the function to copy a line of content in the first development environment is "Ctrl+D"; the first target shortcut key value set for the function to import a package name in the first development environment is "Ctrl+Alt+O"; the first target shortcut key value set for the function to jump to the line number code corresponding to the number entered in a pop-up window in the first development environment is "Ctrl+G", etc.
[0062] Step S203: Construct the mapping relationship between each shortcut key value;
[0063] In the specific implementation process of this step, firstly, the first shortcut key value corresponding to the first development environment and the second shortcut key value corresponding to the second development environment are obtained for the same development function. Specifically, for example, if the development function is to view the method call stack, the shortcut key value for viewing the method call stack in the first development environment, such as IntelliJ IDEA, is "Alt+F7", and the shortcut key value for viewing the method call stack in the second development environment, such as Eclipse, is "Ctrl+H". Then, the mapping relationship between the first shortcut key value and the second shortcut key value corresponding to the same development function is constructed to obtain the mapping relationship of each shortcut key value. This involves creating a mapping between the first shortcut key value "Alt+F7" and the second shortcut key value "Ctrl+H" for viewing the method call stack; establishing a mapping between the first shortcut key value "Ctrl+D" and the second shortcut key value "Ctrl+Alt+↑ / ↓" for copying a line of content; establishing a mapping between the first shortcut key value "Ctrl+Alt+O" and the second shortcut key value "Ctrl+Shift+O" for importing a package name; establishing a mapping between the first shortcut key value "Ctrl+G" and the second shortcut key value "Ctrl+L" for entering a number in a pop-up window to jump to the corresponding line number code, and so on. These mapping relationships are stored in the target storage area, laying the foundation for subsequent searches based on the triggered first shortcut key value to obtain the corresponding second shortcut key value in another development environment, or for searches based on the triggered second shortcut key value to obtain the corresponding first shortcut key value in another development environment.
[0064] Step S204: Based on the first target shortcut key value, find the mapping relationship of each shortcut key value pre-stored in the target storage area to obtain the second target shortcut key value corresponding to the first target shortcut key value. The second target shortcut key value is a pre-set key value for the shortcut key corresponding to the first target function in the second development environment.
[0065] In the specific implementation of this step, the second development environment in this application can be any development environment other than the first development environment. For example, the second development environment can be a development environment using Eclipse software. This application does not impose specific restrictions on the second development environment. Specifically, based on the triggered first target shortcut key, the mapping relationship of each shortcut key pre-stored in the target area is searched to obtain the second target shortcut key corresponding to the first target shortcut key. The value of the second target shortcut key is a pre-set key value used to execute the shortcut key corresponding to the first target function in the second development environment. Specifically, when programming in the first development environment triggers the first shortcut key value "Alt+F7" of the call stack function, the mapping relationship in the target storage area is searched based on the first shortcut key value to obtain the second shortcut key value "Ctrl+H" corresponding to the first shortcut key value "Alt+F7", etc. This lays the foundation for subsequent prompts for the second target shortcut key.
[0066] Step S205: Display the second target shortcut key value at a predetermined location in the first development environment to provide a prompt for the shortcut key value for executing the first target function in the second development environment.
[0067] In the specific implementation process of this step, firstly, the second target shortcut key value is used as the preset information of the pop-up window; a pop-up view to be displayed is generated based on the preset information of the pop-up window; the target position for inserting the pop-up view is determined based on the current mouse cursor position information; the pop-up view is inserted into the target position to provide a prompt for the key value of the shortcut key for executing the first target function in the second development environment.
[0068] This application obtains a first target shortcut key value triggered by executing a first target function in a first development environment. Then, based on the first target shortcut key value, it searches a pre-stored mapping relationship of shortcut key values in a target storage area to obtain a second target shortcut key value corresponding to the first target shortcut key value. Finally, it displays the second target shortcut key value at a predetermined location in the first development environment to provide a prompt for the shortcut key value of executing the first target function in the second development environment. This shortcut key value prompting method allows for the prompting of a preset shortcut key value in another development environment corresponding to the current target function when the target function in the current development environment is used to trigger a preset shortcut key in the current environment. This facilitates communication between developers in two different development environments.
[0069] In another embodiment of this application, when a preset shortcut key in the second development environment is triggered in the first development environment, the following is included:
[0070] Step S301: Obtain the shortcut key value of the third target triggered in the first development environment. The shortcut key value of the third target is a preset key value of a combination key used to execute the second target function in the second development environment.
[0071] Step S302: Based on the third target combination key value, find the mapping relationship of each shortcut key value pre-stored in the target storage area to obtain the fourth target shortcut key value corresponding to the third target shortcut key value. The fourth target shortcut key is a preset key value of the shortcut key corresponding to the execution of the second target function in the first development environment.
[0072] Step S303: Execute the function of the second target corresponding to the shortcut key value of the fourth target, and obtain the execution result.
[0073] The shortcut key conversion method in this application, when a preset third target shortcut key in the second development environment is triggered in the first development environment, searches for each mapping relationship in the target storage area based on the preset third target shortcut key value to obtain a fourth target shortcut key value, so as to execute the second target function corresponding to the fourth target shortcut key value to obtain the execution result.
[0074] In another embodiment of this application, when searching for mapping relationships of pre-stored shortcut key values in the target storage area based on the first target shortcut key value, when more than one mapping relationship is found, the method includes:
[0075] Step S401: Based on the found mapping relationships, generate queue information of shortcut key values to be prompted corresponding to the first target combination key value according to the preset queue generation order;
[0076] In practice, the mapping relationships can be sorted according to the functions corresponding to the most recently used environments or according to the frequency of use, with the more frequently used ones placed first and the less frequently used ones placed last.
[0077] Step S402: Display the queue information at a predetermined location in the first development environment;
[0078] Step S403: Based on the selected target queue information, obtain the target shortcut key value corresponding to the target queue information;
[0079] In the specific implementation process, based on the selected target shortcut key value, the development environment currently selected by the user and the target shortcut key value are stored. When the first target shortcut key is triggered again and more than one mapping relationship is obtained, the currently selected target shortcut key is displayed at the front of the queue.
[0080] Step S404: Execute the target function corresponding to the target shortcut key value and the first target combination key value to obtain the execution result.
[0081] This application provides a shortcut key value prompting device, such as... Figure 3 As shown, it includes:
[0082] Acquisition Module 1: Used to acquire the first target shortcut key value triggered by executing the first target function in the first development environment. The first target shortcut key value is a pre-set key value corresponding to the shortcut key used to execute the first target function in the first development environment.
[0083] Search module 2: is used to search for the mapping relationship of each shortcut key value pre-stored in the target storage area based on the first target shortcut key value, and obtain the second target shortcut key value corresponding to the first target shortcut key value. The second target shortcut key value is a pre-set key value for the shortcut key corresponding to the execution of the first target function in the second development environment.
[0084] Prompt module 3: Used to display the shortcut key value of the second target at a predetermined location in the first development environment, so as to provide a prompt for the shortcut key value of the first target function in the second development environment.
[0085] In the specific implementation process, the shortcut key value prompting device further includes: each shortcut value construction module, which is used to determine each development function corresponding to the target development environment based on the target development environment, wherein the target development environment is a first development environment or a second development environment; and set shortcut key values corresponding to each development function based on each development function to obtain each shortcut key value corresponding to the target development environment.
[0086] In the specific implementation process, the shortcut key value prompting device further includes: each mapping relationship construction module, which is specifically used to: obtain the first shortcut key value corresponding to the first development environment and the second shortcut key value corresponding to the second development environment preset for the same development function; construct the mapping relationship between the first shortcut key value and the second shortcut key value corresponding to the same development function to obtain the mapping relationship of each shortcut key value.
[0087] In the specific implementation process, the prompting module 3 is specifically used to: use the second target shortcut key value as the preset information of the pop-up window; generate a pop-up window view to be displayed based on the preset information of the pop-up window; determine the target position for inserting the pop-up window view based on the current mouse cursor position information; and insert the pop-up window view into the target position to prompt the key value of the shortcut key for executing the first target function in the second development environment.
[0088] In specific implementation, the shortcut key value prompting device further includes: a third target shortcut key value acquisition module, a second search module, and a second execution module; the third target shortcut key value acquisition module is used to: acquire a third target shortcut key value triggered in the first development environment, wherein the third target shortcut key value is a preset key value of a combination key used to execute a second target function in the second development environment; the second search module is used to: based on the third target combination key value, search for the mapping relationship of each shortcut key value pre-stored in the target storage area to obtain a fourth target shortcut key value corresponding to the third target shortcut key value, wherein the fourth target shortcut key is a preset key value of a shortcut key corresponding to the execution of a second target function in the first development environment; the second execution module is used to: execute the second target function corresponding to the fourth target shortcut key value to obtain an execution result.
[0089] In the specific implementation process, the search module 2 is also used to: search for the mapping relationship of each shortcut key value pre-stored in the target storage area based on the first target shortcut key value; when more than one mapping relationship is found: based on each of the found mapping relationships, generate queue information of the shortcut key value to be prompted corresponding to the first target combination key value in a preset queue generation order; and display the queue information at a predetermined position in the first development environment.
[0090] In the specific implementation process, the search module 2 is also used to: obtain the target shortcut key value corresponding to the selected target queue information based on the selected target queue information; execute the target function corresponding to the target shortcut key value and the first target combination key value, and obtain the execution result.
[0091] This application obtains a first target shortcut key value triggered by executing a first target function in a first development environment. Then, based on the first target shortcut key value, it searches a pre-stored mapping relationship of shortcut key values in a target storage area to obtain a second target shortcut key value corresponding to the first target shortcut key value. Finally, it displays the second target shortcut key value at a predetermined location in the first development environment to provide a prompt for the shortcut key value of executing the first target function in the second development environment. This shortcut key value prompting method allows for the prompting of a preset shortcut key value in another development environment corresponding to the current target function when the target function in the current development environment is used to trigger a preset shortcut key in the current environment. This facilitates communication between developers in two different development environments.
[0092] Another embodiment of this application provides a storage medium storing a computer program, which, when executed by a processor, implements the following method steps:
[0093] Step 1: Obtain the first target shortcut key value triggered by executing the first target function in the first development environment. The first target shortcut key value is a pre-set key value for the shortcut key corresponding to executing the first target function in the first development environment.
[0094] Step 2: Based on the first target shortcut key value, find the mapping relationship of each shortcut key value pre-stored in the target storage area to obtain the second target shortcut key value corresponding to the first target shortcut key value. The second target shortcut key value is a pre-set key value for the shortcut key corresponding to the first target function in the second development environment.
[0095] Step 3: Display the shortcut key value of the second target at a predetermined location in the first development environment to provide a prompt for the shortcut key value of executing the first target function in the second development environment.
[0096] In the specific implementation process, when the computer program is executed by the processor to implement the above steps, it further includes: constructing each shortcut value, including: determining each development function corresponding to the target development environment based on the target development environment, wherein the target development environment is a first development environment or a second development environment; setting shortcut key values corresponding to each development function based on each development function, thereby obtaining each shortcut key value corresponding to the target development environment.
[0097] In the specific implementation process, before the computer program is executed by the processor to implement the above steps of finding the mapping relationship of each shortcut key value pre-stored in the target storage area based on the first target shortcut key value, the method further includes: constructing the mapping relationship of each shortcut key value, including: obtaining the first shortcut key value corresponding to the first development environment preset for implementing the same development function and the second shortcut key value corresponding to the second development environment; constructing the mapping relationship between the first shortcut key value and the second shortcut key value corresponding to the same development function to obtain the mapping relationship of each shortcut key value.
[0098] In the specific implementation process, the computer program is executed by the processor to display the second target shortcut key value at a predetermined position in the first development environment to provide a prompt for the shortcut key value for executing the first target function in the second development environment. This includes: using the second target shortcut key value as preset information for a pop-up window; generating a pop-up view to be displayed based on the preset information; determining the target position for inserting the pop-up view based on the current mouse cursor position information; and inserting the pop-up view into the target position to provide a prompt for the shortcut key value for executing the first target function in the second development environment.
[0099] In specific implementation, when the computer program is executed by the processor to achieve the above steps, it further includes: obtaining a third target shortcut key value triggered in the first development environment, wherein the third target shortcut key value is a preset key value of a combination key used to execute the second target function in the second development environment; based on the third target combination key value, searching for the mapping relationship of each shortcut key value pre-stored in the target storage area to obtain a fourth target shortcut key value corresponding to the third target shortcut key value, wherein the fourth target shortcut key is a preset key value of a shortcut key corresponding to the execution of the second target function in the first development environment; executing the second target function corresponding to the fourth target shortcut key value to obtain the execution result.
[0100] In the specific implementation process, the computer program is executed by the processor to implement the above steps of finding the mapping relationship of each shortcut key value pre-stored in the target storage area based on the first target shortcut key value. When more than one mapping relationship is found: based on each of the found mapping relationships, a queue of shortcut key values to be prompted corresponding to the first target combination key value is generated according to a preset queue generation order; the queue information is displayed at a predetermined position in the first development environment.
[0101] In the specific implementation process, when the computer program is executed by the processor to implement the above steps, it further includes: obtaining the target shortcut key value corresponding to the selected target queue information based on the selected target queue information; executing the target function corresponding to the target shortcut key value and the first target combination key value to obtain the execution result.
[0102] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0103] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is used as an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0104] For details on the implementation of the above methods and steps, please refer to the embodiments of the above arbitrary shortcut key value prompt method. This embodiment will not repeat the details here.
[0105] This application obtains a first target shortcut key value triggered by executing a first target function in a first development environment. Then, based on the first target shortcut key value, it searches a pre-stored mapping relationship of shortcut key values in a target storage area to obtain a second target shortcut key value corresponding to the first target shortcut key value. Finally, it displays the second target shortcut key value at a predetermined location in the first development environment to provide a prompt for the shortcut key value of executing the first target function in the second development environment. This shortcut key value prompting method allows for the prompting of a preset shortcut key value in another development environment corresponding to the current target function when the target function in the current development environment is used to trigger a preset shortcut key in the current environment. This facilitates communication between developers in two different development environments.
[0106] Another embodiment of this application provides an electronic device, which can be a server. The electronic device includes a processor, a memory, a network interface, and a database connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile and / or volatile storage media and internal memory. The non-volatile storage media stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface is used to communicate with external clients via a network connection. When the program is executed by the processor, it implements a shortcut key value prompting method, a server-side function, or step.
[0107] In one embodiment, an electronic device is provided, which can be a client. The electronic device includes a processor, memory, a network interface, a display screen, and an input device connected via a system bus. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The network interface is used to communicate with an external server via a network connection. When the program of the electronic device is executed by the processor, it implements a shortcut key value prompting method for client-side functions or steps.
[0108] In one embodiment, an electronic device is provided, comprising at least a memory and a processor. The memory stores a computer program, and the processor, when executing the computer program in the memory, performs the following method steps:
[0109] Step 1: Obtain the first target shortcut key value triggered by executing the first target function in the first development environment. The first target shortcut key value is a pre-set key value for the shortcut key corresponding to executing the first target function in the first development environment.
[0110] Step 2: Based on the first target shortcut key value, find the mapping relationship of each shortcut key value pre-stored in the target storage area to obtain the second target shortcut key value corresponding to the first target shortcut key value. The second target shortcut key value is a pre-set key value for the shortcut key corresponding to the first target function in the second development environment.
[0111] Step 3: Display the shortcut key value of the second target at a predetermined location in the first development environment to provide a prompt for the shortcut key value of executing the first target function in the second development environment.
[0112] For details on the implementation of the above methods and steps, please refer to the embodiments of the above arbitrary shortcut key value prompt method. This embodiment will not repeat the details here.
[0113] This application obtains a first target shortcut key value triggered by executing a first target function in a first development environment. Then, based on the first target shortcut key value, it searches a pre-stored mapping relationship of shortcut key values in a target storage area to obtain a second target shortcut key value corresponding to the first target shortcut key value. Finally, it displays the second target shortcut key value at a predetermined location in the first development environment to provide a prompt for the shortcut key value of executing the first target function in the second development environment. This shortcut key value prompting method allows for the prompting of a preset shortcut key value in another development environment corresponding to the current target function when the target function in the current development environment is used to trigger a preset shortcut key in the current environment. This facilitates communication between developers in two different development environments.
[0114] The above embodiments are merely exemplary embodiments of this application and are not intended to limit this application. The scope of protection of this application is defined by the claims. Those skilled in the art can make various modifications or equivalent substitutions to this application within its substance and scope of protection, and such modifications or equivalent substitutions should also be considered to fall within the scope of protection of this application.
Claims
1. A method for providing shortcut key value suggestions, characterized in that, include: Obtain the first target shortcut key value triggered by executing the first target function in the first software development environment. The first target shortcut key value is a pre-set key value for the shortcut key corresponding to executing the first target function in the first software development environment. Based on the first target shortcut key value, the mapping relationship of each shortcut key value pre-stored in the target storage area is found to obtain the second target shortcut key value corresponding to the first target shortcut key value. The second target shortcut key value is a pre-set key value for the shortcut key corresponding to the execution of the first target function in the second software development environment. The second target shortcut key value is displayed at a predetermined location in the first software development environment to provide a prompt for the shortcut key value for executing the first target function in the second software development environment. The step of displaying the second target shortcut key value at a predetermined location in the first software development environment to provide a prompt for the shortcut key value for executing the first target function in the second software development environment includes: Use the second target shortcut key value as the preset information of the pop-up window; A pop-up view to be displayed is generated based on the preset information of the pop-up; The target position for inserting the pop-up view is determined based on the current mouse cursor position information; Insert the pop-up view into the target location to provide a prompt for the key value of the shortcut key for executing the first target function in the second software development environment; Obtain the shortcut key value of the third target triggered in the first software development environment. The shortcut key value of the third target is a preset key value of a combination key used to execute the second target function in the second software development environment. Based on the third target shortcut key value, the mapping relationship of each shortcut key value pre-stored in the target storage area is searched to obtain the fourth target shortcut key value corresponding to the third target shortcut key value. The fourth target shortcut key is a preset key value of the shortcut key corresponding to the execution of the second target function in the first software development environment. Execute the function corresponding to the second target based on the shortcut key value of the fourth target, and obtain the execution result.
2. The method as described in claim 1, characterized in that, Before obtaining the first target shortcut key value triggered by executing the first target function in the first software development environment, the method further includes: constructing each shortcut value, including: Based on the target development environment, determine the development functions corresponding to the target development environment, wherein the target development environment is a first development environment or a second software development environment; Based on each of the aforementioned development functions, shortcut key values are set corresponding to each of the aforementioned development functions to obtain shortcut key values corresponding to the target development environment.
3. The method as described in claim 2, characterized in that, Before searching for the mapping relationship of each shortcut key value pre-stored in the target storage area based on the first target shortcut key value, the method further includes: constructing the mapping relationship of each shortcut key value, including: Get the first shortcut key value corresponding to the first development environment and the second shortcut key value corresponding to the second software development environment, which are preset to achieve the same development function; Establish a mapping relationship between the first and second shortcut key values corresponding to the same development function, so as to obtain the mapping relationship of each shortcut key value.
4. The method as described in claim 1, characterized in that, The process involves searching for the mapping relationship of each shortcut key value pre-stored in the target storage area based on the first target shortcut key value. When more than one mapping relationship is found: Based on the found mapping relationships, queue information of the shortcut key values to be prompted corresponding to the first target shortcut key value is generated in a preset queue generation order. The queue information is displayed at a predetermined location in the first software development environment.
5. The method as described in claim 1, characterized in that, The method further includes: Based on the selected target queue information, obtain the target shortcut key value corresponding to the target queue information; Execute the target function corresponding to the target shortcut key value and the first target shortcut key value to obtain the execution result.
6. A shortcut key value prompting device, used to implement the shortcut key value prompting method as described in any one of claims 1 to 5, characterized in that, include: Acquisition module: used to acquire the first target shortcut key value triggered by executing the first target function in the first software development environment. The first target shortcut key value is a pre-set key value of the shortcut key corresponding to the execution of the first target function in the first software development environment. The lookup module is used to look up the mapping relationship of each shortcut key value pre-stored in the target storage area based on the first target shortcut key value, and obtain the second target shortcut key value corresponding to the first target shortcut key value. The second target shortcut key value is a pre-set key value for the shortcut key corresponding to the execution of the first target function in the second software development environment. The prompt module is used to display the shortcut key value of the second target at a predetermined location in the first software development environment, so as to provide a prompt for the shortcut key value of the first target function in the second software development environment.
7. A storage medium, characterized in that, The storage medium stores a computer program, which, when executed by a processor, implements the steps of the shortcut key value prompting method according to any one of claims 1-5.
8. An electronic device, characterized in that, It includes at least a memory and a processor, wherein the memory stores a computer program, and the processor, when executing the computer program in the memory, implements the steps of the shortcut key value prompting method according to any one of claims 1-5.