CN115904094A - Information processing method and device - Google Patents

Information processing method and device Download PDF

Info

Publication number
CN115904094A
CN115904094A CN202211526363.XA CN202211526363A CN115904094A CN 115904094 A CN115904094 A CN 115904094A CN 202211526363 A CN202211526363 A CN 202211526363A CN 115904094 A CN115904094 A CN 115904094A
Authority
CN
China
Prior art keywords
state
information
key information
key
combination
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211526363.XA
Other languages
Chinese (zh)
Inventor
张明旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202211526363.XA priority Critical patent/CN115904094A/en
Publication of CN115904094A publication Critical patent/CN115904094A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

The application discloses an information processing method and device, comprising the following steps: obtaining first key information generated based on triggering of a first key; switching the state of the input equipment to a first state based on the first key information, wherein the first state is used for starting a 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 meet a preset combination condition, determining a first response mode 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 mode; and responding based on the first response mode.

Description

Information processing method and device
Technical Field
The present application relates to the field of information technologies, and in particular, to an information processing method and apparatus.
Background
In order to facilitate the user to quickly perform some settings, many computers configure the user with a shortcut key, and the activation of the shortcut key needs to be activated by an Fn key, specifically, whether the shortcut key is to be pressed or F × is to be input (one of F1 to F12) is controlled by the Fn key.
Since the combination shortcut key generally consists of two or more keys, when a user wants to input a combination shortcut key containing F, such as Alt + F4, the user needs to press the Fn key additionally to take effect, which causes inconvenience in input operation.
Disclosure of Invention
In view of the above, the present application provides an information processing method and apparatus, as follows:
an information processing method comprising:
obtaining first key information generated based on triggering of a first key;
switching the state of the input equipment to a first state based on the first key information, wherein the first state is used for starting a 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 meet a preset combination condition, determining a first response mode 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 mode;
and responding based on the first response mode.
Optionally, in the method, the switching the state of the input device to the first state based on the first key information includes:
determining a current state of the input device, wherein the state comprises a first state and a second state, and the second state is different from the first state;
and if the input equipment is currently in the second state, responding to the received first key information, and switching the state of the input equipment from the second state to the first state.
Optionally, in the method, a preset function key is disposed in the input device, where the preset function key is used to control the input device to maintain in the first state or the second state, and the method further includes:
responding to the state of the input device controlled to be maintained in a second state based on preset function key information;
correspondingly, the switching the state of the input device to the first state based on the first key information includes:
and responding to the received first key information, and switching the state of the input device from the second state to the first state.
Optionally, the method for determining whether the first key information and the second key information satisfy the preset combination condition includes:
judging that the first key information and the second key information meet a preset combination condition based on the fact that the key corresponding to the first key information is a first preset key; or
And judging that the first key information and the second key information meet preset combination conditions based on the fact that the first key information and the second key information can form preset combination key information, wherein the preset combination key belongs to one of target combination keys.
Optionally, in the method, after the state of the input device is switched to the first state based on the first key information, the method further includes:
and stopping obtaining the first key information, and controlling to switch the state of the input equipment into a second state.
Optionally, after responding based on the first response method, the method further includes:
and switching the state of the input device to a second state.
Optionally, after obtaining the second key information generated based on triggering the second key, the method further includes:
if third key information generated by triggering a third key is obtained within the target time period for obtaining the second key information, second combination information of the combination of the first key information, the second key information and the third key information is determined to exist in a first preset combination information set; determining a second response mode of the second combined information, and responding based on the second response mode;
if the third key information is not obtained within the target time period after the second key information is obtained, determining first combination information of the combination of the first key information and the second key information in a first preset combination information set, and determining that the first key information and the second key information meet preset combination conditions.
Optionally, in the method, after the state of the input device is switched to the first state based on the first key information, the method further includes:
obtaining fourth key information generated by triggering a fourth key;
determining that third combined information of the first key information and the fourth key information combination exists in a second preset combined information set, wherein the key information in the second preset combined information set adopts a second combination mode;
and determining a third response mode of the third combined information, and responding based on the third response mode.
Optionally, after the state of the input device is switched to the first state based on the first key information, the method further includes:
and outputting prompt information to prompt the state of the input equipment to be switched to the first state.
An information processing apparatus comprising:
the first obtaining module is used for obtaining first key information generated based on triggering of a first key;
the switching module is used for switching the state of the input equipment to a first state based on the first key information, and the first state is used for starting a target function of a target combination key;
the second obtaining module is used for obtaining second key information generated based on triggering of a second key;
the determining module is used for determining a first response mode corresponding to first combination information if the first key information and the second key information meet preset combination conditions, 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 a first combination mode;
and the response module is used for responding based on the first response mode.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only the embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on the provided drawings without creative efforts.
Fig. 1 is a flowchart of an information processing method embodiment 1 provided in the present application;
fig. 2 is a flowchart of an information processing method embodiment 2 provided in the present application;
fig. 3 is a flowchart of an information processing method embodiment 3 provided in the present application;
fig. 4 is a flowchart of an information processing method embodiment 4 provided in the present application;
fig. 5 is a flowchart of an embodiment 5 of an information processing method provided in the present application;
fig. 6 is a flowchart of an embodiment 6 of an information processing method provided in the present application;
fig. 7 is a flowchart of embodiment 7 of an information processing method provided in the present application;
fig. 8 is a flowchart of an embodiment 8 of an information processing method provided in the present application;
fig. 9 is a schematic structural diagram of an embodiment of an information processing apparatus provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
As shown in fig. 1, a flowchart of an embodiment 1 of an information processing method provided by the present application is applied to an electronic device, and the method includes the following steps:
step S101: obtaining first key information generated based on triggering of a first key;
the input device of the electronic device is provided with a plurality of keys, and each key trigger can generate corresponding key information.
Wherein the input device is a keyboard capable of inputting information.
Specifically, the input device may be a keyboard of a notebook computer, and the electronic device is a notebook computer; the input device may also be a USB (Universal Serial Bus) interface keyboard, and the electronic device is a device with processing capability, such as a host connected to the keyboard through a USB interface.
Specifically, the operation body triggers the first key, the input device generates first key information, and the first key information is transmitted to the electronic device.
If the input device is a keyboard of a notebook computer, the key information is specifically a scanning code of a corresponding key; if the input device is a USB interface keyboard, the key information is an event, and the event carries key values of keys.
In particular, the first key may be a key having a special function, which can be combined with other keys to form a key combination, or may be referred to as a shortcut key.
Step S102: switching the state of the input device to a first state based on the first key information;
wherein the first state is used to initiate a target function of a target combination key.
And controlling the state of the input equipment to be switched to a first state based on the received first key information.
Wherein the input device is in a first state for initiating a target function of a specific target combination key.
The target combination key is a combination key which can be formed by the first key and some other keys.
In a specific implementation, when the input device is in the first state, the target function of the target combination key can be started, and when the input device is not in the first state, the target function of the target combination key cannot be started.
Step S103: obtaining second key information generated based on triggering a second key;
and the operation body continues to input triggering operation on the input device to trigger the second key, and the input device generates second key information.
And the electronic equipment receives the second key information.
Judging whether the first key information and the second key information meet preset combination conditions, and if so, executing the step S104; otherwise, ending.
Wherein, judge whether first button information and second button information satisfy and predetermine the combination condition, include:
judging that the first key information and the second key information meet a preset combination condition based on the fact that the key corresponding to the first key information is a first preset key; or
And judging that the first key information and the second key information meet preset combination conditions based on the fact that the first key information and the second key information can form preset combination key information, wherein the preset combination key belongs to one of target combination keys.
The first preset key comprises ctrl, alt, win, shift and the like, and if the key corresponding to the first key information is any one of the first preset keys, it is determined that the first key information and the second key information meet a preset combination condition.
The first key information and the second key information can form preset combination key information, and if the preset combination key information is one of the target combination keys, the first key information and the second key information are judged to meet preset combination conditions.
The target combination key is a group of key combinations, each key combination corresponds to one combination information, and the target combination key corresponds to a first preset combination information set.
Step S104: if the first key information and the second key information meet the preset combination condition, determining a first response mode corresponding to the first combination information;
the first combination information is obtained by combining first key information and 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 a first combination mode.
And if the first key information and the second key information meet the preset combination condition, determining first combination information of the combination of the first key information and the second key information.
The response of the key information of the first combination mode is related to the state of the input equipment, the input equipment is in different states, and the response modes are different.
The electronic equipment stores the corresponding relation between a plurality of pieces of combined information and response modes, and determines a first response mode corresponding to the first combined information based on the corresponding relation.
The first response mode may be a response mode in which a user of the electronic device sets a combination of the first key and the second key in the input device in the first state, and the response mode is different from a response mode in which the user of the electronic device does not input the combination of the first key and the second key in the input device in the first state.
For example, if the first key information is used for triggering alt key generation and the second key information is used for triggering f4 key generation, it is determined that the first response mode corresponding to the combined information of the two is to close the window.
It should be noted that, if the input device is not in the first state, the corresponding response mode of the combination of the trigger keys ctrl and f4 is not response, which is different from the first response mode.
It should be noted that the key information that can be combined in the first preset combination information set and the response mode corresponding to each combination information may be set according to an actual situation, and the key combination and the response mode are not limited in this application.
Step S105: and responding based on the first response mode.
And when the first response mode corresponding to the first combination information is determined, responding based on the first response mode.
Specifically, if the first response mode requires a specific program to be called, the specific program is called to respond.
In summary, an information processing method provided in this embodiment includes: obtaining first key information generated based on triggering of a first key; switching the state of the input equipment to a first state based on the first key information, wherein the first state is used for starting a 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 meet a preset combination condition, determining a first response mode 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 mode; and responding based on the first response mode. In this embodiment, the first key information is obtained, the first key information is key information that can be combined with the second key information, and the combination of the first key information and the second key information needs to be validated based on the state of the input device being the first state, so that the state of the input device is automatically switched to the first state based on obtaining the first key information, and the state switching can be achieved without using a specific state switching function key, thereby simplifying the input operation.
As shown in fig. 2, a flowchart of embodiment 2 of an information processing method provided by the present application includes the following steps:
step S201: obtaining first key information generated based on triggering of a first key;
step S201 is the same as step S101 in embodiment 1, and details in this embodiment are not repeated.
Step S202: determining a current state of the input device;
wherein the states include a first state and a second state, the second state being different from the first state;
the current state of the input device is detected, and the input device may be in the first state or the second state.
Starting a target function of a target combination key based on the input equipment in a first state; the target function of the target combination key is not activated based on the input device being in the second state.
Step S203: if the input equipment is in the second state currently, responding to the received first key information, and switching the state of the input equipment from the second state to the first state;
and if the input equipment is currently in the second state, after the first key information is obtained, responding to the received first key information, and controlling the state of the input equipment to be switched from the second state to the first state.
Specifically, the electronic device marks the state of the input device by simulating key information of preset function key information in the input device, so as to switch the state of the input device from the second state to the first state.
It should be noted that, the electronic device marks the state of the input device, for example, marks the state as a first state, and subsequently responds, based on the received key information, in combination with that the input device is in the first state; if marked as the second state, subsequently responding in conjunction with the input device being in the second state based on the received key press information.
It should be noted that, if the input device is currently in the first state, after the first key information is obtained, the first state of the input device is continuously maintained, and switching is not required.
Step S204: obtaining second key information generated based on triggering a second key;
step S205: if the first key information and the second key information meet the preset combination condition, determining a first response mode corresponding to the first combination information;
step S206: and responding based on the first response mode.
Steps S204 to 206 are the same as steps S103 to 105 in embodiment 1, and are not described in detail in this embodiment.
In summary, the information processing method provided in this embodiment includes: determining a current state of the input device, wherein the state comprises a first state and a second state, and the second state is different from the first state; and if the input equipment is currently in the second state, responding to the received first key information, and switching the state of the input equipment from the second state to the first state. In this embodiment, after the first key information is obtained, the current state of the input device is determined, and if the input device is currently in the second state, the state of the input device is controlled to be switched from the second state to the first state in response to the first key information, without manually inputting a switching operation for switching the state of the input device to switch the state of the input device.
As shown in fig. 3, a flowchart of embodiment 3 of an information processing method provided by the present application includes the following steps:
step S301: responding to the state of the input device controlled to be maintained in a second state based on preset function key information;
the input device is provided with a preset function key, and the preset function key is used for controlling the input device to be maintained in a first state or a second state.
Specifically, the preset function key may be an Fn key or a Number Lock key, and when the preset function key is triggered once, the state of the input device is switched and maintained in the switched state.
It should be noted that the preset function key controls to switch the state of the input device, and the state is maintained after switching until the preset function key is triggered next time, and the preset function key is switched back to the original state and maintained.
In a specific implementation, the state of the input device is switched to the first state based on the preset function key, and in the subsequent step S303, the state of the input device is switched to the first state from the second state based on the first key information.
Step S302: obtaining first key information generated based on triggering of a first key;
step S302 is the same as step S101 in embodiment 1, and details are not described in this embodiment.
Step S303: responding to the received first key information, and switching the state of the input device from the second state to the first state;
and switching the state of the input device from the second state to the first state in response to the received first key information based on the state of the input device being the second state.
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, and if the input device is to return to the second state, the input device may be switched by an operation based on the first key information or a related response, and the process refers to the explanation in the following embodiments.
It should be noted that if the state of the input device is controlled to be maintained in the first state based on the preset function key, the preset function key needs to be triggered again, and the state of the input device can be switched back to the second state and maintained in the second state.
Step S304: obtaining second key information generated based on triggering a second key;
step S305: if the first key information and the second key information meet the preset combination condition, determining a first response mode corresponding to the first combination information;
step S306: and responding based on the first response mode.
Steps S304 to 306 are the same as steps S103 to 105 in embodiment 1, and are not described in detail in this embodiment.
In summary, in an information processing method provided in this embodiment, the input device is provided with a preset function key, where the preset function key is used to control the input device to maintain a first state or a second state, and the method further includes: responding to the state control of the input device based on preset function key information to maintain in a second state; correspondingly, the state of the input device is switched from the second state to the first state in response to the received first key information. In this embodiment, the state of the input device can be switched and maintained based on the preset function keys, and the state of the input device can be switched from the second state to the first state based on the first key information, and the first key information can be combined with the second key information to obtain the first combination information, and the first combination information is responded based on the first response mode corresponding to the first combination information, and the state of the input device is controlled to be switched to the first state based on the first key information, and the state of the input device is switched without manually inputting a switching operation for switching the state of the input device.
As shown in fig. 4, a flowchart of embodiment 4 of an information processing method provided by the present application is provided, where the method includes the following steps:
step S401: obtaining first key information generated based on triggering of a first key;
step S402: switching the state of the input device to a first state based on the first key information;
steps S401 to 402 are the same as steps S101 to 102 in embodiment 1, and are not described in detail in this embodiment.
Step S403: stopping obtaining the first key information, and controlling to switch the state of the input equipment to a second state;
if the first key information is obtained all the time, the first key is characterized to be triggered/pressed all the time, in the process of maintaining obtaining of the first key information, second key information is obtained, and the first key information and the second key information are combined to obtain first combined information.
If the first key information is stopped to be obtained, the definition key is stopped to be triggered/pressed, which can indicate that the operator does not want to input the first key information any more, so as to stop inputting the key combination capable of being combined with the first key, and therefore, the state of the input device is controlled to be switched back to the second state.
It should be noted that, after the control switches the state of the input device to the second state, the subsequent steps S404 to S406 are not executed.
Step S404: obtaining second key information generated based on triggering a second key;
step S405: based on the condition that the state of the input equipment is a first state, if the first key information and the second key information meet a preset combination condition, determining a first response mode corresponding to the first combination information;
step S406: and responding based on the first response mode.
Steps S401 to 406 are the same as steps S103 to 105 in embodiment 1, and are not described in detail in this embodiment.
In summary, the information processing method provided in this embodiment further includes: and stopping obtaining the first key information, and controlling to switch the state of the input equipment to a second state. In this embodiment, by stopping obtaining the first key information, the state of the input device can be controlled to be switched to the second state, which corresponds to switching the state of the input device from the second state to the first state by obtaining the first key information, and switching operation for switching the state of the input device without manual input is implemented to switch the state of the input device.
As shown in fig. 5, a flowchart of embodiment 5 of an information processing method provided by the present application includes the following steps:
step S501: obtaining first key information generated based on triggering of a first key;
step S502: switching the state of the input equipment to a first state based on the first key information;
step S503: obtaining second key information generated based on triggering a second key;
step S504: if the first key information and the second key information meet the preset combination condition, determining a first response mode corresponding to the first combination information;
step S505: responding based on the first response mode;
steps S501 to 505 are the same as steps S101 to 105 in embodiment 1, and are not described in detail in this embodiment.
Step S506: and switching the state of the input device to a second state.
Wherein, after the response is made based on the first response mode, the response to the input operation performed by the operator through the input device is completed, and then the state is automatically switched back from the first state to the second state.
The key information transmitted by the input device is received again at the subsequent time, the response mode can be selected according to the situation, and the response mode is not limited in the application.
Specifically, the process of steps S501 to S505 may be adopted to respond, and if the key information does not belong to the first key information, a corresponding response mode may be determined to respond accordingly.
In summary, the information processing method provided in this embodiment further includes: and switching the state of the input device to a second state. In this embodiment, after the response is finished, the state of the input device is automatically switched to the second state, so that the state of the input device is switched without manually inputting a switching operation for switching the state of the input device.
As shown in fig. 6, a flowchart of embodiment 6 of an information processing method provided by the present application includes the following steps:
step S601: obtaining first key information generated based on triggering of a first key;
step S602: switching the state of the input device to a first state based on the first key information;
step S603: obtaining second key information generated based on triggering a second key;
steps S601 to 603 are the same as steps S101 to 103 in embodiment 1, and are not described in detail in this embodiment.
Step S604: if third key information generated by triggering a third key is obtained within the target time period for obtaining the second key information, second combination information of the combination of the first key information, the second key information and the third key information is determined to exist in a first preset combination information set;
if the first key, the second key and the third key can be used as a combined key for convenient input, the operator needs to press the first key, the second key and the third key respectively in a short time, so that the electronic device can use the key information of the first key, the second key and the third key as combined information.
The first preset combination information set may include an information combination composed of two pieces of key information, three pieces of key information, or even more pieces of key information.
Specifically, after the first key information and the second key information are obtained, timing is started from the second key information, and whether third key information generated by a third key is obtained in a target time period is determined.
If the third key information is obtained within the target time period, it is determined whether the second combination information of the third key information, the first key information and the second key information is in the first preset combination information set, and if yes, the subsequent step S605 is executed. If not, the third key information can be ignored, and only the first key information and the second key information are combined.
Step S605: determining a second response mode of the second combined information, and responding based on the second response mode;
after the first key information, the second key information and the third key information are combined to obtain second combined information, a second response mode corresponding to the second combined information is determined, and response is carried out based on the second response mode.
For example, if the first key information is used for triggering alt key generation, the second key information is used for triggering f2 key generation, and the third key information is used for triggering q key generation, the second response mode corresponding to the combined information of the three keys is determined to be that the current page is maximized, and after the key information of the three keys is obtained, the current page is controlled to be maximized to realize response.
Step S606: if the third key information is not obtained within the target time period after the second key information is obtained, determining first combination information of the combination of the first key information and the second key information in a first preset combination information set;
if the third key information is not obtained in the target time period after the second key information is obtained, the first key information and the second key information are combined, and whether the combined information corresponding to the combination exists or not is determined in a first preset combined information set.
If it is determined that the second combination information of the combination of the first key information and the second key information exists in the first preset combination information set, it is determined that the first key information and the second key information satisfy a preset combination condition, and the subsequent step S607 is executed.
In a specific implementation, the step of not obtaining the third key information includes: and obtaining no key information, and obtaining no key information which can be combined with the first key information and the second key information to obtain second combined information.
Specifically, if no key information is obtained, the first key information and the second key information are directly combined after the target time period is reached.
Specifically, if a piece of key information is obtained, but the combination of the key information obtained from the first key information and the second key information does not belong to the first preset combination information set, the key information is ignored, and only the first key information and the second key information are combined.
Step S607: determining that the first key information and the second key information meet a preset combination condition, and determining a first response mode corresponding to the first combination information;
step S608: and responding based on the first response mode.
Wherein steps S607 to 608 are the same as steps S104 to 105 in embodiment 1, and are not described in detail in this embodiment.
In summary, the information processing method provided in this embodiment further includes: if third key information generated by triggering a third key is obtained within the target time period for obtaining the second key information, second combination information of the combination of the first key information, the second key information and the third key information is determined to exist in a first preset combination information set; determining a second response mode of the second combined information, and responding based on the second response mode; if the third key information is not obtained within the target time period after the second key information is obtained, determining first combination information of the combination of the first key information and the second key information in a first preset combination information set, and determining that the first key information and the second key information meet preset combination conditions. In this embodiment, the first state of the input device switching is controlled based on the first key information, and the first combination information composed of two pieces of key information can be responded, and the second combination information composed of three or more pieces of key information can be responded, so that the state of the input device can be switched without manually inputting the switching operation for switching the state of the input device in the input process of a plurality of key combinations.
As shown in fig. 7, a flowchart of embodiment 7 of an information processing method provided by the present application includes the following steps:
step S701: obtaining first key information generated based on triggering of a first key;
step S702: switching the state of the input device to a first state based on the first key information;
steps S701 to 702 are the same as steps S101 to 102 in embodiment 1, and are not described in detail in this embodiment.
Step S703: obtaining fourth key information for triggering fourth key generation;
and the operation body continues to input triggering operation on the input device to trigger the fourth key, and the input device generates fourth key information.
And the electronic equipment receives the fourth key information.
Step S704: determining third combined information of the combination of the first key information and the fourth key information in a second preset combined information set;
and the key information in the second preset combination information set adopts a second combination mode.
And determining whether the third combination information exists in the first preset combination information set and the second preset combination information set or not.
Specifically, the third combination information does not exist in the first preset combination information set, and the third combination information exists in the second preset combination information set.
It should be noted that the response mode of the combination information in the first preset combination information set is related to the state of the input device, and the response mode of the combination information in the second preset combination information set is not related to the state of the input device.
For example, the first key is ctrl, the fourth key is v, and the key information combination of the first key and the fourth key responds in a manner independent of the state of the input device.
Step S705: determining a third response mode of the third combined information, and responding based on the third response mode;
and determining a third response mode corresponding to the third combination information based on the corresponding relation between the preset key information combination and the response mode, and responding based on the third response mode.
For example, the first button is ctrl, the fourth button is v, and the combination of the button information of the first button and the fourth button responds by pasting, specifically pasting the information cached in the clipboard to the selected location.
In a specific implementation, the second preset combination information set may further include combination information of a plurality of pieces of key information.
Specifically, after obtaining the fourth key information for triggering the fourth key to generate, the method further includes:
if fifth key information generated by triggering a fifth key is obtained within the target time period for obtaining the fourth key information, determining that fourth combination information of the combination of the first key information, the fourth key information and the fifth key information exists in a second preset combination information set; determining a fourth response mode of the fourth combination information, and responding based on the fourth response mode;
if the fifth key information is not obtained within the target time period after the fourth key information is obtained, triggering step S704 to determine that third combination information of the combination of the first key information and the fourth key information exists in a second preset combination information set.
In a specific implementation, after it is determined that the first key information and the fourth key information are combined to obtain third combined information, or after a response is performed based on a third response mode, the state of the input device may be switched to the second state.
It should be noted that, in a specific implementation, the first key information can only be combined with other key information to obtain one type of combined information, that is, the process of combining the first key information and the fourth key information to obtain the third combined information and responding is one branch, the process of combining the first key information and the second key information to obtain the first combined information and responding is another branch, and the two branch processes cannot be executed by using the same first key information at one time, so that the subsequent steps S706-708 are not executed after step S705 is executed.
Step S706: obtaining second key information generated based on triggering a second key;
step S707: if the first key information and the second key information meet the preset combination condition, determining a first response mode corresponding to the first combination information;
step S708: and responding based on the first response mode.
Steps S706 to 708 are the same as steps S103 to 105 in embodiment 1, and are not described in detail in this embodiment.
In summary, the information processing method provided in this embodiment further includes: obtaining fourth key information generated by triggering a fourth key; determining that third combination information of the combination of the first key information and the fourth key information exists in a second preset combination information set, wherein the key information in the second preset combination information set adopts a second combination mode; and determining a third response mode of the third combined information, and responding based on the third response mode. In this embodiment, if the fourth key information is obtained after the first key information is obtained, the first key information and the fourth key information are combined to obtain third combination information in a second preset combination information set, where any combination information in the second preset combination information set is irrelevant to the state of the input device, and can respond to combination information irrelevant to the state of the input device.
As shown in fig. 8, a flowchart of embodiment 8 of an information processing method provided by the present application includes the following steps:
step S801: obtaining first key information generated based on triggering of a first key;
step S802: switching the state of the input equipment to a first state based on the first key information;
steps S801 to 802 are the same as steps S101 to 102 in embodiment 1, and are not described in detail in this embodiment.
Step S803: outputting prompt information to prompt the state of the input equipment to be switched into a first state;
and if the state of the input equipment is switched to the first state, prompting the first state.
The prompt information is output to a prompt structure arranged in the input device, such as an indicator light, and the prompt information is used for controlling the indicator light to be turned on.
The input device may be a touch screen, and the input device may be configured to output the prompt information to a display device of the electronic device, so that the display device displays prompt content to prompt that the state of the input device is switched to the first state.
And if the state of the input equipment is switched to the second state, no prompt is performed.
Step S804: obtaining second key information generated based on triggering a second key;
step S805: if the first key information and the second key information meet the preset combination condition, determining a first response mode corresponding to the first combination information;
step S806: and responding based on the first response mode.
Steps S804 to 806 are the same as steps S103 to 105 in embodiment 1, and are not described in detail in this embodiment.
In summary, the information processing method provided in this embodiment further includes: and outputting prompt information to prompt the state of the input equipment to be switched to the first state. In this embodiment, it is further prompted that the input device is switched to the first state to prompt an operator that the input device is in the first state, so that the operator can conveniently and quickly know the state of the input device.
Corresponding to the embodiment of the information processing method provided by the application, the application also provides an embodiment of a device applying the information processing method.
Fig. 9 is a schematic structural diagram of an embodiment of an information processing apparatus provided in the present application, where the apparatus includes the following structures: a first obtaining module 901, a switching module 902, a second obtaining module 903, a determining module 904 and a response module 905;
the first obtaining module 901 is configured to obtain first key information generated based on triggering a first key;
the switching module 902 is configured to switch a state of the input device to a first state based on the first key information, where the first state is used to start a target function of a target combination key;
the second obtaining module 903 is configured to obtain second key information generated based on triggering a second key;
the determining module 904 is configured to determine a first response mode corresponding to first combination information if the first key information and the second key information satisfy a preset combination condition, where 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 a first combination mode;
the response module 905 is configured to respond based on the first response mode.
Optionally, the switching module includes:
the determining unit is used for determining the current state of the input device, wherein the state comprises a first state and a second state, and the second state is different from the first state;
and the switching unit is used for responding to the received first key information and switching the state of the input equipment from the second state to the first state if the input equipment is currently in the second state.
Optionally, a preset function key is arranged in the input device, the preset function key is used for controlling the input device to maintain a first state or a second state,
the response module is also used for responding to the state of the input equipment controlled to be maintained in a second state based on the preset function key information;
correspondingly, the switching module is specifically configured to:
and responding to the received first key information, and switching the state of the input device from the second state to the first state.
Optionally, the method further includes:
the first judgment module is used for judging whether the first key information and the second key information meet a preset combination condition based on whether the key corresponding to the first key information is a first preset key; or
And the second judgment module is used for judging whether the first key information and the second key information meet preset combination conditions or not based on whether the first key information and the second key information can form preset combination key information or not, wherein the preset combination key belongs to one of target combination keys.
Optionally, the switching module is further configured to stop obtaining the first key information after switching the state of the input device to the first state based on the first key information, and control to switch the state of the input device to the second state.
Optionally, the switching module is further configured to switch the state of the input device to the second state after responding based on the first response mode.
Optionally, the method further includes:
the third obtaining module is used for obtaining third key information generated based on triggering a third key;
the determining module is further configured to obtain the third key information within a target time period for obtaining the second key information, and determine that second combination information of a combination of the first key information, the second key information, and the third key information exists in a first preset combination information set; determining a second response mode of the second combined information, and responding based on the second response mode;
the determining module is further configured to determine, if the third key information is not obtained within the target time period after the second key information is obtained, first combination information in which the first key information and the second key information are combined exists in a first preset combination information set, and determine that the first key information and the second key information satisfy a preset combination condition.
Optionally, the method further includes:
the fourth obtaining module is used for obtaining fourth key information generated by triggering a fourth key;
correspondingly, the determining module is further configured to determine that third combination information of the combination of the first key information and the fourth key information exists in a second preset combination information set, where the key information in the second preset combination information set adopts a second combination mode; determining a third response mode of the third combined information;
the response module is further configured to respond based on the third response mode.
Optionally, the method further includes:
and the output module is used for outputting prompt information to prompt that the state of the input equipment is switched to the first state.
It should be noted that, for the functional explanation of each structure in the information processing apparatus provided in this embodiment, please refer to the explanation in the foregoing method embodiment, and details are not described in this embodiment.
In summary, in the information processing apparatus provided in this embodiment, the first key information is obtained, the first key information is key information that can be combined with the second key information, and the response to the combination of the first key information and the second key information needs to be valid only based on that the state of the input device is the first state.
Corresponding to the embodiment of the information processing method provided by the application, the application also provides the electronic equipment and the readable storage medium corresponding to the information processing method.
Wherein, this electronic equipment includes: a memory, a processor;
wherein, the memory stores a processing program;
the processor is configured to load and execute the processing program stored in the memory to implement the steps of the information processing method according to any one of the above.
Specifically, the information processing method implemented by the electronic device may refer to the foregoing information processing method embodiment.
Wherein the readable storage medium has stored thereon a computer program, which is called and executed by a processor, implementing the steps of the information processing method according to any one of the preceding claims.
Specifically, the computer program stored in the readable storage medium executes the information processing method, and the information processing method embodiments described above may be referred to.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the device provided by the embodiment, the description is relatively simple because the device corresponds to the method provided by the embodiment, and the relevant points can be referred to the description of the method part.
The previous description of the provided embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended 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 (10)

1. An information processing method, comprising:
obtaining first key information generated based on triggering of a first key;
switching the state of the input equipment to a first state based on the first key information, wherein the first state is used for starting a 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 meet a preset combination condition, determining a first response mode 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 mode;
and responding based on the first response mode.
2. The method of claim 1, the switching a state of an input device to a first state based on the first key information comprising:
determining a current state of the input device, wherein the state comprises a first state and a second state, and the second state is different from the first state;
and if the input equipment is in the second state currently, responding to the received first key information, and switching the state of the input equipment from the second state to the first state.
3. The method of claim 1, wherein the input device is provided with a preset function key, and the preset function key is used for controlling the input device to maintain a first state or a second state, and the method further comprises:
responding to the state of the input device controlled to be maintained in a second state based on preset function key information;
correspondingly, the switching the state of the input device to the first state based on the first key information includes:
and responding to the received first key information, and switching the state of the input device from the second state to the first state.
4. The method of claim 1, wherein determining whether the first key information and the second key information satisfy a predetermined combination condition comprises:
judging that the first key information and the second key information meet a preset combination condition based on the fact that the key corresponding to the first key information is a first preset key; or
And judging that the first key information and the second key information meet preset combination conditions based on the fact that the first key information and the second key information can form preset combination key information, wherein the preset combination key belongs to one of target combination keys.
5. The method of claim 1, after switching the state of the input device to the first state based on the first key information, further comprising:
and stopping obtaining the first key information, and controlling to switch the state of the input equipment to a second state.
6. The method of claim 1, further comprising, after responding based on the first response mode:
and switching the state of the input device to a second state.
7. The method of claim 1, after obtaining second key information generated based on triggering the second key, further comprising:
if third key information generated by triggering a third key is obtained within the target time period for obtaining the second key information, second combination information of the combination of the first key information, the second key information and the third key information is determined to exist in a first preset combination information set; determining a second response mode of the second combined information, and responding based on the second response mode;
if the third key information is not obtained within the target time period after the second key information is obtained, determining first combination information of the combination of the first key information and the second key information in a first preset combination information set, and determining that the first key information and the second key information meet preset combination conditions.
8. The method of claim 1, after switching the state of the input device to the first state based on the first key information, further comprising:
obtaining fourth key information for triggering fourth key generation;
determining that third combined information of the first key information and the fourth key information combination exists in a second preset combined information set, wherein the key information in the second preset combined information set adopts a second combination mode;
and determining a third response mode of the third combined information, and responding based on the third response mode.
9. The method of claim 1, further comprising, after switching the state of the input device to the first state based on the first key information:
and outputting prompt information to prompt the state of the input equipment to be switched into the first state.
10. An information processing apparatus includes:
the first obtaining module is used for obtaining first key information generated based on triggering of a first key;
the switching module is used for switching the state of the input equipment to a first state based on the first key information, and the first state is used for starting a target function of a target combination key;
the second obtaining module is used for obtaining second key information generated based on triggering of a second key;
the determining module is used for determining a first response mode corresponding to first combination information if the first key information and the second key information meet preset combination conditions, 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 a first combination mode;
and the response module is used for responding based on the first response mode.
CN202211526363.XA 2022-12-01 2022-12-01 Information processing method and device Pending CN115904094A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211526363.XA CN115904094A (en) 2022-12-01 2022-12-01 Information processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211526363.XA CN115904094A (en) 2022-12-01 2022-12-01 Information processing method and device

Publications (1)

Publication Number Publication Date
CN115904094A true CN115904094A (en) 2023-04-04

Family

ID=86472661

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211526363.XA Pending CN115904094A (en) 2022-12-01 2022-12-01 Information processing method and device

Country Status (1)

Country Link
CN (1) CN115904094A (en)

Similar Documents

Publication Publication Date Title
JP5267388B2 (en) Information processing apparatus, information processing method, and program
US7721227B2 (en) Method for describing alternative actions caused by pushing a single button
CN105487707B (en) A kind of intelligent wearable device and its data inputting method
WO2019041978A1 (en) Multi-screen terminal and application display control method and device thereof
KR100722278B1 (en) Mobile communication terminal and operational method for the same
US20020161586A1 (en) Voice control module for controlling a game controller
EP2730999A1 (en) Touch operation processing method and terminal device
CN104346050A (en) Information processing method and electronic equipment
KR20100110568A (en) Method for activating function of portable terminal using user gesture in portable terminal
KR20200062368A (en) Unlocking a device by performing gestures on an unlock image
KR20080073872A (en) Mobile communication terminal with touch screen and method of inputting information using same
KR101472585B1 (en) Apparatus and method for inputting function key
CN109101118B (en) Method and device for realizing shortcut key based on character key combination
CN112188001B (en) Shortcut setting method, shortcut setting device, electronic equipment and readable storage medium
CN106227453A (en) The control method of a kind of mobile terminal and mobile terminal
CN109871133B (en) Keyboard control method and device, keyboard and computer readable storage medium
CN112162788A (en) Application starting method and device and electronic equipment
CN111782036A (en) Input method, input device, electronic equipment and storage medium
CN105183362A (en) Input method and terminal
CN103677551A (en) Information processing method and electronic device
EP3438809A1 (en) Control instruction identification method and apparatus, and storage medium
CN106598323B (en) Method and device for eliminating touch screen fault and mobile terminal
CN115904094A (en) Information processing method and device
CN107340872B (en) Key system and control method thereof
CN108228066A (en) A kind of language switching method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination