Keyboard key conflict intelligent elimination method, device and equipment

By constructing a conflict situation map and combining it with contextual semantic information to identify the membership degree of key inputs, the problem of misjudgment of key conflicts when multiple key signals overlap is solved, and intelligent recognition and accurate output of key priorities are realized, thereby improving the accuracy and fluency of keyboard input.

CN121029014AInactive Publication Date: 2025-11-28渴创技术(深圳)有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511501006.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-10-21
Publication Date
2025-11-28
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing technologies cannot intelligently distinguish between a user's true input intent and accidental touches when multiple key signals overlap, leading to key conflict and misjudgment problems, which affect input accuracy and fluency, especially in complex operation scenarios.

Method used

By acquiring the original key signals and marking them with timestamps to form a key event signal sequence, a conflict situation map is constructed. The input membership degree is identified by combining the contextual semantic information of the foreground application, an input membership degree distribution map is generated, and the signal output priority is reallocated according to the membership degree distribution map. A timing-adjustable virtual signal output queue is generated to eliminate keyboard key conflicts.

Benefits of technology

It achieves accurate recognition of key priority when multiple key signals overlap, improves the accuracy and smoothness of keyboard input, avoids conflict problems caused by multiple key signals overlapping, and ensures that high-priority key signals are output first and effectively.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121029014A_ABST
    Figure CN121029014A_ABST
Patent Text Reader

Abstract

The invention provides a method, a device and equipment for intelligently eliminating keyboard key conflicts. The method comprises the following steps: acquiring a key event signal sequence when a user uses keyboard keys; constructing a conflict situation map of a plurality of key pressing states based on the key event signal sequence; monitoring a foreground application program which is currently in a focus state, acquiring context semantic information of the foreground application program, identifying an input membership degree, belonging to real intention input of a user, of each key position in the conflict situation map under the current context based on the context semantic information, and further generating an input membership degree distribution map of a current keyboard; and according to the input membership distribution diagram, redistributing the signal output priority of each key, generating a virtual signal output queue with an adjustable time sequence, and further eliminating the conflict of the keyboard keys based on the virtual signal output queue. According to the technical scheme provided by the invention, the key priority can be identified when a plurality of key signals are overlapped.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of key conflict elimination, and more particularly to a keyboard key conflict intelligent elimination method, device and equipment. BACKGROUND

[0002] Key conflict is caused by the matrix design of keyboard circuit. In the early stage, in order to reduce the number of signal lines, the keyboard abandoned the full coding scheme and adopted horizontal and vertical line intersection to recognize the key state. This design is prone to misjudgment or partial key non-response when multiple keys are pressed at the same time due to signal intersection overlap, that is, key conflict. With the development of the game industry, complex operations require multiple keys to cooperate, and the conflict problem seriously affects the experience. Professional input scenarios also have higher requirements for key recognition accuracy.

[0003] In the existing key conflict elimination, key conflict elimination mainly focuses on hardware design and signal processing. At the hardware level, the full-key non-conflict scheme assigns an independent signal line to each key to avoid matrix intersection interference, and the multi-key non-conflict scheme optimizes the matrix layout and divides independent recognition areas. At the signal processing level, high-frequency scanning and intelligent criteria are used to improve the scanning frequency to capture transient signals, and algorithms are used to distinguish valid keys from interference signals. However, the existing key conflict processing mechanism lacks understanding of the context semantics of the application program, which makes it difficult to intelligently distinguish between user's real input intention and accidental operation when multiple key signals overlap, thereby causing misjudgment based on physical signal priority. Therefore, how to recognize the priority of keys when multiple key signals overlap has become a difficult problem in the industry. SUMMARY

[0004] The present application provides a keyboard key conflict intelligent elimination method, device and equipment, which can recognize the priority of keys when multiple key signals overlap.

[0005] In a first aspect, the present application provides a keyboard key conflict intelligent elimination method, comprising the following steps: Obtain the original key position signal when the user uses the keyboard key, and mark the timestamp of each original key position signal to form a key event signal sequence; Construct a conflict situation map of multiple key press states based on the key event signal sequence, wherein the conflict situation map is a structured map reflecting the conflict risk of multiple key presses; Monitor the foreground application currently in focus state, and obtain the context semantic information of the foreground application. Based on the context semantic information, identify the input membership degree of each key position in the conflict situation map under the current context as the user's real intention input, and then generate an input membership degree distribution map of the current keyboard; According to the input membership distribution map, the signal output priorities of each key are re-allocated to generate a time-adjustable virtual signal output queue, and then the conflict of the keyboard keys is eliminated based on the virtual signal output queue.

[0006] In some embodiments, obtaining original key position signals when a user uses the keyboard keys, and labeling each original key position signal with a timestamp to form a key event signal sequence specifically includes: Obtaining original key position signals when a user uses the keyboard keys, and generating an original key position signal stream; Attaching a timestamp label to each original key position signal in the original key position signal stream to form a time-labeled key position event unit; Arranging the key position event units in ascending order of timestamps to construct a key event signal sequence.

[0007] In some embodiments, based on the key event signal sequence, constructing a conflict situation map of multiple key press states specifically includes: Extracting all key position identifiers and corresponding timestamps from the key event signal sequence to generate a key position-time mapping relationship; Based on the key position-time mapping relationship, calculating the time overlap amount of any two original key position signals to construct a signal overlap amount matrix; Obtaining the key position connection relationship data of the keyboard hardware circuit and generating an electrical connection matrix; According to the signal overlap amount matrix and the electrical connection matrix, constructing a conflict situation map representing the multi-key press state.

[0008] In some embodiments, monitoring the foreground application currently in the focus state, and obtaining the context semantic information of the foreground application specifically includes: Obtaining the process identifier of the foreground application currently in the focus state; Based on the process identifier, calling the type attribute and running state parameter of the foreground application; Obtaining the text input field content of the current active window of the foreground application; According to the type attribute, the running state parameter and the text input field content, generating the context semantic information of the foreground application.

[0009] In some embodiments, based on the context semantic information, identifying the input membership of each key position in the conflict situation map as the user's real intention input under the current context to generate an input membership distribution map of the current keyboard specifically includes: Based on the context semantic information, constructing the user's current context features; extracting conflict situation features of each key position from the conflict situation atlas, and then constructing a conflict situation feature set; performing matching analysis on each key position according to the conflict situation features of each key position in the key position feature set and the context features, and then obtaining input membership degrees of each key position belonging to the user real intention input under the current context; mapping the input membership degrees of each key position according to the physical layout of the keyboard, and generating an input membership degree distribution map of the current keyboard.

[0010] In some embodiments, the signal output priority of each key is re-allocated according to the input membership degree distribution map, and a time-adjustable virtual signal output queue is generated, specifically including: extracting input membership degree values of each key position from the input membership degree distribution map, and generating a membership value sequence; sorting the key positions in descending order based on the membership value sequence, and constructing a key position priority set; allocating output timing parameters of each key position based on the key position priority set, and generating a virtual signal output queue.

[0011] In some embodiments, the original key position signals transmitted by the keyboard controller when the user uses the keyboard keys are obtained through the keyboard driver interface.

[0012] In a second aspect, the application provides a keyboard key conflict intelligent elimination device for executing the keyboard key conflict intelligent elimination method, which comprises a key conflict elimination unit, and the key conflict elimination unit comprises: The acquisition module is configured to acquire original key position signals when the user uses the keyboard keys, and mark a timestamp for each original key position signal to form a key event signal sequence. The processing module is configured to construct a conflict situation atlas of a plurality of key pressing states based on the key event signal sequence, and the conflict situation atlas is a structured atlas reflecting the conflict risk when a plurality of keys are pressed. The processing module is further configured to monitor a foreground application currently in a focus state, acquire context semantic information of the foreground application, identify input membership degrees of each key position in the conflict situation atlas belonging to the user real intention input under the current context based on the context semantic information, and then generate an input membership degree distribution map of the current keyboard. The execution module is configured to re-allocate signal output priorities of each key according to the input membership degree distribution map, generate a time-adjustable virtual signal output queue, and then eliminate the conflict of the keyboard keys based on the virtual signal output queue.

[0013] In a third aspect, the present application provides a computer device, comprising a memory and a processor, the memory stores a code, and the processor is configured to acquire the code and execute the keyboard key conflict intelligent elimination method.

[0014] In a fourth aspect, the present application provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the keyboard key conflict intelligent elimination method.

[0015] The technical scheme provided by the embodiments of the present application has the following beneficial effects: In the keyboard key conflict intelligent elimination method, device and equipment provided by the present application, firstly, the original key position signal when the user uses the keyboard key is acquired, and each original key position signal is marked with a time stamp to form a key event signal sequence; secondly, a conflict situation map of a plurality of key pressing states is constructed based on the key event signal sequence, and the conflict situation map is a structured map reflecting the conflict risk when a plurality of keys are pressed; then, the foreground application currently in the focus state is monitored, and the context semantic information of the foreground application is acquired, the input membership degree of each key position in the conflict situation map in the current context belonging to the user's real intention input is identified based on the context semantic information, and then an input membership degree distribution map of the current keyboard is generated; finally, the signal output priority of each key is re-allocated according to the input membership degree distribution map, a time-adjustable virtual signal output queue is generated, and then the conflict of the keyboard key is eliminated based on the virtual signal output queue.

