An information processing method and apparatus

By automatically switching states on the input device and determining key combination conditions, the problem of users needing to press and hold the Fn key is solved, enabling convenient input of key combinations.

CN115904094BActive Publication Date: 2026-11-20LENOVO (BEIJING) LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211526363.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-01
Publication Date
2026-11-20
Estimated Expiration
2042-12-01

AI Technical Summary

Technical Problem

Users need to press the Fn key separately when entering shortcut keys, which makes the operation inconvenient.

Method used

By obtaining the first key information and switching the input device state to the first state, it is determined whether the first and second key information meet the preset combination conditions, and the combination key response is automatically realized.

Benefits of technology

The function of the combination key can be activated without having to press the Fn key separately, simplifying the input operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115904094B_ABST
    Figure CN115904094B_ABST
Patent Text Reader

Abstract

The application discloses an information processing method and device, comprising: obtaining first key information generated based on triggering a first key; switching the state of an input device to a first state based on the first key information, the first state being used to start the target function of a target combination key; obtaining second key information generated based on triggering a second key; if the first key information and the second key information satisfy a preset combination condition, determining a first response mode corresponding to first combination information, the first combination information being obtained by combining the first key information and the second key information, the first combination information belonging to a first preset combination information set, the key information in the first preset combination information set adopting a first combination mode; and responding based on the first response mode.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of information technology, and more specifically, to an information processing method and apparatus. Background Technology

[0002] To facilitate quick and easy settings adjustments, many computers are equipped with shortcut keys. These shortcut keys are activated via the Fn key, which controls whether you press the shortcut key or enter F* (one of F1-F12).

[0003] Since keyboard shortcuts are usually composed of two or more keys, when a user wants to input a keyboard shortcut containing F*, such as Alt+F4, they need to press the Fn key separately for it to take effect, which makes the input operation very inconvenient. Summary of the Invention

[0004] In view of the above, this application provides an information processing method and apparatus, as follows:

[0005] An information processing method, comprising:

[0006] Obtain the first key information generated based on triggering the first key;

[0007] Based on the first key information, the state of the input device is switched to the first state, and the first state is used to activate the target function of the target combination key.

[0008] Obtain the second button information generated based on triggering the second button;

[0009] If the first key information and the second key information meet the preset combination conditions, the first response method corresponding to the first combination information is determined. The first combination information is obtained by combining the first key information and the second key information. The first combination information belongs to the first preset combination information set. The key information in the first preset combination information set adopts the first combination method.

[0010] Respond based on the first response method.

[0011] Optionally, in the above method, switching the state of the input device to the first state based on the first key information includes:

[0012] Determine the current state of the input device, the state including a first state and a second state, the second state being different from the first state;

[0013] If the input device is currently in the second state, in response to the received first key information, the state of the input device is switched from the second state to the first state.

[0014] Optionally, in the above method, the input device is provided with preset function keys, which are used to control the input device to maintain a first state or a second state. The method further includes:

[0015] The input device is controlled to maintain its state in the second state based on preset function key information.

[0016] Accordingly, switching the state of the input device to the first state based on the first key information includes:

[0017] In response to the received first key press information, the state of the input device is switched from the second state to the first state.

[0018] Optionally, the above method, in determining whether the first button information and the second button information meet preset combination conditions, includes:

[0019] Based on the fact that the button corresponding to the first button information is a first preset button, it is determined that the first button information and the second button information satisfy a preset combination condition; or

[0020] Based on the fact that the first key information and the second key information can form a preset combination key information, it is determined that the first key information and the second key information meet the preset combination conditions, and the preset combination key belongs to one of the target combination keys.

[0021] Optionally, the above method, after switching the state of the input device to the first state based on the first key information, further includes:

[0022] Stop receiving the first key information and control the switching of the input device's state to the second state.

[0023] Optionally, after responding based on the first response method, the above method further includes:

[0024] Switch the state of the input device to the second state.

[0025] Optionally, after obtaining the second button information generated based on triggering the second button, the above method further includes:

[0026] If third button information that triggers the generation of the third button is obtained within the target time period of obtaining the second button information, a second combination of the first button information, the second button information, and the third button information is determined to exist in the first preset combination information set; a second response mode of the second combination information is determined, and a response is made based on the second response mode;

[0027] If the third button information is not obtained within the target time period after obtaining the second button information, a first combination information is determined to exist in the first preset combination information set, which is a combination of the first button information and the second button information, and the first button information and the second button information are determined to satisfy the preset combination conditions.

[0028] Optionally, the above method, after switching the state of the input device to the first state based on the first key information, further includes:

[0029] Obtain the information of the fourth button generated when the fourth button is triggered;

[0030] In the second preset combination information set, it is determined that there is a third combination information that combines the first button information and the fourth button information, and the button information in the second preset combination information set adopts the second combination method;

