CN111124242A - Function key display method and device, electronic equipment and storage medium - Google Patents

Function key display method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111124242A
CN111124242A CN201911275996.6A CN201911275996A CN111124242A CN 111124242 A CN111124242 A CN 111124242A CN 201911275996 A CN201911275996 A CN 201911275996A CN 111124242 A CN111124242 A CN 111124242A
Authority
CN
China
Prior art keywords
user
function
key
information
input information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911275996.6A
Other languages
Chinese (zh)
Other versions
CN111124242B (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.)
iFlytek Co Ltd
Original Assignee
iFlytek 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 iFlytek Co Ltd filed Critical iFlytek Co Ltd
Priority to CN201911275996.6A priority Critical patent/CN111124242B/en
Publication of CN111124242A publication Critical patent/CN111124242A/en
Application granted granted Critical
Publication of CN111124242B publication Critical patent/CN111124242B/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

Landscapes

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

Abstract

The embodiment of the invention provides a method and a device for displaying function keys, electronic equipment and a storage medium, wherein the method comprises the following steps: determining the whole input information of a user aiming at the whole virtual keyboard and/or the function input information aiming at the function keys; and adjusting the display position of the function key based on the integral input information and/or the function input information. According to the method, the device, the electronic equipment and the storage medium provided by the embodiment of the invention, the display position of the function key is adjusted based on the integral input information and/or the function input information, so that the display position of the function key can be always positioned in an area which is easy to click by a user, the difficulty of clicking the function key by the user is reduced, and the clicking efficiency of the function key is improved.

Description

