Virtual keyboard display method, device, electronic device and storage medium

By splitting and adjusting the key area of ​​the virtual keyboard, the problem of excessive finger movement range when inputting text on large-screen electronic devices is solved, improving the convenience and experience of user input.

CN115098015BActive Publication Date: 2024-10-29GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210853660.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-11
Publication Date
2024-10-29
Estimated Expiration
2042-07-11

AI Technical Summary

Technical Problem

When using large-screen electronic devices for text input, the size of the virtual keyboard is too large, causing the user's finger movement range to be too large, resulting in poor user experience.

Method used

By responding to the separation operation of the virtual keyboard, it is split into two parts, and the key area of ​​each part is adjusted so that its width is reduced in the specified direction dimension and closer to the edge of the keyboard, thereby reducing the distance between the virtual keys and the edge of the keyboard. Increase the convenience of user touch.

Benefits of technology

It simplifies the process of text input by users on electronic devices and improves input convenience and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115098015B_ABST
    Figure CN115098015B_ABST
Patent Text Reader

Abstract

This application discloses a method, apparatus, electronic device, and storage medium for displaying a virtual keyboard. The method includes: displaying a virtual keyboard on an interface; in response to a separation operation of the virtual keyboard, determining a first portion of virtual keys in the virtual keyboard as a first key area, and a second portion of virtual keys in the target key area as a second key area; adjusting the first key area and the second key area, and displaying a function area between the first key area and the second key area. This method facilitates keyboard input for users and meets their input habits.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic devices, and more specifically, to a display method, device, electronic device and storage medium of a virtual keyboard. Background Art

[0002] With the rapid advancement of technology and living standards, electronic devices (such as smart phones, tablet computers, etc.) have become one of the commonly used electronic products in people's lives. The screens of current electronic devices are getting bigger and bigger, and large-screen electronic devices bring better visual experience to users. However, when users use large-screen electronic devices to input text, the displayed virtual keyboard also becomes larger, so when users hold the electronic device, their fingers need to move over a large range to touch the corresponding keys. Summary of the invention

[0003] The present application proposes a method, device, electronic device and storage medium for displaying a virtual keyboard, which can facilitate keyboard input by users and meet the input habits of users.

[0004] In a first aspect, an embodiment of the present application provides a method for displaying a virtual keyboard, which is applied to an electronic device, and the method includes: displaying a virtual keyboard on an interface; in response to a separation operation on the virtual keyboard, determining a first part of virtual keys in the virtual keyboard as a first key area, and a second part of virtual keys in the target key area as a second key area; adjusting the first key area and the second key area, and displaying a functional area between the first key area and the second key area; wherein the width of the adjusted first key area in a first specified direction dimension is smaller than the width of the adjusted second key area in the first specified direction dimension before adjustment, the width of the adjusted second key area in the first specified direction dimension is smaller than the width of the adjusted second key area in the first specified direction dimension before adjustment, the adjusted first key area is located at a first position of the virtual keyboard in the first direction close to the boundary of the virtual keyboard, the adjusted second key area is located at a second position of the virtual keyboard in the second direction close to the boundary of the virtual keyboard, and the first direction and the second direction are opposite in the first specified direction dimension.

[0005] In a second aspect, an embodiment of the present application provides a display device for a virtual keyboard, which is applied to an electronic device, and the device includes: an interface display module, a keyboard splitting module and a keyboard display module, wherein the interface display module is used to display a virtual keyboard on an interface; the keyboard splitting module is used to determine, in response to a separation operation on the virtual keyboard, a first part of virtual keys in the virtual keyboard as a first key area, and a second part of virtual keys in the target key area as a second key area; the keyboard display module is used to adjust the first key area and the second key area, and display a functional area between the first key area and the second key area; wherein the width of the adjusted first key area in a first specified direction dimension is smaller than the width of the adjusted second key area in the first specified direction dimension before adjustment, the width of the adjusted second key area in the first specified direction dimension is smaller than the width of the adjusted second key area in the first specified direction dimension before adjustment, the adjusted first key area is located at a first position in the virtual keyboard close to the boundary of the virtual keyboard in the first direction, the adjusted second key area is located at a second position in the virtual keyboard close to the boundary of the virtual keyboard in the second direction, and the first direction and the second direction are opposite in the first specified direction dimension.

[0006] In a third aspect, an embodiment of the present application provides an electronic device, comprising: one or more processors; a memory; and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the virtual keyboard display method provided in the first aspect above.

[0007] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored. The program code can be called by a processor to execute the method for displaying a virtual keyboard provided in the first aspect.

[0008] The solution provided by the present application is to determine the first part of the virtual keys in the virtual keyboard as the first key area and the second part of the virtual keys in the target key area as the second key area in response to the separation operation of the virtual keyboard in the interface, and then adjust the first key area and the second key area, and display the function area between the first key area and the second key area. After the virtual keys of the virtual keyboard are split into two parts, the first key area and the second key area are adjusted, so that the width of the adjusted first key area in the first specified direction dimension is smaller than the width of the first specified direction dimension before adjustment, and the width of the adjusted second key area in the first specified direction dimension is smaller than the width of the first specified direction dimension before adjustment, and the first key area and the second key area are respectively close to the boundary of the virtual keyboard in opposite directions in the first specified direction dimension, thereby reducing the distance between the virtual keys of the virtual keyboard and the edge of the virtual keyboard in the first specified direction dimension, and then when the user holds the electronic device with both hands to input text, it is more convenient to touch the virtual keys, which facilitates the user to use the virtual keyboard displayed by the electronic device to input text. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0010] Figure 1 A schematic diagram showing an application scenario provided by an embodiment of the present application is shown.

[0011] Figure 2 Another schematic diagram of an application scenario provided by an embodiment of the present application is shown.

[0012] Figure 3 A flow chart of a method for displaying a virtual keyboard according to an embodiment of the present application is shown.

[0013] Figure 4 A schematic diagram of an interface provided by an embodiment of the present application is shown.

[0014] Figure 5 A schematic diagram of an interface provided by an embodiment of the present application is shown.

[0015] Figure 6 A schematic diagram of an interface provided by an embodiment of the present application is shown.

[0016] Figure 7 A schematic diagram of an interface provided by an embodiment of the present application is shown.

[0017] Figure 8 A schematic diagram of an interface provided by an embodiment of the present application is shown.

[0018] Fig. 9 A schematic diagram of an interface provided by an embodiment of the present application is shown.

[0019] Fig.10 A flow chart of a method for displaying a virtual keyboard according to another embodiment of the present application is shown.

[0020] Fig.11 A flow chart of a method for displaying a virtual keyboard according to yet another embodiment of the present application is shown.

[0021] Fig.12 A schematic diagram of an interface provided by yet another embodiment of the present application is shown.

[0022] Fig.13 A schematic diagram of an interface provided by yet another embodiment of the present application is shown.

[0023] Fig.14 A schematic diagram of an interface provided by yet another embodiment of the present application is shown.

[0024] Fig.15 A flow chart of a method for displaying a virtual keyboard according to another embodiment of the present application is shown.

[0025] Fig.16 A schematic diagram of an interface provided by yet another embodiment of the present application is shown.

[0026] Fig.17 A schematic diagram of an interface provided by yet another embodiment of the present application is shown.

[0027] Fig.18 A schematic diagram of an interface provided by yet another embodiment of the present application is shown.

[0028] Fig.19 A schematic diagram of an interface provided by yet another embodiment of the present application is shown.

[0029] Fig. 20 A schematic diagram of an interface provided by yet another embodiment of the present application is shown.

[0030] Fig.21 A flow chart of a method for displaying a virtual keyboard according to yet another embodiment of the present application is shown.

[0031] Fig. 22 A schematic diagram of an interface provided by yet another embodiment of the present application is shown.

[0032] Fig.23A schematic diagram of an interface provided by yet another embodiment of the present application is shown.

[0033] Fig.24 A block diagram of a display device for a virtual keyboard according to an embodiment of the present application is shown.

[0034] Fig.25 4 is a block diagram of an electronic device for executing a method for displaying a virtual keyboard according to an embodiment of the present application.

[0035] Fig.26 It is a storage unit of an embodiment of the present application for storing or carrying a program code for implementing a method for displaying a virtual keyboard according to an embodiment of the present application. DETAILED DESCRIPTION

[0036] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0037] With the advancement of technology and the growth of user demand, the screen size of electronic devices is getting bigger and bigger, and even foldable screen electronic devices have appeared. When the screen of foldable screen electronic devices is unfolded, the screen size can be larger. When users use large-screen electronic devices to play games or watch videos, the user's visual experience is better because the displayed picture is larger.