[0031] Determine a third response method based on the third combination of information, and respond based on the third response method.

[0032] Optionally, after switching the state of the input device to the first state based on the first key information, the above method further includes:

[0033] Output a prompt message to indicate that the input device has switched to the first state.

[0034] An information processing apparatus, comprising:

[0035] The first acquisition module is used to acquire first key information generated based on triggering the first key;

[0036] The switching module is used to switch the state of the input device to a first state based on the first key information, and the first state is used to activate the target function of the target combination key.

[0037] The second acquisition module is used to acquire second button information generated based on triggering the second button;

[0038] The determining module is used to determine the first response mode corresponding to the first combination information if the first key information and the second key information meet the preset combination conditions. The first combination information is obtained by combining the first key information and the second key information. The first combination information belongs to a first preset combination information set. The key information in the first preset combination information set adopts the first combination mode.

[0039] The response module is used to respond based on the first response method. Attached Figure Description

[0040] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0041] Figure 1 This is a flowchart of an embodiment 1 of an information processing method provided in this application;

[0042] Figure 2 This is a flowchart of an embodiment 2 of an information processing method provided in this application;

[0043] Figure 3 This is a flowchart of an embodiment 3 of an information processing method provided in this application;

[0044] Figure 4 This is a flowchart of embodiment 4 of the information processing method provided in this application;

[0045] Figure 5 This is a flowchart of embodiment 5 of the information processing method provided in this application;

[0046] Figure 6 This is a flowchart of an embodiment 6 of an information processing method provided in this application;

[0047] Figure 7 This is a flowchart of embodiment 7 of an information processing method provided in this application;

[0048] Figure 8 This is a flowchart of embodiment 8 of the information processing method provided in this application;

[0049] Figure 9 This is a schematic diagram of an embodiment of an information processing device provided in this application. Detailed Implementation

[0050] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0051] like Figure 1 The diagram shown is a flowchart of an embodiment 1 of an information processing method provided in this application. The method is applied to an electronic device and includes the following steps:

[0052] Step S101: Obtain the first key information generated based on triggering the first key;

[0053] The input device of the electronic device is equipped with multiple buttons, and each button trigger can generate corresponding button information.

[0054] The input device is a keyboard that allows information to be entered.

[0055] Specifically, the input device can be a laptop keyboard, and the electronic device is a laptop; the input device can also be a USB (Universal Serial Bus) interface keyboard, and the electronic device is a host or other device with processing capabilities that is connected to the keyboard via a USB interface.

[0056] Specifically, the operator triggers the first button, the input device generates the first button information, and transmits the first button information to the electronic device.

[0057] Specifically, if the input device is a laptop keyboard, the key information is the scan code of the corresponding key; if the input device is a USB keyboard, the key information is an event, which carries the key value of the key.

[0058] Specifically, the first key can be a key with a special function that can be combined with other keys to form a key combination, or it can be called a shortcut key.

[0059] Step S102: Switch the state of the input device to the first state based on the first key information;

[0060] The first state is used to activate the target function of the target combination key.

[0061] Specifically, based on receiving the first key information, the system controls the switching of the input device's state to the first state.

[0062] In the first state, the input device is used to activate the target function of a specific target key combination.

[0063] The target combination key is a combination key that the first key can form with certain other keys.

[0064] In practice, when the input device is in the first state, the target function of the target combination key can be activated; when the input device is not in the first state, the target function of the target combination key cannot be activated.

[0065] Step S103: Obtain the second button information generated based on triggering the second button;

[0066] In this process, the operator continues to input a trigger operation on the input device, triggering the second button, and the input device generates the second button information.

[0067] The electronic device receives the information from the second button.

[0068] Specifically, it is determined whether the first button information and the second button information meet the preset combination conditions. If they do, step S104 is executed; otherwise, the process ends.

[0069] The determination of whether the first button information and the second button information meet the preset combination conditions includes:

[0070] Based on the fact that the button corresponding to the first button information is a first preset button, it is determined that the first button information and the second button information satisfy a preset combination condition; or

[0071] Based on the fact that the first key information and the second key information can form a preset combination key information, it is determined that the first key information and the second key information meet the preset combination conditions, and the preset combination key belongs to one of the target combination keys.

[0072] The first preset key includes Ctrl, Alt, Win, Shift, etc. If the key corresponding to the first key information is any one of the first preset keys, then the first key information and the second key information are determined to meet the preset combination conditions.

[0073] The first key information and the second key information can form a preset combination key information. If the preset combination key information is one of the target combination keys, then the first key information and the second key information are determined to meet the preset combination conditions.

[0074] The target key combination is a set of key combinations, each key combination corresponds to a combination information, and the target key combination corresponds to the first preset combination information set.