[0016] Therefore, this application can identify key priorities when multiple key signals overlap. First, it acquires the original key signals when the user presses keys and marks them with timestamps to form a key event signal sequence. This provides basic data containing timing information for subsequent analysis of key interaction relationships, ensuring accurate tracing of the generation time of each key signal. Second, based on this sequence, it constructs a conflict situation map representing the electrical connection relationship and signal overlap degree of each key in a matrix structure. This achieves a structured integration of key hardware association and dynamic operation timing, providing an intuitive and quantitative analysis carrier for identifying conflict risks. Then, it monitors the focus foreground application and acquires its contextual semantic information. Combining this information, it identifies the input membership degree of each key in the conflict situation map and generates an input membership degree distribution map, linking the application scenario with the user... Input intent is integrated into conflict analysis, enabling intelligent judgment that combines simple signal analysis with contextual semantics. This provides a basis for distinguishing between keystrokes with genuine user intent and accidental keystrokes, avoiding key conflicts caused by the inability to intelligently distinguish between genuine user input intent and accidental keystrokes when multiple key signals overlap. Finally, the output priority of key signals is redistributed according to the input membership distribution map, and a timing-adjustable virtual signal output queue is generated. Based on this queue, keyboard key conflicts are eliminated. Timing separation and dynamic scheduling ensure that high-priority (consistent with the user's genuine intent) key signals are output effectively first, fundamentally solving the conflict problem caused by multiple keys being pressed simultaneously and improving the accuracy and smoothness of keyboard input. In summary, the technical solution provided in this application can identify key priorities when multiple key signals overlap. Attached Figure Description

[0017] Figure 1 This is an exemplary flowchart of a keyboard key conflict intelligent elimination method according to some embodiments of this application; Figure 2 This is an exemplary flowchart illustrating the determination of a conflict situation map according to some embodiments of this application; Figure 3 This is a schematic diagram of the key conflict cancellation unit shown in some embodiments of this application; Figure 4 This is a schematic diagram of the structure of a computer device that implements a keyboard key conflict intelligent elimination method according to some embodiments of this application. Detailed Implementation

[0018] To better understand the technical solution of this application, the technical solution of this application will be described in detail below with reference to the accompanying drawings and specific embodiments.

[0019] refer to Figure 1 The figure is an exemplary flowchart of a keyboard key conflict intelligent cancellation method according to some embodiments of this application. The figure mainly includes the following steps: In step S101, original key position signals when a user uses a keyboard key are acquired, and each original key position signal is marked with a timestamp to form a key event signal sequence.

[0020] In some embodiments, acquiring original key position signals when a user uses a keyboard key and marking each original key position signal with a timestamp to form a key event signal sequence is implemented by the following steps: Acquiring original key position signals when a user uses a keyboard key to generate an original key position signal stream; Attaching a timestamp mark to each original key position signal in the original key position signal stream to form a time-marked key position event unit; Arranging the key position event units in ascending order of timestamps to construct a key event signal sequence.

[0021] In a specific implementation, first, original key position signals transmitted by a keyboard controller when a user uses a keyboard key are acquired through a keyboard driver interface, and the original key position signals of each key position are combined into an original key position signal stream, which is a sequence of original key position signals directly output by the keyboard controller. The keyboard driver interface is a set of standard communication rules between an operating system and keyboard hardware, which allows a driver program to receive original key signals and report processed standard key events to the system. Second, a corresponding timestamp mark is attached to each discrete original key position signal in the original key position signal stream to form a time-marked key position event unit, which is a single original key position signal unit with a captured timestamp. The key position event unit contains key position identification information (i.e., original key position signals and key position identification, which is the encoding of the key position) and corresponding timestamp information. Finally, all time-marked key position event units are sorted in ascending order of timestamp values from small to large to obtain a key event signal sequence.

[0022] It should be noted that the key event signal sequence in this application refers to a collection of multiple time-marked key position event units arranged in time, and the determination of the key event signal sequence is the core link between data collection and subsequent conflict processing in the keyboard key conflict intelligent elimination method, which provides accurate basic data support for subsequent construction of conflict situation maps.

[0023] In step S102, a conflict situation map of multiple key press states is constructed based on the key event signal sequence, and the conflict situation map refers to a structured map reflecting the conflict risk when multiple keys are pressed.

[0024] In some embodiments, with reference to Figure 2As shown, the figure is an exemplary flow chart for determining a conflict situation map according to some embodiments of the present application. In this embodiment, the conflict situation map based on the key event signal sequence and the multiple key press states can be implemented by the following steps: In step S1021, all key position identifiers and corresponding time stamps are extracted from the key event signal sequence, and a key position-time mapping relationship is generated. In step S1022, the time overlap amount of any two original key position signals is calculated based on the key position-time mapping relationship, and a signal overlap amount matrix is constructed. In step S1023, the key position connection relationship data of the keyboard hardware circuit is obtained, and an electrical connection matrix is generated. In step S1024, the conflict situation map representing the multiple key press states is constructed according to the signal overlap amount matrix and the electrical connection matrix.

[0025] In a specific implementation, first, the key position identifier (i.e., key position number) and the corresponding timestamp contained in each key position event unit are extracted from the key event signal sequence, and the extracted key position identifier and timestamp are organized in a table form in a one-to-one correspondence relationship between the key position and the time, to generate a key position-time mapping relationship, which is a structured data table recording the correspondence between each key position identifier and its triggered timestamp, and can directly reflect the triggering time sequence of a single key position; second, based on the key position-time mapping relationship, a time interval overlap calculation method (i.e., first determine the effective time interval of each original key position signal, which is the complete time range from the generation to the termination of a single original key position signal, and then compare the overlap length of the effective time intervals of any two original key position signals, and take the overlap length as the time overlap amount) is used to calculate the time overlap amount of any two original key position signals, and the calculated pairwise key position time overlap amount is filled according to the matrix row and column rules (the rows and columns correspond to different key position identifiers, and the matrix element values are the time overlap amounts of the corresponding two key positions), to further construct a signal overlap amount matrix, which is a numerical matrix representing the time overlap degree of any two original key position signals in a matrix form; then, the hardware information interface (such as a USB descriptor reading interface) of the keyboard controller is called to obtain the connection relationship data of each key position and the scan line and column line in the internal circuit of the keyboard, the connection relationship is converted into a binary value (i.e., "1" represents an electrical connection, and "0" represents no electrical connection), and an electrical connection matrix is constructed according to the row and column correspondence rules of the signal overlap amount matrix, which is a binary matrix representing the hardware circuit connection relationship between the key positions in a matrix form, and can reflect the electrical correlation of the original key position signal transmission; finally, the signal overlap degree in the signal overlap amount matrix is compressed to between 0 and 1 through min-max normalization, the normalized signal overlap degree is multiplied by the binary value of the electrical connection matrix, and the multiplication result is taken as the conflict situation value, which represents the degree value of the conflict of the key positions, and all conflict situation values are arranged according to the physical layout of the key positions, to further construct a conflict situation spectrum representing the multi-key pressing state. Specifically, when an element in the electrical connection matrix is 0 (indicating that there is no electrical connection between the two key positions), the multiplication result is 0 regardless of the value of the corresponding element in the signal overlap amount matrix, indicating that there is no substantial conflict possibility between the two key positions due to no hardware association; when an element in the electrical connection matrix is 1 (indicating that there is an electrical connection between the two key positions), the multiplication result is equal to the normalized value of the signal overlap amount matrix, which directly reflects the time overlap degree of the two key positions based on the hardware connection, and the higher the value, the greater the conflict risk.

[0026] It should be noted that the conflict situation map in the present application refers to a structured map reflecting the conflict risk of multiple key presses. Through determination of the conflict situation map, the "conflict scene quantitative characterization" and "subsequent decision anchor point" are provided for intelligent elimination of keyboard key conflict. By converting the abstract electrical connection relationship between keys and dynamic time overlap information into a structured and visualized map form, the originally dispersed hardware circuit characteristics (such as whether the key positions are electrically associated) and user operation timing characteristics (such as the overlap degree of multi-key pressing) are organically integrated, and the conflict risk level of each key position pair is clearly presented, thereby providing an intuitive analysis basis for subsequent accurate identification of conflict scenes. At the same time, the conflict situation map converts the complex multi-key interaction relationship into a quantifiable and traceable data structure through matrix fusion and visualization processing, avoiding the analysis one-sidedness caused by relying only on hardware circuit or single timing information in traditional conflict elimination, and ensuring that the subsequent combination of foreground application context semantic recognition of user real intention can accurately focus on the key position combination with actual conflict risk, rather than invalid key position pairs without hardware association or low overlap degree.

[0027] In step S103, the foreground application currently in the focus state is monitored, and the context semantic information of the foreground application is obtained. Based on the context semantic information, the input membership degree of each key position in the conflict situation map under the current context belonging to the user real intention input is identified, and then the input membership degree distribution map of the current keyboard is generated.

[0028] In some embodiments, monitoring the foreground application currently in the focus state and obtaining the context semantic information of the foreground application are implemented by the following steps: obtaining the process identifier of the foreground application currently in the focus state; calling the type attribute and running state parameter of the foreground application based on the process identifier; obtaining the text input field content of the current active window of the foreground application; generating the context semantic information of the foreground application according to the type attribute, the running state parameter and the text input field content.

[0029] It should be noted that the focus state in the present application refers to a special state of an application or window in a computer operating system that can currently receive user input (such as keyboard input, mouse click operation, etc.). The application or window in this state will respond to user interaction instructions preferentially, while other applications or windows not in the focus state cannot directly receive user input temporarily.

[0030] In practice, the process identifier (i.e., Process ID) of the foreground application currently holding input focus is first obtained by calling the focus process query interface provided by the operating system kernel (such as the GetForegroundWindow function in Windows). The process identifier (PID) is a unique numerical identifier assigned by the operating system to each running application, used to distinguish different processes and manage and control them. Secondly, based on the obtained process identifier, the operating system's process information query interface (such as Windows' OpenProcess function) is called to extract the foreground application's type attributes (such as the application's category, whether it's a text editor, browser, or game) and running status parameters (such as the CPU resources used by the process, memory usage, and whether it is currently in an active interactive state). The type attributes refer to characteristic information describing the application's usage scenario, and the running status parameters refer to status information reflecting the application's real-time running status. Then, the window information interface of the foreground application (such as Windows' SendMessage function) is used to capture the text content already entered in the text input field (such as the editing area of ​​a text editor, the search box of a browser, or a form input box) of the currently active window of the foreground application, obtaining the text input field content. The text input field content refers to the characters already entered by the user in the interactive text input area of ​​the application. Finally, the extracted type attributes, running status parameters, and text input field content are combined according to a structured document format to obtain the contextual semantic information of the foreground application.

[0031] It should be noted that, in this application, contextual semantic information refers to comprehensive information that characterizes the usage scenario of the foreground application and the user's input intent. By determining the contextual semantic information, a key contextual basis can be provided for the subsequent accurate identification of the user's keyboard input intent. It is the core bridge connecting the foreground application scenario and the key conflict elimination decision. In addition, contextual semantic information can provide contextual weights for the calculation of the "input membership" of each key in the conflict situation map, so that the membership evaluation is no longer limited to the temporal overlap or electrical connection of key signals, but adjusts the evaluation logic in combination with the characteristics of the application scenario (such as the priority of combination keys is higher than that of single letter keys in a game scenario), so as to ensure that the identified "user's true intent key" is more in line with the current operation requirements.

[0032] In some embodiments, the following steps are used to identify the input membership degree of each key in the conflict situation map based on the contextual semantic information, which belongs to the user's true intention input in the current context, and then generate the input membership degree distribution map of the current keyboard: Construct the user's current contextual features based on the aforementioned contextual semantic information; extracting conflict situation features of each key position from the conflict situation map, and then constructing a conflict situation feature set; performing matching analysis on each key position according to the conflict situation features of each key position in the key position feature set and the context features, and then obtaining input membership degrees of each key position belonging to the user real intention input under the current context; mapping the input membership degrees of each key position according to the keyboard physical layout to generate an input membership degree distribution map of the current keyboard.

