CN102314356B - Key mapping matrix processing equipment and method - Google Patents
Key mapping matrix processing equipment and method Download PDFInfo
- Publication number
- CN102314356B CN102314356B CN201010226068.3A CN201010226068A CN102314356B CN 102314356 B CN102314356 B CN 102314356B CN 201010226068 A CN201010226068 A CN 201010226068A CN 102314356 B CN102314356 B CN 102314356B
- Authority
- CN
- China
- Prior art keywords
- key
- mapping matrix
- version
- key mapping
- keyboard
- 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.)
- Active
Links
- 238000013507 mapping Methods 0.000 title claims abstract description 252
- 239000011159 matrix material Substances 0.000 title claims abstract description 232
- 238000000034 method Methods 0.000 title claims abstract description 32
- 238000012545 processing Methods 0.000 title claims abstract description 32
- 239000000725 suspension Substances 0.000 claims description 3
- 230000000977 initiatory effect Effects 0.000 claims 1
- 230000006870 function Effects 0.000 description 34
- 230000008569 process Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 239000002313 adhesive film Substances 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Landscapes
- Input From Keyboards Or The Like (AREA)
Abstract
The invention provides a key mapping matrix processing equipment and method. The equipment comprises a keyboard with a plurality of keys, a storage module, an acquisition module and a processing module, wherein the storage module is used for storing a first edition key mapping matrix and a second edition key mapping matrix corresponding to the plurality of keys of the keyboard, the first key in the plurality of keys corresponds to a first key value in the first edition key mapping matrix and corresponds to a second key value in the second edition key mapping matrix, and the first key value is different from the second key value; the acquisition module is used for acquiring a switch instruction; and the processing module is used for switching the first edition key mapping matrix into the second edition key mapping matrix according to the switching instruction. By means of the technical scheme of the invention, switching among a plurality of edition key mapping matrixes can be realized, the use habits of different users can be adapted, and the use requirements of the users can be met.
Description
Technical Field
The present invention relates to keyboard design, and is especially key mapping matrix processing device and method.
Background
Users often complain that the Fn key and the Ctrl key of the notebook computer are not suitable for the use habit of the users, so that the users often press wrong keys. Some users prefer the Ctrl key to be on the leftmost side of the keyboard, while some users prefer the Fn key to be on the leftmost side of the keyboard. At present, keys of a keyboard of a notebook computer are fixed and cannot be adjusted, however, the notebook computers of all brands have no unified regulation for the keys, so that a user finds that the keys are not matched with the original keys after replacing the notebook computer, the use of the user is inconvenient, and continuous complaints are made.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art:
in the prior art, only one key mapping matrix corresponding to a plurality of keys of a keyboard is usually used, and the actual use requirements of users are not met.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a device and a method for processing a key mapping matrix with a plurality of versions of key mapping matrices, which can switch among the key mapping matrices of a plurality of versions, adapt to the use habits of different users and meet the use requirements of the users.
To solve the above technical problem, embodiments of the present invention provide the following technical solutions:
in one aspect, an apparatus for processing a key mapping matrix is provided, and is applied to an electronic device, where the electronic device is a computer, and the apparatus includes: a keyboard having a plurality of keys; the device further comprises:
a storage module for storing a first version of key mapping matrices corresponding to the plurality of keys of the keyboard and a second version of key mapping matrices corresponding to the plurality of keys of the keyboard; wherein a first key of the plurality of keys corresponds to a first key value in the first version key mapping matrix, the first key corresponds to a second key value in the second version key mapping matrix, and the first key value is different from the second key value;
the obtaining module is used for obtaining a switching instruction;
the processing module is used for switching the first version key mapping matrix into the second version key mapping matrix according to the switching instruction;
the processing module comprises:
the first processing submodule is used for closing the first version key mapping matrix and starting the second version key mapping matrix according to the switching instruction;
the second processing submodule is used for reading the second key value from the second version key mapping matrix and executing a function corresponding to the second key value when the first key is detected to be pressed;
wherein the first key is a Ctrl key on the keyboard of the computer, and the second key is an Fn key on the keyboard of the computer; the first version key mapping matrix is a standard key mapping matrix of the system, and the second version key mapping matrix is a user-defined key mapping matrix; and the second version key mapping matrix is formed by storing a setting result, the setting result is formed by pressing a function key on the keyboard of the computer, displaying a specific shape chart of the keyboard on a display screen of the computer, wherein the shape chart comprises positions corresponding to all keys in the keyboard, selecting any key position and a key value corresponding to the key position, and storing all the keys and the corresponding key values.
Wherein the obtaining module specifically comprises:
the first obtaining submodule is used for obtaining a starting instruction set by the BIOS and entering a system setting menu of the BIOS according to the starting instruction;
and the second obtaining submodule is used for obtaining the switching instruction according to the second version key mapping matrix to be started selected from the BIOS system setting menu.
Wherein the obtaining module specifically comprises:
the third obtaining submodule is used for obtaining a calling instruction of an interrupt program in the operating state of an operating system of the electronic equipment and starting the interrupt program according to the calling instruction;
and the fourth obtaining submodule is used for obtaining the switching instruction according to the second version key mapping matrix to be started selected from a setting interface generated after the interrupt program is started.
Wherein, above-mentioned device still includes:
the suspension module is used for suspending the operating system after the third obtaining submodule starts the interrupt program and saving a first state when the operating system is suspended;
and the restoring module is used for saving the setting of the second version key mapping matrix after the processing module switches the first version key mapping matrix into the second version key mapping matrix, ending the interrupt program and restoring the operating system to the first state.
The embodiment of the present invention further provides a method for processing a key mapping matrix, which is applied to an electronic device with a keyboard having a plurality of keys, wherein the electronic device is a computer, and the method includes:
storing a first version of key mapping matrix and a second version of key mapping matrix corresponding to the plurality of keys of the keyboard; wherein a first key of the plurality of keys corresponds to a first key value in the first version key mapping matrix, the first key corresponds to a second key value in the second version key mapping matrix, and the first key value is different from the second key value;
obtaining a switching instruction; switching the first version key mapping matrix into the second version key mapping matrix according to the switching instruction;
the step of switching the first version key mapping matrix to the second version key mapping matrix according to the switching instruction comprises:
according to the switching instruction, closing the first version key mapping matrix and starting the second version key mapping matrix;
when the first key is detected to be pressed down, reading the second key value from the second version key mapping matrix, and executing a function corresponding to the second key value;
the first key is a Ctrl key on the keyboard of the computer, and the second key is an Fn key on the keyboard of the computer; the first version key mapping matrix is a standard key mapping matrix of the system, and the second version key mapping matrix is a user-defined key mapping matrix; and the second version key mapping matrix is formed by storing a setting result, the setting result is formed by pressing a function key on the keyboard of the computer, displaying a specific shape chart of the keyboard on a display screen of the computer, wherein the shape chart comprises positions corresponding to all keys in the keyboard, selecting any key position and a key value corresponding to the key position, and storing all the keys and the corresponding key values.
Wherein the step of obtaining a handover command comprises:
obtaining a starting instruction set by a BIOS, and entering a BIOS system setting menu according to the starting instruction;
and obtaining the switching instruction according to the second version key mapping matrix to be started selected from the BIOS system setting menu.
Wherein the step of obtaining a handover command comprises:
obtaining a calling instruction of an interrupt program in the operating state of an operating system of the electronic equipment, and starting the interrupt program according to the calling instruction;
and obtaining the switching instruction according to the second version key mapping matrix to be started selected from a setting interface generated after the interrupt program is started.
Wherein, after the step of starting the interrupt program, the method further comprises:
pausing the operating system and saving a first state of the operating system when paused;
the step of switching the first version key mapping matrix to the second version key mapping matrix according to the switching instruction comprises:
and saving the setting of the key mapping matrix of the second version, ending the interrupt program and restoring the operating system to the first state.
The embodiment of the invention has the following beneficial effects:
in the above solution, a first version key mapping matrix and a second version key mapping matrix are stored, wherein a first key value of a first key in the first version key mapping matrix is different from a second key value of the first key in the second version key mapping matrix; in other words, for the same keyboard, when the key mapping matrixes of different versions are started, the key values corresponding to the keys at the same position are different, so that the user can switch to the key mapping matrix required by the user according to the requirement of the user, and the use requirement of the user is met.
Drawings
FIG. 1 is a diagram illustrating a positional relationship between an Fn key and a Ctrl key of a keyboard according to an embodiment of the present invention;
fig. 2 is a flowchart of an embodiment of the method for setting keyboard keys according to the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantages to be solved by the embodiments of the present invention clearer, the following detailed description will be given with reference to the accompanying drawings and specific embodiments.
The embodiment of the invention aims at the problem that in the prior art, only one key mapping matrix corresponding to a plurality of keys of a keyboard is usually used and does not meet the actual use requirements of users; the embodiment of the invention provides electronic equipment with multiple versions of key mapping matrixes and a method for processing the key mapping matrixes, which can switch among the multiple versions of key mapping matrixes, adapt to the use habits of different users and meet the actual use requirements of the users.
Embodiments of the electronic device of the invention:
the electronic device includes: a keyboard having a plurality of keys; and
a storage module for storing a first version of key mapping matrices corresponding to the plurality of keys of the keyboard and a second version of key mapping matrices corresponding to the plurality of keys of the keyboard; wherein a first key of the plurality of keys corresponds to a first key value in the first version key mapping matrix, the first key corresponds to a second key value in the second version key mapping matrix, and the first key value is different from the second key value;
the obtaining module is used for obtaining a switching instruction;
and the processing module is used for switching the first version key mapping matrix into the second version key mapping matrix according to the switching instruction.
In the embodiment of the electronic device, the first version key mapping matrix and the second version key mapping matrix are stored in the storage module, wherein a first key value of a first key in the first version key mapping matrix is different from a second key value of the first key in the second version key mapping matrix; in other words, for the same keyboard, when the key mapping matrixes of different versions are started, the key values corresponding to the keys at the same position are different, so that the user can switch to the key mapping matrix required by the user according to the requirement of the user, and the actual use requirement of the user is met;
compared with the method that when the keyboard controller detects that the W key (of course, any other key) is pressed, the W key value corresponding to the W key is intercepted and sent to the computer, and the other key value is sent to the computer according to the corresponding relation between the W key and the other redefined key value of the W key (such as the key value corresponding to the upward arrow).
The first specific embodiment of the electronic device described above:
on the basis of other modules included in the electronic device, the obtaining module may specifically include:
the first obtaining submodule is used for obtaining a starting instruction set by the BIOS and entering a BIOS system setting menu according to the starting instruction;
and the second obtaining submodule is used for obtaining the switching instruction according to the second version key mapping matrix to be started selected from the BIOS system setting menu.
The first specific embodiment of the electronic device is mainly applied to the electronic device with the system setting menu, before the operating system of the electronic device is started, the key mapping matrixes of different versions stored in the storage module of the electronic device can be switched, that is, a user can set the key mapping matrixes of corresponding versions according to the requirements of the user before starting the electronic device.
A second specific embodiment of the electronic device described above:
on the basis of other modules included in the electronic device, the obtaining module may further specifically include:
the third obtaining submodule is used for obtaining a calling instruction of an interrupt program in the operating state of an operating system of the electronic equipment and starting the interrupt program according to the calling instruction;
and the fourth obtaining submodule is used for obtaining the switching instruction according to the second version key mapping matrix to be started selected from a setting interface generated after the interrupt program is started.
The second specific embodiment of the electronic device can be applied to any electronic device capable of running an operating system, and after the operating system of the electronic device is started, switching among key mapping matrixes of different versions can be realized by calling an interrupt program; the interrupt program may be, for example, an SMI (system management interrupt), and the interrupt program is used to suspend the operating system and save the first state when the operating system is suspended, for example, all processes and applications currently running by the operating system, or a part of processes and applications may be included, as long as a setting interface for switching key mapping matrices of different versions can be entered and switching setting is performed; therefore, the user can switch between the key mapping matrixes of different versions stored in the storage module of the electronic equipment in the running process of the operating system of the electronic equipment, namely, the user can set the key mapping matrixes of corresponding versions according to the requirement of the user after starting the electronic equipment.
On the basis of the second specific embodiment of the electronic device, the electronic device may further include:
the suspension module is used for suspending the operating system after the third obtaining submodule starts the interrupt program and saving a first state when the operating system is suspended;
and the restoring module is used for saving the setting of the second version key mapping matrix after the processing module switches the first version key mapping matrix into the second version key mapping matrix, ending the interrupt program and restoring the operating system to the first state.
Therefore, when the operation system of the electronic equipment resumes operation, the switched second version key mapping matrix can be started, so that the actual use requirements of users are met.
On the basis of all embodiments of the electronic device, the processing module may specifically include:
the first processing submodule is used for closing the first version key mapping matrix and starting the second version key mapping matrix according to the switching instruction;
and the second processing submodule is used for reading the second key value from the second version key mapping matrix and executing a function corresponding to the second key value when the first key is detected to be pressed down.
Of course, before switching, if the first key is pressed down, the processing module reads the first key value from the first version key mapping matrix, and executes a function corresponding to the first key value.
In the above embodiment of the present invention, the first version key mapping matrix and the second version key mapping matrix are not limited to be a standard mapping matrix or a self-defined key mapping matrix, for example, the first version key mapping matrix may be a standard key mapping matrix (which is not changeable under normal circumstances) of the system itself, the second version key mapping matrix may be a user-defined key mapping matrix, and the second version key mapping matrix may also be a key mapping matrix pre-stored in the system by a system designer, as long as the key values corresponding to the keys defined in the first version key mapping matrix are different; the second version key mapping matrix can also be a standard key mapping matrix carried by the system, and the first version key mapping matrix can also be a self-defined key mapping matrix;
of course, when the user can self-define the key mapping matrix, the key mapping matrix of the third version and the key mapping matrix of the fourth version … … can be provided;
the method for customizing the key mapping matrix by the user is as follows:
if the keyboard of the electronic equipment is provided with a special function key, the function of the function key can be the newly added function of the original key in the keyboard, and the function key can also be newly added on the keyboard; the method comprises the steps that a function key on a keyboard can be pressed, a specific shape diagram of the keyboard is displayed on a display screen of the electronic equipment, the shape diagram comprises positions (key positions for short) corresponding to all keys in the keyboard, a user can select any one of the key positions and select a key value corresponding to the key position, and after the user sets all the key positions and the key values, a setting result is stored, so that a new version of key position mapping matrix can be formed; when in use, the user can switch to the key mapping matrix of the customized new version.
The following describes an implementation manner of the key mapping matrix switching of the electronic device with reference to a specific example:
as shown in fig. 1, the electronic device may be a computer, and certainly may also be any electronic device having a keyboard and a certain processing capability, such as a PDA, and the like, at this time, the keyboard is a virtual keyboard, for example, a pressing operation of a key is realized in a touch manner, and a key value corresponding to the key is triggered, for example, coordinates of a user approaching or/and contacting a screen are detected through a touch screen, a key corresponding to the coordinate value is determined according to the coordinate value, and a corresponding key value is triggered. The computer body can be a notebook computer or a desktop computer; the attached figures take the first key in the keyboard of the notebook computer as the Ctrl key for explanation;
the computer includes: a keyboard having a plurality of keys; and
the storage module is used for storing a first version key mapping matrix and a second version key mapping matrix corresponding to the plurality of keys in the keyboard; wherein,
wherein a first key (e.g., Ctrl key) of the plurality of keys corresponds to a first key value (e.g., a key value that implements a Ctrl function) in the first version key location mapping matrix, the first key corresponds to a second key value (e.g., a key value that implements an Fn function) in the second version key location mapping matrix, and the first key value is different from the second key value; of course, if the first key is an Fn key, the first key corresponds to a first key value in the first version key location mapping matrix (e.g., a key value for implementing an Fn function), and the first key corresponds to a second key value in the second version key location mapping matrix (e.g., a key value for implementing a Ctrl function);
the obtaining module is used for obtaining a switching instruction;
and the processing module is used for switching the first version key mapping matrix into the second version key mapping matrix according to the switching instruction.
In the above embodiment, if the first key corresponds to the first key value in the first version mapping matrix, the second key corresponds to the second key value in the second version mapping matrix; a second key in the plurality of keys of the keyboard corresponds to the third key value in a first version mapping matrix and corresponds to a fourth key value in a second version mapping matrix; if the first key value is the same as the fourth key value, the second key value is the same as the third key value; the first key and the second key just realize function exchange;
if the Ctrl key of the notebook computer is the first key, the Fn key is the second key;
the first key value of the Ctrl key in the first version key position mapping matrix is the key value of the Ctrl function,
a second key value of the Ctrl in the second version key position mapping matrix is a key value of the Fn function;
similarly, the third key value of Fn key in the first version key mapping matrix is the key value of Fn function,
a fourth key value of the Fn key in the second version key position mapping matrix is a key value of the Ctrl function;
the key value of the Fn function of the Fn key in the first version key position mapping matrix is the same as the key value of the Fn function of the Ctrl key in the second version key position mapping matrix, and the original functions of the Fn key are realized;
similarly, the key value of the Ctrl function of the Ctrl key in the first version key location mapping matrix is the same as the key value of the Ctrl function of the Fn key in the second version key location mapping matrix, which both implements the original function of the Ctrl key;
thus, the function exchange of the Ctrl key and the Fn key is realized just after the first version key mapping matrix is switched to the second version key mapping matrix, and the user who is used to the Fn key at the leftmost side of the keyboard can be switched to the first version key mapping matrix or the second version key mapping matrix; for users who are used to Ctrl keys on the leftmost side of the keyboard, the key mapping matrix of the second version or the key mapping matrix of the first version can be switched to, and the use requirements of the users are met.
In the computer embodiment of the invention, a first version key mapping matrix and a second version key mapping matrix are arranged in a storage module, wherein the position of an Fn key in the first version key mapping matrix on a keyboard is the same as the position of a Ctrl key in the second version key mapping matrix on the keyboard; and the position of Ctrl key on the keyboard in the first version key mapping matrix is the same as the position of Fn key on the keyboard in the second version key mapping matrix, thus when the user switches from the first version key mapping matrix to the second version key mapping matrix, the functions of Fn key and Ctrl key of the keyboard are just exchanged; the proposal does not relate to other key positions on the keyboard, does not cause the key position confusion of the keyboard, and can lead a user to conveniently realize the function exchange of the Fn key and the Ctrl key of the keyboard of the notebook computer, adapt to the use habits of different users and meet the actual requirements of the user.
In the embodiment of the electronic device or the computer, the storage module may specifically be: flash memory (Flash ROM); of course, the storage module may be a storage device for other media.
Preferably, for a keyboard of a computer, the first obtaining sub-module may specifically obtain a start instruction set by the BIOS through an F2 key, and enter a system setting menu according to the start instruction;
the second obtaining submodule is used for obtaining the switching instruction according to the second version key mapping matrix to be started selected from the BIOS system setting menu;
after obtaining the switching instruction, the method may further include: saving the second version key mapping matrix after switching, specifically, F10 key can be used for saving the setting result of the second version key mapping matrix;
specifically, as shown in fig. 2, when the computer is started, pressing the F2 key enters the system setup menu, and if the F2 key is not pressed, the computer is started in the normal start mode;
after entering a system setting menu, an item whether the first version key mapping matrix and the second version key mapping matrix are exchanged or not appears;
checking whether the item is effective, if so, judging whether the current key mapping matrix is the setting that the user wants, namely if the current key mapping matrix is the original mode, not changing the key mapping matrix, and directly storing the current key mapping matrix by pressing an F10 key, if so, the current key mapping matrix is the first version key mapping matrix, and the current key mapping matrix selected by the user is still the first version key mapping matrix;
if the user wants to change the key mapping matrix, selecting the changed key mapping matrix;
pressing F10 key to save the changed setting of the mapping matrix of key position, such as saving the relevant setting of the mapping matrix of key position of the second version;
after the computer is restarted, the changed key mapping matrix will be loaded, for example, the key mapping matrix of the first version is changed into the key mapping matrix of the second version, and after the computer is restarted, the key mapping matrix of the second version will be loaded.
Correspondingly, in order to make the reloaded key position mapping matrix consistent with characters printed on each key on the keyboard, the Fn key of the keyboard is also provided with Ctrl marks, and the Ctrl key is also provided with Fn marks;
the keyboard further has an indicator light for indicating whether the current selection is the first version key mapping matrix or the second version key mapping matrix.
Of course, an overlay film may also be provided to allow the user to assign key icons themselves, if the keyboard is also equipped with: the sticking film printed with Fn characters and the sticking film printed with Ctlr characters;
the patch with the Fn characters is applied to the first version key mapping matrix at the position of the Fn key in the keyboard or the second version key mapping matrix at the position of the Fn key in the keyboard;
the adhesive film with the Ctrl characters is attached to the first version key position mapping matrix at the position of the Ctrl key in the keyboard or the second version key position mapping matrix at the position of the Ctrl key in the keyboard.
In addition, in order to enable a user to more conveniently identify the currently enabled key mapping matrix, keyboard lights can be arranged under the keys, for example, icons of Ctrl and Fn are engraved in a hollow manner on the first key, a plurality of keyboard lights are arranged under the first key, and when it is detected that the user uses the first version key mapping matrix, the keyboard lights of the part under the first key corresponding to Ctrl are lightened; and when detecting that the user uses the second version key mapping matrix, lightening a keyboard lamp of a part corresponding to Fn below the first key.
Of course, the above method for switching the key mapping matrix by using the SMI interrupt program under the operating system is also applicable to the embodiment of the computer, and specifically includes:
after the computer is started according to the normal mode, entering an operating system interface;
pressing a special function key on the keyboard, such as an F11 key or a function key (an F13 key) newly added on the keyboard, and calling an SMI interrupt program;
suspending the operating system, and saving a first state when the operating system is suspended;
entering key mapping matrix item switching interfaces of different versions;
receiving a key mapping matrix selected by a user, and saving and starting the currently selected key mapping matrix of the corresponding version;
and ending the SMI interrupt program to enable the operating system to be recovered to the first state and run normally.
The embodiment of the invention also provides a method for processing the key mapping matrix, which is applied to the electronic equipment with a keyboard with a plurality of keys, and the method comprises the following steps:
storing a first version of key mapping matrix and a second version of key mapping matrix corresponding to the plurality of keys of the keyboard; wherein a first key of the plurality of keys corresponds to a first key value in the first version key mapping matrix, the first key corresponds to a second key value in the second version key mapping matrix, and the first key value is different from the second key value;
obtaining a switching instruction;
and switching the first version key mapping matrix into the second version key mapping matrix according to the switching instruction.
Wherein the step of obtaining a handover command may include:
obtaining a starting instruction set by a BIOS, and entering a BIOS system setting menu according to the starting instruction;
and obtaining the switching instruction according to the second version key mapping matrix to be started selected from the BIOS system setting menu.
Wherein the step of obtaining a handover command may include:
obtaining a calling instruction of an interrupt program in the operating state of an operating system of the electronic equipment, and starting the interrupt program according to the calling instruction;
and obtaining the switching instruction according to the second version key mapping matrix to be started selected from a setting interface generated after the interrupt program is started.
Wherein, after the step of starting the interrupt program, the method further comprises:
pausing the operating system and saving a first state of the operating system when paused;
the step of switching the first version key mapping matrix to the second version key mapping matrix according to the switching instruction comprises:
and saving the setting of the key mapping matrix of the second version, ending the interrupt program and restoring the operating system to the first state.
Wherein the step of switching the first version key mapping matrix to the second version key mapping matrix according to the switching instruction comprises:
according to the switching instruction, closing the first version key mapping matrix and starting the second version key mapping matrix;
and when the first key is detected to be pressed down, reading the second key value from the second version key mapping matrix, and executing a function corresponding to the second key value.
In all embodiments of the method, the first version key mapping matrix and the second version key mapping matrix are stored, wherein a first key value of a first key in the first version key mapping matrix is different from a second key value of the first key in the second version key mapping matrix; in other words, for the same keyboard, when the key mapping matrixes of different versions are started, the key values corresponding to the keys at the same position are different, so that the user can switch to the key mapping matrix required by the user according to the requirement of the user, and the use requirement of the user is met; compared with the method that when the keyboard controller detects that the W key (of course, any other key) is pressed, the W key value corresponding to the W key is intercepted and sent to the computer, and the other key value is sent to the computer according to the corresponding relation between the W key and the other key value redefined by the W key.
It should be noted that all the embodiments of the electronic device and the application examples of the computer are adapted to the embodiments of the method, and the same technical effects can be achieved;
for example, for the application example of the computer, the user can customize the key positions of the Fn key and the Ctrl key according to own habits, and one key position can be defaulted when the new computer leaves a factory, but the user can change the key position by himself. On the mechanism: original printing of Fn keys and Ctrl keys is reserved, and a covering film pasting method can be provided for a user to enable the user to distribute key position icons; or Fn and Ctrl may be printed on the two keys at the same time, and the current user setting is informed by the condition of the LED indicator light. Two versions of Keyboard matrix are preset in the EC processing inside the system in a flash ROM (flash memory), and the function interchange of the Fn and the Ctrl key is realized by selecting the corresponding key mapping matrix in the starting process by judging the current user selection state. The user self-defines the key positions of the Fn key and the Ctrl key according to own habits, and the whole scheme is easy to realize.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the appended claims.
Claims (8)
1. A device for processing a key mapping matrix is applied to an electronic device, wherein the electronic device is a computer and comprises: a keyboard having a plurality of keys; characterized in that the device further comprises:
a storage module for storing a first version of key mapping matrices corresponding to the plurality of keys of the keyboard and a second version of key mapping matrices corresponding to the plurality of keys of the keyboard; wherein a first key of the plurality of keys corresponds to a first key value in the first version key mapping matrix, the first key corresponds to a second key value in the second version key mapping matrix, and the first key value is different from the second key value;
the obtaining module is used for obtaining a switching instruction;
the processing module is used for switching the first version key mapping matrix into the second version key mapping matrix according to the switching instruction;
the processing module comprises:
the first processing submodule is used for closing the first version key mapping matrix and starting the second version key mapping matrix according to the switching instruction;
the second processing submodule is used for reading the second key value from the second version key mapping matrix and executing a function corresponding to the second key value when the first key is detected to be pressed;
wherein the first key is a Ctrl key on the keyboard of the computer, and the second key is an Fn key on the keyboard of the computer; the first version key mapping matrix is a standard key mapping matrix of the system, and the second version key mapping matrix is a user-defined key mapping matrix; and the second version key mapping matrix is formed by storing a setting result, the setting result is formed by pressing a function key on the keyboard of the computer, displaying a specific shape chart of the keyboard on a display screen of the computer, wherein the shape chart comprises positions corresponding to all keys in the keyboard, selecting any key position and a key value corresponding to the key position, and storing all the keys and the corresponding key values.
2. The apparatus according to claim 1, wherein the obtaining module specifically includes:
the first obtaining submodule is used for obtaining a starting instruction set by the BIOS and entering a system setting menu of the BIOS according to the starting instruction;
and the second obtaining submodule is used for obtaining the switching instruction according to the second version key mapping matrix to be started selected from the BIOS system setting menu.
3. The apparatus according to claim 1, wherein the obtaining module specifically includes:
the third obtaining submodule is used for obtaining a calling instruction of an interrupt program in the operating state of an operating system of the electronic equipment and starting the interrupt program according to the calling instruction;
and the fourth obtaining submodule is used for obtaining the switching instruction according to the second version key mapping matrix to be started selected from a setting interface generated after the interrupt program is started.
4. The apparatus of claim 3, further comprising:
the suspension module is used for suspending the operating system after the third obtaining submodule starts the interrupt program and saving a first state when the operating system is suspended;
and the restoring module is used for saving the setting of the second version key mapping matrix after the processing module switches the first version key mapping matrix into the second version key mapping matrix, ending the interrupt program and restoring the operating system to the first state.
5. A method for processing a key mapping matrix, applied to an electronic device with a keyboard having a plurality of keys, wherein the electronic device is a computer, the method comprising:
storing a first version of key mapping matrix and a second version of key mapping matrix corresponding to the plurality of keys of the keyboard; wherein a first key of the plurality of keys corresponds to a first key value in the first version key mapping matrix, the first key corresponds to a second key value in the second version key mapping matrix, and the first key value is different from the second key value;
obtaining a switching instruction; switching the first version key mapping matrix into the second version key mapping matrix according to the switching instruction;
the step of switching the first version key mapping matrix to the second version key mapping matrix according to the switching instruction comprises:
according to the switching instruction, closing the first version key mapping matrix and starting the second version key mapping matrix;
when the first key is detected to be pressed down, reading the second key value from the second version key mapping matrix, and executing a function corresponding to the second key value;
the first key is a Ctrl key on the keyboard of the computer, and the second key is an Fn key on the keyboard of the computer; the first version key mapping matrix is a standard key mapping matrix of the system, and the second version key mapping matrix is a user-defined key mapping matrix; and the second version key mapping matrix is formed by storing a setting result, the setting result is formed by pressing a function key on the keyboard of the computer, displaying a specific shape chart of the keyboard on a display screen of the computer, wherein the shape chart comprises positions corresponding to all keys in the keyboard, selecting any key position and a key value corresponding to the key position, and storing all the keys and the corresponding key values.
6. The method of claim 5, wherein the step of obtaining a handover command comprises:
obtaining a starting instruction set by a BIOS, and entering a BIOS system setting menu according to the starting instruction;
and obtaining the switching instruction according to the second version key mapping matrix to be started selected from the BIOS system setting menu.
7. The method of claim 5, wherein the step of obtaining a handover command comprises:
obtaining a calling instruction of an interrupt program in the operating state of an operating system of the electronic equipment, and starting the interrupt program according to the calling instruction;
and obtaining the switching instruction according to the second version key mapping matrix to be started selected from a setting interface generated after the interrupt program is started.
8. The method of claim 7, wherein the step of initiating the interrupt routine further comprises:
pausing the operating system and saving a first state of the operating system when paused;
the step of switching the first version key mapping matrix to the second version key mapping matrix according to the switching instruction comprises:
and saving the setting of the key mapping matrix of the second version, ending the interrupt program and restoring the operating system to the first state.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010226068.3A CN102314356B (en) | 2010-07-06 | 2010-07-06 | Key mapping matrix processing equipment and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010226068.3A CN102314356B (en) | 2010-07-06 | 2010-07-06 | Key mapping matrix processing equipment and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102314356A CN102314356A (en) | 2012-01-11 |
CN102314356B true CN102314356B (en) | 2015-03-04 |
Family
ID=45427552
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010226068.3A Active CN102314356B (en) | 2010-07-06 | 2010-07-06 | Key mapping matrix processing equipment and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102314356B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112764704A (en) * | 2021-01-26 | 2021-05-07 | 努比亚技术有限公司 | Screen projection method and system, screen projection equipment, mobile equipment and storage medium |
CN113391708B (en) * | 2021-06-21 | 2023-08-22 | 联想长风科技(北京)有限公司 | Method for identifying different keyboard matrixes used by notebook computer |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201142056Y (en) * | 2008-01-25 | 2008-10-29 | 山东超越数控电子有限公司 | Combined keyboard shortcuts implementing device |
CN101499080A (en) * | 2008-02-01 | 2009-08-05 | 网秦无限(北京)科技有限公司 | Method and system for fast acquiring information service on mobile terminal |
CN101634899A (en) * | 2008-07-22 | 2010-01-27 | 比亚迪股份有限公司 | Method and device for keyboard response |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100682885B1 (en) * | 2003-04-23 | 2007-02-15 | 삼성전자주식회사 | Appratus and method for inputting information spatially, soft key mapping method and virtual keyboard therefor |
US7932840B2 (en) * | 2007-05-11 | 2011-04-26 | Sony Ericsson Mobile Communications Ab | Systems and methods for changing characters associated with keys |
-
2010
- 2010-07-06 CN CN201010226068.3A patent/CN102314356B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201142056Y (en) * | 2008-01-25 | 2008-10-29 | 山东超越数控电子有限公司 | Combined keyboard shortcuts implementing device |
CN101499080A (en) * | 2008-02-01 | 2009-08-05 | 网秦无限(北京)科技有限公司 | Method and system for fast acquiring information service on mobile terminal |
CN101634899A (en) * | 2008-07-22 | 2010-01-27 | 比亚迪股份有限公司 | Method and device for keyboard response |
Also Published As
Publication number | Publication date |
---|---|
CN102314356A (en) | 2012-01-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2876537B1 (en) | Power-save mode in electronic apparatus | |
US8982043B2 (en) | Electronic reader device and graphical user interface control method thereof | |
EP3032379B1 (en) | Device and method for controlling a plurality of input/output devices based on situation context | |
CN107018022B (en) | Software upgrading processing method and device and terminal | |
EP2804320B1 (en) | Button with capacitive touch in a metal body of a user device and power-saving touch key control of information to display | |
CN105373326B (en) | Data processing system and method | |
JP2002259036A (en) | Information processor, information processing method, recording medium, and program | |
CN110377141B (en) | Application processing method and device, electronic equipment and storage medium | |
CN108614655B (en) | Split screen display method and device, storage medium and electronic equipment | |
CN103902363A (en) | Electronic device supporting multiple-task switching and switching method | |
CN108039963B (en) | Container configuration method and device and storage medium | |
CN106484518B (en) | Display method and device of multi-open application and terminal | |
US8694885B2 (en) | Keyboard input method and assistant system thereof | |
KR102580327B1 (en) | Electronic device and method for cotrolling of the electronic device | |
KR20150072719A (en) | Display apparatus and control method thereof | |
WO2019019835A1 (en) | Method and device for responding to blank screen gesture, and storage medium and mobile terminal | |
CN108509020A (en) | A kind of information processing method, electronic equipment and readable storage medium storing program for executing | |
KR20160046633A (en) | Providing Method for inputting and Electronic Device | |
US20150301700A1 (en) | Portable electronic equipment and control program thereof | |
WO2014153998A1 (en) | Method for controlling process of application and computer system | |
EP2835717A2 (en) | User device and method to process sensor output using a plurality of processors | |
KR20140010593A (en) | The method and apparatus of reducing current consumption by checking e-pen inserting and picking out | |
KR20130046482A (en) | Controlling method for basic screen and portable device supporting the same | |
CN102314356B (en) | Key mapping matrix processing equipment and method | |
CN106886351B (en) | Display method and device of terminal time information and computer equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C41 | Transfer of patent application or patent right or utility model | ||
TR01 | Transfer of patent right |
Effective date of registration: 20160607 Address after: 201203 Shanghai Zhangjiang High Tech Park of Pudong New Area Chunxiao Road No. 289 Room 501 Patentee after: Lenovo (Shanghai) Information Technology Co., Ltd. Address before: 100085 Beijing, Haidian District information industry base on the road No. 6 Patentee before: Lenovo (Beijing) Co., Ltd. |