CN111580739A - Dynamic adjustment method and device for touch area of key and virtual keyboard - Google Patents

Dynamic adjustment method and device for touch area of key and virtual keyboard Download PDF

Info

Publication number
CN111580739A
CN111580739A CN202010515842.6A CN202010515842A CN111580739A CN 111580739 A CN111580739 A CN 111580739A CN 202010515842 A CN202010515842 A CN 202010515842A CN 111580739 A CN111580739 A CN 111580739A
Authority
CN
China
Prior art keywords
key
touch
weight value
virtual keyboard
touch coordinate
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010515842.6A
Other languages
Chinese (zh)
Other versions
CN111580739B (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.)
Jiangsu Shiruidi Photoelectric Co ltd
Ningbo Thredim Optoelectronics Co ltd
Original Assignee
Jiangsu Thredim Photoelectric 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 Jiangsu Thredim Photoelectric Co ltd filed Critical Jiangsu Thredim Photoelectric Co ltd
Priority to CN202010515842.6A priority Critical patent/CN111580739B/en
Publication of CN111580739A publication Critical patent/CN111580739A/en
Application granted granted Critical
Publication of CN111580739B publication Critical patent/CN111580739B/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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Input From Keyboards Or The Like (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a dynamic adjustment method and device for a touch area of a key and a virtual keyboard. The method comprises the following steps: after a deleting operation corresponding to a deleting key is triggered, acquiring a touch coordinate corresponding to a touch position clicked on a virtual keyboard by a user at the moment before the deleting key is clicked; according to a weight distribution rule, the touch coordinate and the weight value of each first key adjacent to the touch coordinate on the virtual keyboard are adjusted, so that the value of the highest weight value between the touch coordinate and the first key is reduced; and adjusting the touch area of each first key based on the touch coordinate and the weight value of each first key after adjustment. Through the mode, compared with the unified touch area of the key in the prior art, the dynamic adjustment of the touch area of the key can provide a habitual touch mode for a user, so that the probability of mistaken touch of the key is reduced.

Description

Dynamic adjustment method and device for touch area of key and virtual keyboard
Technical Field
The application relates to the technical field of software, in particular to a dynamic adjustment method and device for a touch area of a key and a virtual keyboard.
Background
A common interactive input mode for touch screen devices (such as mobile phones, tablet computers, conference machines, electronic blackboards, and the like) is a virtual keyboard, where a touch design of a general virtual keyboard is to allocate a fixed touch area (as shown in fig. 2) to each key according to a virtual keyboard UI (User Interface, Interface design) setting area (i.e., a display area of a key displayed on a display screen, as shown in fig. 1), and the touch area of each key is larger than the display area of each key displayed on the display screen. When a user executes touch operation in a designated area on a touch screen, if the area touched by the user is in the virtual keyboard, the touch program acquires touch coordinates of the user in the virtual keyboard area, and if the touch coordinates are in the touch area of a certain key, a touch event of the key is triggered, so that the touch operation of the key is realized. However, the touch area of each key is allocated based on the UI setting area of the virtual keyboard in a unified manner, and thus the method is not suitable for different touch habits of different users, and is poor in user experience.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method and an apparatus for dynamically adjusting touch areas of keys, a method for presenting a virtual keyboard, an electronic device, and a storage medium, so as to solve the problem that the current touch areas of each key are allocated based on a unified virtual keyboard UI setting area, which cannot be applied to different touch habits of different users, and is poor in user experience.
The invention is realized by the following steps:
in a first aspect, an embodiment of the present application provides a method for dynamically adjusting a touch area of a key, including: after a deleting operation corresponding to a deleting key is triggered, acquiring a touch coordinate corresponding to a touch position clicked on a virtual keyboard by a user at the moment before the deleting key is clicked; according to a weight distribution rule, the touch coordinate and the weight value of each first key adjacent to the touch coordinate on the virtual keyboard are adjusted, so that the value of the highest weight value between the touch coordinate and the first key is reduced; wherein the weight value represents an association between the touch coordinate and the first key; and adjusting the touch area of each first key based on the touch coordinates and the adjusted weight value of each first key, so that the touch coordinates are located in the touch area of the first key corresponding to the adjusted highest weight value.
In the embodiment of the application, after the deletion operation corresponding to the deletion key is triggered, the touch coordinate corresponding to the touch position clicked on the virtual keyboard by the user at the moment before the deletion key is clicked is obtained, and then the touch coordinate and the weight value of each first key adjacent to the touch coordinate on the virtual keyboard are adjusted according to the weight distribution rule so as to reduce the numerical value of the highest weight value between the touch coordinate and the first key; and finally, adjusting the touch area of each first key according to the touch coordinate and the adjusted weight value of each first key, so that the touch coordinate is located in the touch area of the first key corresponding to the adjusted highest weight value. That is, the embodiment of the present application realizes learning the touch control habit of the user based on the delete operation of the user, and then adjusts the touch control area of the key.
With reference to the technical solution provided by the first aspect, in some possible implementation manners, the touch area of each key includes a secure touch area; before the adjusting, according to a weight distribution rule, the touch coordinate and the weight value of each first key on the virtual keyboard adjacent to the touch coordinate to reduce the value of the highest weight value between the touch coordinate and the first key, the method further includes: determining that the touch coordinates are not within the safe touch area.
According to the dynamic adjustment method for the touch areas of the keys, the touch areas of the keys are adjusted, and the actual display areas of the keys are unchanged, so that a safe touch area (namely, an area is not adjusted) is preset for the touch area of each key. Before the touch coordinate and the weight value of the first key are adjusted, the touch coordinate is determined not to be in the safe touch area, and therefore the situation that a user uses the virtual keyboard to have many errors due to the fact that the touch area is not matched with the actual display area after the touch area is adjusted is avoided.
With reference to the technical solution provided by the first aspect, in some possible implementation manners, the adjusting, according to a weight distribution rule, the weight value of each first key on the virtual keyboard, which is adjacent to the touch coordinate, of the touch coordinate to reduce a value of a highest weight value between the touch coordinate and the first key includes: acquiring the touch coordinate and a current weight value of each first key adjacent to the touch coordinate on the virtual keyboard; reducing the touch coordinate and the current weight value of the second key by preset values, and averagely distributing the reduced weight values to the touch coordinate and the weight values of other first keys except the second key; the second key is a key with the highest weight value between the first key and the touch coordinate.
In the embodiment of the application, the touch coordinate and the current weight value of the second key are reduced by the preset value, and the reduced weight values are averagely distributed to the touch coordinate and the weight values of other first keys except the second key, so that the reasonable distribution of the weight values is realized.
With reference to the technical solution provided by the first aspect, in some possible implementation manners, the preset numerical value is exponentially increased based on the number of times that the user clicks the delete key corresponding to the touch coordinate.
The operation habit of the user can be fully embodied by the deletion frequency corresponding to the current touch position of the user, so that the frequency of clicking the deletion key by the user corresponding to the touch coordinate is exponentially increased by setting the preset value, the change of the value of each weighted value is increased, and the touch area is convenient to adjust.
With reference to the technical solution provided by the first aspect, in some possible implementation manners, before the obtaining the touch coordinate and the current weight value of each first key on the virtual keyboard adjacent to the touch coordinate, the method further includes: determining a weight value of the touch coordinate and each first key adjacent to the touch coordinate on the virtual keyboard based on a center line between the adjacent first keys and a position relation between the touch coordinate and the center line.
In the embodiment of the application, the touch coordinate and the weight value of each adjacent first key are conveniently and reasonably determined based on the central line between the adjacent first keys and the position relation between the touch coordinate and the central line.
With reference to the technical solution provided by the first aspect, in some possible implementation manners, after the touch area of each first key is adjusted based on the touch coordinate and the adjusted weight value of each first key, so that the touch coordinate is located in the touch area of the first key corresponding to the adjusted highest weight value, the method further includes: saving the virtual keyboard corresponding to the adjusted touch area in a database; wherein the database is associated with an account of the user; and after receiving a click instruction of a user for clicking the input box, calling a virtual keyboard from a database associated with the account of the user, and displaying the virtual keyboard.
In the embodiment of the application, the virtual keyboard corresponding to the adjusted touch area is stored in the database corresponding to the user account, so that different virtual keyboards are provided for the user according to different user accounts, and the user experience is improved.
In a second aspect, an embodiment of the present application provides a method for presenting a virtual keyboard, including: after a click instruction of a user for clicking an input box is received, calling a virtual keyboard from a database associated with an account of the user, and displaying the virtual keyboard; the virtual keyboard comprises a touch area, and the touch area is adjusted by the method provided in the above first aspect embodiment and/or in combination with some possible implementation manners of the above first aspect embodiment.
In a third aspect, an embodiment of the present application provides an apparatus for dynamically adjusting a touch area of a key, including: the acquisition module is used for acquiring touch coordinates corresponding to a touch position clicked on a virtual keyboard by a user at the moment before the user clicks the delete key after the delete operation corresponding to the delete key is triggered; the distribution module is used for adjusting the touch coordinate and the weight value of each first key adjacent to the touch coordinate on the virtual keyboard according to a weight distribution rule so as to reduce the value of the highest weight value between the touch coordinate and the first key; wherein the weight value represents an association between the touch coordinate and the first key; and the adjusting module is used for adjusting the touch area of each first key based on the touch coordinate and the adjusted weight value of each first key, so that the touch coordinate is located in the touch area of the first key corresponding to the adjusted highest weight value.
In a fourth aspect, an embodiment of the present application provides a virtual keyboard, including: a touch area; the touch area is adjusted by the method provided in the above-mentioned first aspect embodiment and/or in combination with some possible implementations of the above-mentioned first aspect embodiment.
In a fifth aspect, an embodiment of the present application provides an electronic device, including: a processor and a memory, the processor and the memory connected; the memory is used for storing programs; the processor is configured to invoke a program stored in the memory to perform a method as provided in the above-described first aspect embodiment and/or in combination with some possible implementations of the above-described first aspect embodiment.
In a sixth aspect, embodiments of the present application provide a storage medium having stored thereon a computer program, which, when executed by a processor, performs a method as provided in the embodiments of the first aspect described above and/or in connection with some possible implementations of the embodiments of the first aspect described above.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a display interface of a virtual keyboard in a screen in the prior art.
Fig. 2 shows a touch area of each key of a virtual keyboard in the prior art.
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 4 is a flowchart illustrating a method for dynamically adjusting a touch area of a key according to an embodiment of the present disclosure.
Fig. 5 is a schematic view of a touch area of a key according to an embodiment of the present disclosure.
Fig. 6 is a weight distribution diagram of touch coordinates provided in the embodiment of the present application.
Fig. 7 is a schematic view of a touch area of another key according to an embodiment of the present disclosure.
Fig. 8 is a touch area of the virtual keyboard provided in the embodiment of the present application after adjustment of each key.
Icon: 100-an electronic device; 110-a processor; 120-a memory; 130-touch screen.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
Referring to fig. 3, fig. 3 is a schematic structural block diagram of an electronic device 100 applying a dynamic adjustment method of a touch area of a key and/or a presentation method of a virtual keyboard according to an embodiment of the present disclosure. In the embodiment of the present application, the electronic Device 100 may be, but is not limited to, a smart phone, a tablet computer, a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), and the like. Structurally, electronic device 100 may include a processor 110, a memory 120, and a touch screen 130.
The processor 110, the memory 120, and the touch screen 130 are electrically connected directly or indirectly to transmit or interact data, for example, the components may be electrically connected to each other through one or more communication buses or signal lines. The dynamic adjusting device of the touch area of the key and the presenting device of the virtual keyboard comprise at least one software module which can be stored in the memory 120 in the form of software or Firmware (Firmware) or solidified in an Operating System (OS) of the electronic device 100. The processor 110 is configured to execute executable modules stored in the memory 120, for example, software functional modules and computer programs included in the device for dynamically adjusting the touch areas of the keys, so as to implement a method for dynamically adjusting the touch areas, and for example, software functional modules and computer programs included in the device for presenting a virtual keyboard, so as to implement a method for presenting a virtual keyboard. The processor 110 may execute the computer program upon receiving the execution instruction.
The processor 110 may be an integrated circuit chip having signal processing capabilities. The processor 110 may also be a general-purpose processor, for example, a Central Processing Unit (CPU), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a discrete gate or transistor logic device, or a discrete hardware component, which may implement or execute the methods, steps, and logic blocks disclosed in the embodiments of the present Application. Further, a general purpose processor may be a microprocessor or any conventional processor or the like.
The Memory 120 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), and an electrically Erasable Programmable Read-Only Memory (EEPROM). The memory 120 is used for storing a program, and the processor 110 executes the program after receiving the execution instruction.
The touch screen 130 may be, but not limited to, a resistive touch screen, a capacitive sensing touch screen, an infrared touch screen, and a surface acoustic wave touch screen.
It should be understood that the structure shown in fig. 3 is merely an illustration, and the electronic device 100 provided in the embodiment of the present application may have fewer or more components than those shown in fig. 3, or may have a different configuration than that shown in fig. 3. Further, the components shown in fig. 3 may be implemented by software, hardware, or a combination thereof.
Referring to fig. 4, fig. 4 is a flowchart illustrating steps of a method for dynamically adjusting a touch area of a key according to an embodiment of the present disclosure, where the method is applied to the electronic device 100 shown in fig. 3. It should be noted that the dynamic adjustment method for the touch area of the key provided in the embodiment of the present application is not limited to the sequence shown in fig. 4 and the following. The method comprises the following steps: step S101-step S103.
Step S101: and after the deletion operation corresponding to the deletion key is triggered, acquiring a touch coordinate corresponding to a touch position clicked on the virtual keyboard by a user at the moment before the deletion key is clicked.
Step S102: according to a weight distribution rule, the touch coordinate and the weight value of each first key adjacent to the touch coordinate on the virtual keyboard are adjusted, so that the value of the highest weight value between the touch coordinate and the first key is reduced; wherein the weight value represents an association between the touch coordinate and the first key.
Step S103: and adjusting the touch area of each first key based on the touch coordinates and the adjusted weight value of each first key, so that the touch coordinates are located in the touch area of the first key corresponding to the adjusted highest weight value.
In the embodiment of the application, after the deletion operation corresponding to the deletion key is triggered, the touch coordinate corresponding to the touch position clicked on the virtual keyboard by the user at the moment before the deletion key is clicked is obtained, and then the touch coordinate and the weight value of each first key adjacent to the touch coordinate on the virtual keyboard are adjusted according to the weight distribution rule so as to reduce the numerical value of the highest weight value between the touch coordinate and the first key; and finally, adjusting the touch area of each first key according to the touch coordinate and the adjusted weight value of each first key, so that the touch coordinate is located in the touch area of the first key corresponding to the adjusted highest weight value. That is, the embodiment of the present application realizes learning the touch control habit of the user based on the delete operation of the user, and then adjusts the touch control area of the key.
The above method is described in detail with reference to specific examples.
Step S101: and after the deletion operation corresponding to the deletion key is triggered, acquiring a touch coordinate corresponding to a touch position clicked on the virtual keyboard by a user at the moment before the deletion key is clicked.
The touch control habit learning method and device are mainly based on the user deleting operation to learn the touch control habit of the user. It can be understood that, when the user touches the virtual keyboard, for example, the touch position of the user is located at a point a between the key 1 and the key 2 (as shown in fig. 5), and the point a is located in the touch area of the key 1. When the touch position of the user is a, the number displayed on the display screen of the user is 1. If the user does not execute the deleting operation, it indicates that the number 1 is the one that the user wants to select currently, and if the user executes the deleting operation, it indicates that the number 1 may not be the one that the user actually wants to select. For example, the user's operation habit is to like the upper left corner of the touch key, and although the touch position a of the user falls into the touch area of the key 1, the user actually wants to go to the touch key 2. Therefore, the touch habit of the user can be learned based on the deleting operation of the user.
That is, in the embodiment of the present application, the first step is to obtain the touch coordinate corresponding to the touch position clicked on the virtual keyboard by the user at the previous moment when the delete key is clicked after the delete operation corresponding to the delete key is triggered.
Wherein the previous time may be understood as the previous time. That is, obtaining the touch coordinate corresponding to the touch position clicked on the virtual keyboard at the time before the user clicks the delete key may be understood as obtaining the touch coordinate of the touch position clicked on the virtual keyboard one time before the user clicks the delete key. For example, after the user touches the point a, the user clicks the delete key, where a is the touch position clicked on the virtual keyboard at the time before the user clicks the delete key, and the coordinate of a is the touch coordinate corresponding to the touch position clicked on the virtual keyboard at the time before the user clicks the delete key.
Step S102: according to a weight distribution rule, the touch coordinate and the weight value of each first key adjacent to the touch coordinate on the virtual keyboard are adjusted, so that the value of the highest weight value between the touch coordinate and the first key is reduced; wherein the weight value represents an association between the touch coordinate and the first key.
After the touch coordinate is obtained, the touch coordinate and the weight value of each first key adjacent to the touch coordinate around the touch coordinate are adjusted according to a weight distribution rule.
It can be understood that the weight value represents the association between the touch coordinate and the key. The larger the weight value between the touch coordinate and the key is, the greater the relevance between the touch coordinate and the key is, and the touch coordinate is allocated to the touch area of the key. That is, the touch area is determined according to each touch coordinate and the key with the largest weight value.
First, it should be noted that, in the initial state of the virtual keyboard, the touch coordinate and the weight value of each adjacent key are determined based on a central line between the adjacent keys and a position relationship between the touch coordinate and the central line. That is, the point on the center line is used as the dividing point to distribute the weight, the adjacent area of the two keys is 50%, the adjacent area of the three keys is respectively distributed with 33.3%, and the adjacent area of the four keys is respectively distributed with 25%. For example, with continued reference to fig. 5, for example, the weighted value between the point B on the center line between the key 1 and the key 2 and the key 1 and the key 2 is 50%. For another example, the weight values between the intersection C of the central lines between the keys 1, 2, 3, and 4 and the keys 1, 2, 3, and 4 are all 25%. And then determining the touch coordinate and the weight value of each adjacent first key based on the position relation between the central line and the touch coordinate. For example, if the distance between the key 1 and the key 2 is ten coordinate points, the distance between the middle line and the key 1 and the key 2 is five coordinate points, and the point on the middle line and the weight value between the key 1 and the key 2 are 50%, assuming that the distance between the point a in fig. 5 and the middle line is two coordinate points, the point a is located on the left side of the middle line, i.e., on the side close to the key 1, it may be determined that the weight value between the point a and the middle line is 70% based on the distance between the point a and the middle line and the point a is located on the left side of the middle line, and accordingly, the weight value between the point a and the key 2 is 1-70% — 30%. That is, the weight value of each touch coordinate and each connected first key is determined directly according to a linear distribution mode. Similarly, the weight values between each point located in the dashed line frame and the four keys can be determined based on that the weight values between the point C and the keys 1, 2, 3 and 4 are all 25% according to a linear distribution mode.
In the embodiment of the application, the touch coordinate and the current weight value of the second key are reduced by the preset value, and the reduced weight values are averagely distributed to the touch coordinate and the weight values of other first keys except the second key, so that the reasonable distribution of the weight values is realized.
Of course, in other embodiments, the weight value of each touch coordinate and each key connected to the touch coordinate may be determined based on a curve distribution manner. That is, the longer the distance between the touch coordinate point and the central line is, the larger the weight value changes, rather than linearly changing. For example, the distance between the point a and the central line is two coordinate points, the point a is located on the left side of the central line, and the weight value between the point a and the key 1 is 70%. However, by adopting the curve distribution method, the weight values of the point a and the key 1 may be 75%, 80%, and the like, and the application is not limited.
The weight distribution of each touch coordinate may be a weight distribution graph as shown in fig. 6. Each touch coordinate is adjacent to at most 4 keys and at least one key. Thus, 22 in fig. 6 indicates that such touch coordinates are adjacent to four keys (two above, two below). W (1) represents the weight value of the key at the upper left corner, W (2) represents the weight value of the key at the upper right corner, W (3) represents the weight value of the key at the lower left corner, and W (4) represents the weight value of the key at the lower right corner. 1 in fig. 6 indicates that such touch coordinates are adjacent to 1 key, and the weight value of such touch coordinates and the adjacent key is 100%. NA in fig. 6 indicates no other weight value. Fig. 6 shows that 11 indicates that such touch coordinates are adjacent to the upper and lower keys, W (5) indicates the weight value of the upper key, and W (6) indicates the weight value of the lower key. 110 in fig. 6 indicates that such touch coordinates are adjacent to the left and right keys, W (7) indicates the weight value of the left key, and W (8) indicates the weight value of the right key. The 12 in the figure indicates that there is an adjacent key above and two adjacent keys below the touch coordinate. W (9) represents the weight value with the upper key, W (10) represents the weight value with the lower left key, and W (11) represents the weight value with the lower right key. Fig. 6 at 21 indicates that there are two adjacent keys above and one adjacent key below such touch coordinates. W (12) represents a weight value with respect to the key at the upper left corner, W (13) represents a weight value with respect to the key at the upper right corner, and W (14) represents a weight value with respect to the key below.
Optionally, the weight distribution rule specifically includes: acquiring a touch coordinate and a current weight value of each first key adjacent to the touch coordinate on the virtual keyboard; reducing the touch coordinate and the current weight value of the second key by a preset value, and averagely distributing the reduced weight values to the touch coordinate and the weight values of other first keys except the second key; the second key is the key with the highest weight value between the first key and the touch coordinate.
That is, after the touch coordinate and the current weight value of each first key adjacent to the touch coordinate on the virtual keyboard are determined in the above manner, a preset value is subtracted from the highest weight value, and the reduced weight values are averagely distributed to the weight values of other keys adjacent to the touch coordinate.
Wherein the allocation formula is:
Figure BDA0002529678040000111
Figure BDA0002529678040000112
wherein, in the formula (1), W (k)0T-1) represents the current weight value between the second key and the touch coordinate, W (k)0T) the weighted value after adjustment between the second key and the touch coordinate;
Figure BDA0002529678040000113
representing a preset value; in the formula (2), W (k)nT-1) represents the current weight value between the key N and the touch coordinate, and the value of N is 1-N; n represents the number of first keys adjacent to the touch coordinates; n is greater than or equal to 1 and less than or equal to 4; the key n is one of the first keys except the second key; w (k)nT) represents a weighted value after adjustment between the key n and the touch coordinate;
Figure BDA0002529678040000114
representing a preset value.
In addition, W (k)0T) and W (k)nAnd t) is kept varying between 0 and 1.
When W (k)0T) to zero, in equation (2)
Figure BDA0002529678040000121
The weight value of (k) is W (k)0T-1) to 0 to ensure W (k)nT) will not overflow (over 1). And W (k)0T) and W (k)nAnd the sum of t) equals 1.
Wherein the preset value
Figure BDA0002529678040000122
May be 0.01, 0.02, 0.1, 0.2, etc., and the present application is not limited thereto.
In the embodiment of the application, the touch coordinate and the current weight value of the second key are reduced by the preset value, and the reduced weight values are averagely distributed to the touch coordinate and the weight values of other first keys except the second key, so that the reasonable distribution of the weight values is realized.
Optionally, a preset value
Figure BDA0002529678040000123
And the times of clicking the deleting key by the user corresponding to the touch coordinate are exponentially increased. That is, a preset value is set according to the deletion frequency of the user at the current touch position
Figure BDA0002529678040000124
Increasing exponentially. Illustratively, the preset value
Figure BDA0002529678040000125
The initial value of (a) is 0.01, the base number is 2, and the number of times that the user deletes the current touch position value (e.g., the touch coordinate point a corresponding to the current touch position) is 3, then the preset value is obtained
Figure BDA0002529678040000126
Of course, the base number may be a numerical value such as 3 or 5, and the present application is not limited thereto.
It should be noted that, because the deletion frequency corresponding to the current touch position of the user can fully reflect the operation habit of the user, the number of times that the user clicks the deletion key corresponding to the touch coordinate is exponentially increased by setting the preset value, so that the value change of each weight value can be increased, and the touch area can be conveniently adjusted.
Optionally, in another embodiment, the weight distribution rule may further include: acquiring a touch coordinate and a current weight value of each first key adjacent to the touch coordinate on the virtual keyboard; and reducing the touch coordinate and the current weight value of the second key by a preset value, and distributing the reduced weight value to the weight value between the touch coordinate and the third key. The second key is the key with the highest weight value between the first key and the touch coordinate. The third key is a key with the second highest weight value between the first key and the touch coordinate.
That is, after the touch coordinate and the current weight value of each first key adjacent to the touch coordinate on the virtual keyboard are determined in the above manner, the highest weight value is subtracted by a reduced preset value, and the reduced weight value is assigned to the second highest weight value.
Of course, in other embodiments, the weight distribution rule may include: acquiring a touch coordinate and a current weight value of each first key adjacent to the touch coordinate on the virtual keyboard; reducing the touch coordinate and the current weight value of the second key by a preset value, and distributing the reduced weight value to the touch coordinate and the weight values of other first keys except the second key according to a preset proportion; the second key is the key with the highest weight value between the first key and the touch coordinate.
The preset ratio may be determined based on the touch coordinates and the weight values of the other first keys except the second key, for example, if the weight values of the touch coordinates and the key 2 are 20% and the weight values of the touch coordinates and the key 3 are 30%, the preset ratio may be 2:3, that is, the reduced weight values are allocated to the weight values of the touch coordinates and the key 2 and the weight values of the touch coordinates and the key 3 according to the ratio of 2: 3.
Therefore, in the specific process of adjusting the weight, which weight distribution rule is specifically selected is not limited in the present application.
According to the method for dynamically adjusting the touch areas of the keys, the touch areas of the keys are adjusted, and the actual display areas of the keys are unchanged, so that a user uses a virtual keyboard to have many errors due to the fact that the touch areas are not matched with the display areas after the touch areas are adjusted, and the touch areas of the keys are preset with safe touch areas. As shown in fig. 7, the area corresponding to the middle dashed box of each key is a safe touch area. The safe touch area represents an area where no adjustment is performed. And when the virtual keyboard is in an initial state, each touch coordinate in the self-adaptive area generates a touch area of each key based on the touch coordinate and the weight value of each adjacent key. That is, in fig. 7, the touch coordinate a point is located at the touch area of the key 1, and the weight value of the key 1 is the highest.
Accordingly, before step S102, the method further includes: determining that the touch coordinates are not within the safe touch area.
That is, only when the touch coordinate is not located in the safe touch area, the touch coordinate and the weight value of each first key adjacent to the touch coordinate on the virtual keyboard are adjusted. And if the touch coordinate is in the safe area, no adjustment is performed.
Step S103: and adjusting the touch area of each first key based on the touch coordinates and the adjusted weight value of each first key, so that the touch coordinates are located in the touch area of the first key corresponding to the adjusted highest weight value.
After the touch coordinate and the weight value of the adjacent first key are adjusted, the touch area of each first key is adjusted based on the adjusted weight value. And adjusting the touch area to which the touch coordinate belongs by using the highest weight value, namely, distributing the touch coordinate to the touch area of the first key with the highest weight value.
By the above method, the touch area of the entire virtual key can be adjusted, and the adjusted touch area of the virtual key can refer to fig. 8. As can be seen from fig. 8, the touch areas of the keys are different, and the touch area of each key is adjusted according to the operation habit of the user.
Optionally, after the touch area of the virtual keyboard is adjusted, the method further includes: saving the virtual keyboard corresponding to the adjusted touch area in a database; wherein the database is associated with an account of the user; and after receiving a click instruction of a user for clicking the input box, calling a virtual keyboard from a database associated with the account of the user, and displaying the virtual keyboard.
That is, a database is established according to the account number of the user, and a virtual keyboard of the user is stored in each database. The account may be an account of an electronic device of the user, such as a personal account of a mobile phone and a personal account of a tablet computer, and the virtual keyboard is a virtual keyboard of the mobile phone. The account number can also be a software account number of input method software installed on the mobile phone of the user. Taking a mobile phone account as an example, when a user logs in the mobile phone account and clicks an input box, a virtual keyboard associated with the user account is displayed, the display area of the current virtual keyboard does not change, but the touch area of the virtual keyboard is adjusted according to the operation habit of the user.
In the embodiment of the application, the virtual keyboard corresponding to the adjusted touch area is stored in the database corresponding to the user account, so that different virtual keyboards are provided for the user according to different user accounts, and the user experience is improved.
It should be noted that the touch area of the virtual keyboard is still updated and adjusted continuously during the use process of the user.
Based on the same inventive concept, the embodiment of the application also provides a virtual keyboard presenting method. The method comprises the following steps: after a click instruction of a user for clicking an input box is received, calling a virtual keyboard from a database associated with an account of the user, and displaying the virtual keyboard; the virtual keyboard comprises a touch area, and the touch area is adjusted by the dynamic adjustment method of the touch area of the keys in the embodiment.
Based on the same inventive concept, the embodiment of the application further provides a virtual keyboard, and the virtual keyboard comprises a touch area. The touch area is adjusted by the dynamic adjustment method of the touch area of the key in the embodiment.
Based on the same inventive concept, an embodiment of the present application further provides a device for dynamically adjusting a touch area of a key, including: the device comprises an acquisition module, a distribution module and an adjustment module.
The acquisition module is used for acquiring touch coordinates corresponding to a touch position clicked on a virtual keyboard by a user at the moment before the user clicks the delete key after the delete operation corresponding to the delete key is triggered;
the distribution module is used for adjusting the touch coordinate and the weight value of each first key adjacent to the touch coordinate on the virtual keyboard according to a weight distribution rule so as to reduce the value of the highest weight value between the touch coordinate and the first key; wherein the weight value represents an association between the touch coordinate and the first key;
and the adjusting module is used for adjusting the touch area of each first key based on the touch coordinate and the adjusted weight value of each first key, so that the touch coordinate is located in the touch area of the first key corresponding to the adjusted highest weight value.
Optionally, the device for dynamically adjusting the touch area of the key further includes a first determining module. The determining module is configured to determine that the touch coordinate is not located in the safe touch area before the touch coordinate and a weight value of each first key on the virtual keyboard adjacent to the touch coordinate are adjusted according to the weight distribution rule to reduce a value of a highest weight value between the touch coordinate and the first key.
Optionally, the distribution module is specifically configured to obtain the touch coordinate and a current weight value of each first key on the virtual keyboard adjacent to the touch coordinate; reducing the touch coordinate and the current weight value of the second key by preset values, and averagely distributing the reduced weight values to the touch coordinate and the weight values of other first keys except the second key; the second key is a key with the highest weight value between the first key and the touch coordinate.
Optionally, the device for dynamically adjusting the touch area of the key further includes a second determining module. The second determining module is configured to determine, before the obtaining of the current weight value of the touch coordinate and each first key on the virtual keyboard adjacent to the touch coordinate, the weight value of the touch coordinate and each first key on the virtual keyboard adjacent to the touch coordinate based on a center line between the adjacent first keys and a position relationship between the touch coordinate and the center line.
Optionally, the adjusting module is configured to adjust the touch area of each first key based on the touch coordinate and the weight value of each first key after adjustment, so that the touch coordinate is located in the touch area of the first key corresponding to the highest adjusted weight value, and then store the virtual keyboard corresponding to the adjusted touch area in the database; wherein the database is associated with an account of the user. And the display module is used for calling out a virtual keyboard from a database associated with the account of the user and displaying the virtual keyboard after receiving a click instruction of clicking the input box by the user.
Based on the same inventive concept, the embodiment of the application further provides a presentation device of the virtual keyboard, which comprises a display module. The display module is used for calling out a virtual keyboard from a database associated with the account number of the user and displaying the virtual keyboard after receiving a click instruction of clicking an input box by the user.
It should be noted that, as those skilled in the art can clearly understand, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Based on the same inventive concept, the present application further provides a storage medium, on which a computer program is stored, and when the computer program is executed, the computer program performs the method provided in the foregoing embodiments.
The storage medium may be any available medium that can be accessed by a computer or a data storage device including one or more integrated servers, data centers, and the like. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Furthermore, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A method for dynamically adjusting a touch area of a key is characterized by comprising the following steps:
after a deleting operation corresponding to a deleting key is triggered, acquiring a touch coordinate corresponding to a touch position clicked on a virtual keyboard by a user at the moment before the deleting key is clicked;
according to a weight distribution rule, the touch coordinate and the weight value of each first key adjacent to the touch coordinate on the virtual keyboard are adjusted, so that the value of the highest weight value between the touch coordinate and the first key is reduced; wherein the weight value represents an association between the touch coordinate and the first key;
and adjusting the touch area of each first key based on the touch coordinates and the adjusted weight value of each first key, so that the touch coordinates are located in the touch area of the first key corresponding to the adjusted highest weight value.
2. The method of claim 1, wherein the touch area of each key comprises a secure touch area; before the adjusting, according to a weight distribution rule, the touch coordinate and the weight value of each first key on the virtual keyboard adjacent to the touch coordinate to reduce the value of the highest weight value between the touch coordinate and the first key, the method further includes:
determining that the touch coordinates are not within the safe touch area.
3. The method of claim 1, wherein the adjusting the touch coordinates and the weight value of each first key adjacent to the touch coordinates on the virtual keyboard according to a weight assignment rule to reduce the value of the highest weight value between the touch coordinates and the first key comprises:
acquiring the touch coordinate and a current weight value of each first key adjacent to the touch coordinate on the virtual keyboard;
reducing the touch coordinate and the current weight value of the second key by preset values, and averagely distributing the reduced weight values to the touch coordinate and the weight values of other first keys except the second key; the second key is a key with the highest weight value between the first key and the touch coordinate.
4. The method as claimed in claim 3, wherein the predetermined value is exponentially increased based on the number of times the user clicks the delete button corresponding to the touch coordinates.
5. The method of claim 3, wherein before the obtaining the touch coordinates and the current weight value of each first key on the virtual keyboard adjacent to the touch coordinates, the method further comprises:
determining a weight value of the touch coordinate and each first key adjacent to the touch coordinate on the virtual keyboard based on a center line between the adjacent first keys and a position relation between the touch coordinate and the center line.
6. The method as claimed in claim 1, wherein after the touch area of each of the first keys is adjusted based on the touch coordinates and the adjusted weight value of each of the first keys, so that the touch coordinates are located in the touch area of the first key corresponding to the highest adjusted weight value, the method further comprises:
saving the virtual keyboard corresponding to the adjusted touch area in a database; wherein the database is associated with an account of the user;
and after receiving a click instruction of a user for clicking the input box, calling a virtual keyboard from a database associated with the account of the user, and displaying the virtual keyboard.
7. A method for presenting a virtual keyboard, comprising:
after a click instruction of a user for clicking an input box is received, calling a virtual keyboard from a database associated with an account of the user, and displaying the virtual keyboard; wherein the virtual keyboard comprises a touch area, the touch area being adapted by the method of any one of claims 1-5.
8. A dynamic adjustment device for a touch area of a key is characterized by comprising:
the acquisition module is used for acquiring touch coordinates corresponding to a touch position clicked on a virtual keyboard by a user at the moment before the user clicks the delete key after the delete operation corresponding to the delete key is triggered;
the distribution module is used for adjusting the touch coordinate and the weight value of each first key adjacent to the touch coordinate on the virtual keyboard according to a weight distribution rule so as to reduce the value of the highest weight value between the touch coordinate and the first key; wherein the weight value represents an association between the touch coordinate and the first key;
and the adjusting module is used for adjusting the touch area of each first key based on the touch coordinate and the adjusted weight value of each first key, so that the touch coordinate is located in the touch area of the first key corresponding to the adjusted highest weight value.
9. A virtual keyboard, comprising: a touch area; the touch area is adjusted by the method according to any one of claims 1 to 6.
10. An electronic device, comprising: a processor and a memory, the processor and the memory connected;
the memory is used for storing programs;
the processor is configured to execute a program stored in the memory to perform the method of any of claims 1-6.
CN202010515842.6A 2020-06-08 2020-06-08 Dynamic adjustment method and device for touch area of key and virtual keyboard Active CN111580739B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010515842.6A CN111580739B (en) 2020-06-08 2020-06-08 Dynamic adjustment method and device for touch area of key and virtual keyboard

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010515842.6A CN111580739B (en) 2020-06-08 2020-06-08 Dynamic adjustment method and device for touch area of key and virtual keyboard