[0033] In specific implementation, first, the key words in the context semantic information are converted into feature word vectors by using the existing bag-of-words model, and the feature word vectors are taken as the context features of the user, which are feature vectors used to represent the current user input scene; second, the conflict situation features corresponding to each key position are extracted from the matrix structure of the conflict situation map (i.e., the conflict situation features are conflict situation vectors corresponding to each key position, and the conflict situation vectors are horizontal vectors corresponding to each key position in the conflict situation map), and all the conflict situation features are combined into a conflict situation feature set; third, the conflict situation features are converted into 32-dimensional hardware feature vectors by principal component analysis (PCA), the context features are converted into 32-dimensional semantic feature vectors by a word vector model (Word2Vec), and then the attention mechanism is used to assign weights to the two types of vectors (hardware feature weight 0.6 and semantic feature weight 0.4), and then the cosine of the included angle between each hardware feature vector and the semantic feature vector after weight assignment is calculated by cosine similarity, and the cosine of the included angle is taken as the input membership degree of the corresponding key position belonging to the user real intention input under the current context, wherein, when calculating the cosine of the included angle between the hardware feature vector and the semantic feature vector, the two vectors are normalized by using the existing normalization algorithm, and the input membership degree is a quantitative value representing the degree of matching between the key position and the user's current input intention, specifically, the hardware vector reflects the key position conflict characteristics, the semantic vector reflects the scene input demand, and the more consistent the two directions (the closer the cosine value is to 1), the more the key position meets the user's real intention, and the cosine similarity is not sensitive to the length of the vector, which can avoid the interference of the difference in the magnitude of the two types of feature values, and after weight assignment, the influence of hardware conflict and scene semantics can be balanced, and finally a quantitative index directly representing the matching degree between the key position and the user's intention is formed; and finally, the input membership degrees of each key position are one-to-one mapped with the corresponding physical key position according to the keyboard physical layout (such as the key position arrangement order of a standard 104-key keyboard) to generate an input membership degree distribution map of the current keyboard.

