CN111459298B - 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
CN111459298B
CN111459298B CN202010235317.9A CN202010235317A CN111459298B CN 111459298 B CN111459298 B CN 111459298B CN 202010235317 A CN202010235317 A CN 202010235317A CN 111459298 B CN111459298 B CN 111459298B
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.)
Active
Application number
CN202010235317.9A
Other languages
Chinese (zh)
Other versions
CN111459298A (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; if yes, 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 time is longer than the preset time, 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 apparatus, and a storage medium, which are intended 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 combination key operation triggered by a user, acquiring a key value of the combination key, generating a timestamp, judging whether the key value of the combination 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 preset shortcut key starting condition is judged to be met;
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 the memory stores a shortcut key control program, and the shortcut key control program is executed by the processor to realize 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.
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, and the key dictionary includes an event key set by the user and a key value of the key.
In order to achieve the above object, the present invention further provides a computer readable storage medium, where the computer readable storage medium includes a shortcut key control program, and when the shortcut key control program is executed by a processor, the shortcut key control program implements any step of the shortcut key control method.
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 combination keys are obtained and the time stamps are generated by monitoring the combination key operation triggered by a user, whether the key values of the combination keys meet the preset shortcut key starting condition or not is judged, if yes, the initial shortcut operation of a browser to which a page of the shortcut keys belongs is shielded by a preset function is called, 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 is inquired, if yes, the corresponding operation of the inquired shortcut keys is executed, whether the pressing duration of the combination keys triggered by the user is larger than the preset duration or not is judged according to the time stamps, if yes, first prompt information comprising the shortcut key list is popped on a display interface, and if the key values of the corresponding shortcut keys are not inquired, whether the user sets the shortcut keys or not is popped 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 present invention will be further described 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 further described in 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 do not limit the invention. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to 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 flash memory, hard disks, multimedia cards, card-type memory (e.g., SD or DX memory, etc.), random Access Memory (RAM), static Random Access Memory (SRAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), programmable Read Only Memory (PROM), magnetic memory, magnetic disks, optical disks, 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 and various application software installed in the electronic device 1, 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 execute the program code stored in the memory 11 or process data, for example, execute the program code of the shortcut control program 10.
The display 13 may be referred to as a display screen or display unit. The display 13 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an Organic Light-Emitting Diode (OLED) touch panel, or the like in some embodiments. The display 13 is used for displaying information processed in the electronic device 1 and for displaying a visual work interface, for example, results 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 include a user interface, the user interface may include a Display (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface may further include a standard wired interface and a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an Organic Light-Emitting Diode (OLED) touch screen, or the like. The display, which may also be referred to as a display screen or display unit, is suitable, among other things, for displaying information processed in the electronic apparatus 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 11 and executed by the processor 12 to accomplish the present invention. A module as referred to herein is a set of computer program instruction segments capable of performing a specified function.
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 user-triggered keyboard operation is monitored by a document. In addition to the Ctrl and Alt keys being event keys, other common key values include, but are not limited to:
1. keyode 37= left arrow
2. keyode 38= up arrow
3. keyode 39= right arrow
4. keyode 40= down arrow
5. keyode 83 =sletter
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., pressing of the Ctrl key and the S key of the keyboard simultaneously): 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 'Ctrl + S' is pressed at the same time, the system will judge that the user performs 'Ctrl + 83' operation, trigger the save method of the binding, 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 with the correct text.
3. "Ctrl + F": the text search shortcut key enables a user to search 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, when the operation of the combination key is heard, a playing fast backing interface of the player is called for adjusting the current playing time, and when the playing shortcut key is used, the current playing time is adjusted backwards for 5 seconds (when the adjusted playing time is less than or equal to 0 second, the playing time is adjusted to 0 second, and the playing shortcut key is not adjusted backwards);
4. "Ctrl + →": a fast forward shortcut key, which calls a play fast forward interface of the player when hearing the operation of the combination key, and is used for adjusting the current play time, and the current play time is adjusted 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, is used for adjusting the current playing volume, and increases the current playing volume by five percent when in use (when the volume is adjusted to be more than or equal to 100, the volume is adjusted to be 100, and upward adjustment is not performed any more);
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 prompting 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 a 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 a new shortcut key needs to be set. 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 an instruction input by a 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. When a user enters a conference summary editing page, the page loads a shortcut key customized by the user as an operation shortcut key, so that the operation of setting the shortcut key by the user 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 to use the page, the shortcut key group is loaded to the page, the user input instruction is monitored, and if the user inputs the shortcut key group trigger instruction, all shortcut keys in the trigger group are sequentially executed. If the user needs to modify the shortcut group, the shortcut key modification instruction is input, the shortcut key group needing to be modified is opened on the page, the shortcut keys can be deleted and newly added, and the execution sequence of the shortcut keys can be adjusted.
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 command through the shortcut key identification. Therefore, the user can perform custom modification on the shortcut key setting according to the use habit and the requirement of the user in the system operation process, the familiar shortcut key is easy to use and use, and meanwhile, the shortcut keys can be grouped to achieve the effect of operating multiple keys by one key.
The operation does not need to modify codes, a user only needs to input an editing instruction to a page, 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 conference summary text control and play control operation of the user. By setting the shortcut keys and the shortcut key group 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 combination key operation triggered by a user, acquiring a key value of the combination key, generating a timestamp, judging whether the key value of the combination 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 combination key meets the preset shortcut key starting condition.
In this embodiment, the user-triggered keyboard operation is monitored by a document. Besides Ctrl and Alt keys as event keys, other common key values include, but are not limited to:
1. keyode 37= left arrow
2. keyode 38= up arrow
3. keyode 39= right arrow
4. keyode 40= down arrow
5. keyode 83 =sletter
6. keyode 220 =lessgrease bar less than greater than key
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 that event keys including "Ctrl" and "Alt" in the combination key triggered by the user are monitored.
Step S20: and 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 triggering the combination key is longer than preset time according to the timestamp, and when the pressing time is judged to be longer than the preset time, popping up first prompt information comprising the preset shortcut key list 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., pressing of the Ctrl key and the S key of the keyboard simultaneously): 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 with 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 a play/pause key is pressed, the function is realized by calling a play/pause control interface of the player;
2. "Ctrl + \|": playing a shortcut key, wherein in the process of editing the summary of the conference, the shortcut key can be used for acquiring the time of the text content currently being edited in an audio file in real time, calling a player interface to set a playing start position to the time, and automatically starting playing;
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 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 (after the adjustment, the volume is adjusted to be 100 when the volume is more than or equal to 100, and the upward adjustment is not carried out any more);
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 newly added shortcut key sent by a user is received, entering a shortcut key newly added 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 a text control shortcut key) according to the requirement and obtain an instruction input by the user at the 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 event keys set by a user and key values of the keys. 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 custom modification on the shortcut key setting according to the use habit and the requirement of the user in the system operation process, the familiar shortcut key is easy to use and use, and meanwhile, the shortcut keys can be grouped 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 group 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 the shortcut control program 10 implements the following operations when executed by a processor:
a response step: responding to a combination key operation triggered by a user, acquiring a key value of the combination key, generating a timestamp, judging whether the key value of the combination 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 preset shortcut key starting condition is judged to be met;
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 numbers of the embodiments of the present invention are only for description, and do not represent the advantages and disadvantages of the embodiments. And the terms "comprises," "comprising," or any other variation thereof, herein 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 phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of another identical element in a process, apparatus, article, or method comprising 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 is not intended to limit the scope of the present invention, and all equivalent structures or equivalent processes performed by the present invention or directly or indirectly applied to other related technical fields are also included in the scope of the present invention.

Claims (8)

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: 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; and
the setting step: 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.
2. 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 monitoring that a user inputs the key value operations of the shortcut key group.
3. The shortcut key control method according to claim 1, 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.
4. The shortcut key control method of claim 2, wherein the data contents of the shortcut key group include a main key, a user id, and a combined dictionary including a shortcut key id and a shortcut key execution order set by a user.
5. 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: 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; and
the setting step: 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 to a database according to a preset data storage format.
6. The electronic device of claim 5, wherein the shortcut control program is executed by the processor and further performs 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 monitoring that a user inputs the key value operations of the shortcut key group.
7. The electronic device according to claim 5, wherein the data content of the updated shortcut list comprises a main key, a user identifier, an operation identifier and a key dictionary, and the key dictionary comprises an event key set by a user and key values of the key.
8. 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 of any of claims 1 to 4.
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 CN111459298A (en) 2020-07-28
CN111459298B true 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)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112346577B (en) * 2020-11-09 2024-05-07 杭州拼便宜网络科技有限公司 Input information correction method, system and related device
CN112386913B (en) * 2020-12-03 2024-04-12 网易(杭州)网络有限公司 Prompt method and device for shortcut operation in game
CN113625930B (en) * 2021-10-11 2022-01-18 统信软件技术有限公司 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
CN115145407B (en) * 2022-07-08 2023-06-06 中国建筑西南设计研究院有限公司 Method and device for rapidly setting shortcut key for drawing software

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8468457B1 (en) * 2011-09-30 2013-06-18 Google Inc. Global keyboard shortcuts management for web applications
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
CN109426534A (en) * 2017-08-24 2019-03-05 北京国双科技有限公司 A kind of reminding method and device of shortcut key

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004030535A (en) * 2002-06-28 2004-01-29 Toshiba Corp Information processor and input supporting method used in the processor
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
CN108733436A (en) * 2017-04-17 2018-11-02 上海卓易科技股份有限公司 system setting method and terminal
CN109947420B (en) * 2019-01-29 2022-08-23 深圳点猫科技有限公司 Method for realizing shortcut key mechanism of code editor and electronic equipment
CN110171373B (en) * 2019-05-30 2021-06-04 广州小鹏汽车科技有限公司 Automobile shortcut key function configuration method and automobile

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8468457B1 (en) * 2011-09-30 2013-06-18 Google Inc. Global keyboard shortcuts management for web applications
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
CN109426534A (en) * 2017-08-24 2019-03-05 北京国双科技有限公司 A kind of reminding method and device of shortcut key