Publications (2)

Publication Number Publication Date
CN111580739A true CN111580739A (en) 2020-08-25
CN111580739B CN111580739B (en) 2021-07-23

Family

ID=72127445

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010515842.6A Active CN111580739B (en) 2020-06-08 2020-06-08 Dynamic adjustment method and device for touch area of key and virtual keyboard

Country Status (1)

Country Link
CN (1) CN111580739B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114721527A (en) * 2021-01-04 2022-07-08 北京小米移动软件有限公司 Control method and device of virtual keyboard, electronic equipment and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102915206A (en) * 2012-09-19 2013-02-06 东莞宇龙通信科技有限公司 Method and system for adjusting sizes of keys of screen keyboard
CN103902212A (en) * 2012-12-27 2014-07-02 北京三星通信技术研究有限公司 Input method and input equipment applied to intelligent terminal equipment of touch screen
CN106155557A (en) * 2016-07-11 2016-11-23 广东欧珀移动通信有限公司 A kind of virtual key display packing and mobile terminal
CN106959814A (en) * 2017-03-27 2017-07-18 联想(北京)有限公司 A kind of display methods of dummy keyboard, device and terminal
CN107085471A (en) * 2017-04-25 2017-08-22 北京百度网讯科技有限公司 A kind of input method error correction method and device based on user's input speed
CN107132986A (en) * 2017-05-17 2017-09-05 广东工业大学 A kind of method and device of virtual key Intelligent adjustment touch-control response region
CN108008896A (en) * 2017-12-20 2018-05-08 广东欧珀移动通信有限公司 Display control method and related product
CN108459783A (en) * 2017-02-20 2018-08-28 阿里巴巴集团控股有限公司 Control method, device and the equipment of dummy keyboard, readable medium
CN109656455A (en) * 2018-12-21 2019-04-19 歌尔科技有限公司 A kind of smartwatch and its input method
CN111045591A (en) * 2019-12-26 2020-04-21 维沃移动通信有限公司 Display method of virtual keyboard and electronic equipment
CN111124200A (en) * 2019-11-28 2020-05-08 科大讯飞股份有限公司 Touch key response method and device, electronic equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102915206A (en) * 2012-09-19 2013-02-06 东莞宇龙通信科技有限公司 Method and system for adjusting sizes of keys of screen keyboard
CN103902212A (en) * 2012-12-27 2014-07-02 北京三星通信技术研究有限公司 Input method and input equipment applied to intelligent terminal equipment of touch screen
CN106155557A (en) * 2016-07-11 2016-11-23 广东欧珀移动通信有限公司 A kind of virtual key display packing and mobile terminal
CN108459783A (en) * 2017-02-20 2018-08-28 阿里巴巴集团控股有限公司 Control method, device and the equipment of dummy keyboard, readable medium
CN106959814A (en) * 2017-03-27 2017-07-18 联想(北京)有限公司 A kind of display methods of dummy keyboard, device and terminal
CN107085471A (en) * 2017-04-25 2017-08-22 北京百度网讯科技有限公司 A kind of input method error correction method and device based on user's input speed
CN107132986A (en) * 2017-05-17 2017-09-05 广东工业大学 A kind of method and device of virtual key Intelligent adjustment touch-control response region
CN108008896A (en) * 2017-12-20 2018-05-08 广东欧珀移动通信有限公司 Display control method and related product
CN109656455A (en) * 2018-12-21 2019-04-19 歌尔科技有限公司 A kind of smartwatch and its input method
CN111124200A (en) * 2019-11-28 2020-05-08 科大讯飞股份有限公司 Touch key response method and device, electronic equipment and storage medium
CN111045591A (en) * 2019-12-26 2020-04-21 维沃移动通信有限公司 Display method of virtual keyboard and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114721527A (en) * 2021-01-04 2022-07-08 北京小米移动软件有限公司 Control method and device of virtual keyboard, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111580739B (en) 2021-07-23

Similar Documents

Publication Publication Date Title
US10747368B2 (en) Method and device for preventing false-touch on touch screen, mobile terminal and storage medium
US10996834B2 (en) Touchscreen apparatus user interface processing method and touchscreen apparatus
TW591398B (en) Method of implementing a plurality of system tray areas
JP5922598B2 (en) Multi-touch usage, gestures and implementation
CN103019508A (en) Mobile terminal and icon arrangement and display method
KR20180097674A (en) Memory reclaim method and apparatus
US10255038B2 (en) Techniques to present a user interface for the visually impaired
WO2009030576A2 (en) Scroll bar control
CN107741760A (en) Double-screen notebook and double-screen display method
WO2021164460A1 (en) Touch response method and apparatus, electronic device, and storage medium
US11204653B2 (en) Method and device for handling event invocation using a stylus pen
CN110377215B (en) Model display method and device and terminal equipment
US9092085B2 (en) Configuring a touchpad setting based on the metadata of an active application of an electronic device
WO2012037566A1 (en) Method and apparatus for choosing resources based on context and inheritance
US20160162182A1 (en) Method and Terminal for Varying Keys of a Touch Keyboard
CN106485173A (en) Sensitive information methods of exhibiting and device
CN111580739B (en) Dynamic adjustment method and device for touch area of key and virtual keyboard
JP2013114688A (en) Processing method of touch signal and electronic computer of the same
JP3508546B2 (en) Screen operation system and screen operation method
WO2013101371A1 (en) Apparatus and method for automatically controlling display screen density
US20220107726A1 (en) Interactive searching using gestures on any mobile search results page
CN115237846B (en) Ink screen refreshing method and device, terminal equipment and storage medium
CN106940657A (en) A kind of method and terminal that task distribution is carried out to processor
WO2023005835A1 (en) Icon control method, apparatus, electronic device, and readable storage medium
WO2019024507A1 (en) Touch control method and device, and terminal

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20221125

Address after: 212310 Workshop 7 #, Dezi Industrial Park, south of Liyao Road, Danyang Development Zone, Zhenjiang City, Jiangsu Province

Patentee after: Jiangsu shiruidi photoelectric Co.,Ltd.

Patentee after: NINGBO THREDIM OPTOELECTRONICS Co.,Ltd.

Address before: 315000 No.58, Jingu Middle Road (West), Yinzhou District, Ningbo City, Zhejiang Province

Patentee before: NINGBO THREDIM OPTOELECTRONICS Co.,Ltd.