[0034] It should be noted that the input membership degree distribution map in the present application refers to a structured map reflecting the degree of coincidence of each key position with the user's real input intention. By determining the input membership degree distribution map, the abstract user input intention is converted into a visualized quantified map directly associated with the physical layout of the keyboard. The distribution map clearly distinguishes the priority differences of each key position in the conflict situation by assigning each key position with an accurate input membership degree value (the higher the value, the more the key position coincides with the user's real input intention), which provides an intuitive basis for subsequent signal output priority redistribution, ensures that high membership degree key positions are preferentially responded by the system, and fundamentally realizes "eliminating conflicts according to user's real intention" rather than mechanical signal filtering, finally balances input efficiency and operation accuracy, and improves the intelligent level of keyboard interaction.

[0035] In step S104, the signal output priority of each key is redistributed according to the input membership degree distribution map, a time-adjustable virtual signal output queue is generated, and the conflict of the keyboard keys is eliminated based on the virtual signal output queue.

[0036] In some embodiments, the signal output priority of each key is redistributed according to the input membership degree distribution map to generate a time-adjustable virtual signal output queue, which is specifically implemented by the following steps: Extract the input membership degree value of each key position from the input membership degree distribution map to generate a membership degree value sequence; Sort the key positions in descending order based on the membership degree value sequence to construct a key position priority set; Assign output timing parameters to each key position based on the key position priority set to generate a virtual signal output queue.

[0037] In a specific implementation, first, the input membership value corresponding to each key position is read from the input membership distribution map, and the physical identification (such as "space bar" and "Enter key") of the key position is arranged in a corresponding relationship with the input membership value to generate a membership value sequence, which is an ordered data set containing all key physical identifications and corresponding input membership values. Second, all key positions are sorted from high to low based on the membership value sequence, and the sorting result is combined in the structure of "priority number-key identification" to construct a key position priority set, which is a list of key priorities arranged in descending order of input membership values, used to determine the relative output order of each key. Finally, according to the key position priority set, the highest priority key position is assigned as the output starting point at the current time, and the subsequent key positions are dynamically assigned time intervals in increasing order of priority (the dynamic time interval can be dynamically changed to an interval composed of the minimum time and maximum time of the user's historical key pressing), and then the specific output starting time and interval time are assigned to each key position. The output starting time, interval time, and key identification (i.e., the code of the key position) are organized in a chain data structure in the order of output to generate a virtual signal output queue.

[0038] It should be noted that the virtual signal output queue in this application refers to a signal scheduling sequence that can adjust the output order and time of key positions according to priority. By determining the virtual signal output queue, a "time-sequenced signal scheduling scheme" is provided for the final elimination of keyboard key conflicts, which is a key execution link connecting input intent recognition and effective output of actual key signals. Its core function is to convert the quantified user intent in the input membership distribution map into a signal output rule that can be directly executed by a computer system, thereby fundamentally avoiding circuit conflicts or system misjudgments caused by simultaneous transmission of multiple key signals.

[0039] In some embodiments, the elimination of keyboard key conflicts based on the virtual signal output queue is implemented by the following steps: Perform time-sequenced separation processing on the original key position signals output by the keyboard controller based on the virtual signal output queue to generate a time-sharing signal stream; Push the key signals in the time-sharing signal stream to the key input buffer; Real-time monitor the signal reception state of the key input buffer and dynamically adjust the push interval of the time-sharing signal stream to eliminate conflicts.

[0040] In a specific implementation, first, the output timing parameters (i.e., start time and time interval) of each key position in the virtual signal output queue are read, and the original key position signals (mixed signals of multiple keys triggered simultaneously) transmitted by the keyboard controller in real time are sequentially intercepted according to the timing set in the virtual signal output queue, so that the originally overlapped key signals are separated in the time dimension, forming a signal sequence arranged in a sequence without time overlap, and a time-sharing signal stream is generated. The time-sharing signal stream refers to an ordered and non-overlapping single key position signal sequence formed by separating the original key signals triggered simultaneously by multiple keys according to the preset timing. Second, the single key position signals in the time-sharing signal stream are pushed to the key input buffer one by one in the generation order, so that each key position signal can be received in sequence by the key input buffer, avoiding signal loss or out-of-order. The key input buffer refers to a memory area in the computer system for temporarily storing keyboard input signals, which is responsible for temporarily storing key signals and waiting for subsequent processing modules to read. Finally, the signal receiving state of the key input buffer is obtained in real time. If it is monitored that the key input buffer is stacked (indicating that the pushing interval is too short) or idle (indicating that the pushing interval is too long), a timing adjustment algorithm (i.e., dynamically increasing or decreasing the pushing time interval based on the current load of the key input buffer, lengthening the pushing time interval when the load is too high, and shortening the pushing time interval when the load is too low) is called to dynamically correct the pushing time interval of the time-sharing signal stream, so that the key signal pushing rate matches the processing capacity of the key input buffer, and finally the elimination of keyboard key conflicts is realized.

[0041] It should be noted that the elimination of keyboard key conflicts in the present application refers to the elimination of recognition errors or circuit interference caused by simultaneous transmission of multiple key signals through timing separation and dynamic scheduling, so as to ensure the effective output of user intention key position signals.

[0042] In addition, another aspect of the present application, in some embodiments, the present application provides a keyboard key conflict intelligent elimination device, which comprises a key conflict elimination unit, which is described with reference to Figure 3 The figure is a structural schematic diagram of a key conflict elimination unit according to some embodiments of the present application, which comprises an acquisition module 201, a processing module 202 and an execution module 203, which are described as follows: The acquisition module 201 is mainly used for acquiring the original key position signals when the user uses the keyboard keys, and marking a timestamp for each original key position signal to form a key event signal sequence. The processing module 202 is mainly used for constructing a conflict situation map of multiple key pressing states based on the key event signal sequence. The conflict situation map refers to a structured map reflecting the conflict risk when multiple keys are pressed. The processing module 202 is further configured to monitor a foreground application currently in a focus state, acquire context semantic information of the foreground application, identify, based on the context semantic information, an input membership degree of each key position in the conflict situation graph belonging to a user real intention input under a current context, and further generate an input membership degree distribution graph of a current keyboard. The execution module 203 is mainly configured to reassign a signal output priority of each key according to the input membership degree distribution graph, generate a time-adjustable virtual signal output queue, and further eliminate the conflict of the keyboard keys based on the virtual signal output queue.

[0043] In addition, the present application further provides a computer device, which comprises a memory and a processor, the memory stores code, and the processor is configured to acquire the code and execute the above-mentioned keyboard key conflict intelligent elimination method.

[0044] In some embodiments, with reference to Figure 4 The figure is a structural schematic diagram of a computer device for implementing the keyboard key conflict intelligent elimination method according to some embodiments of the present application. The keyboard key conflict intelligent elimination method in the above-mentioned embodiments can be implemented by the computer device shown in the figure, which comprises at least one processor 301, a communication bus 302, a memory 303, and at least one communication interface 304. Figure 4 The processor 301 can be a general central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more circuits for controlling the execution of the keyboard key conflict intelligent elimination method in the present application.

[0045] The processor 301 can be a general central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more circuits for controlling the execution of the keyboard key conflict intelligent elimination method in the present application.

[0046] The communication bus 302 can be used to transmit information between the above-mentioned components.

[0047] The memory 303 can be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM), or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disk storage, a magnetic disk storage or other magnetic storage devices, or any other medium capable of storing desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to this. The memory 303 can exist independently, and is connected to the processor 301 through the communication bus 302. The memory 303 can also be integrated with the processor 301.