Function key display method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of input methods, in particular to a method and a device for displaying function keys, electronic equipment and a storage medium.
Background
The input method is used as an interactive entrance between a user and an intelligent terminal, and has the characteristics of natural convenience, high efficiency, high accuracy and the like which are always pursued by the user. In an input method product, various functional keys, such as cloud result keys for realizing cloud result screen-up, are provided, so that a new way is provided for improving input efficiency and optimizing user experience.
Generally, the function keys are fixedly arranged on the virtual keyboard. After the size and the position of the virtual keyboard are adjusted, the display position of the function key may not be in an area which is easy to click by a user, so that the difficulty of clicking the function key by the user is increased, and the clicking efficiency of the function key is reduced.
Disclosure of Invention
The embodiment of the invention provides a method and a device for displaying function keys, electronic equipment and a storage medium, which are used for solving the problem that the click efficiency of the existing function keys is reduced.
In a first aspect, an embodiment of the present invention provides a method for displaying function keys, including:
determining the whole input information of a user aiming at the whole virtual keyboard and/or the function input information aiming at the function keys;
and adjusting the display position of the function key based on the integral input information and/or the function input information.
Preferably, the overall input information includes user holding mode and/or virtual keyboard layout information, and the function input information includes device deflection information when the user clicks the function key.
Preferably, the determining of the overall input information of the user for the entire virtual keyboard specifically includes:
and determining the user holding mode based on a holding mode preset by a user and/or edge key information when the user clicks the edge key of the virtual keyboard.
Preferably, the determining the user holding mode based on the edge key information when the user clicks the edge key of the virtual keyboard specifically includes:
determining equipment deflection information when a user clicks an edge key based on edge key information when the user clicks the edge key of the virtual keyboard;
and determining the holding mode of the user based on the equipment deflection information when the user clicks the edge key.
Preferably, the determining the user holding mode based on the device deflection information when the user clicks the edge key specifically includes:
and determining the user holding mode based on the edge key deflection angles of the two side edge keys which are sequentially clicked in the equipment deflection information when the user clicks the edge keys and a preset deflection threshold value.
Preferably, the adjusting the display position of the function key based on the overall input information specifically includes:
determining a user finger sliding area based on the user holding mode and the user finger length;
and adjusting the display position of the function key based on the finger sliding area of the user and the virtual keyboard layout information.
Preferably, the adjusting the display position of the function key based on the function input information specifically includes:
and if the deflection angle of the function key in the equipment deflection information when the user clicks the function key is larger than or equal to a preset adjustment angle threshold value, adjusting the display position of the function key based on the deflection angle of the function key.
Preferably, the adjusting the display position of the function key based on the deflection angle of the function key specifically includes:
and determining the movement distance of the display position based on the deflection angle of the function key and the unit angle movement distance so as to adjust the display position of the function key.
In a second aspect, an embodiment of the present invention provides a function key display device, including:
the information determining unit is used for determining the whole input information of the user aiming at the whole virtual keyboard and/or the function input information aiming at the function keys;
and the position adjusting unit is used for adjusting the display position of the function key based on the integral input information and/or the function input information.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a bus, where the processor and the communication interface, the memory complete mutual communication through the bus, and the processor may call a logic command in the memory to perform the steps of the method provided in the first aspect.
In a fourth aspect, an embodiment of the present invention provides a non-transitory computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of the method as provided in the first aspect.
According to the method and device for displaying the functional keys, the electronic equipment and the storage medium, the display positions of the functional keys are adjusted based on the integral input information and/or the functional input information, so that the display positions of the functional keys can be always located in an area which is easy to click by a user, the difficulty of clicking the functional keys by the user is reduced, and the clicking efficiency of the functional keys is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a function key display method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a user holding mode determining method according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a user holding mode determining method according to another embodiment of the present invention;
fig. 4 is a schematic flow chart illustrating a method for adjusting a display position according to an embodiment of the present invention;
FIG. 5 is a schematic illustration of a display position provided by an embodiment of the present invention;
FIG. 6 is a schematic illustration of a display position according to another embodiment of the present invention;
fig. 7 is a schematic flow chart illustrating a position adjustment method according to another embodiment of the present invention;
fig. 8 is a schematic structural diagram of a function key display device according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present 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.
In the input method product, the function key is usually preset at a fixed position relative to the virtual keyboard, so that the user can click the function key during the input process, for example, the cloud result key is fixedly arranged at the upper right corner of the pinyin candidate area of the virtual keyboard. However, in an actual application scenario, a user often adjusts the position, size, and the like of the virtual keyboard according to personal input habits. After adjustment, the position and size of the virtual keyboard are changed, and the position of the corresponding function key is changed, so that the difficulty of clicking the function key by a user is increased, and the clicking efficiency of the function key is reduced.
In order to solve the above problems, an embodiment of the present invention provides a method for displaying function keys. Fig. 1 is a schematic flow chart of a function key display method according to an embodiment of the present invention, and as shown in fig. 1, the method includes:
in step 110, the overall input information of the user for the virtual keyboard as a whole and/or the function input information for the function keys are determined.
Specifically, the function key is a preset key requiring display position adjustment. Here, the function key may be a cloud result key for implementing cloud result on-screen display, may also be an input shortcut key set by a user, or a key with other functions, which is not specifically limited in this embodiment of the present invention.
The whole input information is information related to the whole virtual keyboard when a user uses the virtual keyboard for input. The overall input information may represent the input habit of the user with respect to the entire virtual keyboard, for example, the relevant settings of the user with respect to the virtual keyboard, the mode, size, position, etc. of the virtual keyboard being used by the user, the gesture of the corresponding device when the user clicks the key on the virtual keyboard, etc.
Different from the overall input information, the function input information is related information when a user clicks a function key. For example, the frequency and the key speed of the user clicking the function key in a preset period, the device posture when the user clicks the function key, and the like, which is not specifically limited in the embodiment of the present invention.
And step 120, adjusting the display position of the function key based on the integral input information and/or the function input information.
Specifically, after the integral input information is obtained, the display position of the function key can be adjusted based on the integral input information; after the function input information is obtained, the display position of the function key can be adjusted based on the function input information; after the integral input information and the function input information are obtained, the display positions of the function keys can be adjusted by combining the integral input information and the function input information.
For example, different display positions may be set in advance for different pieces of overall input information and/or function input information to establish a corresponding relationship between the input overall input information and/or function input information and the display positions, and after determining that the input overall input information and/or function input information is input, the display positions corresponding to the overall input information and/or function input information may be determined according to the preset corresponding relationship between the overall input information and/or function input information and the display positions, thereby achieving adjustment of the display positions of the function keys.
According to the method provided by the embodiment of the invention, the display position of the function key is adjusted based on the integral input information and/or the function input information, so that the display position of the function key can be always positioned in an area which is easy to click by a user, the difficulty of clicking the function key by the user is reduced, and the clicking efficiency of the function key is improved.
The application of the integral input information can enable the display position of the functional key to be more fit with the use habit of the user on the integral virtual keyboard; the application of the function input information can enable the display position of the function key to be more fit with the use habit of a user to the function key, and the function key is more pertinently and conveniently applied.
Based on the above embodiment, in the method, the overall input information includes user holding mode and/or virtual keyboard layout information.
The user holding mode is used for indicating a mode for holding the intelligent device when the user inputs through the virtual keyboard, and the user holding mode may be a one-hand holding mode or a two-hand holding mode, and the one-hand holding mode may specifically be a left-hand holding mode or a right-hand holding mode. The user holding mode directly determines the area which is easy to click by the user, and the display position of the function key is arranged in the area which is corresponding to the user holding mode and easy to click by the user, so that the efficiency of clicking the function key by the user can be improved.
The virtual keyboard layout information is used to indicate information such as a layout position and a layout size of the virtual keyboard on the touch screen of the smart device, and may specifically be position coordinates of each edge of the virtual keyboard on the touch screen, or a width and a height of the virtual keyboard. The virtual keyboard layout information can reflect the area where the user is actually used to click operation, and the virtual keyboard layout information is used as a reference to adjust the display positions of the functional keys, so that the display positions of the functional keys can better fit the operation habit of the user.
The overall input information may include only the user holding mode, only the virtual keyboard layout information, or both the user holding mode and/or the virtual keyboard layout information, which is not specifically limited in this embodiment of the present invention. Correspondingly, when the overall input information only comprises the user holding mode, the area which is easy to click by the user can be determined based on the user holding mode, and then the display position of the function key is adjusted.
In the method provided by the embodiment of the invention, the integral input information comprises the user holding mode and/or the virtual keyboard layout information, and the display position of the functional key can be more suitable for the integral use habit of the user on the virtual keyboard by applying the user holding mode and/or the virtual keyboard layout information, so that the clicking efficiency of the functional key is improved.
Based on any of the above embodiments, step 110 specifically includes: and determining the holding mode of the user based on the holding mode preset by the user and/or the edge key information when the user clicks the edge key of the virtual keyboard.
Specifically, the user holding mode may be a holding mode preset by the user, and the holding mode preset by the user may be directly acquired as the user holding mode. For example, if the user sets a single-hand mode on the smart device in advance and selects the left-side keyboard, it is determined that the user holding mode is the left-hand holding mode.
The user holding mode may also be determined by edge key information when the user clicks an edge key of the virtual keyboard. Here, the edge key information refers to information related to a user clicking an edge key of the virtual keyboard, such as a key speed of clicking the edge key or a posture of the smart device when the edge key is clicked, where the key speed may be determined based on an interval time from a previous key click to a current key click.
The user holding mode can be determined through the edge key information, for example, the average key speed when the user clicks the left edge key and the average key speed when the user clicks the right edge key are respectively counted, if the average key speed on the left side is greater than the average key speed on the right side, the user holding mode is determined to be the left-hand holding mode, if the average key speeds on the two sides are approximately equal, the user holding mode is determined to be the two-hand holding mode, otherwise, the user holding mode is determined to be the right-hand holding mode.
When the holding mode preset by the user is known, the holding mode of the user can be directly determined without considering the edge key information when the user clicks the edge key of the virtual keyboard. When the user does not preset the holding mode, the edge key information when the user clicks the edge key of the virtual keyboard can be acquired through collection, and then the holding mode of the user is determined. In addition, under the condition that the holding mode preset by the user is known, the edge key information when the user clicks the edge key of the virtual keyboard can be collected, and the user holding mode is determined by combining the holding mode preset by the user and the holding mode determined based on the edge key information.
The method provided by the embodiment of the invention determines the user holding mode based on the holding mode preset by the user and/or the edge key information when the user clicks the edge key of the virtual keyboard, thereby realizing the adjustment of the display position of the functional key based on the user holding mode, fitting the input habit of the user and improving the clicking efficiency of the functional key.
Based on any of the above embodiments, fig. 2 is a schematic flowchart of a user holding mode determining method according to an embodiment of the present invention, and as shown in fig. 2, the determining a user holding mode based on edge key information when a user clicks an edge key of a virtual keyboard specifically includes:
and step 111, determining equipment deflection information when the user clicks the edge key based on the edge key information when the user clicks the edge key of the virtual keyboard.
Step 112, determining the holding mode of the user based on the equipment deflection information when the user clicks the edge key.
Specifically, the device deflection information may be a deflection direction or a deflection angle of the smart device, or the like. The device deflection information when the user clicks the edge key reflects whether the user is held by one hand or both hands, and can also specifically reflect whether the user is held by the left hand or the right hand. The equipment deflection information can be acquired through a gyroscope or other attitude sensing devices arranged in the intelligent equipment, and the axis corresponding to the deflection direction or the deflection angle is preset, such as the central line of the intelligent equipment.
For example, when the user clicks the left edge key and the smart device is deflected to the right, the user holding mode may be a right hand holding mode; for another example, when the user clicks the left edge key and the right edge key, and the deflection angle of the smart device is smaller than the preset deflection angle threshold, the user holding mode may be a two-hand holding mode.
Based on any of the above embodiments, step 112 specifically includes: and determining a user holding mode based on edge key deflection angles of the keys on the two sides, which are clicked in sequence in the equipment deflection information when the user clicks the edge keys, and a preset deflection threshold value.
Specifically, the device deflection information when the user clicks the edge key includes edge key deflection angles at which the edge keys at both sides are sequentially clicked, specifically includes an edge key deflection angle at which the edge key at the right side is clicked after the edge key at the left side is clicked first, and/or an edge key deflection angle at which the edge key at the left side is clicked after the edge key at the right side is clicked first. Here, the edge key deflection angle refers to a deflection angle of the device when the two edge keys are sequentially clicked.
The preset deflection threshold value is the maximum value of the deflection angle of the preset double-hand holding mode, if the absolute value of the deflection angle of the edge key is larger than the preset deflection threshold value, the user holding mode is determined to be the single-hand holding mode, and if not, the user holding mode is determined to be the double-hand holding mode.
In addition, assuming that the deflection angle of the edge key corresponding to the clockwise direction is positive, and the deflection angle of the edge key corresponding to the counterclockwise direction is negative, when the absolute value of the deflection angle of the edge key is greater than the preset deflection threshold value, it may be further determined that the user holding mode is the left-hand holding mode or the right-hand holding mode according to the positive and negative of the deflection angle of the edge key.
For example, fig. 3 is a schematic flow chart of a user holding mode determining method according to another embodiment of the present invention, and as shown in fig. 3, the user holding mode determining method specifically includes:
firstly, judging whether a holding mode preset by a user exists or not, and if so, determining the holding mode of the user further according to the holding mode preset by the user; if not, collecting the deflection information of the equipment when the user clicks the edge key,
here, the device deflection information when the user clicks the edge key specifically includes an edge key deflection angle α of clicking the right edge key after clicking the left edge key, and an edge key deflection angle β of clicking the left edge key after clicking the right edge key, and when the number of times of acquiring the edge key deflection angles α and β is greater than a preset statistical number threshold, it is determined that the acquisition of the device deflection information is finished.
The statistical mean value of the edge key deflection angle α and the mean value of β may be used to determine that the user holding mode is the two-hand mode if both the absolute value of the mean value of α and the absolute value of the mean value of β are less than the preset deflection threshold, and specifically determine the deflection angle if the absolute value of the mean value of α is greater than the preset deflection threshold and/or the absolute value of the mean value of β is greater than the preset deflection threshold:
assuming that the edge key deflection angle corresponding to the clockwise direction is positive, and the edge key deflection angle corresponding to the counterclockwise direction is negative, in the collected edge key deflection angles α and β, if the probabilities that α is positive and β is negative exceed a preset probability threshold, it is determined that the smart device is tilted left and down, the corresponding user holding mode is a left-hand holding mode, and if the probabilities that α is negative and β is positive exceed a preset probability threshold, it is determined that the smart device is tilted right and down, and the corresponding user holding mode is a right-hand holding mode.
Based on any of the above embodiments, step 120 specifically includes: and adjusting the display positions of the functional keys based on the user holding mode and/or the virtual keyboard layout information.
Specifically, the display positions of the function keys may be adjusted based on the user holding pattern. For example, when the user holding mode is a left-hand holding mode, the display position of the function key can be adjusted to the left area of the touch screen of the smart device; when the holding mode of the user is a right-hand holding mode, the display position of the function key can be adjusted to the right area of the touch screen of the intelligent device; when the user holding mode is a two-hand holding mode, the display positions of the function keys can be adjusted to the left area, the right area or the middle area of the touch screen of the intelligent device.
In addition, the display positions of the functional keys can be adjusted based on the virtual keyboard layout information. For example, if the height of the virtual keyboard exceeds the area that is convenient for the user to touch by the fingers, the display position of the function keys can be adjusted from the upper end of the virtual keyboard to the lower end of the virtual keyboard, so that the user can click the function keys conveniently. For another example, if the width of the virtual keyboard is smaller than the width of the touch screen of the smart device, one of the two sides of the virtual keyboard coincides with the side of the touch screen, and the other side does not coincide with the other side of the touch screen, which indicates that the user may not easily click on a portion other than the other side of the virtual keyboard, and the display position of the function key may be adjusted to the side of the virtual keyboard coinciding with the side of the touch screen. To facilitate user clicking.
Moreover, the display positions of the functional keys can be adjusted based on the user holding mode and the virtual keyboard layout information. For example, the range of the display positions of the function keys may be determined based on the user holding mode, and then the specific display positions of the function keys within the range determined based on the user holding mode may be determined based on the keyboard height in the virtual keyboard layout information.
According to the method provided by the embodiment of the invention, the display positions of the functional keys are adjusted based on the user holding mode and/or the virtual keyboard layout information, so that the display positions of the functional keys are more suitable for the use habit of the user on the whole virtual keyboard, and the clicking efficiency of the functional keys is improved.
Based on any of the above embodiments, fig. 4 is a schematic flow chart of a display position adjustment method provided by an embodiment of the present invention, and as shown in fig. 4, in step 120, adjusting a display position of a function key based on a user holding mode and virtual keyboard layout information specifically includes:
and step 121, determining a finger sliding area of the user based on the user holding mode and the finger length of the user.
Here, the length of the finger of the user may be calculated according to a finger sliding track acquired by a touch screen in a daily operation process of the user, or may be a human finger length range with universality obtained through social statistics, which is not specifically limited in the embodiment of the present invention.
Based on the user holding mode, the center position of the user finger when sliding can be determined, based on the length of the user finger, the radius of the user finger when sliding can be determined, and under the condition that the center position and the radius are known, a circle can be drawn on the touch screen, an arc line when the user finger naturally slides on the touch screen is obtained, and then the finger sliding area of the user is obtained. Fig. 5 is a schematic diagram of a display position according to an embodiment of the present invention, in fig. 5, an arc-shaped solid line is an arc line when a finger of a user naturally slides on a touch screen, two arc-shaped dotted lines are respectively disposed at two sides of the arc-shaped solid line at equal intervals, where an interval between the arc-shaped dotted line and the arc-shaped solid line is used to indicate an adjustable threshold of a coverage width of the finger of the user, and an area between the two arc-shaped dotted lines, i.e., a sliding area of the finger of the user, is an area that is most easily.
And step 122, adjusting the display positions of the functional keys based on the finger sliding area of the user and the virtual keyboard layout information.
Specifically, the display positions of the function keys can be adjusted by combining the finger sliding area of the user and the virtual keyboard layout information. For example, the display position of the function key is preset to be arranged on the upper side of the virtual keyboard, the position of the edge of the upper side of the virtual keyboard can be determined according to the virtual keyboard layout information, and the intersection of the finger sliding area of the user and the edge of the upper side of the virtual keyboard is taken as the central point of the display position of the function key, so that the display position of the function key is also in the finger sliding area of the user while the layout of the upper side of the virtual keyboard is met, and the clicking efficiency of the function key is improved.
Referring to fig. 5, a bold blank box in fig. 5 represents a virtual keyboard in the touch screen, H represents a height of the virtual keyboard, a user finger sliding area formed by two arc-shaped dotted lines is determined in a right-hand holding mode, and an arc-shaped solid line in the user finger sliding area is obtained by drawing a circle with a lower right corner of the touch screen as a center and a finger length C of the user as a radius. The determination of the intersection of the user's finger sliding area and the upper side edge of the virtual keyboard can be simplified as follows: the length C of the finger of the user, the height H of the virtual keyboard and a section L of the upper side edge of the virtual keyboard form a right triangle, and the value of L is calculated according to the Pythagorean theorem given the values of C and H. The calculation formula is as follows:
Figure BDA0002315570230000111
after the value of L is obtained, the display position of the function key can be determined based on L and H.
It should be noted that, the user can adjust the height of the virtual keyboard at any time, the value of H correspondingly changes at any time according to the adjustment of the user, and after H changes, L correspondingly changes, and the display position of the function key also changes.
Furthermore, when H > C, i.e., the height of the virtual keyboard exceeds the user's finger length, there is no intersection of the user's finger sliding area with the upper side edge of the virtual keyboard. At this time, it may be considered to adjust the display positions of the function keys to the lower edge of the virtual keyboard. Fig. 6 is a schematic diagram of a display position according to another embodiment of the present invention, as shown in fig. 6, where a distance between a lower edge of a virtual keyboard and a lower edge of a touch screen is s, and the determination of the intersection of the finger sliding area and the lower edge of the virtual keyboard can be simplified as follows: the length C of the finger of the user, the height s of the lower side edge of the virtual keyboard and a section L of the lower side edge of the virtual keyboard form a right triangle, and the value of L is calculated according to the Pythagorean theorem given the values of C and s. The calculation formula is as follows:
Figure BDA0002315570230000112
after the value of L is obtained, the display position of the function key can be determined based on L and s.
According to the method provided by the embodiment of the invention, the user holding mode and the user finger length are used for determining the finger sliding area of the user, and the display position of the function key is adjusted by combining the virtual keyboard layout information on the basis, so that the display position of the function key can be more fit with the holding mode of the user and the virtual keyboard set by the user, and the user can more easily click the function key.
According to any of the above embodiments, in the method, the function input information includes device deflection information when a user clicks a function key.
Specifically, the device deflection information when the user clicks the function key refers to a deflection direction or a deflection angle of the smart device when the user clicks the function key, and the device deflection information may be acquired by a gyroscope or other posture sensing devices built in the smart device.
If the display positions of the function keys are arranged in the area which is easy to click by the user, the intelligent device may not deflect or the deflection angle is extremely small when the user clicks the function keys, and if the display positions of the function keys are arranged in the area which is not easy to click by the user, the intelligent device may deflect greatly when the user clicks the function keys. Therefore, whether the function key is in the area which is easy to click by the user can be determined through the equipment deflection information when the user clicks the function key, and therefore the display position of the function key is adjusted.
According to the method provided by the embodiment of the invention, the display position of the function key is adjusted based on the equipment deflection information when the user clicks the function key, so that the pertinence of adjustment of the display position of the function key can be effectively improved, and the efficiency of clicking the function key by the user is improved.
Based on any of the above embodiments, step 120 specifically includes: and if the deflection angle of the function key in the equipment deflection information when the user clicks the function key is larger than or equal to the preset adjustment angle threshold value, adjusting the display position of the function key based on the deflection angle of the function key.
Specifically, the function key deflection angle refers to a deflection angle of the smart device when the user clicks the function key. The equipment deflection information when the user clicks the function key comprises a function key deflection angle.
The preset adjustment angle threshold is the minimum value of the deflection angle of the function key which is preset and needs to adjust the position of the function key. If the deflection angle of the function key is larger than or equal to a preset adjustment angle threshold value, the display position of the function key needs to be adjusted; and if the deflection angle of the function key is smaller than the preset adjustment angle threshold value, the display position of the function key is not adjusted.
Further, if the deflection angle of the function key is greater than or equal to the preset adjustment angle threshold, based on the deflection angle of the function key, the specific manner of adjusting the display position of the function key may be to determine the adjustment direction of the display position of the function key according to the positive or negative deflection angle of the function key, and determine the moving distance of the display position of the function key according to the size of the deflection angle of the function key.
Based on any of the above embodiments, in step 120, the adjusting the display position of the function key based on the deflection angle of the function key specifically includes: and determining the moving distance of the display position based on the deflection angle of the function key and the unit angle moving distance so as to adjust the display position of the function key.
Here, the unit angle movement distance is a movement distance corresponding to the unit deflection angle, and for example, the unit angle movement distance is moved by n pixels every 1 ° of deflection. The unit angle moving distance may be preset, or may be obtained by calculating a ratio between a distance between two keys of the virtual keyboard and a deflection angle at which the user sequentially clicks the two keys, which is not particularly limited in the embodiment of the present invention.
After the deflection angle of the function key is determined, the deflection angle of the function key can be directly multiplied by the unit angle moving distance to obtain the moving distance of the display position, and then the display position of the function key is adjusted. Here, the movement distance of the presentation position may be expressed as the following equation:
Figure BDA0002315570230000131
in which Δ is a display positionThe distance of the device to be moved is,
Figure BDA0002315570230000132
e (d: theta) is the unit angle movement distance. In E (d: theta), d is the distance between any two keys in the virtual keyboard, theta is the equipment deflection angle when the user sequentially clicks the two keys, d: theta is the ratio of d to theta, and E (d: theta) is the average value of d: theta.
According to the method provided by the embodiment of the invention, the moving distance of the display position can be accurately calculated through the deflection angle of the functional key and the unit angle moving distance, so that the accurate adjustment of the display position of the functional key is realized.
Based on any of the above embodiments, fig. 7 is a schematic flow chart of a display position adjustment method according to another embodiment of the present invention, and as shown in fig. 7, the display position adjustment method for function keys specifically includes the following steps:
firstly, collecting the deflection angle of the function key when the user clicks the function key. The deflection angle of the function key in the clockwise direction is preset to be a positive value, and the deflection angle of the function key in the anticlockwise direction is preset to be a negative value. And if the times of counting the deflection angles of the functional keys reach a preset counting time threshold value, for example, 10 times, executing the next step, otherwise, continuing to collect the deflection angles of the functional keys.
And calculating the probability of the deviation to one side after the times of the deflection angle of the statistical function key reaches a preset statistical time threshold. The probability of the deviation to one side can be the probability that the deflection angle of the functional key is a positive value or the probability that the deflection angle of the functional key is a negative value, if the probability is greater than a preset deflection angle probability threshold value, it is indicated that the intelligent device regularly deflects when the user clicks the functional key, the mean value of the deflection angles of the functional key is calculated, and if the probability is less than or equal to the deflection angle probability threshold value, it is indicated that the intelligent device does not regularly deflect when the user clicks the functional key, and the display position of the functional key is not adjusted.
After the mean value of the deflection angles of the function keys is obtained, judging the magnitude of the mean value of the deflection angles of the function keys and a preset adjustment angle threshold, if the mean value of the deflection angles of the function keys is larger than or equal to the preset adjustment angle threshold, multiplying the mean value of the deflection angles of the function keys by the unit angle moving distance to obtain the moving distance of the display position so as to adjust the display position of the function keys; and if the display position is smaller than the preset adjustment angle threshold value, the display position of the function key is not adjusted.
Based on any one of the above embodiments, a method for displaying function keys specifically includes the following steps:
first, the entire input information of the user for the entire virtual keyboard is determined. Here, the overall input information includes user holding mode and virtual keyboard layout information, and the function input information includes device deflection information when a user clicks a function key.
Secondly, determining the area which is easiest to click when the fingers of the user naturally slide, namely the area where the fingers of the user slide, based on the holding mode of the user and the length of the fingers of the user. And determining the position of the upper side edge of the virtual keyboard based on the virtual keyboard layout information, taking the intersection of the finger sliding area of the user and the upper side edge of the virtual keyboard as the central point of the display position of the functional keys, and correspondingly adjusting the display position of the functional keys.
And after the display position adjustment is completed, counting the function input information of the user aiming at the function keys within a period of time after the adjustment. Here, the function input information includes device deflection information when the user clicks a function key.
If the deflection angle of the function key in the device deflection information when the user clicks the function key is larger than or equal to the preset adjustment angle threshold, determining the movement distance of the display position based on the deflection angle of the function key and the unit angle movement distance, and further finely adjusting the display position of the function key.
Based on any of the above embodiments, fig. 8 is a schematic structural diagram of a function key display apparatus according to an embodiment of the present invention, and as shown in fig. 8, the function key display apparatus includes an information determining unit 810 and a position adjusting unit 820;
the information determining unit 810 is configured to determine overall input information of the user for the entire virtual keyboard and/or function input information for the function keys;
the position adjusting unit 820 is configured to adjust a display position of the function key based on the overall input information and/or the function input information.
According to the device provided by the embodiment of the invention, the display position of the function key is adjusted based on the integral input information and/or the function input information, so that the display position of the function key can be always positioned in an area which is easy to click by a user, the difficulty of clicking the function key by the user is reduced, and the clicking efficiency of the function key is improved.
Based on any of the above embodiments, in the apparatus, the overall input information includes user holding mode and/or virtual keyboard layout information, and the function input information includes device deflection information when a user clicks the function key.
Based on any of the above embodiments, in the apparatus, the information determining unit 810 is specifically configured to:
and determining the user holding mode based on a holding mode preset by a user and/or edge key information when the user clicks the edge key of the virtual keyboard.
According to any of the above embodiments, in the apparatus, the information determining unit 810 includes:
an edge deflection determining subunit, configured to determine, based on edge key information when a user clicks an edge key of the virtual keyboard, device deflection information when the user clicks the edge key;
and the holding mode determining subunit is used for determining the user holding mode based on the equipment deflection information when the user clicks the edge key.
Based on any of the above embodiments, in the apparatus, the holding mode determining subunit is specifically configured to:
and determining the user holding mode based on the edge key deflection angles of the two side edge keys which are sequentially clicked in the equipment deflection information when the user clicks the edge keys and a preset deflection threshold value.
According to any of the above embodiments, in the apparatus, the position adjusting unit 820 includes:
the area determining subunit is used for determining a user finger sliding area based on the user holding mode and the user finger length;
and the position determining subunit is used for adjusting the display positions of the function keys based on the finger sliding area of the user and the virtual keyboard layout information.
Based on any of the above embodiments, in the apparatus, the position adjusting unit 820 is specifically configured to:
and if the deflection angle of the function key in the equipment deflection information when the user clicks the function key is larger than or equal to a preset adjustment angle threshold value, adjusting the display position of the function key based on the deflection angle of the function key.
Based on any of the above embodiments, in the apparatus, the position adjusting unit 820 is specifically configured to:
and determining the movement distance of the display position based on the deflection angle of the function key and the unit angle movement distance so as to adjust the display position of the function key.
Fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 9, the electronic device may include: a processor (processor)910, a communication Interface (Communications Interface)920, a memory (memory)930, and a communication bus 940, wherein the processor 910, the communication Interface 920, and the memory 930 communicate with each other via the communication bus 940. Processor 910 may invoke logical commands in memory 930 to perform the following method: determining the whole input information of a user aiming at the whole virtual keyboard and/or the function input information aiming at the function keys; and adjusting the display position of the function key based on the integral input information and/or the function input information.
In addition, the logic commands in the memory 930 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic commands are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes a plurality of commands for enabling a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Embodiments of the present invention further provide a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is implemented to perform the method provided in the foregoing embodiments when executed by a processor, and the method includes: determining the whole input information of a user aiming at the whole virtual keyboard and/or the function input information aiming at the function keys; and adjusting the display position of the function key based on the integral input information and/or the function input information.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes commands for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (11)

1. A method for displaying function keys is characterized by comprising the following steps:
determining the whole input information of a user aiming at the whole virtual keyboard and/or the function input information aiming at the function keys;
and adjusting the display position of the function key based on the integral input information and/or the function input information.
2. The method for displaying function keys according to claim 1, wherein the overall input information includes user holding mode and/or virtual keyboard layout information, and the function input information includes device deflection information when the user clicks the function keys.
3. The method for displaying function keys according to claim 2, wherein the determining of the whole input information of the user for the whole virtual keyboard specifically comprises:
and determining the user holding mode based on a holding mode preset by a user and/or edge key information when the user clicks the edge key of the virtual keyboard.
4. The method for displaying function keys according to claim 3, wherein the determining the user holding mode based on the edge key information when the user clicks the edge key of the virtual keyboard specifically comprises:
determining equipment deflection information when a user clicks an edge key based on edge key information when the user clicks the edge key of the virtual keyboard;
and determining the holding mode of the user based on the equipment deflection information when the user clicks the edge key.
5. The method for displaying function keys according to claim 4, wherein the determining the user holding mode based on the device deflection information when the user clicks the edge key specifically comprises:
and determining the user holding mode based on the edge key deflection angles of the two side edge keys which are sequentially clicked in the equipment deflection information when the user clicks the edge keys and a preset deflection threshold value.
6. The method for displaying function keys according to claim 2, wherein the adjusting the display position of the function key based on the overall input information specifically comprises:
determining a user finger sliding area based on the user holding mode and the user finger length;
and adjusting the display position of the function key based on the finger sliding area of the user and the virtual keyboard layout information.
7. The method for displaying function keys according to claim 2, wherein the adjusting the display positions of the function keys based on the function input information specifically comprises:
and if the deflection angle of the function key in the equipment deflection information when the user clicks the function key is larger than or equal to a preset adjustment angle threshold value, adjusting the display position of the function key based on the deflection angle of the function key.
8. The method for displaying function keys according to claim 7, wherein the adjusting the display position of the function key based on the deflection angle of the function key specifically comprises:
and determining the movement distance of the display position based on the deflection angle of the function key and the unit angle movement distance so as to adjust the display position of the function key.
9. A function key display device, comprising:
the information determining unit is used for determining the whole input information of the user aiming at the whole virtual keyboard and/or the function input information aiming at the function keys;
and the position adjusting unit is used for adjusting the display position of the function key based on the integral input information and/or the function input information.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the method for displaying function keys according to any one of claims 1 to 8 are implemented when the processor executes the program.
11. A non-transitory computer readable storage medium, on which a computer program is stored, the computer program, when being executed by a processor, implementing the steps of the function key presentation method according to any one of claims 1 to 8.
CN201911275996.6A 2019-12-12 2019-12-12 Function key display method and device, electronic equipment and storage medium Active CN111124242B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911275996.6A CN111124242B (en) 2019-12-12 2019-12-12 Function key display method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911275996.6A CN111124242B (en) 2019-12-12 2019-12-12 Function key display method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111124242A true CN111124242A (en) 2020-05-08
CN111124242B CN111124242B (en) 2021-10-01

Family

ID=70499967

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911275996.6A Active CN111124242B (en) 2019-12-12 2019-12-12 Function key display method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111124242B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113377201A (en) * 2021-06-24 2021-09-10 北京百度网讯科技有限公司 Input method panel display method and device
CN114090158A (en) * 2021-11-22 2022-02-25 北京百度网讯科技有限公司 Display method, display device, electronic apparatus, and medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102203715A (en) * 2011-05-23 2011-09-28 华为终端有限公司 An input method, an input device and a terminal device
CN104049859A (en) * 2013-03-15 2014-09-17 青岛海尔电子有限公司 Intelligent terminal and display control method of soft control interface thereof
US20150067572A1 (en) * 2012-04-09 2015-03-05 Zte Corporation Mobile terminal and method for setting virtual keyboard of mobile terminal
CN104808930A (en) * 2015-04-17 2015-07-29 深圳市金立通信设备有限公司 Operating element control method
CN106372476A (en) * 2016-10-10 2017-02-01 深圳市金立通信设备有限公司 Terminal and unlocking method thereof
CN107390998A (en) * 2017-08-18 2017-11-24 中山叶浪智能科技有限责任公司 The method to set up and system of button in a kind of dummy keyboard
CN109725810A (en) * 2019-01-15 2019-05-07 上海优扬新媒信息技术有限公司 A kind of method and apparatus adjusting user interface
CN110531867A (en) * 2018-05-25 2019-12-03 北京搜狗科技发展有限公司 A kind of method of adjustment of keyboard layout, device and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102203715A (en) * 2011-05-23 2011-09-28 华为终端有限公司 An input method, an input device and a terminal device
US20150067572A1 (en) * 2012-04-09 2015-03-05 Zte Corporation Mobile terminal and method for setting virtual keyboard of mobile terminal
CN104049859A (en) * 2013-03-15 2014-09-17 青岛海尔电子有限公司 Intelligent terminal and display control method of soft control interface thereof
CN104808930A (en) * 2015-04-17 2015-07-29 深圳市金立通信设备有限公司 Operating element control method
CN106372476A (en) * 2016-10-10 2017-02-01 深圳市金立通信设备有限公司 Terminal and unlocking method thereof
CN107390998A (en) * 2017-08-18 2017-11-24 中山叶浪智能科技有限责任公司 The method to set up and system of button in a kind of dummy keyboard
CN110531867A (en) * 2018-05-25 2019-12-03 北京搜狗科技发展有限公司 A kind of method of adjustment of keyboard layout, device and electronic equipment
CN109725810A (en) * 2019-01-15 2019-05-07 上海优扬新媒信息技术有限公司 A kind of method and apparatus adjusting user interface

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113377201A (en) * 2021-06-24 2021-09-10 北京百度网讯科技有限公司 Input method panel display method and device
CN114090158A (en) * 2021-11-22 2022-02-25 北京百度网讯科技有限公司 Display method, display device, electronic apparatus, and medium
CN114090158B (en) * 2021-11-22 2024-04-02 北京百度网讯科技有限公司 Display method, display device, electronic equipment and medium

Also Published As

Publication number Publication date
CN111124242B (en) 2021-10-01

Similar Documents

Publication Publication Date Title
US10866730B2 (en) Touch screen-based control method and apparatus
US10545580B2 (en) 3D interaction method, device, computer equipment and storage medium
US9405379B2 (en) Classification of user input
CN105468278B (en) Contact action identification, response, game control method and the device of virtual key
US10564759B2 (en) Method and apparatus for providing touch interface
CN111124242B (en) Function key display method and device, electronic equipment and storage medium
WO2015117341A1 (en) Mobile terminal and method for one-handed operation thereof, and computer storage medium
CN110032296B (en) Method and device for determining virtual object in terminal, terminal and storage medium
KR20140017658A (en) Input method, input device and terminal device
CN104317452A (en) Method for controlling intelligent equipment with large screen
EP2975507A1 (en) Touch-type terminal and method thereof for locating prompt box
CN105224089A (en) Gesture operation method and device, mobile terminal
CN104182144A (en) Mobile terminal interface browsing method and system
CN108279848A (en) A kind of display methods and electronic equipment
CN111026322A (en) Keyboard layout method and device, electronic equipment and storage medium
CN107037951B (en) Automatic operation mode identification method and terminal
CN105302459B (en) Single-hand control method and device for terminal
WO2024146348A1 (en) Information display method and apparatus, and electronic device and storage medium
CN105786373B (en) A kind of touch trajectory display methods and electronic equipment
CN110297592B (en) Processing method and electronic equipment
CN111095181A (en) Information processing method, related apparatus and computer storage medium
CN116954387A (en) Terminal keyboard input interaction method, device, terminal and medium
CN108694006B (en) Method and device for achieving icon wheel-imitating rolling effect
CN109885170A (en) Screenshotss method, wearable device and computer readable storage medium
EP2840468A1 (en) Input method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant