CN109885241B - Virtual keyboard generation method, server and computer readable storage medium - Google Patents

Virtual keyboard generation method, server and computer readable storage medium Download PDF

Info

Publication number
CN109885241B
CN109885241B CN201910040636.1A CN201910040636A CN109885241B CN 109885241 B CN109885241 B CN 109885241B CN 201910040636 A CN201910040636 A CN 201910040636A CN 109885241 B CN109885241 B CN 109885241B
Authority
CN
China
Prior art keywords
keyboard
cursor
virtual keyboard
height information
input
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
CN201910040636.1A
Other languages
Chinese (zh)
Other versions
CN109885241A (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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN201910040636.1A priority Critical patent/CN109885241B/en
Publication of CN109885241A publication Critical patent/CN109885241A/en
Application granted granted Critical
Publication of CN109885241B publication Critical patent/CN109885241B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a mobile terminal operation experience optimization technology, and discloses a virtual keyboard generation method, a server and a computer readable storage medium, wherein the virtual keyboard generation method comprises the following steps: defining a display area of the virtual keyboard, the display area configured as a text entry area and a numeric entry area, the text entry area configured with a plurality of keyboard configuration attributes; setting at least one safety rule for the plurality of keyboard configuration attributes; responding to a trigger instruction for calling the virtual keyboard, and acquiring the attribute of an input frame where a cursor is located; displaying the text input area or the digital input area according to the attribute of the input box where the cursor is located; and detecting and comparing the height information of the cursor in the input box with the height information of the virtual keyboard so as to adjust the height information of the virtual keyboard. The virtual keyboard of the invention can not conflict with the system keyboard, and the virtual keyboard can be perfectly matched with the page, and the page or the input frame can not be extruded.

Description

Virtual keyboard generation method, server and computer readable storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a virtual keyboard generation method, a server, and a computer-readable storage medium.
Background
In the world of the internet, a large amount of data is input into a system through a keyboard every day, and a system keyboard of the system is selected as an input tool by a general application, but the system keyboard of the terminal has many problems needing attention: sensitive information such as account numbers, account passwords, login tokens, payment passwords, electronic mailboxes, company business licenses and the like cannot be avoided in data input by the terminal every day, then a system keyboard has important potential safety hazards, the style of the system keyboard is single and fixed, and the system keyboard is often influenced by a third-party input method and cannot meet the customized requirement.
Therefore, how to design a keyboard with high safety and customized requirements becomes a problem to be solved urgently.
Disclosure of Invention
In view of the above, the present invention provides a virtual keyboard generation method, a server, and a computer-readable storage medium, which are high in security and can implement rich keyboard types through multiple keyboard configuration attributes.
First, in order to achieve the above object, the present invention provides a server, where the server includes a memory and a processor, and the memory stores a virtual keyboard generation system that can run on the processor, and when the virtual keyboard generation system is executed by the processor, the server implements the following steps:
defining a display area of the virtual keyboard, wherein the display area is configured as a text input area and a number input area, the text input area is configured with a plurality of keyboard configuration attributes, and each keyboard configuration attribute corresponds to a keyboard type;
setting at least one safety rule for the plurality of keyboard configuration attributes, wherein the safety rule at least comprises one of a safety prompt and a safety character string;
responding to a trigger instruction for calling the virtual keyboard, and acquiring the attribute of an input frame where a cursor is located;
displaying the text input area or the digital input area according to the attribute of the input box where the cursor is located; and
and detecting and comparing the height information of the cursor in the input frame with the height information of the virtual keyboard so as to adjust the height information of the virtual keyboard.
Optionally, the step of displaying the text input area or the number input area according to the attribute of the input box where the cursor is located includes:
when the attribute of the input frame where the cursor is located is a digital attribute, displaying a digital input area of the virtual keyboard, wherein the keyboard configuration attribute of the digital input area is a digital safety keyboard; and
and when the attribute of the input box where the cursor is located is a text attribute, displaying the text input area of the virtual keyboard, and acquiring the currently configured keyboard configuration attribute of the text input area so as to call the keyboard type corresponding to the currently configured keyboard configuration attribute.
Optionally, the digital security keyboard includes multiple keyboard layouts, the number keys of each keyboard layout are arranged to be randomly displayed, the cursor corresponds to cursor configuration information, the cursor configuration information is used for defining the display effect and the cursor function of the cursor, and the cursor display effect includes a cursor style and a flashing time.
Optionally, the step of detecting and comparing the height information of the cursor in the input box with the height information of the virtual keyboard to adjust the height information of the virtual keyboard includes:
detecting height information of a cursor in the input frame and height information of the virtual keyboard;
comparing the height information of the cursor in the input box with the height information of the virtual keyboard;
if the height information of the cursor in the input frame is not larger than the height information of the virtual keyboard, performing size reduction and bottom element opening optimization processing on the virtual keyboard; and
if the height information of the cursor in the input box is larger than that of the virtual keyboard, optimizing the virtual keyboard;
the height information of the input frame is the distance between the input frame and the lower boundary of the current interface, and the height information of the virtual keyboard is the distance between the upper boundary of the virtual keyboard and the lower boundary of the current interface.
In addition, in order to achieve the above object, the present invention further provides a virtual keyboard generation method, which is applied to a server, and the virtual keyboard generation method includes:
defining a display area of the virtual keyboard, wherein the display area is configured as a text input area and a number input area, the text input area is configured with a plurality of keyboard configuration attributes, and each keyboard configuration attribute corresponds to a keyboard type;
setting at least one safety rule for the plurality of keyboard configuration attributes, wherein the safety rule at least comprises one of a safety prompt and a safety character string;
responding to a trigger instruction for calling the virtual keyboard, and acquiring the attribute of an input frame where a cursor is positioned;
displaying the text input area or the digital input area according to the attribute of the input box where the cursor is located; and
and detecting and comparing the height information of the cursor in the input box with the height information of the virtual keyboard so as to adjust the height information of the virtual keyboard.
Optionally, the step of displaying the text input area or the number input area according to the attribute of the input box where the cursor is located includes:
when the attribute of the input box where the cursor is located is a digital attribute, displaying a digital input area of the virtual keyboard, wherein the keyboard configuration attribute of the digital input area is a digital security keyboard; and
and when the attribute of the input box where the cursor is located is a text attribute, displaying the text input area of the virtual keyboard, and acquiring the currently configured keyboard configuration attribute of the text input area so as to call the keyboard type corresponding to the currently configured keyboard configuration attribute.
Optionally, the digital security keyboard includes multiple keyboard layouts, the number keys of each keyboard layout are arranged to be randomly displayed, the cursor corresponds to cursor configuration information, the cursor configuration information is used for defining the display effect and the cursor function of the cursor, and the cursor display effect includes a cursor style and a flashing time.
Optionally, the step of detecting and comparing the height information of the cursor in the input box with the height information of the virtual keyboard to adjust the height information of the virtual keyboard includes:
detecting height information of a cursor in the input box and height information of the virtual keyboard;
comparing the height information of the cursor in the input box with the height information of the virtual keyboard;
if the height information of the cursor in the input frame is not larger than the height information of the virtual keyboard, performing size reduction and bottom element opening optimization processing on the virtual keyboard; and
and if the height information of the cursor in the input box is larger than that of the virtual keyboard, optimizing the virtual keyboard.
Optionally, the height information of the input box is a distance between the input box and a lower boundary of the current interface, and the height information of the virtual keyboard is a distance between an upper boundary of the virtual keyboard and the lower boundary of the current interface.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium storing a virtual keyboard generation system, which is executable by at least one processor to cause the at least one processor to execute the steps of the virtual keyboard generation method.
Compared with the prior art, the virtual keyboard generation method, the server and the computer readable storage medium provided by the invention have the advantages that firstly, the display area of the virtual keyboard is defined, the display area is configured to be the text input area and the digital input area, the text input area is configured with a plurality of keyboard configuration attributes, each keyboard configuration attribute corresponds to one keyboard type, secondly, at least one safety rule is set for the keyboard configuration attributes, the safety rule at least comprises one of a safety prompt and a safety character string, furthermore, a trigger instruction for calling the virtual keyboard is responded, the attribute of an input box where a cursor is located is obtained, the text input area or the digital input area is displayed according to the attribute of the input box where the cursor is located, and finally, the height information of the cursor in the input box is detected and compared with the height information of the virtual keyboard, so that the height information of the virtual keyboard is adjusted. Therefore, rich keyboard types can be realized through a plurality of keyboard configuration attributes, the expansion of new keyboard types is supported, the keyboard input is configured with safety rules, the safety is high, meanwhile, because the virtual keyboard input frame component is not a real input frame and cannot conflict with a system keyboard, the scenes of two keyboards can be avoided appearing simultaneously, the virtual keyboard can be perfectly matched with a page, and the page or the input frame cannot be extruded.
Drawings
FIG. 1 is a schematic diagram of an alternative hardware architecture for a server according to the present invention;
FIG. 2 is a schematic diagram of program modules of an embodiment of a virtual keyboard generation system according to the present invention;
FIG. 3 is a schematic diagram illustrating an implementation flow of a virtual keyboard generation method according to an embodiment of the present invention;
reference numerals:
server 2
Network 3
Memory device 11
Processor with a memory having a plurality of memory cells 12
Network interface 13
Virtual keyboard generation system 100
Definition module 101
Setting module 102
Acquisition module 103
Display module 104
Adjusting module 105
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 do not 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.
It should be noted that the description relating to "first", "second", etc. in the present invention is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
Fig. 1 is a schematic diagram of an alternative hardware architecture of the application server 2 according to the present invention.
In this embodiment, the application server 2 may include, but is not limited to, a memory 11, a processor 12, and a network interface 13, which may be communicatively connected to each other through a system bus. It is noted that fig. 2 only shows the application server 2 with components 11-13, but it is to be understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead.
The application server 2 may be a rack server, a blade server, a tower server, or a rack server, and the application server 2 may be an independent server or a server cluster composed of a plurality of servers.
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 application server 2, such as a hard disk or a memory of the application server 2. In other embodiments, the memory 11 may also be an external storage device of the application server 2, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like, provided on the application server 2. Of course, the memory 11 may also comprise both an internal storage unit of the application server 2 and an external storage device thereof. In this embodiment, the memory 11 is generally used for storing an operating system installed in the application server 2 and various types of application software, such as program codes of the virtual keyboard generation system 100. Further, the memory 11 may also be used to temporarily store various types of data that have been output or are to be output.
The processor 12 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 12 is typically arranged to control the overall operation of the application server 2. In this embodiment, the processor 12 is configured to run the program codes stored in the memory 11 or process data, for example, run the virtual keyboard generation system 100.
The network interface 13 may comprise a wireless network interface or a wired network interface, and the network interface 13 is generally used for establishing a communication connection between the application server 2 and other electronic devices.
The hardware structure and functions of the related devices of the present invention have been described in detail so far. Various embodiments of the present invention will be presented based on the above description.
First, the present invention provides a virtual keyboard generation system 100.
Fig. 2 is a block diagram of a virtual keyboard generation system 100 according to an embodiment of the present invention.
In this embodiment, the virtual keyboard generation system 100 includes a series of computer program instructions stored on the memory 11, which when executed by the processor 12, may implement the virtual keyboard generation operations of the embodiments of the present invention. In some embodiments, the virtual keyboard generation system 100 may be divided into one or more modules based on the particular operations implemented by the portions of the computer program instructions. For example, in fig. 2, the virtual keyboard generation system 100 may be divided into a definition module 101, a setting module 102, an acquisition module 103, a display module 104, and an adjustment module 105. Wherein:
the defining module 101 is configured to define a display area of the virtual keyboard, where the display area is configured as a text input area and a number input area, the text input area is configured with a plurality of keyboard configuration attributes, and each keyboard configuration attribute corresponds to a keyboard type.
In one embodiment, the virtual keyboard may be divided into two portions by the definition module 101. One part is a text entry field that can call up a virtual custom keyboard and the other part is a numeric entry field that can be used with other custom input interfaces. The text entry region may be configured by the definition module 101 to support HTML5 standard properties and cursor operations. The number input area may be configured by the definition module 101 to be suitable for a scenario of inputting a mobile phone number, a bank card number, a password, an amount of money, and the like. The text entry field may be designed to be introduced as a component by the definition module 101. The text input area may include a plurality of keyboard attributes, each of the keyboard attributes corresponding to a keyboard type. The definition module 101 can implement a plurality of keyboard types by newly creating or modifying the plurality of keyboard configuration attributes. The keyboard types comprise a numeric keyboard, a full text keyboard, a numeric keyboard, a text keyboard and the like. Because the user can newly create the keyboard configuration attribute through the definition module 101, the expansion of a new keyboard type can be supported, and because the virtual keyboard component is not a real input frame, a system keyboard cannot be triggered, and an embarrassing scene of two keyboards can be avoided.
The setting module 102 is configured to set at least one security rule for the plurality of keyboard configuration attributes, where the security rule at least includes one of a security prompt and a security string.
In one embodiment, the setting module 102 sets at least one security rule for a plurality of keyboard configuration attributes configured in the text input area. The security rules may be designed by the user or set according to an algorithm built into the virtual keyboard. The security rule may include a security prompt or a security string, which is not limited herein. If the security rule includes the security prompt, the user may know to input a specific character string on a certain keyboard layout of the virtual keyboard through the security prompt. For example, the security rules include the security prompt that certain specific letters are displayed in a different color on the keyboard layout of the virtual keyboard than on other keyboards. When the user sees that the display of certain letters on the virtual keyboard is different from other letters, he knows that certain letters are to be entered on the virtual keyboard based on the prompts for those letters. When the virtual keyboard is used each time, the symbols with different brightness shown by the safety prompt are different, the symbols are different in positions of the virtual keyboard and even the keyboard layout of the virtual keyboard, and therefore even if malicious software exists on a computer or a mobile device, the monitored personal information is not a valid password or account.
It should be noted that the above symbols are exemplified by alphabetic keyboards, and in different embodiments, the symbols with different brightness can also be numbers or other punctuation marks. The security rules may also include security strings, where a user sets a number of letters or numbers as the security strings, and in the keyboard layout randomly displayed on the virtual keyboard, the user knows to enter a specific string in the keyboard layout. It can be understood that the security rule may also be a calculation performed by matching an algorithm with the security string, and then inputting the calculation result into the virtual keyboard.
The obtaining module 103 is configured to respond to a trigger instruction for invoking the virtual keyboard, and obtain an attribute of an input box where a cursor is located.
In one embodiment, the interface displayed by the terminal (mobile phone, computer, etc.) often includes the input box, such as a search term input box of a search page, an input box in a chat interface in an instant messaging tool, a search term input box in an e-commerce application, and the like. Moreover, if the input box is included in the interface displayed by the terminal, the user may perform an operation on the input box, for example, click the input box. At this time, the obtaining module 103 responds to an operation instruction of the user for the input box, where the input box is a component of a browser or a client, and the obtaining module 103 may invoke the virtual keyboard, so that the terminal can pop up the virtual keyboard for the user to operate on the virtual keyboard to input information.
In one embodiment, the cursor corresponds to cursor configuration information. The cursor configuration information may be used to define a display effect and a cursor function of the cursor. The display effect of the cursor may include a cursor pattern and a blinking time. The cursor function may include functions of selecting, copying, pasting, etc. of the cursor.
In one embodiment, the attribute of the input box where the cursor is located may include a text attribute and a numerical attribute. When only numbers can be input in the input box, the attribute of the input box where the cursor is located can be defined as the input box for inputting the number attributes, such as a mobile phone number, a bank card number, an amount of money, and the like. When the input box in which the cursor is located can input numbers and/or characters, the attribute of the input box in which the cursor is located can be defined as a text attribute, such as a search page box, a chat interface input box, and the like.
The display module 104 is configured to display the text input area or the number input area according to an attribute of an input box where the cursor is located.
In an embodiment, the display module 104 displays the text input area or the number input area according to the attribute of the input box where the cursor is located, specifically as follows:
d1: when the attribute of the input box where the cursor is located is a numerical attribute, the display module 104 displays a numerical input area of the virtual keyboard, wherein the keyboard configuration attribute of the numerical input area is a numerical security keyboard;
d2: when the attribute of the input box where the cursor is located is a text attribute, the display module 104 displays the text input area of the virtual keyboard, and obtains the keyboard configuration attribute currently configured in the text input area, so as to call the keyboard type corresponding to the current keyboard configuration attribute.
In one embodiment, the keyboard corresponding to the number input area is a number safety keyboard. The digital security Keyboard includes a plurality of Keyboard layouts (Keyboard Layout). The numeric keys of each keyboard layout are arranged to be randomly displayed, so that the keyboard layouts in each occurrence are different. It can be understood that, since the virtual keyboard is a non-physical keyboard, the layout of the keyboard can be changed by programming, so that the arrangement of the keyboard of the virtual keyboard is different from that of the system keyboard.
In an embodiment, when the attribute of the input box where the cursor is located is a digital attribute, it indicates that the current cursor may be located in an input box for inputting a mobile phone number, a bank card number, a password, an amount, and the like, and at this time, the display module 104 displays a digital input area of the virtual keyboard and calls a digital security keyboard of the digital input area to perform digital input.
In an embodiment, when the attribute of the input box where the cursor is located is a text attribute, it indicates that the current cursor may be a search word input box located on a search page, an input box in a chat interface in an instant messaging tool, a search word input box in an e-commerce application, and the like, and at this time, the display module 104 displays a text input area of the virtual keyboard. It can be understood that, since the text input area has a plurality of keyboard configuration attributes, each of the keyboard configuration attributes corresponds to a keyboard type, the obtaining module 103 needs to further obtain the keyboard configuration attribute currently configured in the text input area, so as to call the keyboard type corresponding to the current keyboard configuration attribute to perform text input.
The adjusting module 105 is configured to detect and compare height information of a cursor in the input box with height information of the virtual keyboard, so as to adjust the height information of the virtual keyboard.
In one embodiment, the height information of the cursor in the input box is equal to the height information of the input box, and therefore, the inquired height information of the input box can be used as the height information of the cursor in the input box. The height information of the input box is the distance between the input box and the lower boundary of the current interface. The height information of the virtual keyboard is the distance between the upper boundary of the virtual keyboard and the lower boundary of the current interface.
In an embodiment, the adjusting module 105 detects and compares the height information of the cursor in the input box with the height information of the virtual keyboard to adjust the height information of the virtual keyboard, and the adjusting module 105 may adjust the height information of the virtual keyboard by:
s1: detecting height information of a cursor in the input box and height information of the virtual keyboard;
s2: comparing the height information of the cursor in the input box with the height information of the virtual keyboard;
s3: if the height information of the cursor in the input frame is not larger than the height information of the virtual keyboard, performing size reduction and bottom element opening optimization processing on the virtual keyboard;
s4: and if the height information of the cursor in the input box is larger than that of the virtual keyboard, optimizing the virtual keyboard.
In an embodiment, the adjusting module 105 may query the height information of the input box when the application renders the input box by calling a query interface provided by the application providing the input box, and use the queried height information of the input box as the height information of the cursor in the input box.
In an embodiment, the adjusting module 105 may call a query interface provided by the virtual keyboard to query the height information of the virtual keyboard.
In an embodiment, after the adjusting module 105 detects the height information of the cursor in the input box and the height information of the virtual keyboard, the adjusting module 105 may further compare the height information of the cursor in the input box with the height information of the virtual keyboard.
In one embodiment, when the height information of the cursor in the input box is not greater than the height information of the virtual keyboard, it indicates that if the virtual keyboard is directly displayed, the virtual keyboard will block the input box because the height of the virtual keyboard is higher than the height of the cursor in the input box, so that the user cannot browse the input information in the input box. Therefore, when the height information of the cursor in the input frame is not greater than the height information of the virtual keyboard, the adjusting module 105 needs to perform size reduction and bottom element unfolding optimization on the virtual keyboard to be displayed, so that the input frame is not shielded by the processed virtual keyboard.
In an embodiment, when the height information of the cursor in the input box is greater than the height information of the virtual keyboard, it indicates that the input box is not blocked by the virtual keyboard if the virtual keyboard is directly displayed, and the user can browse the input information in the input box. Therefore, when the height information of the cursor in the input box is greater than the height information of the virtual keyboard, the adjusting module 105 may directly display the virtual keyboard without performing size reduction and optimization of expanding bottom elements on the virtual keyboard to be displayed.
In an embodiment, the adjusting module 105 may determine target height information of a virtual keyboard to be displayed according to height information of a cursor in the input box; then, the adjusting module 105 configures the height information of the virtual keyboard to be displayed as the target height information according to the target height information. It is understood that the target height information is smaller than the height information of the cursor in the input box, and therefore, after the height information of the virtual keyboard is reduced to the target height information, the virtual keyboard will not block the input box.
In an embodiment, the adjusting module 105 may further determine target height information of the virtual keyboard to be displayed according to height information of a cursor in the input box; then, the adjusting module 105 determines the size reduction ratio according to the target height information; finally, the adjusting module 105 configures the display size of the virtual keyboard to be displayed as the size reduction ratio according to the size reduction ratio. It is understood that the target height information is smaller than the height information of the cursor in the input box, and the size reduction scale is smaller than 1. For example, the size reduction ratio is 85%, which means that the whole size of the virtual keyboard to be displayed needs to be reduced to 85% of the whole size of the original virtual keyboard, and the input box will not be obstructed by the virtual keyboard.
According to the virtual keyboard generation system, rich keyboard types can be realized through a plurality of keyboard configuration attributes, the expansion of new keyboard types is supported, the keyboard input is configured with safety rules, the safety is high, meanwhile, because the virtual keyboard input frame assembly is not a real input frame and does not conflict with the system keyboard, the scene that two keyboards appear at the same time can be avoided, the virtual keyboard can be perfectly matched with a page, and the page or the input frame cannot be extruded.
In addition, the invention also provides a virtual keyboard generation method.
Fig. 3 is a schematic diagram illustrating an implementation flow of the virtual keyboard generation method according to an embodiment of the present invention. In this embodiment, the execution order of the steps in the flowchart shown in fig. 3 may be changed and some steps may be omitted according to different requirements.
Step S400, defining a display area of the virtual keyboard, where the display area is configured as a text input area and a number input area, the text input area is configured with a plurality of keyboard configuration attributes, and each keyboard configuration attribute corresponds to a keyboard type.
In one embodiment, the virtual keyboard may be divided into two portions. One part is a text entry area that can be called up as a virtual custom keyboard and the other part is a numeric entry area that can be used with other custom input interfaces. The text entry region may be configured to support HTML5 standard properties and cursor operations. The digital input area can be configured to be suitable for scenes such as mobile phone numbers, bank card numbers, passwords, amount input and the like. The text entry field may be designed to be introduced as a component. The text input area may include a plurality of keyboard attributes, each of the keyboard attributes corresponding to a keyboard type. A plurality of keyboard types may be implemented by newly creating or modifying the plurality of keyboard configuration attributes. The keyboard types comprise a numeric keyboard, a full text keyboard, a numeric keyboard, a text keyboard and the like. Because the user can support the expansion of a new keyboard type by newly establishing the keyboard configuration attribute, and because the virtual keyboard component is not a real input frame, the system keyboard cannot be triggered, and the embarrassing scene of two keyboards can be avoided.
Step S402, at least one safety rule is set for the plurality of keyboard configuration attributes, wherein the safety rule at least comprises one of a safety prompt and a safety character string.
In one embodiment, at least one of the security rules is set for a plurality of keyboard configuration attributes configured for the text entry area. The security rules may be designed by the user or set according to an algorithm built into the virtual keyboard. The security rule may include a security hint or a security string, and is not limited herein. If the security rule includes the security prompt, the user may know to input a specific character string on a certain keyboard layout of the virtual keyboard through the security prompt. For example, the security rules include the security hint indicating that certain specific letters of the keyboard are displayed in a different color than other keyboards on a certain keyboard layout of the virtual keyboard. When the user sees that the display of certain letters on the virtual keyboard is different from other letters, he knows that certain letters are to be entered on the virtual keyboard based on the prompts for those letters. When the virtual keyboard is used each time, the symbols with different brightness shown by the safety prompt are different, the symbols are different in positions of the virtual keyboard and even the keyboard layout of the virtual keyboard, and therefore even if malicious software exists on a computer or a mobile device, the monitored personal information is not a valid password or account.
It should be noted that the above symbols are exemplified by alphabetic keyboards, and in different embodiments, the symbols with different brightness can also be numbers or other punctuation marks. The security rules may also include security strings, where a user sets a number of letters or numbers as the security strings, and in the keyboard layout randomly displayed on the virtual keyboard, the user knows to enter a specific string in the keyboard layout. It can be understood that the security rule may also be a calculation performed by matching an algorithm with the security string, and then inputting the calculation result into the virtual keyboard.
And S404, responding to a trigger instruction for calling the virtual keyboard, and acquiring the attribute of the input box where the cursor is positioned.
In one embodiment, the interface displayed by the terminal (mobile phone, computer, etc.) often includes the input box, such as a search term input box of a search page, an input box in a chat interface in an instant messaging tool, a search term input box in an e-commerce application, and the like. Moreover, if the input box is included in the interface displayed by the terminal, the user may perform an operation on the input box, for example, click the input box. At this time, in response to an operation instruction of the user for the input box, as a component of a browser or a client, may invoke the virtual keyboard, so that the terminal can pop up the virtual keyboard for the user to operate on the virtual keyboard to input information.
In one embodiment, the cursor corresponds to cursor configuration information. The cursor configuration information may be used to define a display effect and a cursor function of the cursor. The cursor display effect may include a cursor pattern and a blinking time. The cursor function may include functions of selecting, copying, pasting, etc. of the cursor.
In one embodiment, the attribute of the input box where the cursor is located may include a text attribute and a numerical attribute. When only numbers can be input into the input box, the attribute of the input box where the cursor is located may be defined as the input box for inputting the number attributes, such as a mobile phone number, a bank card number, an amount of money, and the like. When the input box in which the cursor is located can input numbers and/or characters, the attribute of the input box in which the cursor is located can be defined as a text attribute, such as a search page box, a chat interface input box, and the like.
Step S406, displaying the text input area or the number input area according to the attribute of the input box where the cursor is located.
In one embodiment, the text input area or the number input area is displayed according to an attribute of an input box where the cursor is located, and the specific display steps are as follows:
d1: when the attribute of the input box where the cursor is located is a digital attribute, displaying a digital input area of the virtual keyboard, wherein the keyboard configuration attribute of the digital input area is a digital security keyboard;
d2: and when the attribute of the input box where the cursor is positioned is a text attribute, displaying a text input area of the virtual keyboard, and acquiring the keyboard configuration attribute currently configured in the text input area so as to call a keyboard type corresponding to the current keyboard configuration attribute.
In one embodiment, the keyboard corresponding to the number input area is a number safety keyboard. The digital security Keyboard includes a plurality of Keyboard layouts (Keyboard Layout). The numeric keys of each keyboard layout are arranged to be randomly displayed, so that the keyboard layouts in each occurrence are different. It can be understood that, since the virtual keyboard is a non-physical keyboard, the keyboard layout can be changed by programming, so that the keyboard arrangement of the virtual keyboard is different from that of the system keyboard.
In an embodiment, when the attribute of the input box where the cursor is located is a digital attribute, it indicates that the current cursor may be located in an input box for inputting a mobile phone number, a bank card number, a password, an amount, and the like, at this time, a digital input area of the virtual keyboard is displayed, and a digital security keyboard of the digital input area is called to perform digital input.
In an embodiment, when the attribute of the input box where the cursor is located is a text attribute, it indicates that the current cursor may be a search term input box located on a search page, an input box in a chat interface in an instant messaging tool, a search term input box in an e-commerce application, and the like, and at this time, a text input area of the virtual keyboard is displayed. It can be understood that, since the text input area has a plurality of keyboard configuration attributes, each of the keyboard configuration attributes corresponds to a keyboard type, the keyboard configuration attribute currently configured in the text input area needs to be obtained to call the keyboard type corresponding to the current keyboard configuration attribute, so as to perform text input.
Step S408, detecting and comparing the height information of the cursor in the input box with the height information of the virtual keyboard to adjust the height information of the virtual keyboard.
In one embodiment, the height information of the cursor in the input box is equal to the height information of the input box, and therefore, the inquired height information of the input box can be used as the height information of the cursor in the input box. The height information of the input box is the distance between the input box and the lower boundary of the current interface. The height information of the virtual keyboard is the distance between the upper boundary of the virtual keyboard and the lower boundary of the current interface.
In one embodiment, the height information of the cursor in the input box is detected and compared with the height information of the virtual keyboard to adjust the height information of the virtual keyboard, and the specific adjusting steps are as follows:
s1: detecting height information of a cursor in the input box and height information of the virtual keyboard;
s2: comparing the height information of the cursor in the input box with the height information of the virtual keyboard;
s3: if the height information of the cursor in the input frame is not larger than the height information of the virtual keyboard, performing size reduction and bottom element opening optimization processing on the virtual keyboard;
s4: and if the height information of the cursor in the input box is larger than that of the virtual keyboard, optimizing the virtual keyboard.
In an embodiment, the height information of the input box when the application renders the input box can be queried by calling a query interface provided by the application providing the input box, and the queried height information of the input box is used as the height information of the cursor in the input box.
In one embodiment, a query interface provided by the virtual keyboard may be invoked to query the height information of the virtual keyboard.
In an embodiment, after the height information of the cursor in the input box and the height information of the virtual keyboard are detected, the height information of the cursor in the input box may be compared with the height information of the virtual keyboard.
In one embodiment, when the height information of the cursor in the input box is not greater than the height information of the virtual keyboard, it indicates that if the virtual keyboard is directly displayed, the virtual keyboard will block the input box because the height of the virtual keyboard is higher than the height of the cursor in the input box, so that the user cannot browse the input information in the input box. Therefore, when the height information of the cursor in the input frame is not greater than the height information of the virtual keyboard, the virtual keyboard to be displayed needs to be subjected to size reduction and bottom element unfolding optimization processing, so that the input frame cannot be shielded by the processed virtual keyboard.
In an embodiment, when the height information of the cursor in the input box is greater than the height information of the virtual keyboard, it indicates that the input box is not blocked by the virtual keyboard if the virtual keyboard is directly displayed, and the user can browse the input information in the input box. Therefore, when the height information of the cursor in the input box is larger than that of the virtual keyboard, the virtual keyboard can be directly displayed without performing size reduction and bottom element opening optimization processing on the virtual keyboard to be displayed.
In one embodiment, the target height information of the virtual keyboard to be displayed may be determined according to the height information of the cursor in the input box; and then, configuring the height information of the virtual keyboard to be displayed as the target height information according to the target height information. It is understood that the target height information is smaller than the height information of the cursor in the input box, and therefore, after the height information of the virtual keyboard is reduced to the target height information, the virtual keyboard will not block the input box.
In an embodiment, the target height information of the virtual keyboard to be displayed can be determined according to the height information of the cursor in the input box; then, determining the size reduction ratio according to the target height information; and finally, configuring the display size of the virtual keyboard to be displayed as the size reduction scale according to the size reduction scale. It is understood that the target height information is smaller than the height information of the cursor in the input box, and the size reduction scale is smaller than 1. For example, the size reduction ratio is 85%, which means that the whole size of the virtual keyboard to be displayed needs to be reduced to 85% of the whole size of the original virtual keyboard, and the input box will not be obstructed by the virtual keyboard.
According to the virtual keyboard generation method, rich keyboard types can be realized through a plurality of keyboard configuration attributes, expansion of new keyboard types is supported, safety rules are configured in keyboard input, safety is high, meanwhile, because the virtual keyboard input frame assembly is not a real input frame and does not conflict with a system keyboard, scenes of two keyboards can be avoided, the virtual keyboard can be perfectly matched with a page, and the page or the input frame cannot be extruded.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
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 solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, 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 virtual keyboard generation method is applied to a server and is characterized by comprising the following steps:
defining a display area of the virtual keyboard, the display area configured as a text input area and a number input area, the text input area configured with a plurality of keyboard configuration attributes, each of the keyboard configuration attributes corresponding to a keyboard type, the keyboard types including a numeric keyboard, a full-text keyboard, a numeric keyboard, and a text keyboard;
setting at least one safety rule for the plurality of keyboard configuration attributes, wherein the safety rule at least comprises one of a safety prompt and a safety character string;
responding to a trigger instruction for calling the virtual keyboard, and acquiring the attribute of an input frame where a cursor is located;
displaying the text input area or the digital input area according to the attribute of the input box where the cursor is located, specifically comprising: when the attribute of the input frame where the cursor is located is a numerical attribute, displaying a numerical input area of the virtual keyboard, wherein the keyboard configuration attribute of the numerical input area is a numerical safety keyboard, and the keyboard layout of the numerical safety keyboard is a keyboard layout which is randomly displayed by arranging numerical keys and is different from a system keyboard; when the attribute of the input box where the cursor is located is a text attribute, displaying a text input area of the virtual keyboard, and acquiring a currently configured keyboard configuration attribute of the text input area to call a keyboard type corresponding to the currently configured keyboard configuration attribute; and
and detecting and comparing the height information of the cursor in the input box with the height information of the virtual keyboard so as to adjust the height information of the virtual keyboard.
2. The virtual keyboard generation method of claim 1, wherein the digital security keyboard comprises a plurality of keyboard layouts, the number keys of each keyboard layout are arranged to be randomly displayed, the cursor corresponds to cursor configuration information, the cursor configuration information is used for defining the display effect of the cursor and the cursor function, and the cursor display effect comprises a cursor pattern and a flashing time.
3. The method for generating a virtual keyboard according to any one of claims 1-2, wherein the step of detecting and comparing the height information of the cursor in the input box with the height information of the virtual keyboard to adjust the height information of the virtual keyboard comprises:
detecting height information of a cursor in the input box and height information of the virtual keyboard;
comparing the height information of the cursor in the input box with the height information of the virtual keyboard;
if the height information of the cursor in the input frame is not larger than the height information of the virtual keyboard, performing size reduction and bottom element opening optimization processing on the virtual keyboard; and
and if the height information of the cursor in the input box is larger than that of the virtual keyboard, optimizing the virtual keyboard.
4. The virtual keyboard generation method of claim 1, wherein the height information of the input box is a distance between the input box and a lower boundary of a current interface, and the height information of the virtual keyboard is a distance between an upper boundary of the virtual keyboard and the lower boundary of the current interface.
5. A server, comprising a memory, a processor, the memory having stored thereon a virtual keyboard generation system operable on the processor, the virtual keyboard generation system when executed by the processor implementing the steps of:
defining a display area of the virtual keyboard, the display area configured as a text entry area and a numeric entry area, the text entry area configured with a plurality of keyboard configuration attributes, each of the keyboard configuration attributes corresponding to a keyboard type, the keyboard types including a numeric keyboard, a full-text keyboard, a numeric keyboard, and a text keyboard;
setting at least one safety rule for the plurality of keyboard configuration attributes, wherein the safety rule at least comprises one of a safety prompt and a safety character string;
responding to a trigger instruction for calling the virtual keyboard, and acquiring the attribute of an input frame where a cursor is located;
displaying the text input area or the number input area according to the attribute of the input box where the cursor is located, specifically comprising: when the attribute of the input frame where the cursor is located is a numerical attribute, displaying a numerical input area of the virtual keyboard, wherein the keyboard configuration attribute of the numerical input area is a numerical safety keyboard, and the keyboard layout of the numerical safety keyboard is a keyboard layout which is randomly displayed by arranging numerical keys and is different from a system keyboard; when the attribute of the input box where the cursor is located is a text attribute, displaying a text input area of the virtual keyboard, and acquiring a currently configured keyboard configuration attribute of the text input area to call a keyboard type corresponding to the currently configured keyboard configuration attribute; and
and detecting and comparing the height information of the cursor in the input box with the height information of the virtual keyboard so as to adjust the height information of the virtual keyboard.
6. The server according to claim 5, wherein the digital security keyboard comprises a plurality of keyboard layouts, the number keys of each keyboard layout are arranged to be randomly displayed, the cursor corresponds to cursor configuration information, the cursor configuration information is used for defining the display effect and the cursor function of the cursor, and the cursor display effect comprises a cursor pattern and a flashing time.
7. The server according to any one of claims 5-6, wherein the step of detecting and comparing the height information of the cursor in the input box with the height information of the virtual keyboard to adjust the height information of the virtual keyboard comprises:
detecting height information of a cursor in the input box and height information of the virtual keyboard;
comparing the height information of the cursor in the input box with the height information of the virtual keyboard;
if the height information of the cursor in the input frame is not larger than the height information of the virtual keyboard, performing size reduction and bottom element opening optimization processing on the virtual keyboard; and
if the height information of the cursor in the input box is larger than the height information of the virtual keyboard, optimizing the virtual keyboard;
the height information of the input frame is the distance between the input frame and the lower boundary of the current interface, and the height information of the virtual keyboard is the distance between the upper boundary of the virtual keyboard and the lower boundary of the current interface.
8. A computer-readable storage medium storing a virtual keyboard generation system executable by at least one processor to cause the at least one processor to perform the steps of the virtual keyboard generation method of any one of claims 1-4.
CN201910040636.1A 2019-01-16 2019-01-16 Virtual keyboard generation method, server and computer readable storage medium Active CN109885241B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910040636.1A CN109885241B (en) 2019-01-16 2019-01-16 Virtual keyboard generation method, server and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910040636.1A CN109885241B (en) 2019-01-16 2019-01-16 Virtual keyboard generation method, server and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109885241A CN109885241A (en) 2019-06-14
CN109885241B true CN109885241B (en) 2022-10-21

Family

ID=66926141

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910040636.1A Active CN109885241B (en) 2019-01-16 2019-01-16 Virtual keyboard generation method, server and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109885241B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110531872A (en) * 2019-08-20 2019-12-03 北京小米移动软件有限公司 Input method window methods of exhibiting, device, equipment and storage medium
CN110598486B (en) * 2019-08-30 2022-02-15 北京奇艺世纪科技有限公司 Virtual keyboard encryption method and device and readable storage medium
CN110764624A (en) * 2019-09-18 2020-02-07 北京你财富计算机科技有限公司 Method and device for customizing numeric keyboard for internet finance and electronic equipment
CN111090339A (en) * 2019-12-12 2020-05-01 上海钧正网络科技有限公司 License plate number input method, device, terminal, system and storage medium
CN112099719A (en) * 2020-09-11 2020-12-18 邹寿飞 Input method, device and computer storage medium
CN112612450A (en) * 2020-12-18 2021-04-06 平安普惠企业管理有限公司 Method, device, terminal and storage medium for implementing text input box
CN112799578B (en) * 2021-01-26 2022-06-17 挂号网(杭州)科技有限公司 Keyboard drawing method and device, electronic equipment and storage medium
CN113703592A (en) * 2021-08-31 2021-11-26 维沃移动通信有限公司 Secure input method and device
CN114153370A (en) * 2021-12-01 2022-03-08 常州市新瑞得仪器有限公司 Control method and system of digital virtual keyboard, UE (user Equipment) equipment and storage medium
CN114675905B (en) * 2022-04-07 2024-03-08 亿咖通(湖北)技术有限公司 Information display method, vehicle-mounted system and readable storage medium
CN115174984A (en) * 2022-06-30 2022-10-11 Vidaa国际控股(荷兰)公司 Display method and display equipment of payment interface

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101853136A (en) * 2010-06-22 2010-10-06 上海合合信息科技发展有限公司 Virtual keyboard and dynamic adjustment method thereof and electronic device
CN102314296A (en) * 2010-06-30 2012-01-11 北京搜狗科技发展有限公司 Method for displaying virtual keyboard, virtual keyboard and touch screen terminal
CN105022494A (en) * 2014-04-30 2015-11-04 虹映科技股份有限公司 Safe input method and system of virtual keyboard
CN107122120A (en) * 2017-05-25 2017-09-01 深圳天珑无线科技有限公司 A kind of processing method of dummy keyboard, device and terminal

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102566924B (en) * 2011-12-26 2014-01-01 重庆新媒农信科技有限公司 Soft keyboard operation processing method capable of enhancing safety protection
CN103965368A (en) * 2013-02-04 2014-08-06 陈朋 Bitter herbs polysaccharide extraction method
CN106709382B (en) * 2015-07-21 2019-12-24 阿里巴巴集团控股有限公司 Keyboard display method and device
CN106203184B (en) * 2016-07-06 2019-05-17 深圳市金立通信设备有限公司 A kind of keyboard output method and terminal
CN107797748B (en) * 2016-09-05 2020-07-21 深圳光启合众科技有限公司 Virtual keyboard input method and device and robot
CN107577358A (en) * 2017-09-12 2018-01-12 Tcl海外电子(惠州)有限公司 Dummy keyboard input method, device and computer-readable recording medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101853136A (en) * 2010-06-22 2010-10-06 上海合合信息科技发展有限公司 Virtual keyboard and dynamic adjustment method thereof and electronic device
CN102314296A (en) * 2010-06-30 2012-01-11 北京搜狗科技发展有限公司 Method for displaying virtual keyboard, virtual keyboard and touch screen terminal
CN105022494A (en) * 2014-04-30 2015-11-04 虹映科技股份有限公司 Safe input method and system of virtual keyboard
CN107122120A (en) * 2017-05-25 2017-09-01 深圳天珑无线科技有限公司 A kind of processing method of dummy keyboard, device and terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于人机工程学的键盘设计;杨明朗等;《包装工程》;20051015(第05期);168-170 *

Also Published As

Publication number Publication date
CN109885241A (en) 2019-06-14

Similar Documents

Publication Publication Date Title
CN109885241B (en) Virtual keyboard generation method, server and computer readable storage medium
CN107783762B (en) Interface generation method and device, storage medium and computer equipment
CN103761110B (en) browser font display processing method and device
US9513763B1 (en) Adaptive user interfaces
CN107203595A (en) A kind of method of the dynamic generation web interface based on flexible form
CN111881662A (en) Form generation method, device, processing equipment and storage medium
CN106951796A (en) A kind of desensitization method and its device of data-privacy protection
CN110703977A (en) H5 webpage input keyboard implementation method, device, equipment and storage medium
CN112231676A (en) Method, device, equipment and storage medium for generating, displaying and verifying graphic verification code
CN109086342B (en) Method, medium and terminal for mass production and operation and maintenance of website templates
JP2006163825A (en) Personal identification system
US20150160792A1 (en) Dynamically-generated selectable option icons
CN114629800B (en) Visual generation method, device, terminal and storage medium for industrial control network target range
WO2023274195A1 (en) Firmware configuration method and apparatus, device and storage medium
US8370790B2 (en) Computer aided design system for checking dimensions of patterns and method
CN110968311A (en) Front-end page construction method and device and electronic equipment
JP6113983B2 (en) Screen control display system and screen control display program
CN110908570B (en) Image processing method, device, terminal and storage medium
CN112948817A (en) Permission control method and device of application program, computer equipment and medium
CN112528189A (en) Data-based component packaging method and device, computer equipment and storage medium
JP2018055392A (en) Control panel design support system and method
CN111221917A (en) Intelligent partition storage method and device and computer readable storage medium
KR102330097B1 (en) Apparatus and method for automatic configuration based on relation between items
CN112799578B (en) Keyboard drawing method and device, electronic equipment and storage medium
JP5658196B2 (en) Multi-device compatible web server system and multi-device compatible method in web server system

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