[0038] However, due to the increase in screen size of electronic devices, when the electronic device is in a text input scenario, the size of the virtual keyboard will also be larger because the virtual keyboard will adapt to the screen size. In this case, when the user holds the electronic device to input text through the displayed virtual keyboard, due to the limited length of the user's fingers, the keys in the middle area of ​​the virtual keyboard are beyond the reachable area of ​​the user's fingers, which will cause the user's finger (usually the thumb) to move a large range when inputting text, resulting in a poor user experience.

[0039] In view of the above problems, the inventors have proposed a method, device, electronic device and storage medium for displaying a virtual keyboard provided in the embodiments of the present application, which can reduce the distance between the virtual keys in the virtual keyboard and the edge of the virtual keyboard in the first specified direction dimension, so that when the user holds the electronic device with both hands to input text, the virtual keys can be touched more conveniently, which facilitates the user to input text using the virtual keyboard displayed by the electronic device. Among them, the specific method for displaying the virtual keyboard is described in detail in the subsequent embodiments.

[0040] The following first introduces the scenarios involved in the embodiments of the present application.

[0041] The method for displaying a virtual keyboard provided in an embodiment of the present application may be executed by an electronic device, and the electronic device may include a display area (e.g., a display screen), or may include multiple display areas, and the multiple display areas may be foldable with each other (e.g., including a folding screen). Figure 1 As shown, the electronic device 100 may include a display area 101; for example, Figure 2 As shown, in Figure 2 The electronic device 100 shown may include a first display area 102 and a second display area 103 , and the first display area 102 and the display area 103 may be folded relative to each other.

[0042] See also Figure 3 , Figure 3 FIG. 1 is a flow chart of a method for displaying a virtual keyboard provided by an embodiment of the present application. In a specific embodiment, the method for displaying a virtual keyboard is applied to Fig.24 The display device 400 of the virtual keyboard and the electronic device 100 ( Fig.25 ). The following will take an electronic device as an example to illustrate the specific process of this embodiment. Of course, it can be understood that the electronic device used in this embodiment can be a smart phone, a tablet computer, an e-book, etc., which is not limited here. Figure 3 The process shown is described in detail, and the method for displaying the virtual keyboard may specifically include the following steps:

[0043] Step S110: Displaying a virtual keyboard on the interface.

[0044] In the embodiment of the present application, the above interface can be any interface that can call a virtual keyboard for text input. For example, when the electronic device runs a memo application, the above interface can be an editing interface for the memo items. When an input operation is detected for the input area, a virtual keyboard can be displayed in the interface for the user to input using the virtual keyboard. For another example, see Figure 4 When the electronic device runs a chat application, the interface may be a chat interface A1. When an input operation is detected for the input area, a virtual keyboard A2 may be displayed in the chat interface A1. Of course, the specific interface may not be limited, for example, it may be a text message editing interface, a browser input interface, etc.

[0045] Step S120: In response to the separation operation on the virtual keyboard, determine a first portion of virtual keys in the virtual keyboard as a first key area, and a second portion of virtual keys in the target key area as a second key area.

[0046] In an embodiment of the present application, when a virtual keyboard is displayed in the current interface of the electronic device, the display of the virtual keyboard can be adjusted after the virtual keys in the virtual keyboard are split when a separation operation on the virtual keyboard is detected. The virtual keys in the virtual keyboard can be split into two parts of virtual keys, and the first part of the virtual keys is used as the first key area, and the second part of the virtual keys is used as the second key area.

[0047] In some embodiments, a trigger control for triggering keyboard splitting may be displayed in the virtual keyboard, and when the electronic device detects an operation on the trigger control, it may indicate that a split operation on the virtual keyboard has been detected. The trigger control may be displayed in a non-key area of ​​the virtual keyboard, for example, on the upper edge or lower edge of the virtual keyboard.

[0048] In other embodiments, the electronic device may determine that a separation operation on the virtual keyboard has been detected when a preset trigger gesture in the virtual keyboard is detected. That is, when the electronic device detects a preset trigger gesture in the virtual keyboard, it determines to obtain the split position information of the virtual keys in the virtual keyboard, as well as subsequent steps, to adjust the display of the virtual keyboard, thereby facilitating keyboard input by the user.

[0049] In a possible implementation, the electronic device may determine that a separation operation for the virtual keyboard is detected when a first pressing operation at a first position in the virtual keyboard and a second pressing operation at a second position are detected. Optionally, the first position may be the area where the left edge of the virtual keyboard is located, and the second position may be the area where the right edge of the virtual keyboard is located. By detecting the first pressing operation in the area where the left edge is located and the second pressing operation in the area where the right edge is located at the same time, the keyboard separation operation can be quickly triggered. Optionally, the above-mentioned first pressing operation and the second pressing operation may meet a preset pressing condition. The preset pressing condition may be: at least one of a pressing duration greater than a preset duration, a pressing area greater than a preset area, and a pressing force greater than a preset force. Of course, the specific preset pressing condition may not be limited.

[0050] In another possible implementation, the electronic device may determine that a separation operation for the virtual keyboard is detected when a first sliding operation at a third position and a second sliding operation at a fourth position in the virtual keyboard are detected. Wherein, the third position is different from the fourth position, and the touch area at the starting position of the first sliding operation and the second sliding operation includes at least two virtual keys. It can be understood that since there are many keys on the virtual keyboard, if a single key is touched, it is easy to make a wrong input. Therefore, by triggering the switching of the keyboard mode by two sliding operations including at least two virtual keys in the touch area at the starting position, the separation operation of the virtual keyboard can be quickly triggered, and the wrong triggering of keyboard input can be avoided. Wherein, the first sliding operation and the second sliding operation can be performed simultaneously; the first sliding operation and the second sliding operation can also be performed non-simultaneously, for example, the interval between the second sliding operation and the first sliding operation can be less than the set time, and the set time can be 0.5 seconds, 1 second, 2 seconds, etc.

[0051] In some other embodiments, the electronic device may also determine that a separation operation on the virtual keyboard is detected when a swing operation is detected on the electronic device. The swing operation is an operation for swinging the body of the electronic device. A motion sensor may be provided in the electronic device, and the electronic device may detect the swing operation on the electronic device through the motion sensor. The motion sensor may include at least one of a gravity sensor, an acceleration sensor, a gyroscope sensor, and a six-axis sensor (or a nine-axis sensor or a twelve-axis sensor) obtained by fusing the acceleration sensor and the gyroscope sensor.

[0052] In a possible implementation, the motion sensor provided in the electronic device may include a gravity sensor and a gyroscope sensor. The gravity sensor is implemented through the piezoelectric effect. There is a weight inside the gravity sensor that is integrated with the piezoelectric sheet. The horizontal direction is calculated through the voltage generated in two orthogonal directions. When the gravity sensor is used in an electronic device, it can usually be used to switch between the horizontal and vertical screen directions; the gyroscope, also known as the angular velocity sensor, is usually configured in the electronic device with a three-axis gyroscope, which can track the displacement changes in 6 directions, obtain the angular acceleration of the electronic device in the three directions of x, y, and z, and make a good measurement of the rotation and deflection of the mobile phone, so as to perform corresponding operations on the electronic device. In the electronic device, the applications that usually use gyroscopes include games, camera anti-shake, navigation, etc. Among them, the electronic device can detect that it has a certain rotation angle through the gyroscope, and when it detects that there is a gravity dump through the gravity sensor, it determines that a swing operation is detected.

[0053] In a possible implementation, the electronic device may determine the swing amplitude of the electronic device when a swing operation is detected, and if the swing amplitude is greater than a preset amplitude, it may be determined that a separation operation for the virtual keyboard is detected. The electronic device may detect the rotation angle of each axis through a gyroscope to determine the swing amplitude of the electronic device.

[0054] In some embodiments, the electronic device splits the virtual keys in the virtual keyboard into two parts of virtual keys. The splitting can be for the virtual keys in all key areas or for the virtual keys in part of the key areas, and the split key areas include at least one row of virtual keys.

[0055] In some embodiments, the electronic device can split the virtual keys in the virtual keyboard into a first part of keys and a second part of keys along the second specified direction dimension, thereby obtaining a first key area and a second key area, and thus, through the subsequent control of the display width and display position, the virtual keys in the first key area and the second key area can be closer to the two side edges of the virtual keyboard, so that the user can touch the virtual keys in the first key area and the second key area more easily. Among them, the second specified direction dimension can be the column direction dimension of the column composed of the virtual keys in the virtual keyboard, and can also be understood as the vertical dimension of the viewing angle of the user when using the electronic device.

[0056] In some embodiments, the electronic device determines the first part of the virtual keys in the virtual keyboard as the first key area, and the second part of the virtual keys in the virtual keyboard as the second key area, and the first key area and the second key area can be determined according to the detected user operation. That is, the user can split the virtual keys in the virtual keyboard according to his usage needs and habits.

[0057] In other implementations, the electronic device may also split the virtual keys of the virtual keyboard according to pre-set split position information and the split position information, thereby determining the above-mentioned first key area and second key area.

[0058] In a possible implementation, after the electronic device splits the virtual keys in the virtual keyboard into two parts of virtual keys, for the virtual keys in the first part, the relative positions between the virtual keys in the first part can be kept unchanged, and it can be used as the first key area; similarly, for the virtual keys in the second part, the relative positions between the virtual keys in the second part can be kept unchanged, and it can be used as the second key area, so that after subsequent display adjustment, since the relative positions between the virtual keys remain unchanged, it will not affect the user's input habits. Of course, the electronic device can also rearrange the virtual keys in the first part to obtain the first key area, and arrange the virtual keys in the second part to obtain the second key area, but in this way, the number of rows of virtual keys in the first key area can be kept as the original number of rows of virtual keys in the virtual keyboard, and the number of rows of virtual keys in the second key area can be kept as the original number of rows of virtual keys in the virtual keyboard, so that after subsequent display adjustment, the number of rows of virtual keys in the virtual keyboard will not be reduced or increased, and the aesthetics can also be guaranteed.

[0059] Of course, there is no limitation on the specific splitting method of the virtual keys in the target area. It only needs to ensure that the virtual keys in the target area are split into two parts, and the virtual keys in each part serve as a new key area. Moreover, since the virtual keyboard includes at least one row of virtual keys, the subsequent display adjustment steps can reduce the distance between the virtual keys in the target area and the edges of the two sides of the virtual keyboard.

[0060] Step S130: adjusting the first button area and the second button area, and displaying a function area between the first button area and the second button area.

[0061] In an embodiment of the present application, after determining the first key area and the second key area, the electronic device can adjust the first key area and the second key area, and display the function area between the first key area and the second key area. The adjustment of the first key area and the second key area can be to adjust the width of the first key area and the second key area in the first specified direction dimension, and the display position of the first key area and the second key area in the virtual keyboard, so that the width of the adjusted first key area in the first specified direction dimension is less than the width of the first key area in the first specified direction dimension before the adjustment, the width of the adjusted second key area in the first specified direction dimension is less than the width of the second key area in the first specified direction dimension before the adjustment, the adjusted first key area is located in the first position of the virtual keyboard near the boundary of the virtual keyboard in the first direction, and the adjusted second key area is located in the second position of the virtual keyboard near the boundary of the virtual keyboard in the second direction. The first direction and the second direction are both directions in the first specified direction dimension, and the first direction is opposite to the second direction in the first specified direction dimension; the first specified direction dimension can be the row direction dimension of the row composed of virtual keys in the virtual keyboard, and can also be understood as the horizontal dimension of the viewing angle when the user uses the electronic device.

[0062] It can be understood that since the widths of the first key area and the second key area in the first specified direction dimension are reduced, and the first key area and the second key area are respectively close to the boundary of the virtual keyboard in opposite directions in the first specified direction dimension, the distance between the virtual keys in the first key area and the second key area and the boundary of the virtual keyboard in the first specified direction dimension can be shortened, that is, the distance between the virtual keys in the virtual keyboard and the two side edges of the virtual keyboard is shortened, making it easier for users to reach the virtual keys in the virtual keyboard.

[0063] In addition, as the widths of the first button area and the second button area in the first specified direction dimension decrease, a blank area will appear between the first button area and the second button area. In order to facilitate other operations during keyboard input by the user, a functional area can be displayed between the first button area and the second button area.

[0064] In some embodiments, when the electronic device reduces the width of the first button area and the second button area in the first specified direction dimension, the first button area and the second button area in the first specified direction dimension can be reduced to a preset width. The preset width can be a default display width, or a display width pre-set by the electronic device according to a setting operation of the user, which is not limited here.

[0065] In some embodiments, the key edges of the virtual keys at the split positions corresponding to the first key area and the second key area (the virtual keys at the side edge near the middle position of the virtual keyboard) may not be aligned in the second specified direction dimension. In this case, after the display adjustment through steps S140 and S150, the aesthetics will be affected. Therefore, in this case, the key edges of the first key area and the second key area at the side edge near the middle position can be aligned in the vertical direction by adjusting the width of the virtual keys in the first key area and the second key area in the first specified direction dimension.

[0066] For example, please also refer to Figure 4 and Figure 5 ,like Figure 4 As shown, the key area A3 of the virtual keyboard may include the row where the virtual keys "Q", "A" and "Z" are located; if the split position information is Figure 4 The split track A4 shown is as follows: Figure 5 As shown, the virtual keys in the key area A3 can be split into the first key area A5 and the second key area A6 based on the split trajectory A4. After the widths of the virtual keys in the first key area A5 and the second key area A6 in the first specified direction dimension are reduced, the first key area A5 is displayed in the keyboard at a first position close to the boundary of the virtual keyboard in the first direction, and the second key area A6 is displayed in the virtual keyboard at a second position close to the boundary of the virtual keyboard in the second direction, thereby reducing the distance between the virtual keys in the key area and the boundaries of the virtual keyboard on both sides in the first specified direction dimension. In addition, a functional area A7 is displayed between the first key area A5 and the second key area A6 to meet more operational requirements of users when performing keyboard input.

[0067] In some embodiments, the function area can be used to achieve multiple possibilities, and the functions implemented by the function area can be set according to the user's setting operation. For example, see Figure 6 The function area A7 may include multiple function controls, for example, controls for adjusting the display size of the virtual keyboard, controls for cursor control, controls for controlling the floating display of the virtual keyboard, controls for exiting the current split keyboard mode, etc.; for another example, refer to Figure 7 , the function area A7 can also be a handwriting area, so that the user can input content by handwriting; for another example, refer to Figure 8 The function area A7 can be used to realize the magnifying glass function. According to the user's operation in the function area, the display of the edited content can be magnified or reduced. For example, see Fig. 9, the functional area A7 can be used to implement the association function. When the text content input by the user through the virtual keyboard is detected, the content that the user may input later can be determined based on the input text content, and the determined content can be displayed in the functional area for user reference and selection. Of course, the specific functions implemented by the functional area are not limited to this. For example, the functional area can also be used to display an image corresponding to the state of the electronic device. For example, when the electronic device is a mobile terminal with a folding screen, if the folding screen is in an unfolded state, the functional area can display an image of an unfolded flower. If the folding screen is in a folded state, the functional area can display an image of a closed flower. For another example, the functional area can also be used for image and text recognition.

[0068] The display method of the virtual keyboard provided in the embodiment of the present application splits the virtual keys therein into two parts, reduces the width in a first specified direction dimension, and the first key area and the second key area are respectively close to the boundary of the virtual keyboard in opposite directions in the first specified direction dimension, thereby reducing the distance between the virtual keys in the virtual keyboard and the edge of the virtual keyboard in the first specified direction dimension, and then when the user holds the electronic device with both hands to input text, the virtual keys can be touched more conveniently, which facilitates the user to input text using the virtual keyboard displayed by the electronic device.

[0069] See also Fig.10 , Fig.10 A flow chart of a method for displaying a virtual keyboard provided by another embodiment of the present application is shown. The method for displaying a virtual keyboard is applied to the above electronic device. Fig.10 The process shown is described in detail, and the method for displaying the virtual keyboard may specifically include the following steps:

[0070] Step S210: Displaying a virtual keyboard on the interface.

[0071] In the embodiment of the present application, step S210 can refer to the contents of other embodiments and will not be repeated here.

[0072] Step S220: In response to the separation operation on the virtual keyboard, obtaining split position information of virtual keys of the virtual keyboard.

[0073] In an embodiment of the present application, when an electronic device displays a virtual keyboard in an interface, it can obtain split position information of virtual keys of the virtual keyboard in the virtual keyboard when a separation operation on the virtual keyboard is detected, so as to adjust the display of the virtual keyboard after the virtual keys in the virtual keyboard are split according to the split position information. The split position information includes the position information of the virtual keys used to split the virtual keys of the virtual keyboard into two parts. The virtual keyboard can be a pre-set key area or a key area selected according to the user operation, and the virtual keyboard includes at least one row of virtual keys. Optionally, the split position information can include a split track, at least one key position, etc.

[0074] In some embodiments, the electronic device obtains the split position information of the virtual keys in the virtual keyboard by determining the split position information of the virtual keys in the virtual keyboard according to the detected user operation. That is, the user can split the virtual keys in the virtual keyboard according to his / her usage needs and habits.

[0075] In other embodiments, the electronic device may be pre-set with split position information corresponding to each splitting method in a plurality of splitting methods, and the splitting position information corresponding to each splitting method is different. The plurality of splitting methods may be preset splitting methods in the electronic device, or may be user-defined splitting methods, which are not limited here. Optionally, when the electronic device obtains splitting position information for virtual keys in a virtual keyboard, it may display options corresponding to a plurality of splitting methods, select any splitting method according to the user's selection operation, and obtain the splitting position information corresponding to the selected splitting method as the splitting position information for the virtual keys in the virtual keyboard this time; optionally, the electronic device may determine the selected splitting method from a plurality of splitting methods as the default splitting method according to the user's pre-set operation, and when the electronic device obtains the splitting position information for the virtual keys in the virtual keyboard, it may directly use the splitting position information corresponding to the default splitting method as the splitting position information for the virtual keys in the virtual keyboard this time.

[0076] Of course, the specific manner in which the electronic device obtains the split position information of the virtual keys in the virtual keyboard may not be limited.

[0077] Step S230: Based on the split position information, obtain the first part of virtual keys in the virtual keyboard as the first key area, and the second part of virtual keys in the virtual keyboard as the second key area.

[0078] In an embodiment of the present application, after obtaining the split position information, the electronic device can split the virtual keys of the virtual keyboard into two parts of virtual keys based on the split position information, and obtain the virtual keys of the first part as the first key area, and the virtual keys of the second part in the virtual keyboard as the second key area.

[0079] In some embodiments, the electronic device can split the virtual keys in the virtual keyboard into a first part of keys and a second part of keys along the second specified direction dimension based on the split position information, thereby obtaining a first key area and a second key area, and thus, through the subsequent control of the display width and display position, the virtual keys in the first key area and the second key area can be closer to the two side edges of the virtual keyboard, so that the user can touch the virtual keys in the first key area and the second key area more easily. Among them, the second specified direction dimension can be the column direction dimension of the column composed of the virtual keys in the virtual keyboard, and can also be understood as the vertical dimension of the viewing angle of the user when using the electronic device.

[0080] Optionally, the split position information may be the position of a virtual key, and the virtual keys in the virtual keyboard may be split into a first part of virtual keys and a second part of virtual keys according to the vertical line where the position is located in the second specified direction dimension; the split position information may be an input split track, and the split track is a track along the second specified direction dimension, and the virtual keys in the virtual keyboard may be directly split into a first part of virtual keys and a second part of virtual keys according to the split track; the split position information may also be an irregular split track for the virtual keys in the virtual keyboard, and the virtual keys in the virtual keyboard may be directly split according to the split track to obtain a first part of virtual keys and a second part of virtual keys. In this embodiment, by splitting along the second specified direction dimension, the relative positions of the virtual keys in the target area will not change after adjustment in subsequent steps, thereby not affecting the user's input habits.

[0081] Step S240: adjusting the first button area and the second button area, and displaying a function area between the first button area and the second button area.

[0082] Among them, the width of the first key area in the first specified direction dimension after adjustment is smaller than the width in the first specified direction dimension before adjustment, the width of the second key area in the first specified direction dimension after adjustment is smaller than the width in the first specified direction dimension before adjustment, the first key area after adjustment is located at a first position of the virtual keyboard close to the boundary of the virtual keyboard in the first direction, the second key area after adjustment is located at a second position of the virtual keyboard close to the boundary of the virtual keyboard in the second direction, and the first direction and the second direction are opposite in the first specified direction dimension.

[0083] In the embodiment of the present application, step S240 can refer to the contents of other embodiments and will not be repeated here.

[0084] The method for displaying a virtual keyboard provided in an embodiment of the present application can reduce the distance between the virtual keys in the virtual keyboard and the edge of the virtual keyboard in a first specified direction dimension, so that when the user holds the electronic device with both hands to input text, the virtual keys can be touched more conveniently, which facilitates the user to input text using the virtual keyboard displayed by the electronic device; in addition, when splitting the virtual keys in the virtual keyboard, the virtual keys of the virtual keyboard can be split according to different split position information, thereby satisfying the input habits of different users.

[0085] See also Fig.11 , Fig.11 A flowchart of a method for displaying a virtual keyboard provided by another embodiment of the present application is shown. The method for displaying a virtual keyboard is applied to the above electronic device. Fig.11 The process shown is described in detail, and the method for displaying the virtual keyboard may specifically include the following steps:

[0086] Step S310: Display a virtual keyboard on the interface.

[0087] Step S320: In response to a separation operation on the virtual keyboard, obtaining split position information for virtual keys in the virtual keyboard, the split position information including a split track along a second specified direction dimension in the virtual keyboard, wherein the second specified direction dimension is perpendicular to the first specified direction dimension.

[0088] In the embodiment of the present application, step S310 and step S320 can refer to the contents of other embodiments and will not be described in detail here.

[0089] The first specified direction dimension may be the row direction dimension of the row formed by the virtual keys in the virtual keyboard, which may also be understood as the horizontal dimension of the viewing angle when the user uses the electronic device; the second specified direction dimension may be the column direction dimension of the column formed by the virtual keys in the virtual keyboard, which may also be understood as the vertical dimension of the viewing angle when the user uses the electronic device.

[0090] Step S330: Obtain the virtual keys in the virtual keyboard that are located on the first side of the split track in the first specified direction dimension as the first key area, and obtain the virtual keys in the virtual keyboard that are located on the second side of the split track in the first specified direction dimension as the second key area.

[0091] In the embodiment of the present application, the split position information may be a split track along the second specified direction dimension. Figure 4 , the virtual keyboard A3 may include a row where the virtual keys "Q", "A" and "Z" are located, and the split position information may be as follows: Figure 4 The split track A4 shown in . Based on this, the electronic device can obtain the virtual keys on the first side of the split track in the first specified direction dimension in the virtual keyboard as the first key area, and the virtual keys on the second side of the split track in the first specified direction dimension in the virtual keyboard as the second key area, that is, from the observation angle when the user uses the electronic device, since the split track is a split line along the second specified direction dimension, the virtual keys on the left side of the split track can be obtained as the first key area, and the virtual keys on the right side of the split track can be obtained as the second key area.

[0092] In some embodiments, considering that when the user inputs the split position information, the input split track may not be in the gap between the virtual keys, then directly obtaining the virtual keys on the left and right sides of the split track and splitting the key area will miss the virtual keys in the target area that are just on the split track. Therefore, the electronic device can determine whether there is a virtual key at the position corresponding to the split track in the virtual keyboard; if there is a virtual key at the position corresponding to the split track in the virtual keyboard, obtain the virtual key at the position of the split track as the target key; obtain the virtual key on the first side of the split track in the virtual keyboard in the first specified direction dimension, and the target key as the first key area; obtain the virtual key on the second side of the split track in the virtual keyboard in the first specified direction dimension, and the target key as the second key area.

[0093] That is, in this embodiment, if the split track happens to be on a virtual key in the target area, the virtual key can be divided into the first key area and the second key area at the same time. After the display adjustment in the subsequent steps, the first key area and the second key area can repeatedly display the target key. Fig.12 , the virtual keyboard A3 may include a row of virtual keys "Q", "A" and "Z", and virtual keys "G" and "V" exist on the split line A4; in this case, please refer to Fig.13 , "G" and "V" can be divided into the first key area A5 and the second key area A6. After processing step S240 and step S250, the first key area A5 and the second key area A6 can both display the virtual keys "G" and "V".

[0094] In other embodiments, the electronic device can determine whether there is a virtual key at the position corresponding to the split track in the virtual keyboard; if there is a virtual key at the position corresponding to the split track in the virtual keyboard, obtain the virtual key at the position of the split track as the target key; obtain the virtual key in the virtual keyboard that is located on the first side of the split track in the first specified direction dimension, and the target key, as the first key area; obtain the virtual key in the virtual keyboard that is located on the second side of the split track in the first specified direction dimension, as the second key area.

[0095] That is, in this embodiment, if the split track happens to be on a virtual key in the target area, the virtual key can be divided into the first key area, and after the display adjustment in the subsequent steps, the target key can be displayed in the first key area, while the target key is not displayed in the second key area. Fig.12 , the virtual keyboard A3 may include a row of virtual keys "Q", "A" and "Z", and virtual keys "G" and "V" exist on the split line A4; in this case, please refer to Fig.14 , "G" and "V" can be divided into the first key area A5. After processing steps S240 and S250, the first key area A5 can display the virtual keys "G" and "V", while the second key area A6 does not display the virtual keys "G" and "V".

[0096] In some other embodiments, the electronic device can determine whether there is a virtual key at the position corresponding to the split track in the virtual keyboard; if there is a virtual key at the position corresponding to the split track in the virtual keyboard, obtain the virtual key at the position of the split track as the target key; obtain the virtual key on the first side of the split track in the virtual keyboard in the first specified direction dimension as the first key area; obtain the virtual key on the second side of the split track in the virtual keyboard in the first specified direction dimension, and the target key, as the second key area.

[0097] That is, in this embodiment, if the split track happens to be on a virtual key in the target area, the virtual key can be divided into the second key area, and after the display adjustment in the subsequent steps, the target key can be displayed in the second key area, while the target key is not displayed in the first key area. Fig.12 , the virtual keyboard A3 may include a row of virtual keys "Q", "A" and "Z", and virtual keys "G" and "V" exist on the split line A4; in this case, please refer to Figure 5 , "G" and "V" can be divided into the second key area A5. After processing steps S240 and S250, the second key area A5 can display the virtual keys "G" and "V", while the first key area A6 does not display the virtual keys "G" and "V".

[0098] It should be noted that the above three implementations can be combined. For example, the electronic device can selectively divide the above target buttons into the first button area, or into the second button area, or into both the first button area and the second button area according to the user's selection operation.

[0099] Step S340: adjusting the first button area and the second button area, and displaying a function area between the first button area and the second button area.

[0100] Among them, the width of the first key area in the first specified direction dimension after adjustment is smaller than the width in the first specified direction dimension before adjustment, the width of the second key area in the first specified direction dimension after adjustment is smaller than the width in the first specified direction dimension before adjustment, the first key area after adjustment is located at a first position of the virtual keyboard close to the boundary of the virtual keyboard in the first direction, the second key area after adjustment is located at a second position of the virtual keyboard close to the boundary of the virtual keyboard in the second direction, and the first direction and the second direction are opposite in the first specified direction dimension.

[0101] In the embodiment of the present application, step S340 can refer to the contents of other embodiments and will not be repeated here.

[0102] The display method of the virtual keyboard provided in the embodiment of the present application can reduce the distance between the virtual keys in the virtual keyboard and the boundary of the virtual keyboard in the first specified direction dimension, so that when the user holds the electronic device with both hands to input text, the virtual keys can be touched more conveniently, which is convenient for the user to use the virtual keyboard displayed by the electronic device to input text; in addition, when splitting the virtual keys in the virtual keyboard, the virtual keys of the virtual keyboard can be split according to different splitting trajectories, so as to meet the input habits of different users; furthermore, according to the actual situation of the split line in the virtual keyboard, the virtual keys in the first key area and the virtual keys in the second key area are determined, so that the separation of the virtual keyboard can be better realized.

[0103] See also Fig.15 , Fig.15 A flowchart of a method for displaying a virtual keyboard provided in another embodiment of the present application is shown. The method for displaying a virtual keyboard is applied to the above electronic device. Fig.15 The process shown is described in detail, and the method for displaying the virtual keyboard may specifically include the following steps:

[0104] Step S410: Display a virtual keyboard on the interface.

[0105] In the embodiment of the present application, step S410 can refer to the contents of other embodiments and will not be repeated here.

[0106] Step S420: In response to the split operation on the virtual keyboard, display a split control in the virtual keyboard.

[0107] In an embodiment of the present application, when the electronic device obtains split position information of virtual keys of the virtual keyboard in response to a split operation on the virtual keyboard, a split control can be displayed in the virtual keyboard. The split control can be used to split the virtual keys in the virtual keyboard, so that the user can use the split control to split the virtual keys in the virtual keyboard according to his usage habits and needs.

[0108] In some embodiments, the electronic device may control the virtual keyboard to be in an editable state in response to the separation operation on the virtual keyboard, and when the electronic device is in the editable state, the above-mentioned split control may be displayed in the virtual keyboard. The split control may be a movable floating indicator block, a sliding bar, etc., and the specific split control may not be limited.

[0109] Step S430: In response to the operation on the split control, obtaining split position information for the virtual keys in the virtual keyboard.

[0110] In an embodiment of the present application, after the electronic device displays a split control in the virtual keyboard, it can detect an operation on the split control, and when the operation on the split control is detected, in response to the operation on the split control, obtain split position information of the virtual keys in the virtual keyboard.

[0111] In some embodiments, the split control may be a sliding bar, the sliding bar is parallel to the first specified direction dimension, the sliding bar includes a sliding track and a sliding block, and the sliding block can move on the sliding track in accordance with the sliding operation of the user. Based on this, the electronic device can respond to the first sliding operation on the slider of the sliding bar, control the slider to slide in the sliding track of the sliding bar in the sliding direction of the first sliding operation; and determine the split position information for the virtual keys in the virtual keyboard based on the position to which the slider slides.

[0112] In one possible implementation, based on the position to which the slider slides, the straight line (a line perpendicular to the row direction) where the position is located in the second specified direction dimension can be determined, and the straight line can be used as the splitting trajectory to obtain the splitting position information for the virtual keys in the virtual keyboard.

[0113] In another possible implementation, the sliding block may be an indicator line along the second specified direction, and the indicator line spans across each row of the virtual keyboard. After the first sliding operation is completed, the indicator line may be directly obtained as a split track, thereby obtaining the split position information of the virtual keys in the virtual keyboard.

[0114] For example, see Fig.16 , the key area A3 to be split in the virtual keyboard may include a row where the virtual keys "Q", "A" and "Z" are located, and a sliding bar A8 is displayed in the virtual keyboard A2, and the sliding bar A8 includes a sliding track A9 and an indicator line A10 as a sliding block; please refer to Fig.13 , if the user slides the indicator line A10 to Fig.16 The position shown in the figure is used to determine the first key area A5 and the second key area A6 by the indicator line A10, and after reducing the widths of the first key area A5 and the second key area A6 in the first specified direction dimension, the first key area A5 is displayed in the keyboard at a first position close to the boundary of the virtual keyboard in the first direction, and the second key area A6 is displayed in the virtual keyboard at a second position close to the boundary of the virtual keyboard in the second direction, thereby reducing the distance between the virtual keys in the virtual keyboard and the boundary of the virtual keyboard in the first specified direction dimension. In addition, a functional area A7 is displayed between the first key area A5 and the second key area A6 to meet more operational requirements of the user when performing keyboard input.

[0115] For example, see Fig.17 , the key area A3 to be split in the virtual keyboard may include a row where the virtual keys "Q", "A" and "Z" are located, and a sliding bar A8 is displayed in the virtual keyboard A2, and the sliding bar A8 includes a sliding track A9 and an indicator line A10 as a sliding block; please refer to Fig.18 , if the user slides the indicator line A10 to Fig.17 The position shown in the figure is used to determine the first key area A5 and the second key area A6 by the indicator line A10, and after reducing the widths of the first key area A5 and the second key area A6 in the first specified direction dimension, the first key area A5 is displayed in the keyboard at a first position close to the boundary of the virtual keyboard in the first direction, and the second key area A6 is displayed in the virtual keyboard at a second position close to the boundary of the virtual keyboard in the second direction, thereby reducing the distance between the virtual keys in the virtual keyboard and the boundary of the virtual keyboard in the first specified direction dimension. In addition, a functional area A7 is displayed between the first key area A5 and the second key area A6 to meet more operational requirements of the user when performing keyboard input.

[0116] For example, see Fig.19 , the key area A3 to be split in the virtual keyboard may include the row where the virtual key "Q" is located, the row where "A" is located, and the row where "Z" is located. The key area A3 may include the row where the virtual key "Q" is located, the row where "A" is located, and the row where "Z" is located. A sliding bar A8 is displayed in the virtual keyboard A2. The sliding bar A8 includes a sliding track A9 and an indicator line A10 as a sliding block; please refer to Fig. 20 , if the user slides the indicator line A10 to Fig.19 The position shown in the figure is used to determine the first key area A5 and the second key area A6 by the indicator line A10, and after reducing the widths of the first key area A5 and the second key area A6 in the first specified direction dimension, the first key area A5 is displayed in the keyboard at a first position close to the boundary of the virtual keyboard in the first direction, and the second key area A6 is displayed in the virtual keyboard at a second position close to the boundary of the virtual keyboard in the second direction, thereby reducing the distance between the virtual keys in the virtual keyboard and the boundary of the virtual keyboard in the first specified direction dimension. In addition, a functional area A7 is displayed between the first key area A5 and the second key area A6 to meet more operational requirements of the user when performing keyboard input.

[0117] From the above examples, it can be seen that users can operate the slider according to their needs, thereby satisfying the input habits of different users. Fig.18In the example, the number of right virtual keys in the key area A3 to be split in the virtual keyboard is greater than the number of left virtual keys, which is beneficial for keyboard input by right-handed users; Fig. 20 In the embodiment, the number of left virtual keys in the key area A3 is greater than the number of right virtual keys, which is beneficial for left-handed users to perform keyboard input.

[0118] In other embodiments, the split control may be a movable indicator control, such as a suspended indicator block. The electronic device may detect an operation on the indicator control, and when a sliding operation on the indicator control is detected, the electronic device may respond to a second sliding operation on the indicator control and control the indicator control to move along the sliding track of the second sliding operation; based on the moving track of the indicator control, the split position information of the virtual keys in the virtual keyboard is determined. In this embodiment, the moving track of the indicator control may be used as the split track, thereby obtaining the split position information of the virtual keys in the virtual keyboard, so that the user can move the indicator control to split the virtual keyboard.

[0119] In a possible implementation, when the electronic device controls the indicating control to move along the sliding track of the second sliding operation, it can also display the moving track of the indicating control, thereby allowing the user to know the position of the split track.

[0120] Step S440: Based on the split position information, obtain the first part of virtual keys in the virtual keyboard as the first key area, and the second part of virtual keys in the virtual keyboard as the second key area.

[0121] Step S450: adjusting the first button area and the second button area, and displaying a function area between the first button area and the second button area.

[0122] Among them, the widths of the adjusted first key area and the second key area in the first specified direction dimension are smaller than the widths in the first specified direction dimension before adjustment, the adjusted first key area is located at the first position of the virtual keyboard close to the boundary of the virtual keyboard in the first direction, and the adjusted second key area is located at the second position of the virtual keyboard close to the boundary of the virtual keyboard in the second direction, and the first direction and the second direction are opposite in the first specified direction dimension.

[0123] In the embodiment of the present application, steps S440 to S450 may refer to the contents of other embodiments and will not be described in detail here.

[0124] The method for displaying a virtual keyboard provided in an embodiment of the present application can reduce the distance between the virtual keys in the virtual keyboard and the boundary of the virtual keyboard in a first specified direction dimension, so that when the user holds the electronic device with both hands to input text, the virtual keys can be touched more conveniently, which facilitates the user to input text using the virtual keyboard displayed by the electronic device; in addition, when determining the split position information of the virtual keys of the virtual keyboard, the split position information is determined by displaying a split control and based on the user's operation on the split control, thereby effectively meeting the usage habits of different users.

[0125] See also Fig.21 , Fig.21 A flowchart of a method for displaying a virtual keyboard provided by another embodiment of the present application is shown. The method for displaying a virtual keyboard is applied to the above electronic device. Fig.21 The process shown is described in detail, and the method for displaying the virtual keyboard may specifically include the following steps:

[0126] Step S510: Display a virtual keyboard on the interface.

[0127] In the embodiment of the present application, step S510 can refer to the contents of the aforementioned embodiment and will not be described again here.

[0128] Step S520: In response to a separation operation on the virtual keyboard, if the number of virtual keys on any row in the virtual keyboard is greater than a preset number, determine the first part of the virtual keys in the virtual keyboard as a first key area, and the second part of the virtual keys in the target key area as a second key area.

[0129] In an embodiment of the present application, when the electronic device responds to the separation operation for the virtual keyboard, it can determine whether the number of virtual keys on any row of the current virtual keyboard is greater than the preset number. If the number of virtual keys on any row of the virtual keyboard is greater than the preset number, it means that there is a need to split the key area of ​​the current virtual keyboard; otherwise, it means that there is no need to split the key area of ​​the current virtual keyboard. Among them, when the user holds the electronic device, when the number of virtual keys arranged on the same row is greater than the preset number, it means that there are more virtual keys on the same row, and they can be split. Among them, the preset number may not be limited, for example, the preset number may be 5, 7, 8, etc. It can be understood that the virtual keyboard displayed in the electronic device usually has two keyboards, one is a Chinese and English 26-key keyboard, that is, a Qwerty standard keyboard, in which the number of keys on the same row is large; and the other is a 9-key keyboard, in which the number of virtual keys in the same row is usually small, that is, no more than 5, and in the case of the present application, there is usually no need to split the key area. Therefore, when the number of virtual keys on any row in the virtual keyboard is greater than a preset number, the step of determining the first part of the virtual keys in the virtual keyboard as the first key area and the second part of the virtual keys in the target key area as the second key area can be executed, until step S530, after the virtual keys in the virtual keyboard are split into two key areas, the widths of the two key areas are reduced in the first specified direction dimension, and the first key area and the second key area are respectively close to the boundary of the virtual keyboard in opposite directions in the first specified direction dimension.

[0130] Step S530: adjusting the first button area and the second button area, and displaying a function area between the first button area and the second button area.

[0131] Among them, the width of the first key area in the first specified direction dimension after adjustment is smaller than the width in the first specified direction dimension before adjustment, the width of the second key area in the first specified direction dimension after adjustment is smaller than the width in the first specified direction dimension before adjustment, the first key area after adjustment is located at a first position of the virtual keyboard close to the boundary of the virtual keyboard in the first direction, the second key area after adjustment is located at a second position of the virtual keyboard close to the boundary of the virtual keyboard in the second direction, and the first direction and the second direction are opposite in the first specified direction dimension.

[0132] In the embodiment of the present application, step S530 can refer to the contents of the aforementioned embodiment and will not be described again here.

[0133] Step S540: In response to the separation operation on the virtual keyboard, if the number of virtual keys in each row of the virtual keyboard is less than or equal to a preset number, reducing the width of the current key area of ​​the virtual keyboard in the first specified direction dimension.

[0134] In an embodiment of the present application, when the electronic device responds to a split operation on a virtual keyboard, if the number of virtual keys in each row of the virtual keyboard is less than or equal to a preset number, then it is not necessary to split the key area in the virtual keyboard. In this case, the display width of the current key area of ​​the virtual keyboard can be directly reduced. For example, when the current virtual keyboard is a 9-key keyboard, the width of the current key area of ​​the virtual keyboard in the first specified direction dimension can be directly reduced.

[0135] In some embodiments, when the electronic device reduces the width of the current key area of ​​the virtual keyboard in the first specified direction dimension, the width of the current key area in the first specified direction dimension can be reduced to the target display width. The target display width can be a default display width, or a display width pre-set by the electronic device according to a setting operation of the user, which is not limited here.

[0136] Step S550: Display the current key area at the first position in the virtual keyboard.

[0137] In an embodiment of the present application, the electronic device can also display the current key area at the above-mentioned first position, that is, a position close to the boundary of the virtual keyboard in one of the directions in the first specified direction dimension of the virtual keyboard. As a result, the display width of the current key area can be reduced, and it can be displayed on one of the two sides of the virtual keyboard in the first specified direction dimension, that is, it is displayed on the left or right side of the virtual keyboard in the user's viewing angle, so that the virtual keys in the current key area can be closer to the side where the virtual keyboard is located, thereby facilitating the user's keyboard input.

[0138] In some embodiments, when the electronic device displays the current key area at the first position, it can also display the function menu area at the second position in the virtual keyboard. Thus, it can make it easier for the user to touch the virtual keys in the original key area, and at the same time, the user can perform other operations at the second position of the virtual keyboard, further improving the user experience.

[0139] Optionally, the function menu area includes secondary pages corresponding to the function keys of the virtual keyboard. The function keys may be emoticons, symbols, numbers, etc., and the secondary pages are function pages corresponding to the function keys. Optionally, the second side of the virtual keyboard may display multiple function keys and the secondary pages corresponding to the currently selected function key. For example, see Fig. 22, when the currently selected function key is a symbol, the secondary page A11 is a plurality of symbols; for another example, refer to Fig.23 , when the currently selected function button is an expression, the secondary page A11 is a plurality of expressions.

[0140] In some embodiments, when the electronic device displays the current key area at the above-mentioned first position in the virtual keyboard, that is, displays it on one side of the virtual keyboard in the row direction, it can also obtain the holding state of the electronic device; if the holding state of the electronic device meets the preset holding condition, then based on the side of the electronic device being held, the above-mentioned first direction is determined, and then the first position is determined; then, the current key area is displayed at the first position of the virtual keyboard. The first direction in the first specified direction dimension corresponds to the side of the electronic device being held. The preset holding condition is set based on the holding state satisfied when the electronic device is held in one hand. For example, the preset holding condition may be that one side of the electronic device is touched, and / or the area of ​​the electronic device being touched is smaller than the preset area. Specifically, the preset holding condition may not be limited.

[0141] Optionally, a pressure sensor, a touch sensor, etc. may be provided on the housing of the electronic device. The sensors provided on the housing may be used to detect the area and position of the electronic device being touched, thereby determining the holding state of the electronic device.

[0142] In a possible implementation, if the holding state of the electronic device satisfies the conditions corresponding to when it is not held or when it is held with both hands, the first direction can be determined according to the dominant hand of the user, and then the first position can be determined.

[0143] In a possible implementation, since the user's dominant hand usually has different pressing parameters when touching, such as different pressing force and pressing area, therefore, when the user usually inputs on the keyboard, the pressing parameters of the keys in different areas of the virtual keyboard are different when being touched. Based on this, if the pressing parameter value (such as pressing force, pressing area, etc.) when the virtual keys in the left area are touched is greater than the pressing parameter value when the virtual keys in the right area are touched, it can be determined that the user is accustomed to using the left hand when inputting on the keyboard, and if the pressing parameter value (such as pressing force, pressing area, etc.) when the virtual keys in the right area are touched is greater than the pressing parameter value when the virtual keys in the left area are touched, it can be determined that the user is accustomed to using the right hand when inputting on the keyboard; based on the dominant hand, the electronic device can display the above-mentioned current key area on the side corresponding to the dominant hand. For example, if the dominant hand is the left hand, it can be determined that the above-mentioned first direction corresponds to the right side of the virtual keyboard, and if the dominant hand is the left hand, it can be determined that the above-mentioned first direction corresponds to the left side of the virtual keyboard.

[0144] In another possible implementation, the electronic device may obtain a user portrait of the user from an external device such as a server, and the user portrait may include information about the user's dominant hand; based on the dominant hand contained in the obtained user portrait, the current button area may be displayed on the side corresponding to the dominant hand.

[0145] Optionally, considering that the same electronic device may be used by multiple users, biometric features (such as faces, fingerprints, etc.) of different users may be pre-recorded in the electronic device. The electronic device can identify the target user currently using the electronic device based on the pre-recorded voiceprint features and the dominant hand of the user determined in the above manner.

[0146] The method for displaying a virtual keyboard provided in an embodiment of the present application can reduce the distance between the virtual keys in the virtual keyboard and the boundary of the virtual keyboard in a first specified direction dimension, so that when the user holds the electronic device with both hands to input text, the virtual keys can be touched more conveniently, which facilitates the user to input text using the virtual keyboard displayed on the electronic device; in addition, for different virtual keyboards, different methods are used to enable the user to touch the virtual keys more easily, which makes it more convenient for the user to input using the keyboard.

[0147] See also Fig.24 , which shows a structural block diagram of a virtual keyboard display device 400 provided in an embodiment of the present application. The virtual keyboard display device 400 applies the above electronic device, and the virtual keyboard display device 400 includes: an interface display module 410, a keyboard splitting module 420 and a keyboard display module 430. Among them, the interface display module 410 is used to display a virtual keyboard on the interface; the keyboard splitting module 420 is used to determine the first part of the virtual keys in the virtual keyboard as the first key area, and the second part of the virtual keys in the target key area as the second key area in response to the separation operation on the virtual keyboard; the keyboard display module 430 is used to adjust the first key area and the second key area, and display the functional area between the first key area and the second key area; wherein, the width of the adjusted first key area in the first specified direction dimension is smaller than the width in the first specified direction dimension before adjustment, the width of the adjusted second key area in the first specified direction dimension is smaller than the width in the first specified direction dimension before adjustment, the adjusted first key area is located at a first position in the virtual keyboard close to the boundary of the virtual keyboard in the first direction, the adjusted second key area is located at a second position in the virtual keyboard close to the boundary of the virtual keyboard in the second direction, and the first direction and the second direction are opposite in the first specified direction dimension.

[0148] In some embodiments, the keyboard splitting module 420 may include an information acquisition unit and a splitting unit. The information acquisition unit is used to obtain split position information of virtual keys of the virtual keyboard in response to a split operation on the virtual keyboard; the splitting unit is used to obtain the first part of virtual keys in the virtual keyboard as the first key area and the second part of virtual keys in the virtual keyboard as the second key area based on the split position information.

[0149] In some embodiments, the split position information includes a split track along a second specified direction dimension in the virtual keyboard, and the second specified direction dimension is perpendicular to the first specified direction dimension. The split unit can be specifically used to: obtain a virtual key in the virtual keyboard located on a first side of the split track in the first specified direction dimension as a first key area, and a virtual key in the virtual keyboard located on a second side of the split track in the first specified direction dimension as a second key area.

[0150] As a possible implementation, the splitting unit can also be specifically used for: if there is a virtual key at the position corresponding to the splitting trajectory in the virtual keyboard, then obtaining the virtual key at the position of the splitting trajectory as a target key; obtaining the virtual key in the virtual keyboard located on the first side of the splitting trajectory in the first specified direction dimension, and the target key, as a first key area; obtaining the virtual key in the virtual keyboard located on the second side of the splitting trajectory in the first specified direction dimension, and the target key, as a second key area.

[0151] In some embodiments, the information acquisition unit can be specifically used to: display a split control in the virtual keyboard in response to a separation operation on the virtual keyboard; and acquire split position information of virtual keys of the virtual keyboard in the virtual keyboard in response to an operation on the split control.

[0152] As a possible implementation, the split control is a sliding bar, which is parallel to the first specified direction dimension. The information acquisition unit can also be specifically used to: respond to a first sliding operation on a slider of the sliding bar, control the slider to slide in the sliding track of the sliding bar along the sliding direction of the first sliding operation; based on the position to which the slider slides, determine the split position information of the virtual keys of the virtual keyboard in the virtual keyboard.

[0153] As another possible implementation, the split control is a movable indicator control. The information acquisition unit can also be specifically used to: in response to a second sliding operation on the indicator control, control the indicator control to move along the sliding track of the second sliding operation; and determine the split position information of the virtual keys of the virtual keyboard in the virtual keyboard based on the moving track of the indicator control.

[0154] In some embodiments, the keyboard splitting module 420 can be specifically used to: in response to a separation operation on the virtual keyboard, if the number of virtual keys on any row in the virtual keyboard is greater than a preset number, execute the determination of the first part of the virtual keys in the virtual keyboard as the first key area, and the second part of the virtual keys in the target key area as the second key area.

[0155] In a possible embodiment, the keyboard display module 430 can also be used to respond to a separation operation on the virtual keyboard. If the number of virtual keys in each row of the virtual keyboard is less than or equal to a preset number, the width of the current key area of ​​the virtual keyboard in the first specified direction dimension is reduced; and the current key area is displayed at the first position in the virtual keyboard.

[0156] Optionally, the keyboard display module 430 may also be specifically configured to: display the current key area at the first position in the virtual keyboard, and display a function menu area at the second position in the virtual keyboard where the current key area is displayed.

[0157] In this implementation, the function menu area includes secondary pages corresponding to the function keys of the virtual keyboard.

[0158] Optionally, the keyboard display module 430 can also be specifically used to: obtain the holding state of the electronic device; if the holding state of the electronic device meets the preset holding condition, determine the first position based on the side of the electronic device being held; and display the current key area at the first position in the virtual keyboard.

[0159] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.

[0160] In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.

[0161] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.

[0162] In summary, the solution provided by the present application determines the first part of the virtual keys in the virtual keyboard as the first key area and the second part of the virtual keys in the target key area as the second key area in response to the separation operation of the virtual keyboard in the interface, and then adjusts the first key area and the second key area, and displays the function area between the first key area and the second key area. After the virtual keys in the virtual keyboard are split into two parts, the first key area and the second key area are adjusted, so that the width of the adjusted first key area in the first specified direction dimension is smaller than the width of the first specified direction dimension before adjustment, and the width of the adjusted second key area in the first specified direction dimension is smaller than the width of the first specified direction dimension before adjustment, and the first key area and the second key area are respectively close to the boundary of the virtual keyboard in opposite directions in the first specified direction dimension, thereby reducing the distance between the virtual keys in the virtual keyboard and the edge of the virtual keyboard in the first specified direction dimension, and then when the user holds the electronic device with both hands to input text, it is more convenient to touch the virtual keys, which facilitates the user to use the virtual keyboard displayed by the electronic device to input text.

[0163] Please refer to Fig.25 , which shows a structural block diagram of an electronic device provided in an embodiment of the present application. The electronic device 100 may be an electronic device capable of running applications, such as a smart phone, a tablet computer, an e-book, etc. The electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and one or more applications, wherein the one or more applications may be stored in the memory 120 and configured to be executed by one or more processors 110, and the one or more applications are configured to execute the method described in the aforementioned method embodiment.

[0164] The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes various functions and processes data of the electronic device 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 110 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented separately through a communication chip.

[0165] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the electronic device 100 during use.

[0166] Please refer to Fig.26 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 800 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.

[0167] The computer readable storage medium 800 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 800 includes a non-transitory computer-readable storage medium. The computer readable storage medium 800 has storage space for program code 810 that performs any method step in the above method. These program codes can be read from or written to one or more computer program products. The program code 810 can be compressed, for example, in an appropriate form.

[0168] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for displaying a virtual keyboard, characterized in that: Applied to electronic equipment, the method includes: Display a virtual keyboard on the interface; In response to a split operation on the virtual keyboard, acquiring split position information of virtual keys of the virtual keyboard; Based on the split position information, acquiring a first portion of virtual keys in the virtual keyboard as a first key area, and a second portion of virtual keys in the virtual keyboard as a second key area; Adjusting the first button area and the second button area, and displaying a function area between the first button area and the second button area; wherein, the width of the adjusted first key area in the first specified direction dimension is smaller than the width in the first specified direction dimension before adjustment, the width of the adjusted second key area in the first specified direction dimension is smaller than the width in the first specified direction dimension before adjustment, the adjusted first key area is located at a first position in the virtual keyboard close to the boundary of the virtual keyboard in the first direction, and the adjusted second key area is located at a second position in the virtual keyboard close to the boundary of the virtual keyboard in the second direction, the first direction and the second direction are opposite in the first specified direction dimension, and the first specified direction dimension is the row direction dimension of the row formed by the virtual keys in the virtual keyboard; The split position information includes a split track along a second specified direction dimension in the virtual keyboard, where the second specified direction dimension is perpendicular to the first specified direction dimension; The acquiring, based on the split position information, the first portion of virtual keys in the virtual keyboard as a first key area and the second portion of virtual keys in the virtual keyboard as a second key area, includes: If there is a virtual key at the position corresponding to the split track in the virtual keyboard, the virtual key at the position of the split track is obtained as the target key; the virtual key on the first side of the split track in the first specified direction dimension in the virtual keyboard and the target key are obtained as the first key area; the virtual key on the second side of the split track in the first specified direction dimension in the virtual keyboard and the target key are obtained as the second key area.

2. The method according to claim 1, characterized in that The acquiring, as a first key area, a virtual key in the virtual keyboard that is located on a first side of the split track in the first specified direction dimension, and the acquiring, as a second key area, a virtual key in the virtual keyboard that is located on a second side of the split track in the first specified direction dimension, includes: If a virtual key exists at a position corresponding to the split track in the virtual keyboard, obtaining the virtual key at the position of the split track as a target key; Acquire a virtual key in the virtual keyboard that is located on a first side of the split track in the first specified direction dimension, and the target key, as a first key area; The virtual keys in the virtual keyboard that are located on the second side of the split track in the first specified direction dimension and the target key are obtained as the second key area.

3. The method according to claim 1, characterized in that The acquiring, in response to the split operation on the virtual keyboard, split position information of virtual keys in the virtual keyboard includes: In response to a split operation on the virtual keyboard, displaying a split control in the virtual keyboard; In response to an operation on the split control, split position information of virtual keys in the virtual keyboard is obtained.

4. The method according to claim 3, characterized in that The split control is a slider bar, the slider bar is parallel to the first specified direction dimension, and the acquiring, in response to an operation on the split control, split position information of a virtual key in the virtual keyboard includes: In response to a first sliding operation on a slider of the sliding bar, controlling the slider to slide in a sliding track of the sliding bar in a sliding direction of the first sliding operation; Based on the position to which the slider slides, split position information of the virtual keys in the virtual keyboard is determined.

5. The method according to claim 4, characterized in that The split control is a movable indicator control, and the acquiring of split position information of virtual keys in the virtual keyboard in response to an operation on the split control includes: In response to a second sliding operation on the indicating control, controlling the indicating control to move along a sliding track of the second sliding operation; Based on the movement trajectory of the pointing control, split position information of the virtual keys in the virtual keyboard is determined.

6. The method according to any one of claims 1 to 5, characterized in that In response to the split operation on the virtual keyboard, determining the first portion of virtual keys in the virtual keyboard as a first key area and the second portion of virtual keys in the virtual keyboard as a second key area includes: In response to a separation operation on the virtual keyboard, if the number of virtual keys on any row in the virtual keyboard is greater than a preset number, the process of determining the first part of the virtual keys in the virtual keyboard as a first key area and the second part of the virtual keys in the virtual keyboard as a second key area is executed.

7. The method according to claim 6, characterized in that The method further comprises: In response to the separation operation on the virtual keyboard, if the number of virtual keys in each row of the virtual keyboard is less than or equal to a preset number, reducing the width of the current key area of ​​the virtual keyboard in the first specified direction dimension; The current key area is displayed at the first position in the virtual keyboard.

8. The method according to claim 7, characterized in that The step of displaying the current key area at the first position in the virtual keyboard includes: The current key area is displayed at the first position in the virtual keyboard, and a function menu area is displayed at the second position in the virtual keyboard where the current key area is displayed.

9. The method according to claim 8, characterized in that The function menu area includes secondary pages corresponding to the function keys of the virtual keyboard.

10. The method according to claim 7, characterized in that The step of displaying the current key area at the first position in the virtual keyboard includes: Acquiring a holding state of the electronic device; If the holding state of the electronic device satisfies a preset holding condition, determining the first position based on the side of the electronic device being held; The current key area is displayed at the first position in the virtual keyboard.

11. A display device for a virtual keyboard, characterized in that: Applied to electronic equipment, the device includes: an interface display module, a keyboard split module and a keyboard display module, wherein: The interface display module is used to display a virtual keyboard on the interface; The keyboard splitting module is configured to obtain split position information of virtual keys of the virtual keyboard in response to a split operation on the virtual keyboard; Based on the split position information, acquiring a first portion of virtual keys in the virtual keyboard as a first key area, and a second portion of virtual keys in the virtual keyboard as a second key area; The keyboard display module is used to adjust the first key area and the second key area, and display a functional area between the first key area and the second key area; wherein, the width of the adjusted first key area in a first specified direction dimension is smaller than the width in the first specified direction dimension before adjustment, the width of the adjusted second key area in the first specified direction dimension is smaller than the width in the first specified direction dimension before adjustment, the adjusted first key area is located at a first position in the virtual keyboard close to the boundary of the virtual keyboard in the first direction, and the adjusted second key area is located at a second position in the virtual keyboard close to the boundary of the virtual keyboard in the second direction, the first direction and the second direction are opposite to each other in the first specified direction dimension, and the first specified direction dimension is the row direction dimension of the row formed by the virtual keys in the virtual keyboard; The split position information includes a split track along a second specified direction dimension in the virtual keyboard, and the second specified direction dimension is perpendicular to the first specified direction dimension; the keyboard display module is specifically used to: if there is a virtual key at the position corresponding to the split track in the virtual keyboard, then obtain the virtual key at the position of the split track as the target key; obtain the virtual key in the virtual keyboard that is located on the first side of the split track in the first specified direction dimension, and the target key, as the first key area; obtain the virtual key in the virtual keyboard that is located on the second side of the split track in the first specified direction dimension, and the target key, as the second key area.

12. An electronic device, characterized in that: include: one or more processors; Memory; One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to perform the method according to any one of claims 1 to 10.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program code, which can be called by a processor to execute the method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Display method and device, electronic equipment and storage medium

    CN111782127A