CN111208912B - Input method and device - Google Patents
Input method and device Download PDFInfo
- Publication number
- CN111208912B CN111208912B CN201911424285.0A CN201911424285A CN111208912B CN 111208912 B CN111208912 B CN 111208912B CN 201911424285 A CN201911424285 A CN 201911424285A CN 111208912 B CN111208912 B CN 111208912B
- Authority
- CN
- China
- Prior art keywords
- key
- combination
- key code
- function
- combination information
- 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
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/02—Input arrangements using manually operated switches, e.g. using keyboards or dials
- G06F3/023—Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Input From Keyboards Or The Like (AREA)
Abstract
The invention discloses an input method, which comprises the following steps: obtaining a key input combination signal, wherein the key input combination signal carries first key code combination information; the first key code combination information includes key codes corresponding to at least two keys; and executing a first combined function corresponding to the first key code combination information under the condition that the first key code combination information comprises a multifunctional key code, wherein the first combined function comprises an object adjusting function corresponding to the multifunctional key code. The invention also discloses an input device.
Description
Technical Field
The invention relates to an information input technology, in particular to an input method and input equipment.
Background
While a user uses a combination key (e.g., Ctrl key + different key combination) on an input device (e.g., a keyboard) to implement different combination functions, if another control is to be performed on a target object, another input device (e.g., a mouse) or a specific key needs to be reused, but according to a difference in a positional relationship between the specific key or the other input device and the combination key, the user needs to switch back and forth between the specific key or the other input device and the combination key, which seriously affects the work efficiency of the user.
Disclosure of Invention
In view of this, embodiments of the present invention are expected to provide an input method and device, which can improve the working efficiency of users.
The technical scheme of the embodiment of the invention is realized as follows:
according to an aspect of an embodiment of the present invention, there is provided an input method, the method including:
obtaining a key input combination signal, wherein the key input combination signal carries first key code combination information; the first key code combination information includes key codes corresponding to at least two keys;
and executing a first function corresponding to the first key code combination information under the condition that the first key code combination information comprises a multifunctional key code, wherein the first function comprises an object adjusting function corresponding to the multifunctional key code.
In the foregoing solution, before the obtaining the key input combination signal, the method further includes:
establishing a first key code combination function library, wherein a plurality of groups of key code combination information and the mapping relation of each function are stored in the first key code combination function library, and each group of key code combination information comprises the multifunctional key code;
the executing the first function corresponding to the first key code combination information includes:
and inquiring the first key code combination function library based on the first key code combination information, obtaining a first function corresponding to the first key code combination information, and executing the first function.
In the foregoing solution, before executing the first function corresponding to the first key combination information, the method further includes:
acquiring the times of detecting the key input combination signal within a preset time length;
or obtaining the voltage change frequency corresponding to the key input combination signal within a preset time length;
or voltage change characteristic data corresponding to the key input combination signal is obtained within a preset time length, and the voltage change characteristic data represents the continuity of voltage change and the magnitude trend of the voltage change;
determining a first operation type corresponding to the key input combination signal based on the times or the voltage change frequency or the voltage change characteristic data;
and determining a first function corresponding to the first key code combination information based on the first operation type.
In the foregoing solution, before the obtaining the key input combination signal, the method further includes:
establishing a second key code combination function library, wherein a plurality of groups of key code combination information, each operation type and the mapping relation of each function are stored in the second key code combination function library, and each group of key code combination information comprises the multifunctional key code;
the executing the first function corresponding to the first key code combination information includes:
and querying the second key code combination function library based on the first key code combination information and the first operation type, obtaining first functions corresponding to the first key code combination information and the first operation type, and executing the first functions.
In the foregoing solution, in the case that it is determined that the key combination information includes a multifunctional key, the method further includes:
shielding second functions corresponding to other key code combination information; the other key combination information does not include the multifunction key.
According to another aspect of an embodiment of the present invention, there is provided an input apparatus including:
the key input combination signal is carried with first key code combination information; the first key code combination information includes key codes corresponding to at least two keys;
and the execution unit is used for executing a first function corresponding to the first key code combination information under the condition that the first key code combination information comprises a multifunctional key code, wherein the first function comprises an object adjusting function corresponding to the multifunctional key code.
In the above solution, the apparatus further includes:
the first establishing unit is used for establishing a first key code combination function library, wherein a plurality of groups of key code combination information and the mapping relation of each function are stored in the first key code combination function library, and each group of key code combination information comprises the multifunctional key code;
the obtaining unit is further configured to query the first key combination function library based on the first key combination information to obtain a first function corresponding to the first key combination information.
In the above scheme, the method is further configured to obtain the number of times of detecting the key input combination signal within a preset time length; or obtaining the voltage change frequency corresponding to the key input combination signal within a preset time length; or voltage change characteristic data corresponding to the key input combination signal is obtained within a preset time length, and the voltage change characteristic data represents the continuity of voltage change and the magnitude trend of the voltage change; and the first function corresponding to the first key code combination information is obtained based on the first operation type corresponding to the key input combination signal determined by the times, the voltage change frequency or the voltage change characteristic data.
In the above solution, the apparatus further includes:
a second establishing unit, configured to establish a second key combination function library, where multiple groups of key combination information, operation types, and mapping relationships of functions are stored in the second key combination function library, and each group of key combination information includes the multifunctional key;
the obtaining unit is further configured to query the second key combination function library based on the first key combination information and the first operation type, and obtain a first function corresponding to both the first key combination information and the first operation type.
According to a third aspect of embodiments of the present invention, there is provided an input apparatus, the apparatus including: a memory and a processor;
wherein the memory is to store a computer program operable on the processor;
the processor is configured to perform the steps of any of the above methods when the computer program is run.
According to the input method and the input device provided by the embodiment of the invention, a key input combined signal is obtained, and the key input combined signal carries first key code combined information; the first key code combination information includes key codes corresponding to at least two keys; and executing a first function corresponding to the first key code combination information under the condition that the first key code combination information comprises a multifunctional key code, wherein the first function comprises an object adjusting function corresponding to the multifunctional key code. Therefore, the function of adjusting the corresponding object of the multifunctional key can be realized through the key combination comprising the multifunctional key, and other functions can be realized, so that the time for repeatedly switching among a plurality of keys by a user is reduced, and the working efficiency of the user is greatly improved.
Drawings
Fig. 1 is a schematic flow chart illustrating an implementation of an input method in the present application;
FIG. 2 is a first schematic diagram illustrating the structure of an input device according to the present application;
fig. 3 is a schematic structural diagram of an input device in the present application.
Detailed Description
The following detailed description of embodiments of the invention refers to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present invention, are intended for purposes of illustration and explanation only and are not intended to limit the scope of the invention.
Fig. 1 is a schematic diagram of an implementation flow of an input method in the present application, and as shown in fig. 1, the method includes:
in this application, the method is mainly applied to an input device, and the input device includes: keyboard, mouse, tablet, gamepad, plotter, etc. The present application is described in detail below with reference to a keyboard as an example.
When a user triggers a key combination on the input device to realize a certain function, the input device can receive a key input combination signal corresponding to the key combination, and the key input combination signal carries first key code combination information, wherein the first key code combination information comprises key codes corresponding to at least two keys.
The input device can determine a key combination corresponding to the key input signal based on the first key code combination information carried in the key input combination signal.
Specifically, the input device may match the first key code combination information with key code information of each key on the input device, and determine, according to a matching result, at least two target keys corresponding to at least two pieces of target key code information that are successfully matched as a key combination corresponding to the key combination signal.
For example, when a user starts drawing software on the electronic device and presses the Ctrl key + C key on the keyboard, the keyboard can receive a key input combination signal corresponding to the Ctrl key + C key combination, and according to a matching result of key code combination information of the Ctrl key and the C key carried in the key input combination signal and key code information of each key on the keyboard, it can be obtained that the key combination corresponding to the key code combination information is the Ctrl key and the C key. At this time, a combination signal may be input in response to the key to implement the user's copying of the currently selected content in the mapping software. If the user wants to adjust the size of the picture in the drawing software, the user needs to press the Dial key on the keyboard again, or the user needs to adjust the size parameter of the picture to be adjusted from the menu bar of the current display interface through the mouse. Obviously, the process of switching back and forth between the Ctrl + C key and the Dial key by the user, or switching between the Ctrl + C key and the menu bar of the current display interface is very complicated and inefficient.
The method and the device replace a Ctrl key with a Dial key, when a user needs to copy or cut a target image in drawing software, the method and the device can be realized by pressing the Dial key + C key or the Dial key + V key, if the user needs to adjust the attribute parameters of the target image at the moment, the method and the device can be realized by the Dial key, namely, the copying or cutting of the target image can be realized by pressing and/or rotating the Dial key, the attribute adjustment of the target image can also be realized, the process that the user needs to switch back and forth among a plurality of keys is reduced, and therefore the working efficiency and the memory efficiency of key combination can be improved.
In the application, after obtaining the key combination corresponding to the first key combination signal, the input device further determines that the first key combination information includes the multifunctional key when it is determined according to the matching result that the key code information of at least one key in the key combination is successfully matched with the key code information of the multifunctional key or when it is determined that the key code information of each key in the key combination is successfully matched with the key code information of the multifunctional key. At this time, the input device may query the first key combination function library based on the first key combination information, and obtain the first function corresponding to the first key combination information based on the mapping relationship between the multiple sets of key combination information stored in the first key combination function library and each function.
Here, the multi-function key is included in each set of key combination information stored in the first key combination function library. Thus, the corresponding function is realized based on the key combination information including the multi-functional key, which can reduce the cumbersome process of repeatedly switching among a plurality of keys, thereby improving the input efficiency.
In the application, the input device may establish a request by receiving a key combination triggered by a user, obtain, based on the request, multi-function key code information of a multi-function key and target key code information of a target key combined with the multi-function key to form key combination information, and then establish, based on input information of the user, a mapping relationship between the key combination information and a target function to form the first key code combination function library.
Of course, the first key code combination function library may be established before the input device is shipped.
In this application, the first key combination function library may be a function library stored in the windows operating system, or a function library stored in a system next to the windows operating system.
Here, the next system of the windows operating system refers to a sub operating system of a plurality of applications installed in the windows operating system. For example, an operating system corresponding to office software, an operating system corresponding to game software, an operating system corresponding to audio/video software, and the like are installed in the windows operating system.
The following illustrates Dial key functionality in two operating systems:
for example, Dial keys are in a library of functions in the windows operating system, the defined Dial key functions being image size reduction and enlargement, while in the operating system corresponding to game software (e.g., a racing game), the defined Dial key functions are acceleration and turning.
In this application, the input device may further receive a modification instruction implemented by a user for the first key code combination function library, and based on the modification instruction, the mapping relationship between the key code combination information and each function may be added or deleted in the first key code combination function library.
In this application, when the input device obtains the first function corresponding to the first key code combination information, the first function may include an object adjustment function of the multi-function key corresponding to the multi-function key code.
For example, the object adjustment function of the multi-function key itself may include at least one of: the method comprises the following steps of performing a volume control function on an audio file, a playing progress control function on the audio file, a progress control function on a webpage browsing interface, a switching function on a webpage window and a file window, performing attribute adjustment and switching functions such as brightness, contrast and saturation on a graphic file, adjusting functions on attributes such as the size and softness of a painting brush in a painting brush tool, and adjusting functions on insertion positions of characters and graphics in file processing.
In the application, when the input device implements the object adjustment function of the multifunctional key, the target function corresponding to the target operation can be determined according to the mapping relationship between each operation and each function by detecting the target operation implemented for the multifunctional key.
For example, when the input device detects that the operation performed on the multifunctional key is a double-click operation, according to the operations, the mapping relation between each function and each key, the target function corresponding to the double-click operation is determined to be at least one of music software opening, new file opening, new window opening and the like.
Or when the input device detects that the operation performed on the multifunctional key is a single-click operation, determining that the target function corresponding to the single-click operation can be at least one of window switching, picture switching, music switching, video switching and the like according to the operations, the mapping relation between the functions and the keys.
Or, when the input device detects that the operation performed on the multifunctional key is a clockwise rotation operation, determining that the target function corresponding to the clockwise rotation operation can be at least one of reducing audio volume, reducing the size of a graphic image, reducing the display size of a file window, deleting a file, and the like according to the mapping relation of each operation, each function, and each key.
Or, when the input device detects that the operation performed on the multifunctional key is a counterclockwise rotation operation, determining that the target function corresponding to the counterclockwise rotation operation may be at least one of increasing audio volume, increasing the size of a graphic image, increasing the display size of a file window, increasing the display size of a text, and the like, according to the operations, the mapping relationship between the functions and the keys.
Or, when the input device detects that the operation performed on the multifunctional key is a displacement operation, according to the mapping relation between each operation, each function and each key, determining that the target function corresponding to the displacement operation can be at least one of adjusting the inclination angle of the graphic image, adjusting the rotation angle of the graphic image, turning a page of a file and the like.
In the application, before executing the first function corresponding to the first key code combination information, the input device may further obtain the number of times of detecting the key input combination signal within a preset time length; determining a first operation type corresponding to the key input combination signal based on the times; and determining a first function corresponding to the first key code combination information based on the first operation type.
Here, the preset time period may be 20 msec, 15 msec, or the like.
For example, when the number of times the input device detects the key input combination signal within 20 milliseconds is "1", characterizing that the type of operation currently performed for a key combination is a single-click operation, based on the operations, the functions, and the mapping relationship of the key combinations, it may be determined that the first function corresponding to both the key combination and the single-click operation is "copy the selected item". Or, when the number of times the input device detects the key input combination signal is "2" within 20 milliseconds, characterizing that the type of operation currently performed for the key combination is a double-click operation, based on the mapping relationship of each operation, each function and each key combination, it may be determined that the first function corresponding to each key combination and the double-click operation is "opening a new file and pasting a selected item in the new file". Alternatively, when the input device detects that the number of times of the key input combination signal is "3" within 20 milliseconds, the number of presses corresponding to each of the at least two keys included in the first key combination information may be further determined based on the first key combination information carried in the key input combination signal, the type of operation performed for the multi-function key may be determined to be a double-click based on the number of presses of each key, and the type of operation performed for the remaining keys combined with the multi-function key may be a single-click. Therefore, based on the mapping relationship among the operations, the functions and the key combinations, it can be determined that the first function corresponding to the key combination, the double-click operation performed on the multi-function key and the single-click operation performed on the remaining keys is to cancel the current operation and return to the previous interface.
In the application, before the input device executes the first function corresponding to the first key code combination information, the voltage change frequency corresponding to the key input combination signal can be obtained within a preset time length; determining a first operation type corresponding to the key input combination signal based on the voltage change frequency; and determining a first function corresponding to the first key code combination information based on the first operation type.
For example, the preset duration may be 20 milliseconds, 15 milliseconds, or the like.
When the input device detects that the voltage change frequency corresponding to the key input combination signal is '1' within a preset time period, the fact that the operation type currently implemented for the key combination is single-click operation is characterized, and based on the operations, the functions and the mapping relation of the key combinations, it can be determined that the first function corresponding to the key combination and the single-click operation is 'copy selected item'. Or, when the input device detects that the voltage change frequency corresponding to the key input combination signal is "2" within a preset time length, the operation type currently implemented for the key combination is characterized as a double-click operation, and based on the operations, the functions and the mapping relation of the key combinations, it can be determined that the first function corresponding to the key combination and the double-click operation is "opening a new file and pasting the selected item in the new file". Or, when the input device detects that the voltage change frequency corresponding to the key input combination signal is "3" within the preset time length, the number of times of pressing corresponding to each key of the at least two keys included in the first key combination information may be further determined based on the first key combination information carried in the key input combination signal, the type of operation performed on the multifunctional key may be determined to be double-click based on the number of times of pressing of each key, and the type of operation performed on the remaining keys combined with the multifunctional key may be single-click. Therefore, based on the mapping relationship among the operations, the functions and the key combinations, it can be determined that the first function corresponding to the key combination, the double-click operation performed on the multi-function key and the single-click operation performed on the remaining keys is to cancel the current operation and return to the previous interface.
In a preferred embodiment of the present application, before the input device executes the first function corresponding to the first key code combination information, voltage change characteristic data corresponding to the key input combination signal may also be obtained within a preset time period, where the voltage change characteristic data represents continuity of voltage change and a magnitude trend of the voltage change. Determining a first operation type corresponding to the key input combination signal based on the voltage change characteristic data; and determining a first function corresponding to the first key code combination information based on the first operation type.
For example, the preset duration may be 20 milliseconds, 15 milliseconds, or the like.
When the input device obtains the voltage change characteristic data corresponding to the key input combination signal within the preset time length, and the voltage change characteristic data are continuous and sequentially changed from large to small, it is determined that the first operation type corresponding to the key input combination signal can be clockwise rotation operation implemented for the multifunctional key.
When the clockwise rotation operation is performed with respect to the multi-function key, the corresponding first function may be at least one of reducing a volume of a current audio file, reducing a size of a current graphic, reducing a window size of a file, and the like.
When the voltage change characteristic data corresponding to the key input combination signal obtained by the input device within the preset time length is continuous and changes from small to large in sequence, determining that the first operation type corresponding to the key input combination signal can be anticlockwise rotation operation implemented on the multifunctional key.
When the counterclockwise rotation operation is performed for the multi-function key, the corresponding first function may be at least one of increasing the volume of the current audio file, increasing the size of the current graphic, increasing the size of the file window, increasing the size of the text, adjusting the current display brightness, and the like.
In the application, when the input device obtains the voltage change characteristic data corresponding to the key input combination signal within the preset time period, it is determined that the first operation type corresponding to the key input combination signal may be a displacement operation implemented for a multifunctional key.
When the displacement operation is performed with respect to the multi-function key, the corresponding first function may be to adjust at least one of a display direction of a current image, a rotation angle of the image, a displacement position of the graphic image, and the like.
According to the multifunctional key, the key combination is carried out through the multifunctional key and other keys, the function of the multifunctional key can be realized, and the function corresponding to the key combination can be realized, so that the back-and-forth switching efficiency among a plurality of keys is improved, and the interaction function with various applications is enriched.
In the present application, before the input device obtains the key input combination signal, it may also set up a second key code combination function library as required, where the setting up manner of the second key code combination function library is the same as that of the first key code combination function library, and the difference is that the mapping relationship between each operation type and multiple groups of key code combination information and each function is added in the second key code combination function library.
In this application, the second key combination function library stores a plurality of groups of key combination information, each operation type, and a mapping relationship of each function, and each group of key combination information includes a multifunctional key. When determining the first function corresponding to the first key combination information based on the first operation type, the input device may specifically query the second key combination function library based on the first key combination information and the first operation type, obtain the first function corresponding to both the first key combination information and the first operation type based on a plurality of sets of key combination information stored in the second key combination function library, each operation type, and a mapping relationship between each function, and then execute the first function.
In this application, the input device may further shield a second function corresponding to other key code combination information when it is determined that the key code combination information includes the multifunctional key code, where the other key code combination information does not include the multifunctional key code.
For example, the other key code combination information is the key code of the Ctrl key and/or the Alt key and the key code combination of the other keys.
Therefore, the combination of the multifunctional Key and the Key replaces the combination of the Ctrl Key and/or the Alt Key and the Key, the trouble of switching back and forth between the combination of the Ctrl Key and/or the Alt Key and the Key and the multifunctional Key can be reduced, and the input efficiency can be improved.
Table 1 shows a comparison example of the function of a multifunctional key (Dial) and key combination in the present application and a Ctrl/Alt key and key combination in the prior art.
TABLE 1
As shown in Table 1, by rotating/pressing the Dial key + X key, the shear function of the Ctrl key + X key can be achieved; by rotating/pressing the Dial + C key, the Ctrl + C key copy function may be implemented. By rotating/pressing the Dial key + V key, the pasting function of the Ctrl key + V key can be realized. By rotating/pressing the Dial + Z key, the undo function for the Ctrl + Z key may be implemented. By rotating/pressing the Dial + Tab key, the function of the Alt + Tab key to switch between open applications may be implemented. The function of the Alt key + F4 key to close an active item, or to exit an active application, may be implemented by rotating/pressing the Dial key + F4 key. By rotating/pressing the Dial key + D key, the functions of displaying or hiding the desktop of the Windows logo key + D key can be realized. And meanwhile, the object attribute adjusting function of the Dial key can be realized.
Therefore, compared with the prior art, the method and the device have the advantages that simple switching between Ctrl + Key and Dial is realized through the multifunctional Dial Key + Key, switching processes among a plurality of keys are greatly reduced, and meanwhile input efficiency of input equipment is improved.
In the present application, the input device may further receive an adjustment operation for an operation region of a multifunction (DIAL) key, based on which position information of the multifunction (DIAL) key may be acquired; determining whether a position of a multifunctional (DIAL) key on a keyboard belongs to a left-hand region or a right-hand region based on the position information; and determining the left-hand area or the right-hand area where the determined multifunctional (DIAL) key is located as the operation area of the multifunctional (DIAL) key.
Therefore, the use habits of different users can be met, so that the method is suitable for different users to use.
Fig. 2 is a schematic structural diagram of an input device in the present application, and as shown in fig. 2, the input device includes:
an obtaining unit 201, configured to obtain a key input combination signal, where the key input combination signal carries first key code combination information; the first key code combination information includes key codes corresponding to at least two keys;
an executing unit 202, configured to execute a first function corresponding to the first key combination information when it is determined that the first key combination information includes a multi-function specific key, where the first function includes an object adjusting function corresponding to the multi-function specific key.
In a preferred aspect of the present application, the input device further includes:
a first establishing unit 203, configured to establish a first key combination function library, where multiple groups of key combination information and mapping relationships of functions are stored in the first key combination function library, and each group of key combination information includes the specific multifunctional key;
the obtaining unit 201 is further specifically configured to query the first key combination function library based on the first key combination information, so as to obtain a first function corresponding to the first key combination information.
In a preferred embodiment of the present application, the obtaining unit 201 is further configured to obtain the number of times that the key input combination signal is detected within a preset time period; or obtaining the voltage change frequency corresponding to the key input combination signal within a preset time length; or voltage change characteristic data corresponding to the key input combination signal is obtained within a preset time length, and the voltage change characteristic data represents the continuity of voltage change and the magnitude trend of the voltage change; and a first operation type corresponding to the key input combination signal determined based on the times or the voltage change frequency or the voltage change characteristic data; and acquiring a first function corresponding to the first key code combination information based on the first operation type.
In a preferred aspect of the present application, the input device further includes:
a second establishing unit 204, configured to establish a second key combination function library, where multiple sets of key combination information, operation types, and mapping relationships of functions are stored in the second key combination function library, and each set of key combination information includes the specific multifunctional key;
the obtaining unit 201 is further specifically configured to query the second key combination function library based on the first key combination information and the first operation type, and obtain a first function corresponding to both the first key combination information and the first operation type.
In a preferred embodiment of the present application, the executing unit 202 is further configured to, in a case that it is determined that the key code combination information includes a multifunctional key code, mask a second function corresponding to other key code combination information; the multifunctional key code is not included in the other key code combination information.
It should be noted that: in the above-mentioned input device, when the function switching is realized by combining with the multifunction key, only the division of the program modules is exemplified, and in practical applications, the data processing module may be completed by different program modules according to needs, that is, the internal structure of the input device may be divided into different program modules to complete all or part of the above-mentioned processes. In addition, the input device and the input method provided above belong to the same concept, and the specific implementation process thereof is described in the method embodiment, which is not described herein again.
FIG. 3 is a schematic diagram of a second exemplary embodiment of an input device; as shown in fig. 3, the input device 300 may be a mobile phone, a computer, a digital broadcast terminal, an information transceiver device, a game console, a tablet device, a personal digital assistant, an information push server, a content server, an authentication server, and the like. The input device 300 shown in fig. 3 includes: at least one processor 301, memory 302, at least one network interface 304. The various components in input device 300 are coupled together by a bus system 305. It will be appreciated that the bus system 305 is used to enable communications among the components connected. The bus system 305 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 305 in fig. 3.
It will be appreciated that the memory 302 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a magnetic random access Memory (Flash Memory), a magnetic surface Memory, an optical Disc, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM, Double Data Rate Synchronous Dynamic Random Access Memory), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), Synchronous link Dynamic Random Access Memory (SLDRAM, Synchronous Dynamic Random Access Memory), Direct Memory (DRmb Access Memory, Random Access Memory). The memory 302 described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
The memory 302 in the embodiment of the present invention is used to store various types of data to support the operation of the input device 300. Examples of such data include: any computer programs for operating on the input device 300, such as an operating system 3021 and application programs 3022; operating system 3021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and for processing hardware-based tasks. The application programs 3022 may contain various application programs such as a Media Player (Media Player), a Browser (Browser), etc. for implementing various application services. A program implementing the method of an embodiment of the present invention may be included in the application program 3022.
The method disclosed in the above embodiments of the present invention may be applied to the processor 301, or implemented by the processor 301. The processor 301 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by instructions in the form of hardware integrated logic circuits or software in the processor 301. The Processor 301 may be a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. Processor 301 may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 302, and the processor 301 reads the information in the memory 302 and performs the steps of the aforementioned methods in conjunction with its hardware.
In an exemplary embodiment, the input Device 300 may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field-Programmable Gate arrays (FPGAs), general purpose processors, controllers, Micro Controllers (MCUs), microprocessors (microprocessors), or other electronic components for performing the aforementioned methods.
Specifically, when the processor 301 runs the computer program, it executes: obtaining a key input combination signal, wherein the key input combination signal carries first key code combination information; the first key code combination information includes key codes corresponding to at least two keys; and executing a first function corresponding to the first key code combination information under the condition that the first key code combination information comprises a multifunctional key code, wherein the first function comprises an object adjusting function corresponding to the multifunctional key code.
Specifically, when the processor 301 runs the computer program, the following steps are further executed: establishing a first key code combination function library, wherein the first key code combination function library stores a plurality of groups of key code combination information and mapping relations of all functions, and each group of key code combination information comprises the multifunctional key code.
When the processor 301 runs the computer program, it further executes: and inquiring the first key code combination function library based on the first key code combination information, obtaining a first function corresponding to the first key code combination information, and executing the first function.
When the processor 301 runs the computer program, it further executes: acquiring the times of detecting the key input combination signal within a preset time length; or obtaining the voltage change frequency corresponding to the key input combination signal within a preset time length; or voltage change characteristic data corresponding to the key input combination signal is obtained within a preset time length, and the voltage change characteristic data represents the continuity of voltage change and the magnitude trend of the voltage change; determining a first operation type corresponding to the key input combination signal based on the times or the voltage change frequency or the voltage change characteristic data; and determining a first function corresponding to the first key code combination information based on the first operation type.
Specifically, when the processor 301 runs the computer program, the following steps are further executed: establishing a second key code combination function library, wherein a plurality of groups of key code combination information, each operation type and the mapping relation of each function are stored in the second key code combination function library, and each group of key code combination information comprises the multifunctional key code; and querying the second key code combination function library based on the first key code combination information and the first operation type, obtaining first functions corresponding to the first key code combination information and the first operation type, and executing the first functions.
Specifically, when the processor 301 runs the computer program, the following steps are further performed: shielding second functions corresponding to other key code combination information under the condition that the key code combination information is determined to include a multifunctional key code; the other key combination information does not include the multifunction key.
In an exemplary embodiment, another input device is provided, such as a memory 302 comprising a computer program executable by a processor 301 of the input device 300 to perform the steps of the method described above. The computer readable storage medium can be Memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface Memory, optical disk, or CD-ROM; or a variety of devices, such as mobile phones, computers, tablet devices, personal digital assistants, etc., that include one or any combination of the above memories.
An input device having a computer program stored thereon, the computer program, when executed by a processor, performing: obtaining a key input combination signal, wherein the key input combination signal carries first key code combination information; the first key code combination information includes key codes corresponding to at least two keys; and executing a first function corresponding to the first key code combination information under the condition that the first key code combination information comprises a multifunctional key code, wherein the first function comprises an object adjusting function corresponding to the multifunctional key code.
The computer program, when executed by the processor, further performs: establishing a first key code combination function library, wherein the first key code combination function library stores a plurality of groups of key code combination information and mapping relations of all functions, and each group of key code combination information comprises the multifunctional key code.
The computer program, when executed by the processor, further performs: and inquiring the first key code combination function library based on the first key code combination information, obtaining a first function corresponding to the first key code combination information, and executing the first function.
The computer program, when executed by the processor, further performs: acquiring the times of detecting the key input combination signal within a preset time length; or obtaining the voltage change frequency corresponding to the key input combination signal within a preset time length; or voltage change characteristic data corresponding to the key input combination signal is obtained within a preset time length, and the voltage change characteristic data represents the continuity of voltage change and the magnitude trend of the voltage change; determining a first operation type corresponding to the key input combination signal based on the times or the voltage change frequency or the voltage change characteristic data; and determining a first function corresponding to the first key code combination information based on the first operation type.
The computer program, when executed by the processor, further performs: establishing a second key code combination function library, wherein a plurality of groups of key code combination information, each operation type and the mapping relation of each function are stored in the second key code combination function library, and each group of key code combination information comprises the multifunctional key code; and querying the second key code combination function library based on the first key code combination information and the first operation type, obtaining first functions corresponding to the first key code combination information and the first operation type, and executing the first functions.
The computer program, when executed by the processor, further performs: shielding second functions corresponding to other key code combination information under the condition that the key code combination information comprises a multifunctional key code; the multifunctional key code is not included in the other key code combination information.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and in actual implementation, there may be other divisions, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may be separately used as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The methods disclosed in the several method embodiments provided in the present application may be combined arbitrarily without conflict to obtain new method embodiments.
Features disclosed in several of the product embodiments provided in the present application may be combined in any combination to yield new product embodiments without conflict.
The features disclosed in the several method or apparatus embodiments provided in the present application may be combined arbitrarily, without conflict, to arrive at new method embodiments or apparatus embodiments.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. A method of inputting, the method comprising:
responding to a trigger operation of a key combination on input equipment, and acquiring a key input combination signal corresponding to the key combination, wherein the key input combination signal carries first key code combination information; the key combination comprises at least two keys; the first key code combination information includes key codes corresponding to at least two keys;
executing a first function corresponding to the first key code combination information under the condition that the first key code combination information comprises a multifunctional key code, wherein the first function comprises an object adjusting function corresponding to the multifunctional key code; the first function corresponding to the multifunctional KEY and the KEY KEY is at least the same as the function corresponding to at least one of the following functions: the function corresponding to the Ctrl KEY code and the KEY KEY code, the function corresponding to the Alt KEY code and the KEY KEY code, and the function corresponding to the Windows logo KEY code and the KEY KEY code;
wherein a multi-function key corresponding to the multi-function key code is rotatable, the method further comprising: in the case of rotating for the multifunction key, performing at least one of: adjusting the playing volume of the audio file, adjusting the size of the current graph, adjusting the size of a file window, adjusting the size of characters and adjusting the current display brightness.
2. The method of claim 1, prior to said obtaining a key input combination signal corresponding to said key combination, further comprising:
establishing a first key code combination function library, wherein a plurality of groups of key code combination information and the mapping relation of each function are stored in the first key code combination function library, and each group of key code combination information comprises the multifunctional key code;
the executing the first function corresponding to the first key code combination information includes:
and inquiring the first key code combination function library based on the first key code combination information, obtaining a first function corresponding to the first key code combination information, and executing the first function.
3. The method of claim 1, prior to executing the first function corresponding to the first key combination information, further comprising:
acquiring the times of detecting the key input combination signal within a preset time length;
or obtaining the voltage change frequency corresponding to the key input combination signal within a preset time length;
or voltage change characteristic data corresponding to the key input combination signal is obtained within a preset time length, and the voltage change characteristic data represents the continuity of voltage change and the magnitude trend of the voltage change;
determining a first operation type corresponding to the key input combination signal based on the times or the voltage change frequency or the voltage change characteristic data;
and determining a first function corresponding to the first key code combination information based on the first operation type.
4. The method of claim 3, wherein prior to obtaining the key input combination signal, the method further comprises:
establishing a second key code combination function library, wherein a plurality of groups of key code combination information, each operation type and the mapping relation of each function are stored in the second key code combination function library, and each group of key code combination information comprises the multifunctional key code;
the executing the first function corresponding to the first key code combination information includes:
and querying the second key code combination function library based on the first key code combination information and the first operation type, obtaining first functions corresponding to the first key code combination information and the first operation type, and executing the first functions.
5. The method of claim 1, in a case where it is determined that a multifunctional key is included in the first key combination information, the method further comprising:
shielding second functions corresponding to other key code combination information; the multifunctional key code is not included in the other key code combination information.
6. An input device, the device comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for responding to the triggering operation of a key combination on the input equipment and acquiring a key input combination signal corresponding to the key combination, and the key input combination signal carries first key code combination information; the key combination comprises at least two keys; the first key code combination information includes key codes corresponding to at least two keys;
an execution unit, configured to execute a first function corresponding to the first key combination information when it is determined that the first key combination information includes a multifunctional key, where the first function includes an object adjustment function corresponding to the multifunctional key; the first function corresponding to the multifunctional KEY and the KEY KEY is at least the same as the function corresponding to at least one of the following functions: the function corresponding to the Ctrl KEY code and the KEY KEY code, the function corresponding to the Alt KEY code and the KEY KEY code, and the function corresponding to the Windows logo KEY code and the KEY KEY code; wherein the multi-function key corresponding to the multi-function key code is rotatable, and the execution unit is further configured to execute at least one of the following when the multi-function key is rotated: adjusting the playing volume of the audio file, adjusting the size of the current graph, adjusting the size of a file window, adjusting the size of characters and adjusting the current display brightness.
7. The apparatus of claim 6, further comprising:
the first establishing unit is used for establishing a first key code combination function library, wherein a plurality of groups of key code combination information and the mapping relation of each function are stored in the first key code combination function library, and each group of key code combination information comprises the multifunctional key code;
the obtaining unit is further configured to query the first key combination function library based on the first key combination information to obtain a first function corresponding to the first key combination information.
8. The device of claim 6, wherein the obtaining unit is further configured to obtain a number of times that the key input combination signal is detected within a preset time duration; or obtaining the voltage change frequency corresponding to the key input combination signal within a preset time length; or obtaining voltage change characteristic data corresponding to the key input combination signal within a preset time length, wherein the voltage change characteristic data represents the continuity of voltage change and the magnitude trend of the voltage change; and the first function corresponding to the first key code combination information is obtained based on the first operation type corresponding to the key input combination signal determined by the times, the voltage change frequency or the voltage change characteristic data.
9. The apparatus of claim 8, the apparatus further comprising:
a second establishing unit, configured to establish a second key combination function library, where multiple groups of key combination information, operation types, and mapping relationships of functions are stored in the second key combination function library, and each group of key combination information includes the multifunctional key;
the obtaining unit is further configured to query the second key combination function library based on the first key combination information and the first operation type, and obtain a first function corresponding to both the first key combination information and the first operation type.
10. An input device, the device comprising: a memory and a processor;
wherein the memory is to store a computer program operable on the processor;
the processor, when executing the computer program, is adapted to perform the steps of the method of any of claims 1 to 5.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911424285.0A CN111208912B (en) | 2019-12-31 | 2019-12-31 | Input method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911424285.0A CN111208912B (en) | 2019-12-31 | 2019-12-31 | Input method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111208912A CN111208912A (en) | 2020-05-29 |
| CN111208912B true CN111208912B (en) | 2022-09-23 |
Family
ID=70787451
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201911424285.0A Active CN111208912B (en) | 2019-12-31 | 2019-12-31 | Input method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111208912B (en) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20050099032A (en) * | 2004-04-07 | 2005-10-13 | 연용현 | Stylus pen having charactor input function |
| US8103970B1 (en) * | 2004-03-08 | 2012-01-24 | Cellco Partnership | Method and device for providing a multi-level user interface having a dynamic key assignment for a cellularly communicative device |
| CN106355078A (en) * | 2016-09-12 | 2017-01-25 | 上海凌翼动力科技有限公司 | Intelligent Password Protection System Based on Multi-function Key Behavior Recognition |
| CN108563339A (en) * | 2018-07-07 | 2018-09-21 | 深圳市多彩实业有限公司 | A kind of keyboard with Multifunctional knob |
| CN109649294A (en) * | 2018-12-21 | 2019-04-19 | 延锋伟世通电子科技(南京)有限公司 | A kind of multi-functional composite-key |
Family Cites Families (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20010025777A (en) * | 1999-09-01 | 2001-04-06 | 이형도 | Method of processing multi-key in key inputting device |
| CN101042612A (en) * | 2006-03-21 | 2007-09-26 | 鸿富锦精密工业(深圳)有限公司 | Self-defined keyboard, self-defined keyboard converting device and self-defined method of the keyboard |
| JP5299182B2 (en) * | 2009-09-07 | 2013-09-25 | 富士通モバイルコミュニケーションズ株式会社 | Mobile terminal and input control method in mobile terminal |
| CN102650907B (en) * | 2011-02-25 | 2014-11-05 | 纬创资通股份有限公司 | Method and device for executing device functions by using key combination instead of Fn key |
| CN104951093B (en) * | 2014-03-31 | 2018-03-20 | 维沃移动通信有限公司 | Caller or the mobile terminal and its method of function are realized by user-defined press key |
| CN104571498B (en) * | 2014-12-10 | 2018-05-25 | 深圳市金立通信设备有限公司 | A kind of application program launching method |
| CN104951089B (en) * | 2015-07-28 | 2020-01-31 | 联想(北京)有限公司 | Information processing method and electronic device |
| CN107340969B (en) * | 2017-08-24 | 2020-05-08 | 北京拉酷网络科技有限公司 | Touchpad-based fast information input interaction method and input interaction system |
| CN109101118B (en) * | 2018-08-10 | 2022-11-22 | 超越科技股份有限公司 | Method and device for realizing shortcut key based on character key combination |
-
2019
- 2019-12-31 CN CN201911424285.0A patent/CN111208912B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8103970B1 (en) * | 2004-03-08 | 2012-01-24 | Cellco Partnership | Method and device for providing a multi-level user interface having a dynamic key assignment for a cellularly communicative device |
| KR20050099032A (en) * | 2004-04-07 | 2005-10-13 | 연용현 | Stylus pen having charactor input function |
| CN106355078A (en) * | 2016-09-12 | 2017-01-25 | 上海凌翼动力科技有限公司 | Intelligent Password Protection System Based on Multi-function Key Behavior Recognition |
| CN108563339A (en) * | 2018-07-07 | 2018-09-21 | 深圳市多彩实业有限公司 | A kind of keyboard with Multifunctional knob |
| CN109649294A (en) * | 2018-12-21 | 2019-04-19 | 延锋伟世通电子科技(南京)有限公司 | A kind of multi-functional composite-key |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111208912A (en) | 2020-05-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2023005920A1 (en) | Screen splitting method and apparatus, and electronic device | |
| CN107404576B (en) | Lock screen magazine browsing method, mobile terminal and computer-readable storage medium | |
| CN107609374B (en) | An unlocking method and mobile terminal | |
| CN106598623A (en) | Picture combination template generation method and mobile terminal | |
| CN107678813A (en) | A kind of switching method and mobile terminal of the theme of desktop icons | |
| CN112199146A (en) | Interface switching method, device and electronic device | |
| CN113986076B (en) | Icon display control method, device, electronic device and storage medium | |
| WO2022247814A1 (en) | Method and apparatus for selecting target character, electronic device, and storage medium | |
| CN116107531A (en) | Interface display method and device | |
| CN113849092A (en) | Content sharing method and device and electronic equipment | |
| CN112558829B (en) | Input method display method and device and electronic equipment | |
| CN108646962B (en) | Editing method, device, storage medium and mobile terminal for terminal desktop layout | |
| CN113868269A (en) | Screenshot method, apparatus, electronic device and readable storage medium | |
| CN115729412A (en) | Interface display method and device | |
| CN113805753B (en) | Text editing method, device and electronic equipment | |
| CN115167721A (en) | Display method and device for functional interface | |
| CN114116098A (en) | Application icon management method, device, electronic device and storage medium | |
| CN111208912B (en) | Input method and device | |
| WO2025036319A1 (en) | Application program searching method, apparatus, device, and storage medium | |
| CN115993892A (en) | Information input method and device and electronic equipment | |
| CN116027950A (en) | Screen capture method and screen capture device | |
| CN115952771A (en) | A picture editing method, device, electronic equipment and storage medium | |
| WO2022247718A1 (en) | Information selection method and apparatus | |
| CN114253449A (en) | Screen capturing method, device, equipment and medium | |
| CN113835815B (en) | Image preview method and device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |