CN111459298A - Shortcut key control method, electronic device and storage medium - Google Patents

Shortcut key control method, electronic device and storage medium Download PDF

Info

Publication number
CN111459298A
CN111459298A CN202010235317.9A CN202010235317A CN111459298A CN 111459298 A CN111459298 A CN 111459298A CN 202010235317 A CN202010235317 A CN 202010235317A CN 111459298 A CN111459298 A CN 111459298A
Authority
CN
China
Prior art keywords
key
shortcut
shortcut key
user
preset
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.)
Granted
Application number
CN202010235317.9A
Other languages
Chinese (zh)
Other versions
CN111459298B (en
Inventor
肖金平
郑涵卓
陈紫林
万正勇
沈志勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Merchants Finance Technology Co Ltd
Original Assignee
China Merchants Finance Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Merchants Finance Technology Co Ltd filed Critical China Merchants Finance Technology Co Ltd
Priority to CN202010235317.9A priority Critical patent/CN111459298B/en
Publication of CN111459298A publication Critical patent/CN111459298A/en
Application granted granted Critical
Publication of CN111459298B publication Critical patent/CN111459298B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements 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
    • G06F3/0238Programmable keyboards

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)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention relates to a data processing technology and provides a shortcut key control method, an electronic device and a storage medium. The method comprises the steps of responding to a combined key operation triggered by a user, obtaining a key value of the combined key, generating a timestamp, and judging whether the key value of the combined key meets a preset shortcut key starting condition or not; when key values meet preset shortcut key starting conditions, calling a preset function to shield the initial shortcut operation of a browser to which a page of a shortcut key belongs, and inquiring whether the key values of the shortcut keys corresponding to the key values of the combination keys exist in a shortcut key list or not; and if so, executing corresponding operation of the inquired shortcut key, and judging whether the pressing time of the user triggering the combined key is longer than the preset time according to the timestamp. When the pressing duration is longer than the preset duration, the method pops up prompt information comprising a shortcut key list on a display interface. By utilizing the invention, the user can flexibly control the shortcut key.

Description

Shortcut key control method, electronic device and storage medium
Technical Field
The present invention relates to the field of data processing, and in particular, to a shortcut key control method, an electronic device, and a storage medium.
Background
The shortcut keys are used for completing an operation through certain specific keys, key sequence or key combination, and many shortcut keys are often used together with a Ctrl key, a Shift key, an Alt key, a Windows key under a Windows platform, a Meta key on a Mac machine and the like.
In the prior art, functions of shortcut keys are realized by binding specified keyboard combinations in codes, and setting the shortcut keys is usually realized by modifying the codes, so that a user cannot conveniently set various shortcut keys in a browser to compile a meeting summary in a meeting record system, and the user cannot independently complete control over the shortcut keys.
Disclosure of Invention
In view of the above, the present invention provides a shortcut key control method, an electronic device and a storage medium, and aims to solve the problem that a user cannot control a shortcut key in a conference recording system.
In order to achieve the above object, the present invention provides a shortcut key control method, which includes:
a response step: responding to a combined key operation triggered by a user, acquiring a key value of the combined key, generating a timestamp, judging whether the key value of the combined key meets a preset shortcut key starting condition, and calling a preset function to shield an initial shortcut operation of a browser to which a page of the shortcut key belongs when the key value of the combined key meets the preset shortcut key starting condition;
a first prompting step: inquiring whether a prestored shortcut key list has a shortcut key value corresponding to the key value of the combination key based on the key value of the combination key, if the corresponding shortcut key value is inquired, executing corresponding operation of the inquired shortcut key, after the corresponding operation is executed, judging whether the pressing time of the user-triggered combination key is longer than a preset time according to the timestamp, and when the judgment is longer than the preset time, popping first prompt information comprising the preset shortcut key list on a display interface; and
a second prompting step: and if the key value of the corresponding shortcut key is not inquired, popping up second prompt information for prompting whether the user sets the shortcut key or not on the display interface.
Preferably, the method further comprises:
when the operation of setting the shortcut key by the user is monitored, entering a shortcut key setting page, wherein the shortcut key setting page comprises a mapping relation table of the shortcut key in a shortcut key list and the operation of the shortcut key, acquiring an instruction input by the user at each preset position in the shortcut key list, updating the shortcut key list based on the mapping relation table and the input instruction, and storing the updated shortcut key list into a database according to a preset data storage format.
Preferably, the method further comprises:
the method comprises the steps of combining a plurality of shortcut key operations into a shortcut key group, setting corresponding key values for the shortcut key group, and sequentially executing the shortcut key operations in the shortcut key group according to a preset sequence of the shortcut key group after the fact that the key value operations of the shortcut key group are input by a user is monitored.
Preferably, the data content of the updated shortcut key list includes a main key, a user identifier, an operation identifier, and a key dictionary, where the key dictionary includes an event key set by a user and a key value of the key.
Preferably, the data content of the shortcut key group includes a main key, a user identifier, and a combined dictionary, and the combined dictionary includes a shortcut key identifier and a shortcut key execution sequence set by a user.
To achieve the above object, the present invention also provides an electronic device, including: the system comprises a memory and a processor, wherein a shortcut key control program is stored in the memory and is executed by the processor, and the following steps are realized:
a response step: responding to a combined key operation triggered by a user, acquiring a key value of the combined key, generating a timestamp, judging whether the key value of the combined key meets a preset shortcut key starting condition, and calling a preset function to shield an initial shortcut operation of a browser to which a page of the shortcut key belongs when the key value of the combined key meets the preset shortcut key starting condition;
a first prompting step: inquiring whether a prestored shortcut key list has a shortcut key value corresponding to the key value of the combination key based on the key value of the combination key, if the corresponding shortcut key value is inquired, executing corresponding operation of the inquired shortcut key, after the corresponding operation is executed, judging whether the pressing time of the user-triggered combination key is longer than a preset time according to the timestamp, and when the judgment is longer than the preset time, popping first prompt information comprising the preset shortcut key list on a display interface; and
a second prompting step: and if the key value of the corresponding shortcut key is not inquired, popping up second prompt information for prompting whether the user sets the shortcut key or not on the display interface.
Preferably, the shortcut key control program is executed by the processor, and further implements the following steps:
when the operation of setting the shortcut key by the user is monitored, entering a shortcut key setting page, wherein the shortcut key setting page comprises a mapping relation table of the shortcut key in a shortcut key list and the operation of the shortcut key, acquiring an instruction input by the user at each preset position in the shortcut key list, updating the shortcut key list based on the mapping relation table and the input instruction, and storing the updated shortcut key list into a database according to a preset data storage format.
Preferably, the shortcut key control program is executed by the processor, and further implements the following steps:
the method comprises the steps of combining a plurality of shortcut key operations into a shortcut key group, setting corresponding key values for the shortcut key group, and sequentially executing the shortcut key operations in the shortcut key group according to a preset sequence of the shortcut key group after the fact that the key value operations of the shortcut key group are input by a user is monitored.
Preferably, the data content of the updated shortcut key list includes a main key, a user identifier, an operation identifier, and a key dictionary, where the key dictionary includes an event key set by a user and a key value of the key.
To achieve the above object, the present invention further provides a computer readable storage medium, which includes a shortcut control program, and when the shortcut control program is executed by a processor, the shortcut control program implements any of the steps of the shortcut control method as described above.
The shortcut key control method, the electronic device and the storage medium provided by the invention have the advantages that the key values of the combined keys are obtained and a timestamp is generated by monitoring the combined key operation triggered by a user, whether the key values of the combined keys meet the preset shortcut key starting condition or not is judged, if yes, the preset function is called to shield the initial shortcut operation of a browser to which the page of the shortcut key belongs, whether the key values of the shortcut keys corresponding to the key values of the combined keys exist in a shortcut key list or not is inquired, if yes, the corresponding operation of the inquired shortcut keys is executed, whether the pressing time of triggering the combined keys by the user is larger than the preset time or not is judged according to the timestamp, if yes, first prompt information comprising the shortcut key list is popped up on a display interface, and if the key values of the corresponding shortcut keys are not inquired up, the user is prompted to set the shortcut keys or not on the display interface. By utilizing the method and the device, the user can trigger the control and play control operation of the conference summary text, and by monitoring the operation of the user, the user only needs to input an editing instruction to the page, and triggers and opens the setting page and the combined operation page of the shortcut keys, so that the shortcut keys and the shortcut key group can be set, and the flexibility of shortcut key control is improved.
Drawings
FIG. 1 is a diagram of an electronic device according to a preferred embodiment of the present invention;
FIG. 2 is a block diagram illustrating a preferred embodiment of the shortcut control procedure in FIG. 1;
FIG. 3 is a flowchart illustrating a method for controlling a shortcut key according to a preferred embodiment of the present invention;
the implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a schematic diagram of an electronic device 1 according to a preferred embodiment of the invention is shown.
The electronic device 1 includes but is not limited to: memory 11, processor 12, display 13, and network interface 14. The electronic device 1 is connected to a network through a network interface 14 to obtain raw data. The network may be a wireless or wired network such as an Intranet (Intranet), the Internet (Internet), a Global System for mobile communications (GSM), Wideband Code Division Multiple Access (WCDMA), a 4G network, a 5G network, Bluetooth (Bluetooth), Wi-Fi, or a communication network.
The memory 11 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the storage 11 may be an internal storage unit of the electronic device 1, such as a hard disk or a memory of the electronic device 1. In other embodiments, the memory 11 may also be an external storage device of the electronic apparatus 1, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided in the electronic apparatus 1. Of course, the memory 11 may also comprise both an internal memory unit of the electronic apparatus 1 and an external memory device thereof. In this embodiment, the memory 11 is generally used for storing an operating system installed in the electronic device 1 and various application software, such as program codes of the shortcut control program 10. Further, the memory 11 may also be used to temporarily store various types of data that have been output or are to be output.
Processor 12 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 12 is generally used for controlling the overall operation of the electronic device 1, such as performing data interaction or communication related control and processing. In this embodiment, the processor 12 is configured to run the program code stored in the memory 11 or process data, for example, run the program code of the shortcut control program 10.
The display 13 may be referred to as a display screen or a display unit, in some embodiments the display 13 may be an L ED display, a liquid crystal display, a touch-sensitive liquid crystal display, an Organic light-emitting diode (O L ED) touch-sensitive display, and the like, the display 13 is used for displaying information processed in the electronic device 1 and for displaying a visual work interface, such as displaying a result of data statistics.
The network interface 14 may optionally comprise a standard wired interface, a wireless interface (e.g. WI-FI interface), the network interface 14 typically being used for establishing a communication connection between the electronic apparatus 1 and other electronic devices.
Fig. 1 shows only the electronic device 1 with components 11-14 and the shortcut control program 10, but it is to be understood that not all of the shown components are required to be implemented, and that more or less components may be implemented instead.
Optionally, the electronic device 1 may further comprise a user interface, which may comprise a Display (Display), an input unit such as a Keyboard (Keyboard), and an optional user interface may also comprise a standard wired interface, a wireless interface, optionally, in some embodiments, the Display may be an L ED Display, a liquid crystal Display, a touch-sensitive liquid crystal Display, and an Organic light-Emitting Diode (O L ED) touch-sensitive device, etc., wherein the Display may also be appropriately referred to as a Display screen or Display unit for displaying information processed in the electronic device 1 and for displaying a visualized user interface.
The electronic device 1 may further include a Radio Frequency (RF) circuit, a sensor, an audio circuit, and the like, which are not described in detail herein.
In the above embodiment, the processor 12 may implement the following steps when executing the shortcut control program 10 stored in the memory 11:
a response step: responding to a combined key operation triggered by a user, acquiring a key value of the combined key, generating a timestamp, judging whether the key value of the combined key meets a preset shortcut key starting condition, and calling a preset function to shield an initial shortcut operation of a browser to which a page of the shortcut key belongs when the key value of the combined key meets the preset shortcut key starting condition;
a first prompting step: inquiring whether a prestored shortcut key list has a shortcut key value corresponding to the key value of the combination key based on the key value of the combination key, if the corresponding shortcut key value is inquired, executing corresponding operation of the inquired shortcut key, after the corresponding operation is executed, judging whether the pressing time of the user-triggered combination key is longer than a preset time according to the timestamp, and when the judgment is longer than the preset time, popping first prompt information comprising the preset shortcut key list on a display interface; and
a second prompting step: and if the key value of the corresponding shortcut key is not inquired, popping up second prompt information for prompting whether the user sets the shortcut key or not on the display interface.
The storage device may be the memory 11 of the electronic apparatus 1, or may be another storage device communicatively connected to the electronic apparatus 1.
For detailed description of the above steps, please refer to the following description of fig. 2 regarding a program module diagram of an embodiment of the shortcut control program 10 and fig. 3 regarding a flowchart of an embodiment of the shortcut control method.
In other embodiments, the shortcut control program 10 may be divided into a plurality of modules, which are stored in the memory 12 and executed by the processor 13 to accomplish the present invention. The modules referred to herein are referred to as a series of computer program instruction segments capable of performing specified functions.
Referring to fig. 2, a block diagram of an embodiment of the shortcut control program 10 in fig. 1 is shown. In this embodiment, the shortcut control program 10 may be divided into: a response module 110, a first prompt module 120, and a second prompt module 130.
The response module 110 is configured to respond to a combination key operation triggered by a user, acquire a key value of the combination key, generate a timestamp, determine whether the key value of the combination key meets a preset shortcut key starting condition, and call a preset function to shield an initial shortcut operation of a browser to which a page of the shortcut key belongs when it is determined that the preset shortcut key starting condition is met.
In this embodiment, the keyboard operation triggered by the user is monitored by the method of document.onkeydown of JS, and key values of the combination keys triggered by the user are captured, where the combination keys may include Ctrl keys and other keys, such as Ctrl + s, Ctrl + Alt, and the like. In addition to the Ctrl and Alt keys being event keys, other common key values include, but are not limited to:
1. keycode 37 ═ L eft left arrow
2. key 38 Up arrow
3. key 39 ═ Right arrow
4. key 40 ═ Down arrow
5. key 83 ═ S s letters
6. key 220 less grease bar less than or greater than a bond
When the JS monitors the shortcut key, the browser binds the default action because the browser monitors the keyboard shortcut key, and the webpage of the browser is triggered to store as an operation if the Ctrl + S is pressed at the same time. To ensure that the shortcut key operation achieves the preset effect, the shortcut key operation of the browser can be shielded by using a window. The preset shortcut key starting condition may be event keys including "Ctrl" and "Alt" in the combination key triggered by the user.
The first prompt module 120 is configured to query whether a pre-stored shortcut key list has a shortcut key value corresponding to the key value of the combination key based on the key value of the combination key, execute a corresponding operation of the queried shortcut key if the key value of the corresponding shortcut key is queried, determine whether a pressing duration of the combination key triggered by the user is greater than a preset duration according to the timestamp after the corresponding operation is executed, and pop up first prompt information including the preset shortcut key list on a display interface when the pressing duration is greater than the preset duration.
In this embodiment, based on the key values of the combination keys, it is queried whether a pre-stored shortcut key list has a key value of a shortcut key corresponding to the key value of the combination key, if the key value of the corresponding shortcut key is queried, a corresponding operation of the shortcut key is executed, the present solution is described by taking a meeting directory scene of a browser as an example, and the pre-stored shortcut key list includes but is not limited to:
text control shortcut:
1. "Ctrl + S" (i.e., the keyboard Ctrl key is pressed simultaneously with the S key): and the conference summary storage shortcut key is used for quickly storing the current conference summary content. The function of the save key is operated by monitoring the keyboard, if the Ctrl + S is pressed at the same time, the system can judge that the user carries out the Ctrl +83 operation, trigger the bound save method and call the server method to save the conference summary.
2. "Ctrl + R": and the text replacement shortcut key is used for carrying out global search and one-key replacement on the conference summary content, and can replace the text with wrong transcription into the correct text.
3. "Ctrl + F": the text search shortcut key enables a user to search the conference summary content globally, can jump to the position of a search solution result quickly, and facilitates the user to complete voice retrieval through text search.
Playing control shortcut key:
1. "Ctrl + Alt": and the play/pause shortcut key is used for controlling the play and pause of the conference recording. After the play/pause key is pressed, the function is realized by calling a play/pause control interface of the player;
2. "Ctrl + \|": the shortcut key is played from this point, in the process of editing the summary of the meeting, the time of the text content which is currently edited appearing in the audio file can be obtained in real time by using the shortcut key, a player interface is called to set the playing starting position to be the time, and the playing is automatically started;
3. "Ctrl + ←": a fast backing shortcut key, calling a playing fast backing interface of the player when hearing the operation of the combination key, and adjusting the current playing time backwards for 5 seconds when in use (the playing time is adjusted to be 0 second when the playing time is less than or equal to 0 second after adjustment, and is not adjusted backwards any more);
4. "Ctrl + →": a fast forward shortcut key for calling a play fast forward interface of the player when hearing the operation of the combination key, and adjusting the current play time forward for 5 seconds when in use;
5. "Ctrl + ↓": a volume adjustment shortcut key, which calls a volume increasing interface of the player when monitoring the operation of the combination key, and is used for adjusting the current playing volume, and the current playing volume is increased by five percent when in use (when the volume is more than or equal to 100 after adjustment, the volume is adjusted to 100, and upward adjustment is not performed again);
6. "Ctrl + ↓": a volume adjustment shortcut key, which calls a volume reduction interface of the player when hearing the operation of the combination key, is used for adjusting the current playing volume, and reduces the current playing volume by five percent when in use;
and after the corresponding operation is executed, judging whether the pressing time of the user triggering the combined key is longer than a preset time (for example, 2 seconds) or not according to the timestamp, and if the pressing time of the user triggering the combined key is longer than the preset time, sending first prompt information, wherein the first prompt information is used for displaying a preset shortcut key list, and the conference broker can check the current shortcut key and the function corresponding to each shortcut key according to the shortcut key list.
A second prompt module 130, configured to: and if the key value of the corresponding shortcut key is not inquired, popping up second prompt information for prompting whether the user sets the shortcut key or not on the display interface.
In this embodiment, if the corresponding shortcut key is not queried from the shortcut key list, second prompt information is sent, where the second prompt information is used to prompt a user whether to set a new shortcut key. The second prompt message can prompt the user whether to set a shortcut key in a page popup mode.
Further, when the operation of setting the shortcut key by the user is monitored, entering a shortcut key setting page, wherein the shortcut key setting page comprises a mapping relation table of the shortcut key in a shortcut key list and the operation of the shortcut key, acquiring an instruction input by the user at each preset position in the shortcut key list, updating the shortcut key list based on the mapping relation table and the input instruction, and storing the updated shortcut key list into a database according to a preset data storage format.
When a request for setting a new shortcut key sent by a user is received, entering a shortcut key new setting page, wherein in the page, the shortcut key setting page comprises a mapping relation table of the shortcut keys in a shortcut key list and the operation of the shortcut keys, the user can self-define the shortcut keys (such as text control shortcut keys) according to the requirement and obtain an instruction input by the user at a preset position of the page, and the page further comprises input positions for the user to input a user identification, an operation identification, a shortcut key value and the like. And taking the instruction input by the user as a new key value of the shortcut key, updating the shortcut key list based on the mapping relation table and the input instruction, and storing the updated shortcut key list into a preset database according to a preset data structure. The updated data content of the shortcut key list comprises a main key, a user identifier, an operation identifier and a key dictionary, wherein the key dictionary comprises an event key set by a user and a key value of the key. And when the user enters the conference summary editing page, the page loads the shortcut key defined by the user as the shortcut key for operation, so that the operation of setting the shortcut key by user definition is realized.
Because the browser end cannot store data for a long time, when the cache is overdue or the user manually clears the cache, the user-defined shortcut key instruction set by the user is lost, and therefore the storage unit uses the database of the remote server end for storage.
Furthermore, a plurality of shortcut key operations can be combined into a shortcut key group, corresponding key values are set for the shortcut key group, and when the fact that the user inputs the key value operation of the shortcut key group is monitored, the shortcut key operations in the shortcut key group are sequentially executed according to the preset sequence of the shortcut key group.
The method comprises the steps that a user inputs a shortcut key combination editing instruction, enters a shortcut key combination setting page, inputs a newly-added shortcut key group instruction, sequentially drags and selects shortcut keys needing to be grouped, inputs a storage instruction, and the shortcut key group stores a preset data structure in a storage unit. When the user re-enters the shortcut key using page, loading the shortcut key group to the page, monitoring the user input instruction, and if the user inputs the shortcut key group triggering instruction, sequentially executing all shortcut keys in the triggering group. If the user needs to modify the shortcut group, the user inputs a command of modifying the shortcut key, opens the shortcut group needing to be modified on the page, can delete and add the shortcut key, and can adjust the execution sequence of the shortcut key.
For example: the user can program the 1 'search' shortcut key and the 2 'playing' shortcut key into a shortcut key combination, when the shortcut key is operated, the invention can realize that the global search shortcut key is triggered firstly, so that the user inputs the search content, then the shortcut key is automatically played from the beginning, and the playing is started from the beginning position of the first sentence of the matched search content.
The data content of the shortcut key group comprises a main key, a user identifier and a combined dictionary, and the combined dictionary comprises a shortcut key identifier and a shortcut key execution sequence set by a user. And acquiring the key value of the corresponding key from the storage unit of the shortcut key instruction through the shortcut key identification. Therefore, the user can perform self-defined modification on the shortcut key setting according to own use habits and needs in the system operation process, set familiar shortcut keys which are easy to use, and can group the shortcut keys to achieve the effect of operating multiple keys by one key.
The operation does not need to modify codes, and the user only needs to input an editing instruction into the page, so that the system can automatically monitor the user operation, automatically trigger and open a setting page and a combined operation page of a shortcut key, or trigger the control operation of conference summary text and play of the user. By setting the shortcut keys and the shortcut key groups in a user-defined manner, the flexibility of shortcut key control is improved.
In addition, the invention also provides a shortcut key control method. Fig. 3 is a schematic method flow diagram illustrating an embodiment of the shortcut key control method of the present invention. The processor 12 of the electronic device 1 implements the following steps of the shortcut control method when executing the shortcut control program 10 stored in the memory 11:
step S10: responding to a combined key operation triggered by a user, acquiring a key value of the combined key, generating a timestamp, judging whether the key value of the combined key meets a preset shortcut key starting condition, and calling a preset function to shield an initial shortcut operation of a browser to which a page of the shortcut key belongs when the key value of the combined key meets the preset shortcut key starting condition.
In this embodiment, the keyboard operation triggered by the user is monitored by the method of document.onkeydown of JS, and key values of the combination keys triggered by the user are captured, where the combination keys may include Ctrl keys and other keys, such as Ctrl + s, Ctrl + Alt, and the like. In addition to the Ctrl and Alt keys being event keys, other common key values include, but are not limited to:
1. keycode 37 ═ L eft left arrow
2. key 38 Up arrow
3. key 39 ═ Right arrow
4. key 40 ═ Down arrow
5. key 83 ═ S s letters
6. key 220 less grease bar less than or greater than a bond
When the JS monitors the shortcut key, the browser binds the default action because the browser monitors the keyboard shortcut key, and the webpage of the browser is triggered to store as an operation if the Ctrl + S is pressed at the same time. To ensure that the shortcut key operation achieves the preset effect, the shortcut key operation of the browser can be shielded by using a window. The preset shortcut key starting condition may be event keys including "Ctrl" and "Alt" in the combination key triggered by the user.
Step S20: based on the key values of the combined keys, whether the key values of the shortcut keys corresponding to the key values of the combined keys exist in a prestored shortcut key list or not is inquired, if the key values of the corresponding shortcut keys are inquired, corresponding operation of the inquired shortcut keys is executed, after the corresponding operation is executed, whether the pressing duration of triggering the combined keys by a user is longer than preset duration or not is judged according to the timestamp, and when the pressing duration is longer than the preset duration, first prompt information comprising the preset shortcut key list is popped up on a display interface.
In this embodiment, based on the key values of the combination keys, it is queried whether a pre-stored shortcut key list has a key value of a shortcut key corresponding to the key value of the combination key, if the key value of the corresponding shortcut key is queried, a corresponding operation of the shortcut key is executed, the present solution is described by taking a meeting directory scene of a browser as an example, and the pre-stored shortcut key list includes but is not limited to:
text control shortcut:
1. "Ctrl + S" (i.e., the keyboard Ctrl key is pressed simultaneously with the S key): and the conference summary storage shortcut key is used for quickly storing the current conference summary content. The function of the save key is operated by monitoring the keyboard, if the Ctrl + S is pressed at the same time, the system can judge that the user carries out the Ctrl +83 operation, trigger the bound save method and call the server method to save the conference summary.
2. "Ctrl + R": and the text replacement shortcut key is used for carrying out global search and one-key replacement on the conference summary content, and can replace the text with wrong transcription into the correct text.
3. "Ctrl + F": the text search shortcut key enables a user to search the conference summary content globally, can jump to the position of a search solution result quickly, and facilitates the user to complete voice retrieval through text search.
Playing control shortcut key:
1. "Ctrl + Alt": and the play/pause shortcut key is used for controlling the play and pause of the conference recording. After the play/pause key is pressed, the function is realized by calling a play/pause control interface of the player;
2. "Ctrl + \|": the shortcut key is played from this point, in the process of editing the summary of the meeting, the time of the text content which is currently edited appearing in the audio file can be obtained in real time by using the shortcut key, a player interface is called to set the playing starting position to be the time, and the playing is automatically started;
3. "Ctrl + ←": a fast backing shortcut key, calling a playing fast backing interface of the player when hearing the operation of the combination key, and adjusting the current playing time backwards for 5 seconds when in use (the playing time is adjusted to be 0 second when the playing time is less than or equal to 0 second after adjustment, and is not adjusted backwards any more);
4. "Ctrl + →": a fast forward shortcut key for calling a play fast forward interface of the player when hearing the operation of the combination key, and adjusting the current play time forward for 5 seconds when in use;
5. "Ctrl + ↓": a volume adjustment shortcut key, which calls a volume increasing interface of the player when monitoring the operation of the combination key, and is used for adjusting the current playing volume, and the current playing volume is increased by five percent when in use (when the volume is more than or equal to 100 after adjustment, the volume is adjusted to 100, and upward adjustment is not performed again);
6. "Ctrl + ↓": a volume adjustment shortcut key, which calls a volume reduction interface of the player when hearing the operation of the combination key, is used for adjusting the current playing volume, and reduces the current playing volume by five percent when in use;
and after the corresponding operation is executed, judging whether the pressing time of the user triggering the combined key is longer than a preset time (for example, 2 seconds) or not according to the timestamp, and if the pressing time of the user triggering the combined key is longer than the preset time, sending first prompt information, wherein the first prompt information is used for displaying a preset shortcut key list, and the conference broker can check the current shortcut key and the function corresponding to each shortcut key according to the shortcut key list.
Step S30: and if the key value of the corresponding shortcut key is not inquired, popping up second prompt information for prompting whether the user sets the shortcut key or not on the display interface.
In this embodiment, if the corresponding shortcut key is not queried from the shortcut key list, second prompt information is sent, where the second prompt information is used to prompt a user whether to set a new shortcut key. The second prompt message can prompt the user whether to set a shortcut key in a page popup mode.
Further, when the operation of setting the shortcut key by the user is monitored, entering a shortcut key setting page, wherein the shortcut key setting page comprises a mapping relation table of the shortcut key in a shortcut key list and the operation of the shortcut key, acquiring an instruction input by the user at each preset position in the shortcut key list, updating the shortcut key list based on the mapping relation table and the input instruction, and storing the updated shortcut key list into a database according to a preset data storage format.
When a request for setting a new shortcut key sent by a user is received, entering a shortcut key new setting page, wherein in the page, the shortcut key setting page comprises a mapping relation table of the shortcut keys in a shortcut key list and the operation of the shortcut keys, the user can self-define the shortcut keys (such as text control shortcut keys) according to the requirement and obtain an instruction input by the user at a preset position of the page, and the page further comprises input positions for the user to input a user identification, an operation identification, a shortcut key value and the like. And taking the instruction input by the user as a new key value of the shortcut key, updating the shortcut key list based on the mapping relation table and the input instruction, and storing the updated shortcut key list into a preset database according to a preset data structure. The updated data content of the shortcut key list comprises a main key, a user identifier, an operation identifier and a key dictionary, wherein the key dictionary comprises an event key set by a user and a key value of the key. And when the user enters the conference summary editing page, the page loads the shortcut key defined by the user as the shortcut key for operation, so that the operation of setting the shortcut key by user definition is realized.
Because the browser end cannot store data for a long time, when the cache is overdue or the user manually clears the cache, the user-defined shortcut key instruction set by the user is lost, and therefore the storage unit uses the database of the remote server end for storage.
Furthermore, a plurality of shortcut key operations can be combined into a shortcut key group, corresponding key values are set for the shortcut key group, and when the fact that the user inputs the key value operation of the shortcut key group is monitored, the shortcut key operations in the shortcut key group are sequentially executed according to the preset sequence of the shortcut key group.
The method comprises the steps that a user inputs a shortcut key combination editing instruction, enters a shortcut key combination setting page, inputs a newly-added shortcut key group instruction, sequentially drags and selects shortcut keys needing to be grouped, inputs a storage instruction, and the shortcut key group stores a preset data structure in a storage unit. When the user re-enters the shortcut key using page, loading the shortcut key group to the page, monitoring the user input instruction, and if the user inputs the shortcut key group triggering instruction, sequentially executing all shortcut keys in the triggering group. If the user needs to modify the shortcut group, the user inputs a command of modifying the shortcut key, opens the shortcut group needing to be modified on the page, can delete and add the shortcut key, and can adjust the execution sequence of the shortcut key.
For example: the user can program the 1 'search' shortcut key and the 2 'playing' shortcut key into a shortcut key combination, when the shortcut key is operated, the invention can realize that the global search shortcut key is triggered firstly, so that the user inputs the search content, then the shortcut key is automatically played from the beginning, and the playing is started from the beginning position of the first sentence of the matched search content.
The data content of the shortcut key group comprises a main key, a user identifier and a combined dictionary, and the combined dictionary comprises a shortcut key identifier and a shortcut key execution sequence set by a user. And acquiring the key value of the corresponding key from the storage unit of the shortcut key instruction through the shortcut key identification. Therefore, the user can perform self-defined modification on the shortcut key setting according to own use habits and needs in the system operation process, set familiar shortcut keys which are easy to use, and can group the shortcut keys to achieve the effect of operating multiple keys by one key.
The operation does not need to modify codes, and the user only needs to input an editing instruction into the page, so that the system can automatically monitor the user operation, automatically trigger and open a setting page and a combined operation page of a shortcut key, or trigger the control operation of conference summary text and play of the user. By setting the shortcut keys and the shortcut key groups in a user-defined manner, the flexibility of shortcut key control is improved.
Furthermore, the embodiment of the present invention also provides a computer-readable storage medium, which may be any one or any combination of a hard disk, a multimedia card, an SD card, a flash memory card, an SMC, a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM), a portable compact disc read only memory (CD-ROM), a USB memory, and the like. The computer readable storage medium includes a shortcut control program 10, and when executed by a processor, the shortcut control program 10 implements the following operations:
a response step: responding to a combined key operation triggered by a user, acquiring a key value of the combined key, generating a timestamp, judging whether the key value of the combined key meets a preset shortcut key starting condition, and calling a preset function to shield an initial shortcut operation of a browser to which a page of the shortcut key belongs when the key value of the combined key meets the preset shortcut key starting condition;
a first prompting step: inquiring whether a prestored shortcut key list has a shortcut key value corresponding to the key value of the combination key based on the key value of the combination key, if the corresponding shortcut key value is inquired, executing corresponding operation of the inquired shortcut key, after the corresponding operation is executed, judging whether the pressing time of the user-triggered combination key is longer than a preset time according to the timestamp, and when the judgment is longer than the preset time, popping first prompt information comprising the preset shortcut key list on a display interface; and
a second prompting step: and if the key value of the corresponding shortcut key is not inquired, popping up second prompt information for prompting whether the user sets the shortcut key or not on the display interface.
The specific implementation of the computer readable storage medium of the present invention is substantially the same as the specific implementation of the shortcut key control method described above, and will not be described herein again.
It should be noted that the above-mentioned numbers of the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments. And the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention essentially or contributing to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) as described above and includes several instructions for enabling a terminal device (such as a mobile phone, a computer, an electronic device, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A shortcut key control method is applied to an electronic device, and is characterized by comprising the following steps:
a response step: responding to a combined key operation triggered by a user, acquiring a key value of the combined key, generating a timestamp, judging whether the key value of the combined key meets a preset shortcut key starting condition, and calling a preset function to shield an initial shortcut operation of a browser to which a page of the shortcut key belongs when the key value of the combined key meets the preset shortcut key starting condition;
a first prompting step: inquiring whether a prestored shortcut key list has a shortcut key value corresponding to the key value of the combination key based on the key value of the combination key, if the corresponding shortcut key value is inquired, executing corresponding operation of the inquired shortcut key, after the corresponding operation is executed, judging whether the pressing time of the user-triggered combination key is longer than a preset time according to the timestamp, and when the judgment is longer than the preset time, popping first prompt information comprising the preset shortcut key list on a display interface; and
a second prompting step: and if the key value of the corresponding shortcut key is not inquired, popping up second prompt information for prompting whether the user sets the shortcut key or not on the display interface.
2. The shortcut key control method of claim 1, further comprising:
when the operation of setting the shortcut key by the user is monitored, entering a shortcut key setting page, wherein the shortcut key setting page comprises a mapping relation table of the shortcut key in a shortcut key list and the operation of the shortcut key, acquiring an instruction input by the user at each preset position in the shortcut key list, updating the shortcut key list based on the mapping relation table and the input instruction, and storing the updated shortcut key list into a database according to a preset data storage format.
3. The shortcut key control method of claim 1, further comprising:
the method comprises the steps of combining a plurality of shortcut key operations into a shortcut key group, setting corresponding key values for the shortcut key group, and sequentially executing the shortcut key operations in the shortcut key group according to a preset sequence of the shortcut key group after the fact that the key value operations of the shortcut key group are input by a user is monitored.
4. The shortcut key control method according to claim 2, wherein the data content of the updated shortcut key list includes a main key, a user identifier, an operation identifier, and a key dictionary, and the key dictionary includes an event key set by a user and a key value of the key.
5. The shortcut key control method of claim 3, wherein the data contents of the shortcut key group include a main key, a user identifier, and a combined dictionary including a shortcut key identifier and a shortcut key execution order set by a user.
6. An electronic device, comprising a memory and a processor, wherein a shortcut key control program is stored in the memory, and the shortcut key control program is executed by the processor, and the following steps are implemented:
a response step: responding to a combined key operation triggered by a user, acquiring a key value of the combined key, generating a timestamp, judging whether the key value of the combined key meets a preset shortcut key starting condition, and calling a preset function to shield an initial shortcut operation of a browser to which a page of the shortcut key belongs when the key value of the combined key meets the preset shortcut key starting condition;
a first prompting step: inquiring whether a prestored shortcut key list has a shortcut key value corresponding to the key value of the combination key based on the key value of the combination key, if the corresponding shortcut key value is inquired, executing corresponding operation of the inquired shortcut key, after the corresponding operation is executed, judging whether the pressing time of the user-triggered combination key is longer than a preset time according to the timestamp, and when the judgment is longer than the preset time, popping first prompt information comprising the preset shortcut key list on a display interface; and
a second prompting step: and if the key value of the corresponding shortcut key is not inquired, popping up second prompt information for prompting whether the user sets the shortcut key or not on the display interface.
7. The electronic device of claim 6, wherein the shortcut control program is executed by the processor, further implementing the steps of:
when the operation of setting the shortcut key by the user is monitored, entering a shortcut key setting page, wherein the shortcut key setting page comprises a mapping relation table of the shortcut key in a shortcut key list and the operation of the shortcut key, acquiring an instruction input by the user at each preset position in the shortcut key list, updating the shortcut key list based on the mapping relation table and the input instruction, and storing the updated shortcut key list into a database according to a preset data storage format.
8. The electronic device of claim 6, wherein the shortcut control program is executed by the processor, further implementing the steps of:
the method comprises the steps of combining a plurality of shortcut key operations into a shortcut key group, setting corresponding key values for the shortcut key group, and sequentially executing the shortcut key operations in the shortcut key group according to a preset sequence of the shortcut key group after the fact that the key value operations of the shortcut key group are input by a user is monitored.
9. The electronic device according to claim 7, wherein the data content of the updated shortcut list includes a main key, a user identifier, an operation identifier, and a key dictionary, and the key dictionary includes an event key set by a user and key values of the key.
10. A computer-readable storage medium, characterized in that a shortcut control program is included in the computer-readable storage medium, which shortcut control program, when executed by a processor, implements the steps of the shortcut control method according to any of claims 1 to 5.
CN202010235317.9A 2020-03-30 2020-03-30 Shortcut key control method, electronic device and storage medium Active CN111459298B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010235317.9A CN111459298B (en) 2020-03-30 2020-03-30 Shortcut key control method, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010235317.9A CN111459298B (en) 2020-03-30 2020-03-30 Shortcut key control method, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN111459298A true CN111459298A (en) 2020-07-28
CN111459298B CN111459298B (en) 2023-04-07

Family

ID=71685038

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010235317.9A Active CN111459298B (en) 2020-03-30 2020-03-30 Shortcut key control method, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN111459298B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112346577A (en) * 2020-11-09 2021-02-09 杭州拼便宜网络科技有限公司 Input information correction method, system and related device
CN112386913A (en) * 2020-12-03 2021-02-23 网易(杭州)网络有限公司 Method and device for reminding shortcut operation in game
CN113625930A (en) * 2021-10-11 2021-11-09 统信软件技术有限公司 Data display method, computing device and readable storage medium
CN114089906A (en) * 2021-11-08 2022-02-25 百度在线网络技术(北京)有限公司 Intelligent mirror control method, device, equipment, storage medium and intelligent mirror
CN115097950A (en) * 2022-06-29 2022-09-23 北京天融信网络安全技术有限公司 Key sequence detection method and device
CN115145407A (en) * 2022-07-08 2022-10-04 中国建筑西南设计研究院有限公司 Method and device for quickly setting shortcut key by drawing software
CN118175361A (en) * 2024-05-16 2024-06-11 四川天邑康和通信股份有限公司 IPTV page display method, device, equipment and medium based on shortcut key

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040001098A1 (en) * 2002-06-28 2004-01-01 Kabushiki Kaisha Toshiba Information processing apparatus and input assisting method for use in the same
US8468457B1 (en) * 2011-09-30 2013-06-18 Google Inc. Global keyboard shortcuts management for web applications
CN103607652A (en) * 2013-10-31 2014-02-26 中兴通讯股份有限公司 Method of rapidly switching IPTV (Internet protocol television) display page based on hot key and apparatus thereof
CN106775432A (en) * 2016-12-22 2017-05-31 金蝶软件(中国)有限公司 A kind of method for setting fast key and device
TWI624769B (en) * 2016-11-25 2018-05-21 英業達股份有限公司 System and method for triggering a hotkey of an electric device
CN108733436A (en) * 2017-04-17 2018-11-02 上海卓易科技股份有限公司 system setting method and terminal
CN109426534A (en) * 2017-08-24 2019-03-05 北京国双科技有限公司 A kind of reminding method and device of shortcut key
CN109947420A (en) * 2019-01-29 2019-06-28 深圳点猫科技有限公司 A kind of the shortcut key mechanism implementation method and electronic equipment of code editor
CN110171373A (en) * 2019-05-30 2019-08-27 广州小鹏汽车科技有限公司 A kind of automobile functions of shortcut key configuration method and automobile

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040001098A1 (en) * 2002-06-28 2004-01-01 Kabushiki Kaisha Toshiba Information processing apparatus and input assisting method for use in the same
US8468457B1 (en) * 2011-09-30 2013-06-18 Google Inc. Global keyboard shortcuts management for web applications
CN103607652A (en) * 2013-10-31 2014-02-26 中兴通讯股份有限公司 Method of rapidly switching IPTV (Internet protocol television) display page based on hot key and apparatus thereof
TWI624769B (en) * 2016-11-25 2018-05-21 英業達股份有限公司 System and method for triggering a hotkey of an electric device
CN106775432A (en) * 2016-12-22 2017-05-31 金蝶软件(中国)有限公司 A kind of method for setting fast key and device
CN108733436A (en) * 2017-04-17 2018-11-02 上海卓易科技股份有限公司 system setting method and terminal
CN109426534A (en) * 2017-08-24 2019-03-05 北京国双科技有限公司 A kind of reminding method and device of shortcut key
CN109947420A (en) * 2019-01-29 2019-06-28 深圳点猫科技有限公司 A kind of the shortcut key mechanism implementation method and electronic equipment of code editor
CN110171373A (en) * 2019-05-30 2019-08-27 广州小鹏汽车科技有限公司 A kind of automobile functions of shortcut key configuration method and automobile

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112346577A (en) * 2020-11-09 2021-02-09 杭州拼便宜网络科技有限公司 Input information correction method, system and related device
CN112346577B (en) * 2020-11-09 2024-05-07 杭州拼便宜网络科技有限公司 Input information correction method, system and related device
CN112386913A (en) * 2020-12-03 2021-02-23 网易(杭州)网络有限公司 Method and device for reminding shortcut operation in game
CN112386913B (en) * 2020-12-03 2024-04-12 网易(杭州)网络有限公司 Prompt method and device for shortcut operation in game
CN113625930A (en) * 2021-10-11 2021-11-09 统信软件技术有限公司 Data display method, computing device and readable storage medium
CN114089906A (en) * 2021-11-08 2022-02-25 百度在线网络技术(北京)有限公司 Intelligent mirror control method, device, equipment, storage medium and intelligent mirror
CN115097950A (en) * 2022-06-29 2022-09-23 北京天融信网络安全技术有限公司 Key sequence detection method and device
CN115145407A (en) * 2022-07-08 2022-10-04 中国建筑西南设计研究院有限公司 Method and device for quickly setting shortcut key by drawing software
CN115145407B (en) * 2022-07-08 2023-06-06 中国建筑西南设计研究院有限公司 Method and device for rapidly setting shortcut key for drawing software
CN118175361A (en) * 2024-05-16 2024-06-11 四川天邑康和通信股份有限公司 IPTV page display method, device, equipment and medium based on shortcut key

Also Published As

Publication number Publication date
CN111459298B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN111459298B (en) Shortcut key control method, electronic device and storage medium
US20160255190A1 (en) Mobile terminal and ringtone playing method thereof
US20080107253A1 (en) Methods and systems for speed dial
CN111694490B (en) Setting method and device and electronic equipment
CN112199561A (en) Application search method and device
CN113076288A (en) File processing method and device, electronic equipment and storage medium
CN111026669B (en) Test log management method, test log management device and storage medium
CN112306450A (en) Information processing method and device
CN113282268B (en) Sound effect configuration method and device, storage medium and electronic equipment
CN116302234A (en) Display method, display device, electronic equipment and medium
CN112399238B (en) Video playing method and device and electronic equipment
CN112487247B (en) Video processing method and video processing device
CN113806048A (en) Task execution method, device, storage medium and program product
CN112446191A (en) Text processing method, device, equipment and storage medium
CN113315871B (en) Mobile terminal and operating method thereof
CN112509608B (en) Method and device for recording sound along with channel of USB (Universal Serial bus) equipment and storage medium
CN113189857B (en) Counting method and device for stopwatch
CN110830651B (en) Terminal control method, terminal device and storage medium
CN111818225B (en) Audio data processing method, terminal device and storage medium
US10425532B2 (en) Method and apparatus for storing phone number, and method and apparatus for dialing phone number
CN111078155B (en) Video file reading method, device, equipment and medium
CN115527527A (en) Active dialogue method, device, equipment and storage medium based on behavior analysis
CN117130512A (en) Display method, display device, electronic equipment and storage medium
CN111800543A (en) Audio file processing method, terminal device and storage medium
CN117348904A (en) Application program updating method and device and electronic equipment

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