[0048] The memory 303 is configured to store program codes for implementing the solutions of the present application, and the processor 301 is configured to control the execution. The processor 301 is configured to execute the program codes stored in the memory 303. The program codes can include one or more software modules. The determination of the keyboard key conflict intelligent elimination method in the above embodiments can be implemented by one or more software modules in the program codes of the processor 301 and the memory 303.

[0049] The communication interface 304 is configured to communicate with other devices or communication networks, such as an Ethernet, a radio access network (RAN), a wireless local area network (WLAN), etc., using any transceiver-like device.

[0050] In a specific implementation, as an embodiment, the computer device can include a plurality of processors, each of which can be a single-CPU processor or a multi-CPU processor. The processor herein can refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0051] The computer device described above can be a general-purpose computer device or a special-purpose computer device. In a specific implementation, the computer device can be a desktop computer, a laptop computer, a network server, a personal digital assistant (PDA), a mobile phone, a tablet computer, a wireless terminal device, a communication device, or an embedded device. The embodiments of the present application do not limit the type of the computer device.

[0052] In addition, the present application also provides a computer readable storage medium, which stores a computer program. The computer program is executed by a processor to implement the keyboard key conflict intelligent elimination method described above.

[0053] Although the preferred embodiments of the present application have been described, those skilled in the art who are informed of the basic inventive concept can make additional changes and modifications to the embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0054] Obviously, those skilled in the art can make various modifications and variations to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application also intends to include these modifications and variations.

Claims

1. A method for intelligently eliminating keyboard key conflicts, characterized in that, Includes the following steps: Acquire the raw key signals when the user presses keys on the keyboard, and mark each raw key signal with a timestamp to form a key event signal sequence; Based on the key event signal sequence, a conflict situation map of multiple key press states is constructed. The conflict situation map refers to a structured map that reflects the risk of conflict when multiple keys are pressed. Monitor the foreground application currently in focus and obtain the contextual semantic information of the foreground application. Based on the contextual semantic information, identify the input membership degree of each key position in the conflict situation map in the current context as belonging to the user's true intention input, and then generate the input membership degree distribution map of the current keyboard. The signal output priority of each key is redistributed according to the input membership distribution map to generate a timing-adjustable virtual signal output queue, and then the keyboard key conflict is eliminated based on the virtual signal output queue.

2. The method as described in claim 1, characterized in that, Acquiring the raw key signals when the user presses keys on the keyboard, and marking each raw key signal with a timestamp to form a key event signal sequence, specifically includes: Acquire the raw key signals when the user presses keys on the keyboard, and generate the raw key signal stream; A timestamp is added to each original key signal in the original key signal stream to form a time-stamped key event unit; The key event units are arranged in ascending order of timestamp to construct the key event signal sequence.

3. The method as described in claim 1, characterized in that, Constructing a conflict situation map of multiple key press states based on the key event signal sequence specifically includes: Extract all key identifiers and corresponding timestamps from the key event signal sequence, and then generate a key-time mapping relationship; Based on the key-time mapping relationship, the time overlap of any two original key signals is calculated, and then the signal overlap matrix is ​​constructed. Obtain the key connection relationship data of the keyboard hardware circuit and generate an electrical connection matrix; A conflict situation map representing the multi-key pressed state is constructed based on the signal overlap matrix and the electrical connection matrix.

4. The method as described in claim 1, characterized in that, Monitoring the foreground application currently in focus and obtaining the contextual semantic information of the foreground application specifically includes: Get the process ID of the foreground application that is currently in focus; The foreground application's type attributes and running status parameters are invoked based on the process identifier; Get the text input field content of the currently active window of the foreground application; The contextual semantic information of the foreground application is generated based on the type attribute, the running status parameters, and the text input field content.

5. The method as described in claim 1, characterized in that, Based on the contextual semantic information, the input membership degree of each key in the conflict situation map is identified as belonging to the user's true intention input in the current context, and then an input membership degree distribution map of the current keyboard is generated, specifically including: Construct the user's current contextual features based on the aforementioned contextual semantic information; The conflict situation features of each key position are extracted from the conflict situation map, and then a conflict situation feature set is constructed. Based on the conflict situation features of each key in the key feature set and the context features, a matching analysis of the user's true intention input is performed on each key, thereby obtaining the input membership degree of each key in the current context as belonging to the user's true intention input. The keyboard physical layout is used to map the input membership degree of each key position, generating an input membership degree distribution map of the current keyboard.

6. The method as described in claim 1, characterized in that, The signal output priority of each button is reallocated according to the input membership distribution diagram to generate a timing-adjustable virtual signal output queue, specifically including: Extract the input membership values ​​of each key position from the input membership distribution map to generate a membership value sequence; The key positions are sorted in descending order based on the membership degree numerical sequence to construct a key position priority set. Based on the key priority set, the output timing parameters of each key are allocated, and a virtual signal output queue is generated.

7. The method as described in claim 1, characterized in that, The keyboard driver interface is used to obtain the raw key signals transmitted by the keyboard controller when the user presses the keyboard keys.

8. A keyboard key conflict intelligent cancellation device, used to execute the keyboard key conflict intelligent cancellation method as described in any one of claims 1 to 7, the keyboard key conflict intelligent cancellation device comprising a key conflict cancellation unit, characterized in that, The key conflict cancellation unit includes: The acquisition module is used to acquire the raw key signals when the user presses the keyboard, and to mark each raw key signal with a timestamp to form a key event signal sequence; The processing module is used to construct a conflict situation map of multiple key press states based on the key event signal sequence. The conflict situation map refers to a structured map that reflects the risk of conflict when multiple keys are pressed. The processing module is also used to monitor the foreground application currently in focus and obtain the contextual semantic information of the foreground application. Based on the contextual semantic information, it identifies the input membership degree of each key position in the conflict situation map in the current context as belonging to the user's true intention input, and then generates the input membership degree distribution map of the current keyboard. The execution module is used to redistribute the signal output priority of each key according to the input membership distribution map, generate a timing-adjustable virtual signal output queue, and then eliminate keyboard key conflicts based on the virtual signal output queue.

9. A computer device, characterized in that, The computer device includes a memory and a processor, the memory storing code, and the processor being configured to retrieve the code and execute the keyboard key conflict intelligent elimination method as described in any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the keyboard key conflict intelligent elimination method as described in any one of claims 1 to 7.