[0075] Step S104: If the first button information and the second button information meet the preset combination conditions, determine the first response method corresponding to the first combination information;

[0076] The first combination information is obtained by combining the first button information and the second button information. The first combination information belongs to the first preset combination information set, and the button information in the first preset combination information set adopts the first combination method.

[0077] If the first button information and the second button information meet a preset combination condition, a first combination information of the combination of the first button information and the second button information is determined.

[0078] The response of the key information in the first combination method is related to the state of the input device. The response method is different depending on the state of the input device.

[0079] The electronic device stores a correspondence between several combinations of information and response methods, and determines the first response method corresponding to the first combination of information based on the correspondence.

[0080] The first response method can be the response method of a user of an electronic device setting a combination of the first and second buttons on an input device in a first state, which is different from the response method of inputting a combination of the first and second buttons on an input device that is not in the first state.

[0081] For example, if the first key press information triggers the Alt key and the second key press information triggers the F4 key, then the first response method corresponding to the combination of the two key presses is to close the window.

[0082] It should be noted that if the input device is not in the first state, the combination of the trigger keys Ctrl and F4 will not respond, which is different from the first response mode.

[0083] It should be noted that the key information that can be combined in the first preset combination information set and the response method corresponding to each combination information can be set according to the actual situation. This application does not impose any restrictions on key combinations and response methods.

[0084] Step S105: Respond based on the first response method.

[0085] Specifically, once the first response method corresponding to the first combination of information is determined, a response is made based on the first response method.

[0086] Specifically, if the first response method requires calling a specific program, then that specific program will be called to respond.

[0087] In summary, this embodiment provides an information processing method comprising: obtaining first key information generated based on triggering a first key; switching the state of an input device to a first state based on the first key information, wherein the first state is used to activate the target function of a target combination key; obtaining second key information generated based on triggering a second key; if the first key information and the second key information satisfy a preset combination condition, determining a first response method corresponding to the first combination information, wherein the first combination information is obtained by combining the first key information and the second key information, the first combination information belongs to a first preset combination information set, and the key information in the first preset combination information set adopts the first combination method; and responding based on the first response method. In this embodiment, the first key information is key information that can be combined with the second key information, and responding to the combination of the first key information and the second key information requires the input device to be in the first state to take effect. Therefore, based on obtaining the first key information, the state of the input device is automatically switched to the first state, which can achieve state switching without using a specific state switching function key, thus simplifying the input operation.

[0088] like Figure 2 The diagram shown is a flowchart of an embodiment 2 of an information processing method provided in this application. The method includes the following steps:

[0089] Step S201: Obtain the first key information generated based on triggering the first key;

[0090] Step S201 is the same as step S101 in Embodiment 1, and will not be described again in this embodiment.

[0091] Step S202: Determine the current state of the input device;

[0092] The states include a first state and a second state, wherein the second state is different from the first state;

[0093] This involves detecting the current state of the input device, which may be in a first state or a second state.

[0094] Specifically, the target function of the target combination key is activated when the input device is in the first state; the target function of the target combination key is not activated when the input device is in the second state.

[0095] Step S203: If the input device is currently in the second state, in response to the received first key information, switch the state of the input device from the second state to the first state;

[0096] If the input device is currently in the second state, upon receiving the first key information, the system controls the switching of the input device's state from the second state to the first state.

[0097] Specifically, the electronic device marks the state of the input device by simulating the key information of the preset function keys in the input device, thereby switching the state of the input device from the second state to the first state.

[0098] It should be noted that the electronic device marks the state of the input device. If it is marked as the first state, the subsequent response will be based on the received key information and the fact that the input device is in the first state; if it is marked as the second state, the subsequent response will be based on the received key information and the fact that the input device is in the second state.

[0099] It should be noted that if the input device is currently in the first state, it will remain in the first state after receiving the first key information, and no switching is required.

[0100] Step S204: Obtain the second button information generated based on triggering the second button;

[0101] Step S205: If the first button information and the second button information meet the preset combination conditions, determine the first response method corresponding to the first combination information;

[0102] Step S206: Respond based on the first response method.

[0103] Steps S204-206 are the same as steps S103-105 in Example 1, and will not be described again in this example.

[0104] In summary, the information processing method provided in this embodiment includes: determining the current state of the input device, the state including a first state and a second state, wherein the second state is different from the first state; if the input device is currently in the second state, in response to received first key information, switching the state of the input device from the second state to the first state. In this embodiment, after obtaining the first key information, the current state of the input device is determined. If the input device is currently in the second state, then in response to the first key information, the state of the input device is controlled to switch from the second state to the first state, without the need for manual input of a switching operation to change the state of the input device.

[0105] like Figure 3 The diagram shown is a flowchart of an embodiment 3 of an information processing method provided in this application. The method includes the following steps:

[0106] Step S301: In response to controlling the input device to maintain its state in the second state based on preset function key information;

[0107] The input device is equipped with preset function keys, which are used to control the input device to maintain a first state or a second state.

[0108] Specifically, the preset function key can be the Fn key or the Number Lock key, etc. Once the preset function key is triggered, the state of the input device is switched and maintained in the switched state.

[0109] It should be noted that the preset function key controls the switching of the input device's state, and the state is maintained after switching until the preset function key is triggered again, at which point it switches back to the original state and maintains it.

[0110] In specific implementation, the input device is switched to the first state based on the preset function key. In the subsequent step S303, the input device is switched from the second state to the first state based on the first key information. The switching effects achieved by the two switching methods are similar from the operator's perspective, and the first state after switching is also the same.

[0111] Step S302: Obtain the first key information generated based on triggering the first key;

[0112] Step S302 is the same as step S101 in Example 1, and will not be described again in this example.

[0113] Step S303: In response to the received first key press information, switch the state of the input device from the second state to the first state;

[0114] Specifically, based on the fact that the input device is in the second state, in response to the received first key information, the state of the input device is switched from the second state to the first state.

[0115] It should be noted that in this embodiment, the state of the input device is switched from the second state to the first state based on the obtained first key information. To return to the second state, the operation based on the first key information or the related response can be used to switch. This process is explained in the following embodiments.

[0116] It should be noted that if the input device is switched to the first state based on the preset function key, the preset function key needs to be triggered again to switch the input device back to the second state and maintain the second state.

[0117] Step S304: Obtain the second button information generated based on triggering the second button;

[0118] Step S305: If the first button information and the second button information meet the preset combination conditions, determine the first response method corresponding to the first combination information;

[0119] Step S306: Respond based on the first response method.

[0120] Steps S304-306 are the same as steps S103-105 in Example 1, and will not be described again in this example.

[0121] In summary, in the information processing method provided in this embodiment, the input device is provided with preset function keys. The preset function keys are used to control the input device to maintain a first state or a second state. The method further includes: responding to controlling the state of the input device to maintain a second state based on preset function key information; correspondingly, responding to received first key information, switching the state of the input device from the second state to the first state. In this embodiment, the state of the input device can be switched and maintained based on preset function keys, and the state of the input device can also be controlled to switch from the second state to the first state based on first key information. Moreover, the first key information can be combined with the second key information to obtain first combination information, and respond based on the first response mode corresponding to the first combination information. The state of the input device can be controlled to switch to the first state based on the first key information, without the need for manual input of a switching operation to switch the state of the input device.

[0122] like Figure 4 The diagram shown is a flowchart of an embodiment 4 of an information processing method provided in this application. The method includes the following steps:

[0123] Step S401: Obtain the first key information generated based on triggering the first key;

[0124] Step S402: Switch the state of the input device to the first state based on the first key information;

[0125] Steps S401-402 are the same as steps S101-102 in Example 1, and will not be described again in this example.

[0126] Step S403: Stop obtaining the first key information and control the switching of the input device's state to the second state;

[0127] If the first button information is continuously obtained, it indicates that the first button is always triggered / pressed. While maintaining the acquisition of the first button information, the second button information is obtained. The first button information and the second button information are combined to obtain the first combined information.

[0128] If the acquisition of the first key information is stopped, it indicates that the defined key is no longer triggered / pressed, which means that the operator no longer wants to input the first key information. The purpose is to stop inputting key combinations that can be combined with the first key. Therefore, the control switches the state of the input device back to the second state.

[0129] It should be noted that after the control switches the input device to the second state, subsequent steps S404-406 will not be executed.

[0130] Step S404: Obtain the second button information generated based on triggering the second button;

[0131] Step S405: Based on the fact that the state of the input device is the first state, if the first key information and the second key information meet the preset combination conditions, determine the first response mode corresponding to the first combination information;

[0132] Step S406: Respond based on the first response method.

[0133] Steps S401-406 are the same as steps S103-105 in Example 1, and will not be described again in this example.

[0134] In summary, the information processing method provided in this embodiment further includes: stopping the acquisition of the first key information and controlling the switching of the input device's state to a second state. In this embodiment, by stopping the acquisition of the first key information, the state of the input device can be controlled to switch to the second state, which corresponds to switching the input device's state from the second state to the first state by acquiring the first key information. This achieves a switching operation to change the input device's state without requiring manual input.

[0135] like Figure 5 The flowchart shown is a 5th embodiment of an information processing method provided in this application. The method includes the following steps:

[0136] Step S501: Obtain the first key information generated based on triggering the first key;

[0137] Step S502: Switch the state of the input device to the first state based on the first key information;

[0138] Step S503: Obtain the second button information generated based on triggering the second button;

[0139] Step S504: If the first button information and the second button information meet the preset combination conditions, determine the first response method corresponding to the first combination information;

[0140] Step S505: Respond based on the first response method;

[0141] Steps S501-505 are the same as steps S101-105 in Example 1, and will not be described again in this example.

[0142] Step S506: Switch the state of the input device to the second state.

[0143] After responding based on the first response method, and completing the response to the input operation performed by the operator through the input device, the system automatically switches from the first state back to the second state.

[0144] If key information is received from the input device again at a later time, the response method can be selected according to the situation. This application does not impose any restrictions on the response method.

[0145] Specifically, the process described in steps S501-505 can be used to respond. If the button information does not belong to the first button information, the corresponding response method can be determined and responded accordingly.

[0146] In summary, the information processing method provided in this embodiment further includes: switching the state of the input device to a second state. In this embodiment, after the response ends, the state of the input device is automatically switched to the second state, realizing the switching operation of switching the input device state without manual input.

[0147] like Figure 6 The flowchart shown is a sample of embodiment 6 of an information processing method provided in this application. The method includes the following steps:

[0148] Step S601: Obtain the first key information generated based on triggering the first key;

[0149] Step S602: Switch the state of the input device to the first state based on the first key information;

[0150] Step S603: Obtain the second button information generated based on triggering the second button;

[0151] Steps S601-603 are the same as steps S101-103 in Example 1, and will not be described again in this example.

[0152] Step S604: If third button information that triggers the generation of the third button is obtained within the target time period of obtaining the second button information, determine in the first preset combination information set that there is a second combination information that combines the first button information, the second button information and the third button information;

[0153] If the first, second, and third buttons can be used as a combination of buttons for convenient input, the operator needs to press the first, second, and third buttons respectively within a short period of time so that the electronic device can use the button information of the first, second, and third buttons as a combination of information.

[0154] The first preset combination information set may include information combinations consisting of two key information, three key information, or even more key information.

[0155] Specifically, after obtaining the first and second button information, a timer is started from the time the second button information is obtained to determine whether the third button information generated by the third button is obtained within the target time period.

[0156] If third button information is obtained within the target time period, it is determined whether the second combination information, which combines the third button information with the first button information and the second button information, is in the first preset combination information set. If it exists, the subsequent step S605 is executed. If it does not exist, the third button information can be ignored, and only the combination of the first button information and the second button information is used.

[0157] Step S605: Determine the second response method of the second combined information, and respond based on the second response method;

[0158] Specifically, after combining the first button information, the second button information, and the third button information to obtain the second combined information, the second response method corresponding to the second combined information is determined, and a response is made based on the second response method.

[0159] For example, if the first key information triggers the Alt key, the second key information triggers the F2 key, and the third key information triggers the Q key, then the second response method corresponding to the combination of these three key information is to maximize the current page. After obtaining the key information of the above three keys, the system controls the maximization of the current page to achieve the response.

[0160] Step S606: If the third button information is not obtained within the target time period after obtaining the second button information, determine that there is a first combination information in the first preset combination information set that combines the first button information and the second button information;

[0161] If the third button information is not obtained within the target time period after the second button information is obtained, the first button information and the second button information are combined, and it is determined whether the combination information corresponds to the first preset combination information set.

[0162] If a second combination of the first button information and the second button information is found to exist in the first preset combination information set, then the first button information and the second button information are determined to meet the preset combination conditions, and the subsequent step S607 is executed.

[0163] In specific implementation, the lack of third button information includes: not obtaining any button information, and not obtaining button information that can be combined with the first button information and the second button information to obtain the second combined information.

[0164] Specifically, if no key information is obtained, the first key information and the second key information will be combined directly after the target time period is reached.

[0165] Specifically, if a key information is obtained, but the combination of the key information with the first key information and the second key information does not belong to the first preset combination information set, then the key information is ignored, and only the first key information and the second key information are combined.

[0166] Step S607: Determine that the first button information and the second button information meet the preset combination conditions, and determine the first response method corresponding to the first combination information;

[0167] Step S608: Respond based on the first response method.

[0168] Steps S607-608 are the same as steps S104-105 in Example 1, and will not be described again in this example.

[0169] In summary, the information processing method provided in this embodiment further includes: if third key information triggering the generation of a third key is obtained within a target time period after obtaining the second key information, determining, in a first preset combination information set, that there exists a second combination of the first key information, the second key information, and the third key information; determining a second response mode for the second combination information, and responding based on the second response mode; if the third key information is not obtained within a target time period after obtaining the second key information, determining, in the first preset combination information set, that there exists a first combination of the first key information and the second key information, and determining that the first key information and the second key information satisfy a preset combination condition. In this embodiment, based on the first state of controlling the input device switching in response to the first key information, it is possible to respond to the first combination of two key information, and also to respond to the second combination of three or more key information, thus realizing that during the input of multiple key combinations, there is no need to manually input a switching operation to switch the input device state.

[0170] like Figure 7The flowchart shown is a 7th embodiment of an information processing method provided in this application. The method includes the following steps:

[0171] Step S701: Obtain the first key information generated based on triggering the first key;

[0172] Step S702: Switch the state of the input device to the first state based on the first key information;

[0173] Steps S701-702 are the same as steps S101-102 in Example 1, and will not be described again in this example.

[0174] Step S703: Obtain the fourth button information generated by triggering the fourth button;

[0175] In this process, the operator continues to input a trigger operation on the input device, triggering the fourth button, and the input device generates the fourth button information.

[0176] The electronic device receives the information from the fourth button.

[0177] Step S704: In the second preset combination information set, determine that there exists a third combination information that combines the first button information and the fourth button information;

[0178] The button information in the second preset combination information set adopts the second combination method.

[0179] Specifically, for the third combination information obtained by combining the fourth button information and the first button information, it is determined whether the third combination information exists in the first preset combination information set and the second preset combination information set.

[0180] Specifically, the third combination information does not exist in the first preset combination information set, but it exists in the second preset combination information set.

[0181] It should be noted that the response method of the combined information in the first preset combined information set is related to the state of the input device, while the response method of the combined information in the second preset combined information set is independent of the state of the input device.

[0182] For example, if the first key is Ctrl and the fourth key is V, the response method of the key combination is independent of the state of the input device.

[0183] Step S705: Determine the third response method of the third combination information, and respond based on the third response method;

[0184] Specifically, based on the preset correspondence between key information combinations and response methods, the third response method corresponding to the third combination of information is determined, and the response is performed based on the third response method.

[0185] For example, if the first key is Ctrl and the fourth key is V, the response method for the combination of these two key information is paste, which specifically pastes the information cached in the clipboard to the selected location.

[0186] In practice, the second preset combination information set may also contain combination information of multiple button information.

[0187] Specifically, after obtaining the information for the fourth button that triggers its generation, the process also includes:

[0188] If fifth button information that triggers the generation of the fifth button is obtained within the target time period of obtaining the fourth button information, a fourth combination of the first button information, the fourth button information, and the fifth button information is determined to exist in the second preset combination information set; a fourth response mode of the fourth combination information is determined, and a response is made based on the fourth response mode;

[0189] If the fifth key information is not obtained within the target time period after the fourth key information is obtained, step S704 is triggered to determine in the second preset combination information set that there is a third combination information that combines the first key information and the fourth key information.

[0190] In practice, after determining the combination of the first key information and the fourth key information to obtain the third combination information, or after responding based on the third response method, the state of the input device can be switched to the second state.

[0191] It should be noted that in specific implementation, the first key information can generally only be combined with other key information to obtain a combination information. That is, the process of combining the first key information and the fourth key information to obtain the third combination information and the response is one branch, and the process of combining the first key information and the second key information to obtain the first combination information and the response is another branch. The two branch processes cannot be executed at the same time using the same first key information. Therefore, after executing step S705, the subsequent steps S706-708 will not be executed.

[0192] Step S706: Obtain the second button information generated based on triggering the second button;

[0193] Step S707: If the first button information and the second button information meet the preset combination conditions, determine the first response method corresponding to the first combination information;

[0194] Step S708: Respond based on the first response method.

[0195] Steps S706-708 are the same as steps S103-105 in Example 1, and will not be described again in this example.

[0196] In summary, the information processing method provided in this embodiment further includes: obtaining fourth key information that triggers the generation of a fourth key; determining, in a second preset combination information set, the existence of a third combination information that combines the first key information and the fourth key information, wherein the key information in the second preset combination information set adopts a second combination method; determining a third response method for the third combination information, and responding based on the third response method. In this embodiment, if the first key information is obtained, and the fourth key information is obtained, the first key information and the fourth key information are combined to obtain the third combination information in the second preset combination information set. Any combination information in the second preset combination information set is independent of the state of the input device, and can respond to combination information independent of the state of the input device.

[0197] like Figure 8 The flowchart shown is an embodiment 8 of an information processing method provided in this application. The method includes the following steps:

[0198] Step S801: Obtain the first key information generated based on triggering the first key;

[0199] Step S802: Switch the state of the input device to the first state based on the first key information;

[0200] Steps S801-802 are the same as steps S101-102 in Example 1, and will not be described again in this example.

[0201] Step S803: Output a prompt message to indicate that the input device has switched to the first state;

[0202] If the input device switches to the first state, a prompt will be given for that first state.

[0203] The output prompt information is sent to the prompt structure set in the input device, such as an indicator light, and the prompt information is used to control the indicator light to light up.

[0204] The output prompt information can also be output to the display device of the electronic device, so that the display device displays the prompt content to indicate that the input device has switched to the first state.

[0205] If the input device switches to the second state, no further prompts will be given.

[0206] Step S804: Obtain the second button information generated based on triggering the second button;

[0207] Step S805: If the first button information and the second button information meet the preset combination conditions, determine the first response method corresponding to the first combination information;

[0208] Step S806: Respond based on the first response method.

[0209] Steps S804-806 are the same as steps S103-105 in Example 1, and will not be described again in this example.

[0210] In summary, the information processing method provided in this embodiment further includes: outputting a prompt message to indicate that the input device's state has switched to a first state. In this embodiment, a prompt is also provided when the input device switches to the first state to inform the operator that the input device is in the first state, allowing the operator to quickly understand the state of the input device.

[0211] Corresponding to the above-described embodiment of an information processing method provided in this application, this application also provides an embodiment of an apparatus for applying the information processing method.

[0212] like Figure 9 The diagram shown is a structural schematic of an embodiment of an information processing device provided in this application. The device includes the following structure: a first obtaining module 901, a switching module 902, a second obtaining module 903, a determining module 904, and a response module 905.

[0213] The first obtaining module 901 is used to obtain first key information generated based on triggering the first key;

[0214] The switching module 902 is used to switch the state of the input device to a first state based on the first key information, and the first state is used to activate the target function of the target combination key.

[0215] The second obtaining module 903 is used to obtain second button information generated based on triggering the second button;

[0216] The determining module 904 is used to determine the first response mode corresponding to the first combination information if the first button information and the second button information meet the preset combination conditions. The first combination information is obtained by combining the first button information and the second button information. The first combination information belongs to the first preset combination information set. The button information in the first preset combination information set adopts the first combination mode.

[0217] The response module 905 is used to respond based on the first response method.

[0218] Optionally, the switching module includes:

[0219] A determining unit is configured to determine the current state of the input device, the state including a first state and a second state, wherein the second state is different from the first state;

[0220] The switching unit is used to switch the state of the input device from the second state to the first state in response to the received first key information if the input device is currently in the second state.

[0221] Optionally, the input device is provided with preset function keys, which are used to control the input device to maintain a first state or a second state.

[0222] The response module is also configured to respond to controlling the state of the input device to remain in the second state based on preset function key information;

[0223] Accordingly, the switching module is specifically used for:

[0224] In response to the received first key press information, the state of the input device is switched from the second state to the first state.

[0225] Optional, also includes:

[0226] The first judgment module is used to determine whether the first key information and the second key information satisfy a preset combination condition based on whether the key corresponding to the first key information is a first preset key; or

[0227] The second judgment module is used to determine whether the first key information and the second key information meet the preset combination conditions based on whether the first key information and the second key information can form preset combination key information, wherein the preset combination key belongs to one of the target combination keys.

[0228] Optionally, the switching module is further configured to, after switching the state of the input device to the first state based on the first key information, stop obtaining the first key information and control the switching of the state of the input device to the second state.

[0229] Optionally, the switching module is further configured to switch the state of the input device to a second state after responding based on the first response method.

[0230] Optional, also includes:

[0231] The third acquisition module is used to acquire third button information generated based on triggering the third button;

[0232] The determining module is further configured to obtain the third key information within the target time period for obtaining the second key information, determine, in the first preset combination information set, that there exists a second combination of the first key information, the second key information, and the third key information; determine the second response mode of the second combination information, and respond based on the second response mode;

[0233] The determining module is further configured to, if the third key information is not obtained within the target time period after obtaining the second key information, determine in the first preset combination information set that there exists a first combination information that combines the first key information and the second key information, and determine that the first key information and the second key information satisfy the preset combination condition.

[0234] Optional, also includes:

[0235] The fourth acquisition module is used to acquire the fourth button information generated by triggering the fourth button;

[0236] Correspondingly, the determining module is also used to determine, in the second preset combination information set, the existence of a third combination information that combines the first key information and the fourth key information, wherein the key information in the second preset combination information set adopts a second combination method; and to determine the third response method of the third combination information;

[0237] The response module is also used to respond based on the third response method.

[0238] Optional, also includes:

[0239] The output module is used to output prompt information to indicate that the input device has switched to the first state.

[0240] It should be noted that the functional explanations of the various structures in the information processing device provided in this embodiment are as described in the foregoing method embodiments, and will not be detailed in this embodiment.

[0241] In summary, the information processing device provided in this embodiment obtains first key information, which is key information that can be combined with second key information. The response to the combination of the first key information and the second key information requires that the input device be in a first state to take effect. Therefore, based on obtaining the first key information, the state of the input device is automatically switched to the first state, and the state switching can be achieved without using a specific state switching function key, thus simplifying the input operation.

[0242] Corresponding to the above-described embodiment of an information processing method provided in this application, this application also provides an electronic device and a readable storage medium corresponding to the information processing method.

[0243] The electronic device includes: a memory and a processor;

[0244] The memory stores the processing program;

[0245] The processor is used to load and execute the processing program stored in the memory to implement the steps of the information processing method as described in any of the preceding claims.

[0246] For details on the specific information processing method implemented in this electronic device, please refer to the aforementioned information processing method embodiments.

[0247] The readable storage medium stores a computer program that is invoked and executed by a processor to implement the steps of the information processing method as described in any one of the preceding claims.

[0248] For details on the specific implementation of the information processing method by executing the computer program stored in the readable storage medium, please refer to the aforementioned information processing method embodiments.

[0249] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. The apparatus provided in the embodiments is described simply because it corresponds to the method provided in the embodiments; relevant parts can be found in the method section.

[0250] The above description of the provided embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features provided herein.

Claims

1. An information processing method, comprising: Obtain the first key information generated based on triggering the first key; Based on the first key information, the state of the input device is switched to a first state, wherein the input device has a first state and a second state. When the input device is in the first state, the target function of the target combination key is activated; when the input device is in the second state, the target function of the target combination key is not activated. Obtain the second button information generated based on triggering the second button; If the first key information and the second key information meet the preset combination conditions, the first response method corresponding to the first combination information is determined. The first combination information is obtained by combining the first key information and the second key information. The first combination information belongs to the first preset combination information set. The key information in the first preset combination information set adopts the first combination method. Respond based on the first response method.

2. The method according to claim 1, wherein switching the state of the input device to the first state based on the first key information includes: Determine the current state of the input device; If the input device is currently in the second state, in response to the received first key information, the state of the input device is switched from the second state to the first state.

3. The method according to claim 1, wherein the input device is provided with preset function keys, the preset function keys being used to control the input device to maintain in a first state or a second state, and the method further includes: The input device is controlled to maintain its state in the second state based on preset function key information. Accordingly, switching the state of the input device to the first state based on the first key information includes: In response to the received first key press information, the state of the input device is switched from the second state to the first state.

4. The method according to claim 1, determining whether the first button information and the second button information satisfy a preset combination condition, includes: Based on the fact that the button corresponding to the first button information is a first preset button, it is determined that the first button information and the second button information satisfy a preset combination condition. or Based on the fact that the first key information and the second key information can form a preset combination key information, it is determined that the first key information and the second key information meet the preset combination conditions, and the preset combination key belongs to one of the target combination keys.

5. The method according to claim 1, wherein after switching the state of the input device to the first state based on the first key information, it further includes: Stop receiving the first key information and control the switching of the input device's state to the second state.

6. The method according to claim 1, further comprising, after responding based on the first response method: Switch the state of the input device to the second state.

7. The method according to claim 1, after obtaining the second button information generated based on triggering the second button, further includes: If third button information that triggers the generation of the third button is obtained within the target time period of obtaining the second button information, a second combination of the first button information, the second button information, and the third button information is determined to exist in the first preset combination information set; a second response mode of the second combination information is determined, and a response is made based on the second response mode; If the third button information is not obtained within the target time period after obtaining the second button information, a first combination information is determined to exist in the first preset combination information set, which is a combination of the first button information and the second button information, and the first button information and the second button information are determined to satisfy the preset combination conditions.

8. The method according to claim 1, wherein after switching the state of the input device to the first state based on the first key information, it further includes: Obtain the information of the fourth button generated when the fourth button is triggered; In the second preset combination information set, it is determined that there is a third combination information that combines the first button information and the fourth button information, and the button information in the second preset combination information set adopts the second combination method; Determine a third response method based on the third combination of information, and respond based on the third response method.

9. The method according to claim 1, after switching the state of the input device to the first state based on the first key information, further comprising: Output a prompt message to indicate that the input device has switched to the first state.

10. An information processing apparatus, comprising: The first acquisition module is used to acquire first key information generated based on triggering the first key; A switching module is used to switch the state of the input device to a first state based on the first key information. The input device has a first state and a second state. When the input device is in the first state, the target function of the target combination key is activated. When the input device is in the second state, the target function of the target combination key is not activated. The second acquisition module is used to acquire second button information generated based on triggering the second button; The determining module is used to determine the first response mode corresponding to the first combination information if the first key information and the second key information meet the preset combination conditions. The first combination information is obtained by combining the first key information and the second key information. The first combination information belongs to a first preset combination information set. The key information in the first preset combination information set adopts the first combination mode. The response module is used to respond based on the first response method.

Citation Information

Patent Citations

  • Control method of mobile terminal and mobile terminal

    CN106802766A

  • Key processing method and device, and storage medium

    CN111638805A