A method and apparatus for adding character key combinations based on a single function key
By combining a single designated function key with multiple character keys, the number of shortcut key combinations is expanded, simplifying the complexity of operation, reducing the difficulty for users to remember, and improving the ease of operation.
Patent Information
- Application Number
- CN202311683674.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-10
- Publication Date
- 2025-12-09
- Estimated Expiration
- 2043-12-10
AI Technical Summary
In existing technologies, due to the limited number of keys per character, shortcut key commands require the participation of multiple modifier keys, which increases the complexity of operation and the difficulty for users to remember them.
By combining a single designated function key with multiple character keys, shortcut key functionality can be achieved. The possibilities for shortcut key combinations are expanded by using letter combinations, and a classification method based on letter combinations is provided to simplify shortcut key operation.
The number of keyboard shortcut combinations has been increased, the difficulty of pressing keyboard shortcuts has been reduced, the complexity of operation has been simplified, the user's memory burden has been reduced, and the ease of operation has been improved.
Smart Images

Figure CN117472196B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of computer shortcut keys, and relates to a method and device for realizing shortcut keys based on combination of a single specified function key and one or more character keys. BACKGROUND
[0002] As an important input device, a keyboard is an important component of computer products such as notebook computers, desktop computers and virtual machines. As convenient instructions provided by operating system and application program developers for users, shortcut keys can more conveniently and quickly operate the system and application program, and usually have rich functions and convenient characteristics.
[0003] Currently, computer products for individuals usually adopt the following methods: 1. a single modifier key + a single character, such as "Ctrl+C / Ctrl+V", and 2. multiple modifier keys + character keys, such as "Ctrl+Alt+A". (Note: modifier keys are different on different types of operating systems, such as Ctrl / Alt / Logo key / CapsLock on Windows and Linux operating systems, and command / control / option / capslock keys on Mac operating systems, which are similar to Windows / Linux functions.) Limited by the number of single character keys, when there are a large number of available shortcut keys in an application program, multiple modifier keys are usually required to participate in realizing the shortcut key instructions, and the complexity of the operation reduces the convenience of users using the shortcut keys, and similar characters in the shortcut keys increase the difficulty of users remembering the shortcut keys.
[0004] Therefore, in view of the above problems, the present application provides a method for realizing shortcut keys based on combination of a single specified function key and one or more character keys, which can realize specific shortcut functions by using a single specified function key and multiple character keys, increase the range of shortcut key combinations, reduce the difficulty of shortcut keys, and provide a user with a letter combination-based classification method to reduce the difficulty of remembering. SUMMARY
[0005] The present application provides a method for realizing shortcut keys based on combination of a single specified function key and one or more character keys, which can realize specific shortcut functions by using a single specified function key and multiple character keys, increase the range of shortcut key combinations, reduce the difficulty of shortcut keys, and provide a user with a letter combination-based classification method to reduce the difficulty of remembering.
[0006] In view of the above purposes, one aspect of an embodiment of the present application provides a method for realizing shortcut keys based on combination of a single specified function key and one or more character keys, including the following steps:
[0007] It should be noted that the specified function key is a preset or custom keyboard key, which can be divided into modifier keys and character keys. Modifier keys are different on different types of operating systems, such as Ctrl / Alt / Logo keys / CapsLock on Windows and Linux operating systems, and command / control / option / capslock keys on Mac operating systems, which are similar to Windows / Linux functions. Character keys are single keys in the main keyboard area that can achieve corresponding functions, including but not limited to: letter keys, symbol keys, number keys, direction keys, F1-F12 keys, etc. User key input events include key events and release events. In this article, a single specified function key refers to this matter.
[0008] A single specified function key is used to distinguish between text input mode and shortcut instruction mode. When the user presses and holds a single specified function key, the system enters shortcut instruction mode, intercepts key input and converts it into a shortcut instruction, and then sends the corresponding key value to the shortcut processing component in sequence. The system matches the shortcut instruction according to the continuous key input in the shortcut instruction mode.
[0009] When it is detected that the specified function key is pressed, it is in the shortcut instruction mode, and the intercepted key input event of the system will no longer be passed to the operating system, thereby temporarily shielding its original function. When the specified function key is not pressed, all other keys will perform their original functions except the specified function key.
[0010] When the shortcut processing component receives an instruction, event or message, it stores the instruction, event or message in the key instruction register, and then compares the instruction register and the corresponding shortcut key that has been set according to the shortcut key rule.
[0011] When the user is in the shortcut instruction mode, the shortcut key rule is: 1. For character keys, press them in sequence and any single character key does not need to be held down. The interval between keys is unlimited. 2. For shortcut instructions with non-specified other modifier keys and function keys, press the non-specified other modifier keys or function keys at the same time, and then press the character keys in sequence.
[0012] According to one embodiment of the present application, when the instruction register cannot be partially or completely matched with the preset shortcut instruction according to the shortcut key rule, it will cause all future keys to become invalid instructions. In this case, the instruction register is emptied and the instruction acceptance state is initialized, thereby preparing for new key input.
[0013] According to one embodiment of the present application, when the user is in the shortcut key instruction mode and a preset shortcut key instruction length is greater than or equal to 2, after the instruction register receives a new key event, partial instruction matching is achieved according to the shortcut key rule (for example, the shortcut key instruction is to press the letter "a" first and then press the letter "s", when the instruction is in the state of having pressed "a" and not having pressed the letter "s"), the instruction register state is maintained, and new key event input is continuously detected and received.
[0014] According to one embodiment of the present application, when the instruction register stored shortcut key instruction matches the preset shortcut key, the shortcut function is executed, the instruction register is emptied and the instruction acceptance state is initialized, so as to prepare for new key input.
[0015] According to one embodiment of the present application, when the instruction register is emptied, if the specified function key still maintains the continuous key pressing state, the shortcut key instruction mode continues to accept new shortcut instruction input.
[0016] According to one embodiment of the present application, when the user releases the specified function key, the shortcut key instruction mode is exited and the register is emptied, and the normal key input mode is restored, so as to prevent interference on the next instruction matching.
[0017] According to one embodiment of the present application, when the specified function key is a modifier key, the shortcut key instruction mode is entered by pressing and maintaining the function key, and the shortcut key instruction mode is exited by releasing the function key.
[0018] According to one embodiment of the present application, when the specified function key is a character key, after the function key is pressed and maintained, the system first saves the key value of the current key, when the shortcut key instruction mode is entered, if the user presses the shortcut key instruction related key, the saved key value is cleared, if the user does not press the shortcut key instruction related key in the shortcut key instruction mode, the shortcut key instruction mode is exited and the saved key value is sent to the system, the "key-release" action is completely simulated, and the original function of the key is ensured.
[0019] Another aspect of the embodiment of the present application further provides a device for implementing a shortcut key based on a single function key and a plurality of character keys, which uses the above method.
[0020] Another aspect of the embodiment of the present application further provides a computer device, which comprises a storage unit, at least one processing unit, and a computer program stored in the storage unit and executable on the processing unit, and the processing unit uses the above method when executing the program.
[0021] The application has the following beneficial technical effects: the method and program provided by the embodiment of the application based on single function key plus character key combination realize three main goals: (1) increase the number of shortcut key combinations: the application expands the combination possibility of shortcut keys by using letter combination, for example, using 2 letter keys to combine shortcut keys, (26+10+10) 2 = 2216 shortcut key combinations, using 3 letter keys to combine shortcut keys can realize (26+10+10) 3 = 97336, and the number can continue to double in the case of adding other modifier keys (2) simplify the shortcut key pressing method: reduce the inconvenience caused by pressing multiple modifier keys at the same time, and using single specified function key plus multiple character keys can reduce finger movement on the keyboard, thereby improving the efficiency of key pressing. (3) provide shortcut key classification options to reduce user memory burden: assuming that the number of characters in the character combination is n, then the first n-1 characters in the character combination can be used as the common part of the same type of shortcut key, and the last character is the corresponding specific shortcut key instruction (for example, QA and QS can be regarded as the same type of Q series shortcut key instruction, and similarly, AAS and AAD can be regarded as the same type of AA series shortcut key instruction). BRIEF DESCRIPTION OF DRAWINGS
[0022] In order to more clearly illustrate the technical solutions of the embodiments of the application, the following will briefly introduce the drawings needed to be used. Obviously, the drawings in the following description only represent some embodiments of the application. For those skilled in the art with general technical knowledge, other related drawings can be obtained based on these drawings without creative labor.
[0023] Figure 1 The basic flowchart of the method for realizing shortcut keys based on single function key plus character key combination provided by the application.
[0024] Figure 2 The flowchart of another embodiment of the method for realizing shortcut keys based on single function key plus character key combination provided by the application.
[0025] Figure 3 The flowchart of the process corresponding to different types of single function keys in use provided by the application.
[0026] Figure 4 The schematic diagram of character key combination classification provided by the application.
[0027] Figure 5 The flowchart of the computer embodiment of the method for realizing shortcut keys based on single function key plus character key combination provided by the application. DETAILED DESCRIPTION
[0028] To make the objectives, technical solutions, and advantages of the present invention more intuitive, the following detailed description of the present invention is provided in conjunction with specific embodiments and with reference to the accompanying drawings.
[0029] It should be noted that all expressions such as "first", "second" and "third" used in the embodiments of the present invention are for the purpose of distinguishing two entities or parameters with the same name but different names. It can be seen that "first", "second" and "third" are only for the convenience of expression and should not be construed as limiting the embodiments of the present invention. Subsequent embodiments will not explain this in detail.
[0030] To achieve the foregoing objectives, a first aspect of the present invention proposes a method based on a combination of a single function key and character keys. Figure 1 The diagram shown is a basic flowchart of the method based on a combination of a single function key and character keys provided by the present invention.
[0031] Step S01: When the user presses and holds the specified function key, the shortcut key instruction mode will be entered. At this time, the key events of character keys and other modifier keys will be intercepted and sent to the shortcut key processing component, and stored in the instruction register.
[0032] In step S02, under shortcut key instruction mode, the system will continue to detect the user's keyboard key events. When the user presses character keys in sequence (if other modifier keys are present, the corresponding modifier keys will be pressed simultaneously), after each character key is pressed and the key event is stored in the instruction register, the system will detect the matching with the preset shortcut key instruction.
[0033] Step S03: There are generally three matching scenarios between the instruction register and the preset shortcut key instruction: When the current shortcut instruction stored in the instruction register completely matches the preset shortcut function instruction, it is determined to be valid and the specified shortcut function is executed, and then the instruction register is cleared; when the current shortcut instruction stored in the instruction register partially matches the preset shortcut function instruction, the current function states are maintained, and the system continues to detect the user's next key input; when the current shortcut instruction stored in the instruction register cannot match the preset shortcut function instruction and there is no longer any possibility of matching with the preset instruction, the instruction register is cleared, and the process returns.
[0034] According to one embodiment, such as Figure 2As shown, the system will continuously detect user key input events after starting. After detecting user key input, the system first distinguishes whether the key event belongs to a specified function key. If it is a specified function key in a pressed and held state, the system will enter a shortcut key instruction mode and continue to detect subsequent user key inputs. If it is a non-specified function key (i.e. a character key or other modifier key), it is necessary to determine whether the current specified function key has been pressed (whether it is in the shortcut key instruction mode). If the specified function key is not in the pressed and held state, the corresponding key event will perform its original function.
[0035] According to one embodiment, as shown in Figure 2 If the specified function key is in the pressed and held state (i.e. in the shortcut key instruction mode), the system will intercept the key event so that it is no longer sent to the operating system for processing, and the key event will be sent to the shortcut key processing component. The shortcut key processing component includes an instruction register, a preset shortcut key instruction matching operation, and an execute shortcut key action function. When the shortcut key processing component receives a key event, it first sends the event to the instruction register for storage, and then matches it with the preset shortcut key instruction.
[0036] The role of the instruction register is to store the key state of the current shortcut key instruction. For example, the preset shortcut key rule is to press the characters 'a','s', and 'd' in that order, and the user has already performed the key actions of 'a' and's'. The register will save the key events of 'a' and's', and include the key sequence.
[0037] After the instruction register receives and stores the latest key event, the shortcut key processing component will match the key state currently stored in the instruction register with the preset shortcut key instruction according to the shortcut key rule, including the key sequence and the corresponding characters.
[0038] The shortcut key rule involves two types of keys: character keys and modifier keys, except for keys designated as special function keys. Among them, the rule for modifier keys is to press and hold them simultaneously, without paying attention to the key sequence; the rule for character keys is to press them in sequence, paying attention to the key sequence, and not requiring simultaneous pressing.
[0039] According to the shortcut key rule, when the shortcut key instruction stored in the instruction register is a part of a preset shortcut key instruction or a part of a certain type of shortcut key (e.g. a preset shortcut key rule is to press the characters 'a','s', and 'd' in that order, and the register saves the key events of 'a' and's' in that order), it is considered a partial match. At this time, the shortcut key processing component will retain the data in the register and continue to detect the next key event of the user.
[0040] According to the shortcut key rule, when the shortcut key instruction stored in the instruction register is completely matched with one of the preset shortcut keys (for example, a preset shortcut key rule is to press the 'a' and's' characters in sequence, and the register stores the key events of 'a' and's' in sequence), it is considered to be completely matched, and at this time, the shortcut key processing component will execute the corresponding shortcut function according to the shortcut key.
[0041] According to the shortcut key rule, when the shortcut key instruction stored in the instruction register loses the possibility of matching with the preset shortcut key (for example, a preset shortcut key rule is to press the 'a' and's' characters in sequence, and the register currently stores the key event of the character 'd', and there is no other shortcut key in the preset shortcut key whose first character is 'd'), it is considered to be a matching failure, and at this time, the shortcut key processing component will clear the instruction register and prepare to receive the next user's shortcut key instruction input.
[0042] The operations involved in the foregoing [0035-0041] are all in the shortcut key instruction mode.
[0043] When the user releases the specified function key, the shortcut key processing component will perform a clearing operation on the instruction register and exit the shortcut key instruction mode.
[0044] Figure 3 The difference between the specified function key being a modifier key or a character key will be further explained. According to user usage habits, the function key can be specified as a modifier key or other character key (including but not limited to letter key, symbol key, number key, direction key, etc.).
[0045] When the specified function key is a modifier key, it is pressed and held to enter the shortcut key instruction mode, and released to exit the shortcut key instruction mode.
[0046] When the function key is a character key, in order to preserve its original function, the key value of the key is saved after being pressed. After entering the shortcut key instruction mode, if the user presses the shortcut key instruction related key, it indicates that the user performs a shortcut key operation, and the saved key value will be cleared. If the user does not press the shortcut key instruction related key in the shortcut key instruction mode, the system will be sent the saved key value when it is released, completely simulating the "press-release" action, and ensuring that the key functions as originally intended.
[0047] Figure 4 The extension of the present application will be further explained, which increases the number of shortcut key combinations: by using the combination of letters, the combination possibility of the shortcut key is expanded. Figure 4For example, using four keys (e.g., 400) and two-key combinations, this provides 4 x 4 = 16 shortcut key options (e.g., 410). If we consider 26 letter keys, 10 number keys, and 10 common symbol keys, using two-key combinations for shortcuts, the total number of shortcuts is (26 + 10 + 10). 2 = 2216 keyboard shortcut combinations, which can be achieved by using 3-letter key combinations (26+10+10). 3 = 97,336 keyboard shortcut combinations, and this number can be doubled when additional modifier keys are added.
[0048] according to Figure 4 As shown, this invention can provide users with the option to categorize shortcut keys, reducing the user's memory burden. Assuming that the number of characters in a character combination is n, then the first n-1 characters in the character combination can be used as the common part of the same type of shortcut key, and the last character is the corresponding specific shortcut key instruction (such as 411, UU, UI, UJ, UK can be regarded as U series same type of shortcut key instructions).
[0049] It should be particularly noted that the steps in each embodiment of the above-described method for implementing shortcut keys based on a combination of a single specified function key and character keys can be interchanged, replaced, added, or deleted. Therefore, these reasonable permutations and combinations of the method for implementing shortcut keys based on a combination of a single specified function key and character keys should also fall within the protection scope of this invention, and the protection scope of this invention should not be limited to the above-described embodiments.
[0050] Based on the above objectives, a second aspect of the present invention proposes a device for implementing shortcut keys based on a combination of a single designated function key and character keys.
[0051] As can be seen from the above embodiments, the device for implementing shortcut keys based on a combination of a single designated function key and character keys provided by the embodiments of the present invention can detect user key input events and process them accordingly. It can achieve specific shortcut functions by utilizing a combination of a single designated function key and multiple character keys, increasing the range of shortcut key combinations, reducing the difficulty of key presses, and providing users with a method of categorizing shortcut keys based on letter combinations, thus reducing the difficulty of memorization. This improves the convenience of user operation, enriches the functionality of the keyboard on the basis of existing hardware, and is simple to implement.
[0052] It should be particularly pointed out that the above-mentioned embodiment of the device for implementing the shortcut key based on the combination of the single specified function key and the character key adopts the embodiment of the method for implementing the shortcut key based on the combination of the single specified function key and the character key to specifically explain the working process of each module. Those skilled in the art can easily think of applying these modules to other embodiments of the method for implementing the shortcut key based on the combination of the single specified function key and the character key. Of course, since each step in the embodiment of the method for implementing the shortcut key based on the combination of the single specified function key and the character key can be crossed, replaced, added, deleted and reduced, these reasonable permutation and combination transformations also belong to the protection scope of the present application for the device for implementing the shortcut key based on the combination of the single specified function key and the character key, and the protection scope of the present application should not be limited to the above-mentioned embodiments.
[0053] Based on the above-mentioned purpose, the third aspect of the embodiment of the present application proposes one embodiment of the computer device for implementing the method for implementing the shortcut key based on the combination of the single function key and the character key.
[0054] The computer device for implementing the method for implementing the shortcut key based on the combination of the single specified function key and the character key comprises a storage unit, at least one processing unit and a computer program stored in the storage unit and capable of running on the processing unit, and the processing unit executes the program to execute any one of the above-mentioned methods.
[0055] As shown in Figure 5 Fig. 1, the computer device provided by the present application is one embodiment of the hardware structure of the computer device for implementing the method for implementing the shortcut key based on the combination of the single specified function key and the character key.
[0056] As shown in Figure 5 Fig. 2, the computer device is taken as an example, which comprises a processing unit 503 and a storage unit 502, and can further comprise an input device 501 and an output device 504.
[0057] The processing unit 503, the storage unit 502, the input device 501 and the output device 504 can be connected through a bus or other means, Figure 5 for example, through the bus connection.
[0058] The storage unit 502, as a non-volatile computer readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as the program instructions / modules corresponding to the method for implementing a shortcut key based on a combination of a single designated function key and a character key in the embodiments of the present application. The processing unit 503 executes various function applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the storage unit 502, i.e. implements the method for implementing a shortcut key based on a combination of a single designated function key and a character key in the above-mentioned method embodiments.
[0059] The storage unit 502 can include a program storage area and a data storage area, wherein the program storage area can store an operating system and application programs required by at least one function; the data storage area can store data created according to the use of the device for implementing a shortcut key based on a combination of a single designated function key and a character key, etc. In addition, the storage unit 502 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state memory device. In some embodiments, the storage unit 502 can optionally include a memory remotely arranged with respect to the processing unit 503, and these remote memories can be connected to the local modules through a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0060] The input device 501 can receive inputted digital or character information, and generate key signal inputs related to user settings and function controls of the device for implementing a shortcut key based on a combination of a single designated function key and a character key. The output device 504 can include a display device such as a display screen.
[0061] The one or more program instructions / modules corresponding to the method for implementing a shortcut key based on a combination of a single designated function key and a character key are stored in the storage unit 502, and when executed by the processing unit 503, the method for implementing a shortcut key based on a combination of a single designated function key and a character key in any of the above-mentioned method embodiments is executed.
[0062] Any one of the embodiments of the computer device for executing the method for implementing a shortcut key based on a combination of a single designated function key and a character key can achieve the same or similar effects as any of the above-mentioned method embodiments corresponding thereto.
[0063] Finally, it should be noted that all or part of the processes in the above-mentioned embodiment methods can be implemented by a computer program instructing relevant hardware, and the program can be stored in a computer-readable storage medium. The program can include the processes of the above-mentioned embodiment methods when executed. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), or the like. The computer program can achieve the same or similar effects as the above-mentioned any method embodiment.
[0064] The above is the exemplary embodiment disclosed by the present application, but it should be noted that various changes and modifications can be made without departing from the scope of the embodiments disclosed by the present application defined by the claims. The functions, steps and / or acts of the method claims described in the embodiments disclosed herein need not be performed in any particular order. In addition, although the elements disclosed in the embodiments of the present application can be described or claimed in individual form, they can also be understood as plural unless explicitly limited to singular.
[0065] It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include plural forms, unless the context clearly dictates otherwise. It should also be understood that "and / or" as used herein refers to any and all possible combinations of one or more of the associated listed items.
[0066] The above-mentioned embodiment number of the embodiments of the present application is only for description, and does not represent the advantages or disadvantages of the embodiments.
[0067] It should be understood by those skilled in the art that all or part of the above-mentioned steps of the embodiments of the present application can be completed by hardware, or by a program instructing relevant hardware, and the program can be stored in a computer-readable storage medium, such as a read-only memory, a magnetic disk or an optical disk.
[0068] Those skilled in the art should understand that the above discussion of any embodiment is only exemplary and is not intended to limit the scope of the embodiments disclosed by the present application (including claims) to these examples; under the idea of the embodiments of the present application, the above embodiments or technical features in different embodiments can also be combined, and there are many other changes of different aspects of the embodiments of the present application as described above. In order to be brief, they are not provided in detail. Therefore, any omissions, modifications, equivalent replacements, improvements, etc. made in the spirit and principles of the embodiments of the present application shall be included in the protection scope of the embodiments of the present application.
Claims
1. A method for implementing shortcut keys based on a single function key plus one or more key combinations, characterized by the following steps: When a function key specified by the user, system, or program is pressed and held, the system enters the shortcut key instruction mode. The system intercepts the key input and converts it into a shortcut key instruction, and then sends the corresponding key value to its shortcut key processing component in sequence. The system matches the shortcut key instruction based on the continuous key input in the shortcut key instruction mode. The continuous key input refers to pressing the keys in sequence without holding them down. Offers the option to categorize shortcut keys; if the number of characters in a character combination is n, then the first n-1 characters of that character combination can be used as the common part of shortcut keys of the same type, and the last character is the corresponding specific shortcut key instruction; The designated function keys are preset or custom keyboard keys, including modifier keys and character keys; When the designated function key is a character key, after pressing and holding the function key, the system saves the key value of the current key. When entering the shortcut key command mode, if the user presses the shortcut key command related key, the saved key value will be cleared. If the user does not press the shortcut key command related key in the shortcut key command mode, the system will exit the shortcut key command mode and send the saved key value to the system when the key is released, thus completely simulating the "key-release" action and ensuring that the key performs its original function.
2. The method according to claim 1, further comprising: when it is detected that a specified function key is pressed, i.e., in shortcut command mode, the key input event intercepted by the system will no longer be transmitted to the operating system, thereby temporarily blocking its original function; when the specified function key is not pressed, all other keys will perform their original functions except for the specified function key.
3. The method according to claim 1, further comprising, when the shortcut key processing component receives an instruction, event or message, storing the instruction, event or message in the key instruction register, and then comparing the register with the corresponding shortcut key that has been set according to the shortcut key rules.
4. The method according to claim 1, further comprising the part of the shortcut key rules concerning character keys: pressing them sequentially without holding any single character key in a pressed state; and having no time limit between key presses.
5. The method according to claim 1, characterized in that when the specified function key is a modifier key, pressing and holding it enters the shortcut key command mode, and releasing it exits the shortcut key command mode.
6. The method according to claim 1, characterized in that it further includes the part about other modifier keys in the shortcut key rules: for shortcut key instructions that have unspecified other modifier keys and function keys, the unspecified other modifier keys and function keys must be pressed simultaneously and then the character keys must be pressed in sequence.
7. The method according to claim 3, further comprising: when the instruction register cannot be partially or completely matched with the shortcut key instruction according to the shortcut key rules, which would cause all future key presses to become invalid instructions, clearing the instruction register and initializing the instruction receiving state, thereby preparing for new key input.
8. The method according to claim 3, characterized in that when the user is in shortcut key instruction mode and the preset shortcut keys include shortcut keys with an instruction length greater than or equal to 2, after the instruction register receives a new key event, according to the shortcut key rules, a partial instruction matching state is achieved, the state of the instruction register is maintained, and new key event input is continued to be detected and received.
9. The method according to claim 3, further comprising executing a shortcut function, clearing the instruction register and initializing the instruction receiving state when the shortcut key instruction stored in the instruction register matches a preset shortcut key, thereby preparing for a new key input.
10. The method according to claim 3, further comprising exiting the shortcut key instruction mode and clearing the register when the user releases the specified function key, and restoring the normal key input mode to prevent interference with the next instruction matching.
11. A device for implementing shortcut keys based on character key combinations, characterized in that, Use the method as described in any one of claims 1-10.
12. A computer device comprising a storage unit, at least one processing unit, and a computer program stored on the storage unit and executable on the processing unit, characterized in that, When the processing unit executes the program, it performs the method as described in any one of claims 1-10.
Citation Information
Patent Citations
A method and a device for realizing shortcut keys based on character key combination
CN109101118A