Also Published As

Publication number Publication date
CN111459298A (en) 2020-07-28

Similar Documents

Publication Publication Date Title
CN111459298B (en) Shortcut key control method, electronic device and storage medium
CN107741820B (en) Input method keyboard display method and mobile terminal
CN105701398A (en) Method and device for opening auxiliary function permission and electronic equipment
CN109428968B (en) Method and device for controlling terminal and storage medium
CN111694490A (en) Setting method and device and electronic equipment
CN111813305A (en) Application program starting method and device
CN106888308A (en) A kind of method of speech processing and mobile terminal
CN113076288A (en) File processing method and device, electronic equipment and storage medium
CN112199561A (en) Application search method and device
CN112306450A (en) Information processing method and device
CN107239307A (en) The display methods and device of version updating information
CN116302234A (en) Display method, display device, electronic equipment and medium
US20070094280A1 (en) Mobile communication terminal
CN112399238B (en) Video playing method and device and electronic equipment
US20050179664A1 (en) Keyboard with extension keys and method for setting key codes of the extension keys thereof
CN113325986A (en) Program control method, program control device, electronic device and readable storage medium
CN108228299B (en) Display method and electronic equipment
US20130111318A1 (en) Communication terminal apparatus
CN112509608B (en) Method and device for recording sound along with channel of USB (Universal Serial bus) equipment and storage medium
CN113315871B (en) Mobile terminal and operating method thereof
CN111818225B (en) Audio data processing method, terminal device and storage medium
CN112783550B (en) Application program management method and device
CN112860147B (en) Electronic equipment operation method and device and electronic equipment
CN113189857B (en) Counting method and device for stopwatch
CN117354594A (en) Method and device for generating media content, electronic equipment and readable storage medium

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