Display method, device and equipment of virtual keyboard and computer readable storage medium
By associating wake-up operations with operation directions, and combining the posture and form of electronic devices, simplified operations of the basic virtual keyboard and additional virtual keyboards are achieved, solving the problems of complex virtual keyboard operation and high learning costs, and improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HUAWEI TECH CO LTD
- Filing Date
- 2024-12-31
- Publication Date
- 2026-06-30
AI Technical Summary
The operation of waking up/switching virtual keyboards is complex and lacks uniformity, resulting in high learning costs and poor user experience.
By associating the wake-up operation with the operation direction, after the basic virtual keyboard is brought up, the additional virtual keyboard is switched according to the posture and shape of the electronic device, providing virtual keyboards with multiple display forms, including merging the basic virtual keyboard and the additional virtual keyboard, displaying them independently, and switching forms, thus simplifying the operation logic.
It improves the user experience of the virtual keyboard, reduces the learning cost, makes operation simple and convenient, and meets the information input needs of different usage scenarios.
Smart Images

Figure CN122308698A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a method, apparatus, device, and computer-readable storage medium for displaying a virtual keyboard. Background Technology
[0002] With the development of foldable screen technology, electronic devices including foldable screens have become commonplace. For example, foldable dual-screen computers, unlike traditional personal computers (PCs) and tablet PCs, can combine the advantages of dual-screen collaboration and multi-form switching, bringing users a richer, more efficient, and intelligent PC experience.
[0003] Currently, foldable dual-screen computers have eliminated the physical keyboard, and information input is achieved through a virtual keyboard. The virtual keyboard has various display forms, such as a virtual keyboard with a virtual touchpad, a virtual keyboard without a virtual touchpad, a global keyboard, or a floating window. Different display forms of the virtual keyboard correspond to different wake-up actions; users can trigger the foldable dual-screen computer to display the corresponding virtual keyboard form through a wake-up action. Furthermore, users can switch the virtual keyboard display form through a toggle operation.
[0004] However, the virtual keyboard's wake-up / switching operations are quite complex, and these operations are not interconnected and lack uniformity. Users need to learn these inconsistent operations, resulting in high learning costs and a poor user experience with the virtual keyboard. Summary of the Invention
[0005] This application provides a method, apparatus, device, and computer-readable storage medium for displaying a virtual keyboard, which can improve the user experience of using a virtual keyboard. This application includes the following technical solutions:
[0006] Firstly, embodiments of this application provide a method for displaying a virtual keyboard. The virtual keyboard can have multiple display forms. For example, it may include a basic virtual keyboard to provide basic information input functions, or it may include at least one additional virtual keyboard supporting different input modes to meet different user information input needs. This method is applied to electronic devices, where users can trigger the electronic device to wake up different forms of virtual keyboards through different wake-up operations. Furthermore, different additional basic keyboards correspond to wake-up operations with different operation directions, allowing users to wake up the corresponding additional virtual keyboard through a wake-up operation corresponding to the operation direction.
[0007] For example, the method includes: displaying a basic virtual keyboard in response to a first wake-up operation; and displaying a first additional virtual keyboard on a corresponding area of the basic virtual keyboard in response to a second wake-up operation, wherein the first additional virtual keyboard corresponds to the operation direction of the second wake-up operation. The first wake-up operation instructs the user to wake up the virtual keyboard in its initial state, and the basic virtual keyboard is displayed to provide basic information input functionality to the user. The first additional virtual keyboard can be any additional virtual keyboard, and the second wake-up operation is a wake-up operation whose operation direction corresponds to that of the first additional virtual keyboard. By displaying the first additional virtual keyboard on the corresponding area of the basic virtual keyboard, both the first additional virtual keyboard and the basic virtual keyboard are displayed together.
[0008] To display the virtual keyboard, the above method first invokes the basic virtual keyboard through a wake-up operation. Then, it invokes the additional virtual keyboard through a wake-up operation whose direction corresponds to that of the additional basic virtual keyboard, allowing both the basic and additional virtual keyboards to be displayed simultaneously. This method maps the direction of the wake-up operation to the additional basic virtual keyboard, creating a correlation between the wake-up operations. The operation logic is simple and convenient, without adding any extra learning cost, thus improving the user experience of the virtual keyboard.
[0009] In one possible implementation, the display method of the basic virtual keyboard is also related to the posture of the electronic device. Based on this, the above-mentioned display of the basic virtual keyboard in response to the first wake-up operation includes: displaying the basic virtual keyboard corresponding to the posture of the electronic device in response to the first wake-up operation.
[0010] Based on the above possible implementation methods, when the virtual keyboard is activated, the corresponding basic virtual keyboard is displayed according to the posture of the electronic device, so that different basic virtual keyboards are displayed under different postures of the electronic device, which can meet the user's requirements for basic virtual keyboards in various usage scenarios, thereby improving the user's experience of using the virtual keyboard.
[0011] In one possible implementation, different postures of the electronic device correspond to different display forms of the basic virtual keyboard. The postures of the electronic device include a folded state, a portrait usage state, and a folded state. The display forms of the basic virtual keyboard include a first form and a second form. The keyboard size of the second form is smaller than that of the first form. The first form corresponds to the portrait usage state or the folded state, and the second form corresponds to the portrait usage state. Based on this, the above-mentioned response to the first wake-up operation to display the basic virtual keyboard corresponding to the posture of the electronic device includes: when the electronic device is in a portrait usage state or a folded state, responding to the first wake-up operation to display the basic virtual keyboard in the first form; or, when the electronic device is in a landscape usage state, responding to the first wake-up operation to display the basic virtual keyboard in the second form.
[0012] Based on the above possible implementations, if the electronic device is in a portrait orientation or folded state, it means that the orientation of the electronic device is similar to that of a traditional laptop computer. Since the basic virtual keyboard in the first form is similar to the physical keyboard of a traditional laptop, the electronic device displays the basic virtual keyboard in the first form. This allows users to use the basic virtual keyboard according to their habits of using a traditional laptop physical keyboard, without increasing the learning curve and improving the user experience. If the electronic device is in a landscape orientation, it means that the orientation of the electronic device is similar to that of a traditional tablet computer. Since the basic virtual keyboard in the second form is similar to the virtual keyboard in a traditional tablet computer, the electronic device displays the basic virtual keyboard in the second form. This allows users to use the basic virtual keyboard according to their habits of using a traditional tablet computer, without increasing the learning curve and improving the user experience.
[0013] In one possible implementation, the basic virtual keyboard is displayed in a first form or a second form, with the keyboard size in the second form being smaller than that in the first form.
[0014] Based on the above possible implementations, compared to the second form of the basic virtual keyboard, the virtual keys on the first form of the basic virtual keyboard are larger in size to facilitate user input. Compared to the first form of the basic virtual keyboard, the second form of the basic virtual keyboard is smaller in size, obstructing less of the interactive interface currently displayed on the screen, allowing users to browse more content on the interactive interface.
[0015] In one possible implementation, when displaying the first additional virtual keyboard, the first additional virtual keyboard and the basic virtual keyboard can be merged into a single virtual keyboard display. For example, displaying the first additional virtual keyboard on a corresponding area of the basic virtual keyboard includes: displaying the first virtual keyboard, which includes the merged basic virtual keyboard and the first additional virtual keyboard; or, displaying a target local keyboard area of the first virtual keyboard, which includes a local keyboard area of the basic virtual keyboard and the first additional virtual keyboard.
[0016] Based on the above possible implementation methods, merging the additional virtual keyboard and the basic virtual keyboard into a single virtual keyboard display can make the arrangement of the additional and basic virtual keyboards aesthetically pleasing and cohesive. Displaying partial keyboard areas of both the additional and basic virtual keyboards not only makes their arrangement aesthetically pleasing and cohesive but also eliminates the need to shrink the virtual keys on the basic virtual keyboard. Larger virtual keys are more convenient for users to use, thereby improving the user experience of the virtual keyboard.
[0017] In one possible implementation, the first additional virtual keyboard can be displayed independently when it is displayed. For example, displaying the first additional virtual keyboard on the corresponding area of the basic virtual keyboard includes displaying the basic virtual keyboard and the first additional virtual keyboard as independent virtual keyboards, respectively.
[0018] Based on the above possible implementation methods, users can distinguish keyboards with different input modes, making them easier to use and improving the user experience of the virtual keyboard.
[0019] In one possible implementation, displaying the basic virtual keyboard and the first additional virtual keyboard as independent virtual keyboards includes: displaying the basic virtual keyboard and the first additional virtual keyboard side by side; or, displaying the first additional virtual keyboard on top of the basic virtual keyboard.
[0020] Based on the above possible implementation methods, displaying the basic virtual keyboard and the supplementary virtual keyboard side-by-side ensures both an aesthetically pleasing arrangement and ease of information input for users, thereby improving the user experience. Overlaying the supplementary virtual keyboard on top of the basic one highlights it for easy access while maintaining the large virtual keys on the basic keyboard, further enhancing the user experience.
[0021] In one possible implementation, displaying the first additional virtual keyboard on the corresponding area of the basic virtual keyboard includes: shrinking the basic virtual keyboard and displaying the first additional virtual keyboard in the area vacated after the basic virtual keyboard is shrunk; or, moving the basic virtual keyboard upward and displaying the first additional virtual keyboard in the area vacated after the basic virtual keyboard is moved.
[0022] Based on the above possible implementation methods, by shrinking or moving the basic virtual keyboard upwards, sufficient area can be freed up to display the first additional virtual keyboard, allowing both the first additional virtual keyboard and the basic virtual keyboard to be displayed together. By moving the basic virtual keyboard upwards, the size of the basic virtual keyboard and the size of the virtual keys within it remain unchanged; the virtual keys in the basic virtual keyboard are still large enough for user convenience, thereby improving the user experience of the virtual keyboard.
[0023] In one possible implementation, the length of the bottom edge of the display is less than the length of the bottom edge of the horizontally folded display when the screen is in landscape mode or folded. Therefore, the bottom edge of the display has sufficient length to support the display of more virtual keyboards when the screen is in landscape mode or folded. Based on this, the above-mentioned basic virtual keyboard corresponding to the posture of the electronic device in response to the first wake-up operation includes: when the electronic device is in landscape mode, in response to the first wake-up operation, displaying the basic virtual keyboard and the second additional virtual keyboard.
[0024] Based on the above possible implementation methods, when the electronic device is in a horizontal usage state, in response to the wake-up operation of the virtual keyboard, the basic information input needs and the use needs of the user for the additional virtual keyboard are met by displaying the basic virtual keyboard and the additional virtual keyboard.
[0025] In one possible implementation, displaying the first additional virtual keyboard on the corresponding area of the base virtual keyboard includes: collapsing the second additional virtual keyboard and displaying the first additional virtual keyboard on the corresponding area of the base virtual keyboard; or, displaying the second virtual keyboard, which includes the merged base virtual keyboard, the first additional virtual keyboard, and the second additional virtual keyboard.
[0026] Based on the above possible implementation methods, when activating a new additional virtual keyboard, collapsing the already activated basic virtual keyboard avoids irrelevant additional virtual keyboards occupying the virtual keyboard display area, thus providing sufficient area for the newly activated additional virtual keyboard to be displayed. This achieves the switching of additional virtual keyboards and meets the user's current usage needs for additional virtual keyboards. Collapsing the already activated basic virtual keyboard also avoids irrelevant additional virtual keyboards. When activating a new additional virtual keyboard, merging the currently activated additional virtual keyboard with the previously activated additional virtual keyboards and the basic virtual keyboard into a single virtual keyboard display makes the virtual keyboard layout aesthetically pleasing and cohesive.
[0027] In one possible implementation, the virtual keyboard display forms include a first form and a second form, wherein the keyboard size of the second form is smaller than that of the first form. After displaying the basic virtual keyboard in response to the first wake-up operation, the method further includes: switching the display form of the basic virtual keyboard in response to a form switching event for the basic virtual keyboard.
[0028] Based on the above possible implementation methods, more display forms can be provided for the basic virtual keyboard, which can meet the needs of users for different display forms of the basic virtual keyboard in different application scenarios.
[0029] In one possible implementation, the aforementioned form-switching event includes a first swipe operation and a second swipe operation, which are different. The first swipe operation indicates that the display form of the basic virtual keyboard is switched to a first form, and the second swipe operation indicates that the display form of the basic virtual keyboard is switched to a second form. Based on this, the aforementioned response to the form-switching event of the basic virtual keyboard, switching the display form of the basic virtual keyboard, includes: when the basic virtual keyboard in the first form is displayed, responding to the first swipe operation, switching the display form of the basic virtual keyboard to the second form; and when the basic virtual keyboard in the second form is displayed, responding to the second swipe operation, switching the display form of the basic virtual keyboard back to the first form.
[0030] Based on the above possible implementation methods, different sliding operations can trigger the electronic device to switch the form of the basic virtual keyboard, which is simple and convenient to operate and can improve the user's experience of using the virtual keyboard.
[0031] In one possible implementation, the above-mentioned response to the second sliding operation to switch the display mode of the basic virtual keyboard to the first mode includes: responding to the second sliding operation to enlarge the basic virtual keyboard in the second mode, and switching the display mode of the enlarged basic virtual keyboard to the first mode.
[0032] Based on the above possible implementation methods, by responding to the second sliding operation, first enlarging the basic virtual keyboard, and then switching the display mode of the basic virtual keyboard, the display process of the basic virtual keyboard mode achieves an animation effect, which can enhance the user's experience of using the virtual keyboard.
[0033] In one possible implementation, the aforementioned form-switching event includes a change in the posture of the electronic device; in response to the form-switching event for the basic virtual keyboard, switching the display form of the basic virtual keyboard includes: when the basic virtual keyboard in a first form is displayed, in response to the electronic device switching from a vertical usage state to a horizontal usage state, switching the display form of the basic virtual keyboard to a second form; when the basic virtual keyboard in the second form is displayed, in response to the electronic device switching from a horizontal usage state to a vertical usage state, switching the display form of the basic virtual keyboard back to the first form.
[0034] Based on the above possible implementation methods, the basic virtual keyboard mode can be switched by changing the posture of the electronic device, which is convenient and simple to operate, thereby improving the user's experience of using the virtual keyboard.
[0035] In one possible implementation, after displaying the first additional virtual keyboard on the corresponding area of the basic virtual keyboard, the method further includes: in response to a target operation, maintaining the display of the basic virtual keyboard and collapsing the first additional virtual keyboard; or, in response to a target operation, collapsing both the basic virtual keyboard and the first additional virtual keyboard.
[0036] Based on the above possible implementation methods, users can easily retract the additional virtual keyboard they don't want to use temporarily by performing a target operation. The operation is simple and convenient, which can improve the user's experience with the virtual keyboard.
[0037] In one possible implementation, the basic virtual keyboard is displayed in a first form, the target operation is a form-switching event for the basic virtual keyboard, and after the first additional virtual keyboard is collapsed, the above method further includes:
[0038] Switch the display mode of the basic virtual keyboard to the second mode, where the keyboard size is smaller than that of the first mode.
[0039] Based on the above possible implementation methods, when the additional virtual keyboard and the basic virtual keyboard are displayed together, the user can switch the display mode of the basic virtual keyboard through the target operation. The operation is simple and convenient, and it can also meet the user's needs for using the basic virtual keyboard in a specific display mode, thereby improving the user's experience of using the virtual keyboard.
[0040] In one possible implementation, the basic virtual keyboard is displayed in a first form, the target operation is a form switching operation for the basic virtual keyboard, and after the basic virtual keyboard and the first additional virtual keyboard are collapsed, the above method further includes: displaying the basic virtual keyboard in a second form, wherein the keyboard size of the second form is smaller than the keyboard size of the first form.
[0041] Based on the above possible implementation methods, when the additional virtual keyboard and the basic virtual keyboard are displayed together, the user can switch the display mode of the basic virtual keyboard through the target operation. The operation is simple and convenient, and it can also meet the user's needs for using the basic virtual keyboard in a specific display mode, thereby improving the user's experience of using the virtual keyboard.
[0042] In one possible implementation, different additional virtual keyboards correspond to different collapsing operations in different operating directions. After displaying the first additional virtual keyboard on the corresponding area of the basic virtual keyboard, the method further includes: collapsing the first additional virtual keyboard in response to a collapsing operation in an operating direction corresponding to the first additional virtual keyboard.
[0043] Based on the above possible implementation methods, the operation direction of the collapse operation is associated with the attached virtual keyboard. By using the operation direction to correspond to the collapse operation of the attached virtual keyboard, the electronic device can be triggered to collapse the attached virtual keyboard. The operation is simple and convenient, which can improve the user's experience of using the virtual keyboard.
[0044] In one possible implementation, after collapsing the first additional virtual keyboard, the method further includes: if the first additional virtual keyboard is located to the left or right of the base virtual keyboard, enlarging the base virtual keyboard; if the first additional virtual keyboard is located below the base virtual keyboard, moving the base virtual keyboard downwards.
[0045] Based on the above possible implementation methods, by moving the basic virtual keyboard downwards to position it in the lower part of the display screen for easier user operation, the user experience can be improved. Similarly, by enlarging the basic virtual keyboard to increase the size of the virtual keys, the user experience can also be improved.
[0046] In one possible implementation, the basic virtual keyboard and the first supplementary virtual keyboard each support different input modes to meet the user's different information input needs.
[0047] In one possible implementation, if the first additional virtual keyboard is a virtual numeric keypad, the first additional virtual keyboard is displayed to the left of the basic virtual keyboard; if the first additional virtual keyboard is a virtual touchpad, the first additional virtual keyboard is displayed below the basic virtual keyboard; and if the first additional virtual keyboard is a virtual handwriting pad, the first additional virtual keyboard is displayed to the right of the basic virtual keyboard.
[0048] Based on the above possible implementation methods, the positional relationship between the virtual numeric keypad, virtual touchpad, and basic virtual keyboard is similar to the positional relationship between the numeric keypad, touchpad, and basic keyboard in a physical keyboard. This allows users to use the activated virtual keyboard without any learning based on their understanding of the structure of a physical keyboard, resulting in low learning costs and improved user experience.
[0049] In one possible implementation, the display position of the first additional virtual keyboard is user-configurable.
[0050] Based on the above possible implementation methods, users can configure the display position of the additional virtual keyboard according to their own operating habits. This allows the additional virtual keyboard to be displayed in a personalized way when it is activated, so that users can use the additional virtual keyboard at the corresponding display position according to their own operating habits, thereby improving the user experience of the virtual keyboard.
[0051] In one possible implementation, after displaying the first additional virtual keyboard on the corresponding area of the basic virtual keyboard, the method further includes: adjusting the display position of the first additional virtual keyboard in response to a position adjustment operation of the first additional virtual keyboard.
[0052] Based on the above possible implementation methods, users can adjust the display position of the additional virtual keyboard according to their own operating habits, thereby improving the user experience of the virtual keyboard.
[0053] Secondly, embodiments of this application provide a display device for a virtual keyboard, used to perform the method provided in the first aspect or any optional method of the first aspect.
[0054] Thirdly, embodiments of this application provide an electronic device including a processor for executing program code, causing the electronic device to perform a method as provided in the first aspect above or any alternative method of the first aspect above.
[0055] Fourthly, embodiments of this application provide a computer-readable storage medium storing at least one piece of program code that is read by a processor to cause the electronic device to perform the method provided in the first aspect or any alternative method of the first aspect.
[0056] Fifthly, embodiments of this application provide a computer program product or computer program, which includes program code stored in a computer-readable storage medium. A processor reads the program code from the computer-readable storage medium and executes the program code, causing the electronic device to perform the methods provided in the first aspect or various optional implementations of the first aspect.
[0057] Based on the implementation methods provided in the above aspects, the embodiments of this application can be further combined to provide more implementation methods. Attached Figure Description
[0058] Figure 1 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;
[0059] Figure 2 This is a schematic diagram of the attitude of an electronic device provided in an embodiment of this application;
[0060] Figure 3 This is a schematic diagram of the structure of a virtual keyboard provided in an embodiment of this application;
[0061] Figure 4 This is a schematic diagram of the initial form of a virtual keyboard provided in an embodiment of this application;
[0062] Figure 5 This is a schematic diagram of a wake-up operation provided in an embodiment of this application;
[0063] Figure 6 This is a flowchart illustrating a method for displaying a virtual keyboard according to an embodiment of this application;
[0064] Figure 7 This is a schematic diagram of a basic virtual keyboard provided in an embodiment of this application;
[0065] Figure 8 This is a schematic diagram of a virtual touchpad wake-up process provided in an embodiment of this application;
[0066] Figure 9 This is a schematic diagram of the wake-up process of a virtual numeric keypad provided in an embodiment of this application;
[0067] Figure 10 This is a schematic diagram of the wake-up process of a virtual handwriting tablet provided in an embodiment of this application;
[0068] Figure 11 This is a schematic diagram of another virtual numeric keypad wake-up process provided in an embodiment of this application;
[0069] Figure 12 This is a schematic diagram of an independent display of a virtual keyboard provided in an embodiment of this application;
[0070] Figure 13 This is a flowchart of another method for displaying a virtual keyboard provided in an embodiment of this application;
[0071] Figure 14 This is a schematic diagram of a fused keyboard provided in an embodiment of this application;
[0072] Figure 15 This is a schematic diagram of another virtual handwriting tablet wake-up process provided in an embodiment of this application;
[0073] Figure 16 This is a schematic diagram of another virtual handwriting tablet wake-up process provided in an embodiment of this application;
[0074] Figure 17 This is a schematic diagram of another virtual touchpad wake-up process provided in an embodiment of this application;
[0075] Figure 18 This is a schematic diagram of another virtual numeric keypad wake-up process provided in an embodiment of this application;
[0076] Figure 19 This is a flowchart of another method for displaying a virtual keyboard provided in an embodiment of this application;
[0077] Figure 20This is a schematic diagram illustrating the display of a virtual keyboard in different postures according to an embodiment of this application;
[0078] Figure 21 This is a schematic diagram illustrating the display of a virtual keyboard when the user's posture changes, provided in an embodiment of this application.
[0079] Figure 22 This is a flowchart of another method for displaying a virtual keyboard provided in an embodiment of this application;
[0080] Figure 23 This is a schematic diagram of another virtual numeric keypad wake-up process provided in an embodiment of this application;
[0081] Figure 24 This is a schematic diagram of a basic virtual keyboard mode switching process provided in an embodiment of this application;
[0082] Figure 25 This is a schematic diagram of another basic virtual keyboard form switching process provided in the embodiments of this application;
[0083] Figure 26 This is a schematic diagram of another basic virtual keyboard form switching process provided in the embodiments of this application;
[0084] Figure 27 This is a schematic diagram of another basic virtual keyboard form switching process provided in the embodiments of this application;
[0085] Figure 28 This is a schematic diagram of another basic virtual keyboard form switching process provided in the embodiments of this application;
[0086] Figure 29 This is a flowchart of another method for displaying a virtual keyboard provided in an embodiment of this application;
[0087] Figure 30 This is a schematic diagram of a virtual touchpad collapse process provided in an embodiment of this application;
[0088] Figure 31 This is a schematic diagram of the virtual numeric keyboard collapse process provided in an embodiment of this application;
[0089] Figure 32 This is a schematic diagram of another virtual numeric keyboard collapse process provided in an embodiment of this application;
[0090] Figure 33 This is a schematic diagram of the virtual handwriting tablet collapse process provided in an embodiment of this application;
[0091] Figure 34 This is a schematic diagram of the structure of a virtual keyboard display device provided in an embodiment of this application. Detailed Implementation
[0092] To facilitate understanding of the specific implementation methods of the embodiments of this application, the implementation methods of the embodiments of this application will be further described in detail below with reference to the accompanying drawings.
[0093] This application provides a method for displaying a virtual keyboard. This method is applied to an electronic device, which can be any type of PC, such as a tablet computer, laptop computer, ultra-mobile personal computer (UMPC), or personal digital assistant (PDA). Alternatively, the electronic device can be a smartphone, wearable device, in-vehicle device, extended reality (XR), etc. This application does not limit the type of electronic device.
[0094] Figure 1 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application, such as... Figure 1 As shown, the electronic device also includes a display screen 101, a bus 102, one or more processors 103, and one or more memories 104. The processors 103, memories 104, and display screen 101 communicate via the bus 102. The bus 102 can be a peripheral component interconnect (PCI) bus 102 or an extended industry standard architecture (EISA) bus 102, etc. The bus 102 can be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, Figure 1 The bus 102 is represented by only one line, but this does not mean that the bus 102 has only one bus or one type of bus. The bus 102 may include a path for transmitting information between various components in the electronic device 100.
[0095] The processor 103 may include any one or more processors such as a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).
[0096] The memory in this embodiment includes memory 104, which can be non-transitory memory. This non-transitory memory can be volatile memory, non-volatile memory, or both. Volatile memory, for example, can be random access memory (RAM). Non-volatile memory, for example, can be read-only memory (ROM), flash memory, hard disk drive (HDD), or solid-state drive (SSD). Memory 104 stores executable program code, which processor 103 executes to implement the virtual keyboard display method provided in the following embodiment.
[0097] For example, the memory 104 is also configured with the program code of the operating system. The operating system has built-in applications and supports the installation of third-party applications. The built-in applications include a virtual keyboard application. The virtual keyboard application includes program code for implementing the virtual keyboard display method provided in the embodiments of this application. When the processor 104 is running the program code of the operating system, if the user triggers the virtual keyboard application, the processor 104 implements the virtual keyboard display method provided in the embodiments of this application by running the virtual keyboard application.
[0098] In some embodiments, the electronic device 100 may also have components such as wired or wireless network interfaces and input / output interfaces for input and output. The electronic device 100 may also include other components for implementing device functions, which will not be described in detail here.
[0099] The display screen 101 is a touch screen, which allows users to issue commands to the electronic device 100 by touching the display screen 101.
[0100] The display screen 101 can be a foldable screen that supports folding, and the foldable screen can be a one-piece molded display screen. Alternatively, the foldable screen can also be a splicing screen composed of multiple screens and hinges located between each pair of screens. These multiple screens are distributed on different housings, and the two housings can rotate relative to each other by means of hinges, thereby achieving folding. When the housing rotates, it causes the screens fixed on the housing to fold together, thus giving the foldable electronic device 100 different postures. It can be understood that the posture of the electronic device 100 is also the posture of the display screen 101.
[0101] The electronic device 100 can be in a folded state or an unfolded state. The folded state refers to the posture / shape of the electronic device 100 (or display screen 101) after it has been folded. For example... Figure 2 As shown, in the folded state, with Figure 2 The dotted line in the diagram represents the half-screen dividing line, which logically divides the display screen 101 into two screens, such as screen 1 and screen 2. Users can fold the display screen 101 and adjust the angle between the folded screens to form the folded state of the electronic device 100. Therefore, the folded state of the electronic device 100 can be characterized by the angle between the folded screens.
[0102] In its unfolded state, the electronic device 100 can have different usage modes. For example... Figure 2 As shown, the unfolded states include a vertical usage state and a horizontal usage state. When the electronic device 100 is placed vertically, it is in the vertical usage state, and the length of the top / bottom edges of the display screen 101 is less than the length of the left / right edges. When the electronic device 100 is placed horizontally, it is in the horizontal usage state, and in the horizontal usage state, the length of the top / bottom edges of the display screen 101 is greater than the length of the left / right edges.
[0103] Electronic device 100 can display an interactive interface P on display screen 101. The interactive interface P is any human-computer interaction interface provided by electronic device 100, such as the desktop of an operating system. The interactive interface P includes at least one component, which is any element within the interactive interface P, such as... Figure 2 In the expanded state, the interactive interface P contains widgets 1 and 2. The width of the interactive interface P varies depending on the usage state of the electronic device 100, such as... Figure 2 As shown, in the vertical usage state, the width of the interactive interface P is the same as the width of the top / bottom edge of the display screen 101, and in the horizontal usage state, the width of the interactive interface P is the same as the length of the left / right edge of the display screen 101. Figure 2 The example shown is the interactive interface P displayed in the unfolded state. It should be understood that the electronic device 100 can also display the interactive interface P through the display 101 in the folded state.
[0104] In some other embodiments, the display screen 101 may not support folding. Here, this application embodiment does not limit whether the display screen 101 supports folding.
[0105] The aforementioned electronic device 100 supports information input via a virtual keyboard. For example, the electronic device 100 displays a virtual keyboard on the interactive interface P shown on the display screen 101, allowing users to input information. In different usage scenarios of the virtual keyboard, users may have different information input needs, such as text input, number input, handwriting input, and touch control input. This application embodiment also provides a virtual keyboard that can meet the different information input needs of users. To adapt to different usage scenarios, this application embodiment divides the virtual keyboard into multiple sub-keyboards, each capable of meeting different information input needs of users.
[0106] In this embodiment, the virtual keyboard includes a basic virtual keyboard and may further include at least one additional virtual keyboard supporting different input modes. The input mode refers to the mode of inputting information. The at least one additional virtual keyboard may include a virtual touchpad, a virtual numeric keypad, and a virtual handwriting pad, etc. For example, such as... Figure 3 The schematic diagram shown in this application embodiment illustrates a virtual keyboard 300, which includes a basic virtual keyboard S1, a virtual touchpad S2, a virtual numeric keypad S3, and a virtual handwriting pad S4. In other embodiments, the virtual keyboard 300 may not include one or both of the virtual touchpad S2, virtual numeric keypad S3, and virtual handwriting pad S4. For example, the virtual keyboard 300 may not include either the virtual touchpad S2 or the virtual handwriting pad S4.
[0107] The basic virtual keyboard S1 supports basic information input modes, providing essential information input functionality. The input modes supported by the basic virtual keyboard S1 differ from those supported by other auxiliary virtual keyboards to meet diverse user input needs. The basic virtual keyboard S1 can be a virtual physical keyboard's base keyboard, which includes a main keyboard and function keys. The basic information input modes supported by the basic virtual keyboard S1 are similar to those supported by the main and function keys in a physical keyboard. Similar to the basic keyboard in a physical keyboard, the basic virtual keyboard S1 includes virtual letter keys for inputting letters in the alphabet (A, Z, E). The basic virtual keyboard S1 also includes virtual control keys for inputting commands such as space, enter, tab, toggle Caps Lock, copy (Ctrl), shift, delete, function keys (Fn), and arrow keys. Alternatively, the basic virtual keyboard S1 may also include a cancel (Esc) key and function virtual keys such as function F1 to function F12. The Esc key is used to force a halt or exit, and the F1 to F12 keys are defined with different functions when running different software.
[0108] The virtual touchpad S2 supports a touch input mode, which provides information input functionality based on touch operations. The virtual touchpad S2 implements the function of the touchpad in a traditional laptop's physical keyboard. In this embodiment, the virtual touchpad S2 is a virtual version of the physical keyboard's touchpad, similar to the physical keyboard's touchpad. The virtual touchpad S2 includes a touch area S21 and a non-touch area S22, or it may only include the touch area S21. The touch area S21 is the area in the virtual touchpad S2 that supports the touch input mode, allowing users to operate on the virtual touchpad S2 to input information. The touch area S21 can be the central area of the virtual touchpad S2, or it can be any area on the virtual touchpad S2 other than the central area. Here, this embodiment does not limit the position of the touch area S21 on the virtual touchpad S2. The non-touch area S22 refers to the area in the virtual touchpad S2 other than the touch area S21. The non-touch area S22 is an area that does not respond to touch input, that is, when the user operates on the non-touch area S22, the electronic device does not respond to the user's operation.
[0109] The virtual numeric keypad S3 supports a numeric input mode, which provides numeric input functionality. The virtual numeric keypad S3 implements the functionality of a physical numeric keypad. In this embodiment, the virtual numeric keypad S3 is a virtual numeric keypad within a physical keyboard, similar to a physical numeric keypad. The virtual numeric keypad S3 includes virtual numeric keys for inputting numbers from 0 to 9. Alternatively, the virtual numeric keypad S3 also includes virtual symbol keys for inputting symbols such as addition, subtraction, multiplication, and division. Alternatively, the virtual numeric keypad S3 also includes virtual control keys for inputting control commands such as Home, End, Page Up, Page Down, and Enter.
[0110] In the virtual keyboard 300, the virtual touchpad S2 and the virtual numeric keypad S3 are located on different sides of the basic virtual keyboard S1. For example... Figure 3As shown, the virtual touchpad S2 and virtual numeric keypad S3 are located below and to the right of the basic virtual keyboard S1, respectively. This arrangement of the basic virtual keyboard S1, virtual touchpad S2, and virtual numeric keypad S3 is the same as or similar to the arrangement of corresponding keys on a physical keyboard. When the basic virtual keyboard S1 and virtual touchpad S2 and / or virtual numeric keypad S3 are combined into a single virtual keyboard, the layout of the sub-keys on the combined virtual keyboard is similar to the layout of the corresponding sub-keys on the physical keyboard. Therefore, when the combined virtual keyboard is displayed, the user can quickly become familiar with it based on their knowledge of a physical keyboard, without any learning curve, thus reducing the user's learning cost. The physical keyboard simulated by the virtual keyboard can be a traditional physical keyboard built into a laptop or an external physical keyboard connected to a PC.
[0111] The S4 virtual handwriting tablet supports handwriting input mode, which refers to an input mode that supports handwritten input. The S4 virtual handwriting tablet enables handwriting input, meeting users' handwriting needs on touchscreens. Figure 3 As shown, the virtual handwriting pad S4 can be located to the left of the basic virtual keyboard S1. Alternatively, in some embodiments, the virtual handwriting pad S4 can be located above the basic virtual keyboard S1. Here, the embodiments of this application do not limit the position of the virtual handwriting pad S4 relative to the basic virtual keyboard S1.
[0112] The virtual keyboard 300 has at least one initial form and corresponds to a wake-up operation that instructs the virtual keyboard 300 in its initial form to be activated. This wake-up operation can be any type of operation, such as a voice command or a gesture operation. For example, the wake-up operation can be a click operation, a voice command, or a gesture-based touch operation on the virtual keyboard control displayed on the interactive interface. The interactive interface is any human-computer interaction interface displayed by the electronic device through a screen, such as the interactive interface P described above. The virtual keyboard control can be located in the status bar of the interactive interface. This embodiment of the application does not limit the form of the wake-up operation.
[0113] For example, the virtual keyboard 300 has only one initial form. The user can activate the virtual keyboard 300 in this initial form by performing a wake-up operation on the electronic device. That is, the electronic device responds to the wake-up operation and displays the virtual keyboard 300 in this initial form. Optionally, the initial form of the virtual keyboard 300 can be a default setting. For example, the initial form of the virtual keyboard 300 may only include the basic virtual keyboard S1. Alternatively, the keyboard included in the initial form of the virtual keyboard 300 may be set by the user. That is, the user can set the default form of the virtual keyboard 300, thereby enabling the user to quickly activate a virtual keyboard that suits their usage habits through a wake-up operation. For example, the initial form of the virtual keyboard 300 may only include the basic virtual keyboard S1, or it may include both the basic virtual keyboard S1 and a virtual numeric keypad S3.
[0114] Alternatively, in some embodiments, the virtual keyboard 300 has multiple initial forms, such as... Figure 4 As shown in Figure (a), the virtual keyboard 300 only includes the basic virtual keyboard S1. For example, as... Figure 4 As shown in Figure (b), the virtual keyboard 300 includes a basic virtual keyboard S1 and a virtual numeric keypad S3. For example, as... Figure 4 As shown in Figure (c), the virtual keyboard 300 includes a basic virtual keyboard S1 and a virtual touchpad S2. For example, as... Figure 4 As shown in Figure (d), the virtual keyboard 300 includes a basic virtual keyboard S1 and a virtual handwriting tablet S4. Figure 4 The example shown is that the initial virtual keyboard 300 includes one or two keyboards. In other embodiments, the initial virtual keyboard 300 may also include three or more keyboards. For example, the initial virtual keyboard 300 includes a basic virtual keyboard S1, a virtual touchpad S2, and a virtual numeric keypad S3.
[0115] When the virtual keyboard 300 has multiple initial forms, the wake-up operation may not specify which initial form of the virtual keyboard 300 to wake up. The electronic device responds to the wake-up operation, and, in conjunction with other information (such as the current usage scenario of the virtual keyboard), displays a certain initial form of the virtual keyboard 300, such as the following: Figure 19 .
[0116] In other embodiments, when the virtual keyboard 300 has multiple initial forms, the virtual keyboard 300 corresponds to multiple wake-up operations. These multiple wake-up operations are different, and each wake-up operation can be any operation, such as a voice command or a gesture operation. Each initial form corresponds to one wake-up operation, and different initial forms correspond to different wake-up operations. Each wake-up operation instructs the virtual keyboard 300 to wake up in the corresponding initial form. When a user performs any wake-up operation on the electronic device, the electronic device responds to the wake-up operation and displays the virtual keyboard 300 in the initial form corresponding to that wake-up operation. Assuming the virtual keyboard 300 has two initial forms, in response to different wake-up operations performed by the user on the electronic device, the virtual keyboard in different initial forms can be activated. For example, wake-up operation 1 is used to activate the virtual keyboard 300 that only includes the basic virtual keyboard S1, and wake-up operation 2 is used to activate the virtual keyboard 300 that includes the basic virtual keyboard S1 and the virtual touchpad S2. Figure 5 As shown, wake-up operation 1 involves placing both hands on the display screen 101 of the electronic device, with four fingers of each hand and a portion of the palm in contact with the display screen 101. Wake-up operation 2 involves placing both hands on the display screen 101, with four fingers of each hand in contact with the display screen 101, but the palms of each hand are not in contact with the display screen 101. In response to wake-up operation 1, the electronic device displays... Figure 4 The virtual keyboard 300 shown in Figure (a) displays in response to wake-up operation 2. Figure 4 The virtual keyboard 300 is shown in Figure (b).
[0117] It should be noted that when the virtual keyboard 300 in the initial form mentioned above includes two or more keyboards, its display form can be to merge multiple keyboards into one keyboard display, that is, the keyboard is displayed as a visual whole, and there is no separation between the keyboards; its display form can also be that each keyboard is displayed independently, without displaying the multiple keyboards that constitute the virtual keyboard as a whole, so as to reflect their composition relationship. In this embodiment of the application, no specific limitation is made.
[0118] In some embodiments, a user can activate the basic virtual keyboard S1 of the virtual keyboard 300 by operating the electronic device 100, and then activate a specific additional virtual keyboard by performing an operation related to the relative position between the basic virtual keyboard S1 and the additional virtual keyboards, that is, an operation in a certain direction. The following will combine... Figure 6 This will be explained in detail.
[0119] Figure 6 This is a flowchart of a virtual keyboard display method provided in an embodiment of this application. The method uses an electronic device, which may be the electronic device 100 described above. The method includes the following steps.
[0120] 601. In response to the first wake-up operation, the electronic device displays the basic virtual keyboard.
[0121] The first wake-up operation is limited to the wake-up operation corresponding only to the initial form of the virtual keyboard 300, which is the basic virtual keyboard. When the user performs this first wake-up operation on the electronic device, the electronic device responds by displaying the basic virtual keyboard, thereby displaying the virtual keyboard 300 in its initial form.
[0122] by Figure 7 For example, Figure 7 Figures (a) and (b) show the basic virtual keyboard S1 displayed in response to the first wake-up operation in landscape and portrait modes, respectively. As can be seen from the figures, the basic virtual keyboard S1 covers the lower half of the lower half of the display screen 101 in the current orientation, facilitating user operation. Of course, the implementation of displaying the basic virtual keyboard S1 in response to the first wake-up operation in the folded state is the same as in landscape and portrait modes, and will not be elaborated upon here.
[0123] In some embodiments, when only a basic virtual keyboard is displayed, the user can also perform a splitting operation on the electronic device targeting the basic virtual keyboard. In response to this splitting operation, the electronic device splits the basic virtual keyboard into multiple independent virtual keyboards. For example, the left keyboard area of the basic virtual keyboard can be split into an independent virtual keyboard, and the right keyboard area of the basic virtual keyboard can be split into an independent virtual keyboard. This splitting operation can be a two-finger long-press on the upper edge of the basic virtual keyboard and drag downwards, or it can be a voice command or other similar operation. Here, this application embodiment does not limit the splitting operation.
[0124] 602. In response to the second wake-up operation, the electronic device displays a first additional virtual keyboard on the corresponding area of the basic virtual keyboard, and the first additional virtual keyboard corresponds to the operation direction of the second wake-up operation.
[0125] The first additional virtual keyboard is any of the additional virtual keyboards in the virtual keyboard 300, such as the virtual touchpad S2, the virtual numeric keypad S3, or the virtual handwriting pad S4. The second wake-up operation is the wake-up operation corresponding to the first additional virtual keyboard, instructing the first additional virtual keyboard to be woken up.
[0126] The correspondence between the first additional virtual keyboard and the second wake-up operation can be understood as follows: different additional virtual keyboards correspond to wake-up operations in different operation directions, and users can wake up the corresponding additional virtual keyboard based on wake-up operations in different operation directions.
[0127] From the perspective of a physical keyboard, the positional relationship between keyboards of different input modes and the basic keyboard varies. Based on this positional relationship, specific wake-up operations can be associated with additional virtual keyboards. For example, in a physical keyboard where the touchpad is located below the basic keyboard, a swipe operation can be associated with the virtual touchpad, with the swipe direction being from bottom to top. This approach conforms to user operating habits and allows users to perform corresponding operations based on their understanding of the physical keyboard's structure, thereby waking up the desired virtual keyboard. It has a low learning curve, is easy to operate, and improves the user experience.
[0128] Based on this, the embodiments of this application first determine the positional relationship between each additional virtual keyboard and the basic virtual keyboard. This positional relationship is the expected positional relationship between the additional virtual keyboard and the basic virtual keyboard after display. The positional relationship between different additional virtual keyboards and the basic virtual keyboard is different. The positional relationship between the additional virtual keyboard used to simulate the keyboard in a physical keyboard and the basic virtual keyboard can be the positional relationship between the simulated keyboard in the physical keyboard and the basic keyboard. For example, the positional relationship between the virtual touchpad S2, virtual numeric keypad S3, virtual handwriting pad S4 and the basic virtual keyboard S1 is shown in Table 1 below.
[0129] For any additional virtual keyboard and the basic virtual keyboard, the positional relationship is used to indicate the position of the additional virtual keyboard relative to the basic virtual keyboard, and also to indicate the direction of the additional virtual keyboard relative to the basic virtual keyboard. For example, in a physical keyboard, the touchpad is located below the basic keyboard, then the positional relationship between the virtual touchpad S2 and the basic virtual keyboard S1 can be that the virtual touchpad S2 is located below the basic virtual keyboard S1, and the direction of the virtual touchpad S2 relative to the basic virtual keyboard S1 is downward.
[0130] For any additional virtual keyboard, this embodiment designs a wake-up operation for the additional virtual keyboard based on the positional relationship between the additional virtual keyboard and the basic virtual keyboard. For example, the operation direction and / or starting position of the wake-up operation for any additional virtual keyboard is related to the positional relationship. Specifically, the relationship between the operation direction of the wake-up operation and the positional relationship can be expressed as follows: the operation direction of the wake-up operation is opposite to the direction of the additional virtual keyboard relative to the basic virtual keyboard. For example, if the virtual touchpad S2 is oriented downwards relative to the basic virtual keyboard S1, then the operation direction of the wake-up operation for the virtual touchpad S2 is upwards.
[0131] The starting position of the wake-up operation direction is related to this position and can be represented as follows: the starting position is the edge area of the display screen (or the basic virtual keyboard) in the direction of the additional virtual keyboard relative to the basic virtual keyboard. For example, if the virtual touchpad S2 is oriented downwards relative to the basic virtual keyboard S1, the starting position of the operation direction of the virtual touchpad S2 can be the lower edge area of the display screen in the current posture, or the lower edge area of the basic virtual keyboard S1. Here, the current posture refers to the current posture of the electronic device, the edge area of the display screen can be the edge of the display screen or an area on the display screen near the edge of the display screen, and the edge area of the basic virtual keyboard S1 can be the edge of the basic virtual keyboard S1 or an area on the basic virtual keyboard S1 near the edge of the basic virtual keyboard S1.
[0132] For example, the wake-up operations of the virtual touchpad S2, virtual numeric keypad S3, and virtual handwriting pad S4 are shown in Table 1 below.
[0133] Table 1
[0134]
[0135] The positional relationship between the additional virtual keyboard and the basic virtual keyboard is the same as the positional relationship between the simulated keyboard and the basic keyboard in a physical keyboard. This allows for the design of wake-up operations corresponding to the additional virtual keyboard based on the positional relationship between the simulated keyboard and the basic keyboard in a physical keyboard. This enables users to quickly learn the wake-up operations corresponding to the additional virtual keyboard based on their understanding of the structure of a physical keyboard. The learning process is simple, the operation is convenient, and the user experience is improved.
[0136] Each additional virtual keyboard corresponds to its own wake-up operation and its positional relationship with the basic virtual keyboard. The electronic device stores this correspondence, and each wake-up operation instructs the corresponding additional virtual keyboard to be woken up. In a scenario where any one of the multiple additional virtual keyboards is woken up, the user performs the wake-up operation corresponding to that additional virtual keyboard (i.e., the second wake-up operation) on the electronic device. In response to the wake-up operation, the electronic device displays the additional virtual keyboard (i.e., the first additional virtual keyboard) corresponding to the wake-up operation on the corresponding area of the basic virtual keyboard, so that the additional virtual keyboard and the basic virtual keyboard are displayed together.
[0137] The area corresponding to the basic virtual keyboard can be the area where the electronic device displays the basic virtual keyboard, such as the half-screen area of the display screen, like the lower half of the display screen in portrait mode or landscape mode. The positional relationship between different auxiliary virtual keyboards and the basic virtual keyboard varies, and the display process of the auxiliary virtual keyboard differs when different auxiliary virtual keyboards are activated.
[0138] For example, suppose a first additional virtual keyboard is activated, located below the base virtual keyboard. In response to a second activation operation, the electronic device moves the base virtual keyboard upwards, displaying the first additional virtual keyboard in the area vacated by the movement. The area vacated by the movement of the base virtual keyboard is the portion of the area initially occupied by the base virtual keyboard.
[0139] Taking the first additional virtual keyboard as the virtual touchpad S2 as an example, such as Figure 8 As shown, the electronic device displays an interactive interface P on the display screen 101. The interactive interface P displays a basic virtual keyboard S1. The user performs a sliding operation F1 (i.e., a wake-up operation corresponding to the virtual touchpad S2) starting from the lower edge of the display screen 101 and sliding upwards. In response to the sliding operation F1, the electronic device moves the basic virtual keyboard S1 upwards on the interactive interface P, using the half-screen dividing line of the display screen 101 as a boundary. During this movement, the area below the basic virtual keyboard S1 on the interactive interface P becomes empty, and the virtual touchpad S2 is displayed in this area, ensuring that the virtual touchpad S2 is positioned below the basic virtual keyboard S1, thus satisfying the positional relationship between the virtual numeric keypad S2 and the basic virtual keyboard S1. During this process, the basic virtual keyboard S1 is not scaled; therefore, the size of the basic virtual keyboard S1 and the size of the virtual keys within it remain unchanged. The virtual keys in the basic virtual keyboard are still large for user convenience, thereby improving the user experience of the virtual keyboard.
[0140] As another example, suppose the first additional virtual keyboard is activated, and this first additional virtual keyboard is located to the left or right of the basic virtual keyboard. During the second activation operation of the electronic device, the basic virtual keyboard is minimized, and the first additional virtual keyboard is displayed in the area vacated by the minimized basic virtual keyboard. The area vacated by the minimized basic virtual keyboard is the same area occupied by the basic virtual keyboard when it is initially displayed.
[0141] Taking the first additional virtual keyboard as the virtual numeric keypad S3 as an example, such as Figure 9As shown in the figure, the electronic device displays an interactive interface P on a display screen 101. The interactive interface P displays a basic virtual keyboard S1. The user performs a swipe operation F3 (i.e., the wake-up operation corresponding to the virtual numeric keypad S3) from the right edge of the display screen 101 to the left. In response to the swipe operation F3, the electronic device shrinks the basic virtual keyboard S1, freeing up the area to the right of the basic virtual keyboard S1 on the interactive interface P, where the virtual numeric keypad S3 is displayed. Shrinking the basic virtual keyboard S1 also makes the size of the virtual keys on the basic virtual keyboard S1 smaller than the size of the virtual keys on the virtual numeric keypad S3, thus making the virtual keys on the virtual numeric keypad S3 more prominent. While meeting the user's needs for using the virtual numeric keypad S3, the larger virtual keys make it easier for the user to use the virtual numeric keypad S3, thereby improving the user experience.
[0142] Taking the S4 virtual handwriting tablet as an example, with the first additional virtual keyboard as the virtual keyboard, as follows: Figure 10 As shown, the electronic device displays an interactive interface P on the display screen 101. The interactive interface P displays a basic virtual keyboard S1. The user performs a sliding operation F5 (i.e., the wake-up operation corresponding to the virtual handwriting pad S4) starting from the left edge of the display screen 101 and sliding to the right. In response to the sliding operation F5, the electronic device shrinks the basic virtual keyboard S1. After shrinking the basic virtual keyboard S1, the area to the left of the basic virtual keyboard S1 on the interactive interface P is emptied, and the virtual handwriting pad S4 is displayed in this area, so that the virtual handwriting pad S4 is displayed to the right of the basic virtual keyboard S1.
[0143] In some embodiments, after the basic virtual keyboard is moved up or down, the electronic device can merge the first additional virtual keyboard and the basic virtual keyboard into a single virtual keyboard display, or the first additional virtual keyboard can be displayed independently. Next, these two display methods will be described in detail in conjunction with display method 1 and display method 2 described below.
[0144] Display Method 1: Combine the first additional virtual keyboard and the basic virtual keyboard into a single virtual keyboard display.
[0145] The electronic device merges the basic virtual keyboard and the first additional virtual keyboard into a first virtual keyboard, and displays the first virtual keyboard. The first virtual keyboard includes the merged basic virtual keyboard and the first additional virtual keyboard.
[0146] Taking the first additional virtual keyboard as the virtual touchpad S2 as an example, such as Figure 8 As shown, in response to the sliding operation F1, the electronic device moves the basic virtual keyboard S1 upward and then displays the virtual touchpad S2 below the basic virtual keyboard S1, merging the basic virtual keyboard S1 and the virtual touchpad S2 into a virtual keyboard 300 (i.e., the first virtual keyboard).
[0147] Taking the first additional virtual keyboard as the virtual numeric keypad S3 as an example, such as Figure 9 As shown, in response to the sliding operation F3, the electronic device shrinks the basic virtual keyboard S1 and then merges the virtual numeric keypad S3 with the shrunken basic virtual keyboard S1 to form a virtual keyboard 300 (i.e., the first virtual keyboard) for display.
[0148] Taking the S4 virtual handwriting tablet as an example, with the first additional virtual keyboard as the virtual keyboard, as follows: Figure 10 As shown, in response to the sliding operation F5, the electronic device shrinks the basic virtual keyboard S1 and then merges the virtual handwriting tablet S4 with the shrunken basic virtual keyboard S1 to form a virtual keyboard 300 (i.e., the first virtual keyboard) for display.
[0149] When the additional virtual keyboard is activated, the additional virtual keyboard and the basic virtual keyboard are merged into one virtual keyboard display, which makes the arrangement of the additional virtual keyboard and the basic virtual keyboard aesthetically pleasing and cohesive.
[0150] In other embodiments, in response to a second wake-up operation, the electronic device merges the basic virtual keyboard and the first additional virtual keyboard into a first virtual keyboard, according to the current size of the basic virtual keyboard. At this time, the basic virtual keyboard is not scaled, and the width of the first virtual keyboard may be greater than the length of the bottom edge of the display screen in the current posture. For example, when the basic virtual keyboard S1 and the numeric virtual keyboard S3 are merged into the first virtual keyboard, the width of the first virtual keyboard is greater than the length of the bottom edge of the display screen in the current posture. The height of the first virtual keyboard may also be greater than the length of the half-screen containing the basic virtual keyboard. For example, when the basic virtual keyboard S1 and the virtual touchpad S3 are merged into the first virtual keyboard, the height of the first virtual keyboard is greater than the length of the half-screen containing the basic virtual keyboard S1.
[0151] If the width of the first virtual keyboard is greater than the length of the bottom edge of the display screen in the current posture, or if the height of the first virtual keyboard is also greater than the length of the lower half of the display screen in the current posture, the display screen cannot display the complete first virtual keyboard. Therefore, the electronic device displays a target partial keyboard area of the first virtual keyboard, where the target partial keyboard includes a partial keyboard area of the basic virtual keyboard and a first additional virtual keyboard. For example, after merging the basic virtual keyboard and the first additional virtual keyboard into the first virtual keyboard, the electronic device slides the first virtual keyboard in the opposite direction to the basic virtual keyboard, causing a portion of the keyboard area of the basic virtual keyboard to slide off the display screen and disappear, while the first additional virtual keyboard slides back into the display screen. After the sliding of the first virtual keyboard stops, the remaining keyboard area of the basic virtual keyboard and the first additional virtual keyboard form the target partial keyboard area, which is maintained for user access.
[0152] Taking the first additional virtual keyboard as virtual keyboard S3 as an example, such as Figure 11 As shown, the electronic device displays an interactive interface P on the display screen 101. The interactive interface P displays a basic virtual keyboard S1. The user performs a sliding operation F3 (i.e., a wake-up operation corresponding to virtual keyboard S3) from the right edge of the display screen 101, moving leftward. In response to the sliding operation F3, the electronic device merges the basic virtual keyboard S1 and virtual keyboard S3 into a virtual keyboard 300 (i.e., the first virtual keyboard). Sliding virtual keyboard 300 to the left causes the keyboard area on the left side of the basic virtual keyboard S1 to slide out of the display screen 101 and disappear, while the virtual keyboard S3 on the right side of the basic virtual keyboard S1 slides into the display screen 101. The target partial keyboard area formed by the keyboard area on the right side of the basic virtual keyboard S1 and the virtual keyboard S3 is displayed on the display screen 101. When the first additional virtual keyboard is a virtual touchpad S2 or a virtual handwriting pad S4, the implementation method is the same as when using a virtual numeric keypad S3. The difference is that when the first additional virtual keyboard is a virtual handwriting pad S4, the first virtual keyboard is slid to the right. When the first additional virtual keyboard is the virtual touchpad S2, slide the first virtual keyboard upwards, and with the upper edge of the half-screen where the basic virtual keyboard is located as the dividing line, the basic virtual keyboard S1 slides out of the keyboard area at the upper edge of the lower half-screen and disappears. Of course, if the half-screen where the basic virtual keyboard is located is high enough, the basic virtual keyboard may not slide out of the upper edge of the half-screen where the basic virtual keyboard is located.
[0153] In other embodiments, in response to the second wake-up operation, the electronic device may first slide the basic virtual keyboard in the opposite direction to the basic virtual keyboard, display the first additional virtual keyboard in the area vacated after the basic virtual keyboard is slid, and merge the remaining keyboard areas of the first additional virtual keyboard and the basic virtual keyboard into a single virtual keyboard display.
[0154] When the additional virtual keyboard is activated, a partial keyboard area of both the additional and basic virtual keyboards is displayed. This makes the arrangement of the additional and basic virtual keyboards aesthetically pleasing and cohesive, and eliminates the need to shrink the virtual keys on the basic virtual keyboard. The larger virtual keys are more convenient for users to use, thereby improving the user experience of the virtual keyboard.
[0155] Display Method 2: Display the first additional virtual keyboard independently.
[0156] In response to the second wake-up operation, the electronic device displays the basic virtual keyboard and the first additional virtual keyboard as independent virtual keyboards. The independent display can be manifested as the basic virtual keyboard and the first additional virtual keyboard each having their own independent keyboard frame, instead of sharing the same keyboard frame.
[0157] For example, the electronic device displays a basic virtual keyboard and a first supplementary virtual keyboard side by side to achieve independent display. Taking the first supplementary virtual keyboard as a virtual numeric keypad S3 as an example, as... Figure 12 As shown in Figure (a), in response to the wake-up operation (i.e. the second wake-up operation) corresponding to the virtual numeric keypad S3, the electronic device shrinks the basic virtual keypad S1 in the interactive interface P currently displayed on the display screen 101, and displays the virtual numeric keypad S3 to the right of the basic virtual keypad S1 to achieve side-by-side display.
[0158] By displaying the basic virtual keyboard and the supplementary virtual keyboard side by side, the layout of the basic virtual keyboard and the supplementary virtual keyboard is not only aesthetically pleasing, but also makes it easier for users to input information using the virtual keyboard, thereby improving the user experience of the virtual keyboard.
[0159] Alternatively, an electronic device can overlay a first additional virtual keyboard onto a basic virtual keyboard, achieving independent display. Taking the virtual numeric keypad S3 as an example, for instance... Figure 12 As shown in Figure (b), in response to the wake-up operation, the electronic device displays a virtual numeric keypad S3 on the basic virtual keypad S1 in the interactive interface P currently displayed on the display screen 101, so that the virtual numeric keypad S3 floats above the basic virtual keypad S1 and the virtual numeric keypad S3 obscures part of the basic virtual keypad S1 to achieve superimposed display.
[0160] By overlaying an additional virtual keyboard on top of the basic virtual keyboard, the additional virtual keyboard can be highlighted for easy access by the user. At the same time, the basic virtual keyboard does not need to be shrunk, maintaining large virtual keys for easy use, thereby improving the user experience of the virtual keyboard.
[0161] The above Figures 8 to 12 The examples shown all demonstrate waking up the first additional virtual keyboard in the vertical usage state. In other embodiments, the electronic device can also wake up the first additional virtual keyboard in a similar manner in the horizontal usage state or the folded state, which will not be described in detail here.
[0162] When the additional virtual keyboard is activated, display mode 2 above displays the basic virtual keyboard and the additional virtual keyboard as independent virtual keyboards, so that users can distinguish the keyboards of different input modes, making it easier for users to use and improving the user experience of the virtual keyboard.
[0163] It should be understood that when the first additional virtual keyboard is activated, the electronic device displays the first additional virtual keyboard in the corresponding area of the basic virtual keyboard based on the positional relationship between the first additional virtual keyboard and the basic virtual keyboard, ensuring that the first additional virtual keyboard satisfies this positional relationship after display. Taking the positional relationship shown in Table 1 above as an example, as... Figures 8 to 12 As shown, when the virtual handwriting pad S2 is activated, it appears below the basic virtual keyboard S1. When the virtual numeric keypad S3 is activated, it appears to the right of the basic virtual keyboard S1. When the virtual handwriting pad S4 is activated, it appears to the left of the basic virtual keyboard S1. This arrangement makes the positional relationship between the virtual numeric keypad S3, the virtual touchpad S2, and the basic virtual keyboard S1 similar to the positional relationship between the numeric keypad, touchpad, and the basic keyboard in a physical keyboard. This allows users to use the activated virtual keyboard without any learning curve, based on their familiarity with the structure of a physical keyboard. The low learning curve enhances the user experience.
[0164] In some embodiments, the display position of each additional virtual keyboard can be configured. For example, users can configure the positional relationship between each additional virtual keyboard and the basic virtual keyboard through the electronic device according to their own operating habits. The electronic device updates the correspondence between each additional virtual keyboard and the wake-up operation according to the positional relationship configured by the user, so that users can wake up and use the corresponding additional virtual keyboard according to their own operating habits based on the corresponding wake-up operation, thereby improving the user's experience with the virtual keyboard.
[0165] In some embodiments, after any additional virtual keyboard is displayed on the corresponding area of the base virtual keyboard, the user can also adjust the display position of the additional virtual keyboard. For example, when the electronic device displays the additional virtual keyboard, if the user performs a position adjustment operation on the electronic device for the additional virtual keyboard, the electronic device will adjust the display position of the additional virtual keyboard in response to the position adjustment operation. This position adjustment operation can be a drag operation. For example, taking the virtual numeric keypad S3 as an example, if the user performs a drag operation on the electronic device from the virtual keypad S3 to the left edge of the display screen, the electronic device will adjust the display position of the virtual numeric keypad S3 to the left of the base virtual keyboard in response to the drag operation. This position adjustment method allows users to adjust the display position of the additional virtual keyboard according to their own operating habits, thereby improving the user experience of the virtual keyboard.
[0166] In order to display a virtual keyboard, Figure 6The method provided in the illustrated embodiment first invokes the basic virtual keyboard through a wake-up operation, and then invokes the additional virtual keyboard through a wake-up operation whose operation direction corresponds to that of the additional basic virtual keyboard, so that both the basic and additional virtual keyboards are displayed together. This method maps the operation direction of the wake-up operation to the additional basic virtual keyboard, creating a correlation between the wake-up operations. The operation logic is simple and convenient, without adding extra learning costs, and can improve the user experience of the virtual keyboard.
[0167] In some embodiments, a user can operate the electronic device 100 to first wake up the basic virtual keyboard and an additional virtual keyboard at the same time, and then wake up another additional virtual keyboard. The following will combine... Figure 13 This will be explained in detail.
[0168] Figure 13 This is a flowchart of another virtual keyboard display method provided in this application embodiment. The method applies an electronic device, which can be the electronic device 100 described above. The method includes the following steps.
[0169] 1301. In response to a first wake-up operation, the electronic device displays a basic virtual keyboard and a second additional virtual keyboard.
[0170] The first wake-up operation is the wake-up operation corresponding to the virtual keyboard 300 in its initial form, which includes a basic virtual keyboard and a second additional virtual keyboard. When the user performs the first wake-up operation on the electronic device, the electronic device responds to the first wake-up operation by displaying the basic virtual keyboard and the second additional virtual keyboard, thereby displaying the virtual keyboard 300 in its corresponding initial form.
[0171] In some embodiments, the electronic device may merge the second additional virtual keyboard and the basic virtual keyboard into a single virtual keyboard display, or it may display the second additional virtual keyboard and the basic virtual keyboard independently. Next, these two display methods will be described in detail in conjunction with display method 1 and display method 2 described below.
[0172] Display Method 1: Combine the second additional virtual keyboard and the basic virtual keyboard into a single virtual keyboard display.
[0173] In response to a first wake-up operation, the electronic device displays a third virtual keyboard, which includes a merged second additional virtual keyboard and a base additional virtual keyboard.
[0174] Taking the second additional virtual keyboard as the virtual touchpad S2 as an example, such as Figure 14As shown in Figure (a), in response to the first wake-up operation, the electronic device displays a virtual keyboard 300 (i.e., a quad keyboard) that is a combination of a virtual touchpad S2 and a basic virtual keyboard S1 in the interactive interface P currently displayed on the display screen 101.
[0175] Taking the second additional virtual keyboard, the virtual numeric keypad S3, as an example, such as Figure 14 As shown in Figure (b), in response to the first wake-up operation, the electronic device displays a virtual keyboard 300 (i.e., a quad virtual keyboard) that is a combination of the virtual numeric keypad S3 and the basic virtual keyboard S1 in the interactive interface P currently displayed on the display screen 101.
[0176] Taking the S4 virtual handwriting tablet as an example, with the second additional virtual keyboard as the virtual keyboard, as follows: Figure 14 As shown in Figure (c), in response to the first wake-up operation, the electronic device displays a virtual keyboard 300 (i.e., a quad virtual keyboard) that is a combination of a virtual handwriting pad S4 and a basic virtual keyboard S1 in the interactive interface P currently displayed on the display screen 101.
[0177] When the virtual keyboard 300 is activated, the above-mentioned display method 1 merges the additional virtual keyboard and the basic virtual keyboard into a single virtual keyboard display, which makes the arrangement of the additional virtual keyboard and the basic virtual keyboard aesthetically pleasing and cohesive.
[0178] Display Method 2: Display the second additional virtual keyboard and the basic virtual keyboard independently.
[0179] In response to the first wake-up operation, the electronic device displays the basic virtual keyboard and the second additional virtual keyboard as independent virtual keyboards. This process can be referred to as the process of the electronic device displaying the basic virtual keyboard and the first additional virtual keyboard as independent virtual keyboards in response to the second wake-up operation, and will not be elaborated here.
[0180] After displaying the basic virtual keyboard and the second additional virtual keyboard, the user can also perform a wake-up operation (i.e., a second wake-up operation) on the electronic device corresponding to the other additional virtual keyboard to bring up the other additional virtual keyboard, as in step 1302 below.
[0181] 1302. In response to the second wake-up operation, the electronic device displays a first additional virtual keyboard on the corresponding area of the basic virtual keyboard, and the first additional virtual keyboard corresponds to the operation direction of the second wake-up operation.
[0182] In step 1302, the first additional virtual keyboard is any additional virtual keyboard other than the second additional virtual keyboard; that is, the first additional virtual keyboard and the second additional virtual keyboard are different additional virtual keyboards. For example, the second additional virtual keyboard is a virtual touchpad, and the first additional virtual keyboard is a virtual numeric keypad.
[0183] In response to the second wake-up operation, the electronic device can display the first additional virtual keyboard in the corresponding area of the basic virtual keyboard according to the positional relationship between the two additional virtual keyboards, the second additional virtual keyboard and the first additional virtual keyboard, and the basic virtual keyboard.
[0184] For example, if the orientation of the second additional virtual keyboard relative to the basic virtual keyboard is opposite to the orientation of the first additional virtual keyboard relative to the basic virtual keyboard, the electronic device responds to the second wake-up operation by retracting the second additional virtual keyboard and displaying the first additional virtual keyboard in the corresponding area of the basic virtual keyboard. For instance, after retracting the second additional virtual keyboard, the basic virtual keyboard is moved to the area vacated by the retracted second additional virtual keyboard, and the first additional virtual keyboard is displayed in the vacated area, so that the displayed first additional virtual keyboard satisfies the positional relationship with the basic virtual keyboard.
[0185] Taking a virtual numeric keypad S3 as the second additional virtual keyboard and a virtual handwriting pad S4 as the first additional virtual keyboard as an example, Figure 15 As shown in Figure (a), the electronic device displays an interactive interface P on a display screen 101. The interactive interface P displays a basic virtual keyboard S1 and a virtual numeric keypad S3. The user performs a swipe operation F5 (i.e., the wake-up operation corresponding to the virtual handwriting pad S4) from the left edge of the display screen 101, moving to the right. Figure 15 As shown in Figure (b), in response to the sliding operation F5, the electronic device retracts the virtual numeric keypad S3 and moves the basic virtual keypad S1 to the right, freeing up the area to the right of the basic virtual keypad S1. A virtual handwriting tablet S4 is then displayed to the right of the basic virtual keypad S1 to satisfy the positional relationship between the two virtual keypads. Specifically, when displaying the virtual handwriting tablet S4, as shown in Figure (b), the virtual numeric keypad S3 retracts and moves the basic virtual keypad S1 to the right, freeing up the area to the right of the basic virtual keypad S1. Figure 15 As shown in Figure (b), the virtual handwriting pad S4 and the basic virtual keyboard S1 can be displayed as independent virtual keyboards.
[0186] In other embodiments, the basic virtual keyboard S1 and the virtual handwriting tablet S4 can also be merged into a single virtual keyboard display. For example... Figure 16 As shown in Figure (a), the electronic device displays an interactive interface P on a display screen 101. The interactive interface P displays a basic virtual keyboard S1 and a virtual numeric keypad S3. The user performs a swipe operation F5 (i.e., the wake-up operation corresponding to the virtual handwriting pad S4) from the left edge of the display screen 101, moving to the right. Figure 16As shown in Figure (b), in response to the sliding operation F5, the electronic device retracts the virtual numeric keypad S3 and displays the virtual keyboard 300 formed by merging the virtual handwriting pad S4 and the basic virtual keyboard S1. In the virtual keyboard 300, the virtual handwriting pad S4 is displayed to the right of the basic virtual keyboard S1 to satisfy the positional relationship between the two basic virtual keyboards.
[0187] If the second additional virtual keyboard is a virtual handwriting pad S4, and the first additional virtual keyboard is a virtual numeric keypad S3, the implementation method is the same as... Figure 15 and Figure 16 Similarly, I will not elaborate further here.
[0188] When activating a new additional virtual keyboard, the example above avoids irrelevant additional virtual keyboards occupying the display area by collapsing the already activated basic virtual keyboard (i.e., the second additional virtual keyboard). This provides sufficient area for the newly activated additional virtual keyboard (i.e., the first additional virtual keyboard), enabling the switching of additional virtual keyboards and meeting the user's current usage needs. Collapsing the already activated basic virtual keyboard also avoids irrelevant additional virtual keyboards.
[0189] In some embodiments, the orientations of the second and first additional virtual keyboards relative to the base virtual keyboard may be neither the same nor opposite. For example, assuming the second additional virtual keyboard is a virtual touchpad S2 and the first additional virtual keyboard is a virtual numeric keypad S3, and the orientations of the virtual touchpad S2 and the virtual numeric keypad S3 relative to the base virtual keyboard are downward and rightward respectively, then the orientations of the virtual touchpad S2 and the virtual numeric keypad S3 relative to the base virtual keyboard S1 are neither the same nor opposite.
[0190] For example, if the orientation of the second additional virtual keyboard relative to the basic virtual keyboard is neither the same as nor opposite to the orientation of the first additional virtual keyboard relative to the basic virtual keyboard, the electronic device can combine the basic virtual keyboard, the first additional virtual keyboard, and the second additional virtual keyboard into a single virtual keyboard for display. For instance, in response to a second wake-up operation, the electronic device displays a second virtual keyboard, which includes the combined basic virtual keyboard, the first additional virtual keyboard, and the second additional virtual keyboard.
[0191] Taking the first additional virtual keyboard as a virtual touchpad S2 and the second additional virtual keyboard as a virtual numeric keypad S3 as an example, as follows: Figure 17 As shown in Figure (a), the electronic device displays an interactive interface P on a display screen 101. The interactive interface P displays a virtual keyboard 300, including a basic virtual keyboard S1 and a virtual numeric keypad S3. The user performs an upward swipe operation F1 (i.e., the wake-up operation corresponding to the virtual touchpad S2) starting from the lower edge of the display screen 101. Figure 17 As shown in Figure (b), in response to the sliding operation F1, the electronic device moves the virtual keyboard 300 upward, and displays the virtual handwriting pad S4 in the area vacated after moving upward, so as to merge the virtual handwriting pad S4, the basic virtual keyboard S1 and the virtual numeric keypad S3 into a new virtual keyboard 300 (i.e., the second virtual keyboard) for display.
[0192] Taking the first additional virtual keyboard as a virtual numeric keypad S3 and the second additional virtual keyboard as a virtual touchpad S2 as an example, as follows... Figure 18 As shown in Figure (a), the electronic device displays an interactive interface P on a display screen 101. The interactive interface P displays a basic virtual keyboard S1 and a virtual numeric keypad S3. The user performs a swipe operation F3 (i.e., the wake-up operation corresponding to the virtual numeric keypad S3) from the right edge of the display screen 101, moving leftwards. Figure 18 As shown in Figure (b), in response to the sliding operation F3, the electronic device shrinks the basic virtual keyboard S1 and displays the virtual numeric keyboard S3 in the area above the virtual touchpad S2 where the basic virtual keyboard S1 is emptied after shrinking, so as to merge the virtual numeric keyboard S3, the virtual touchpad S2 and the basic virtual keyboard S1 into a new virtual keyboard 300 (i.e., the second virtual keyboard) for display.
[0193] When the additional virtual keyboard is activated, the newly activated additional virtual keyboard, along with previously activated additional virtual keyboards and the basic virtual keyboard, are merged into a single virtual keyboard display, resulting in a visually appealing and cohesive arrangement of the virtual keyboards.
[0194] Figures 14 to 18 The examples all use the electronic device in landscape mode. When the electronic device is in portrait mode or folded mode, the virtual keyboard can also be displayed in the same way as in landscape mode, which will not be elaborated here.
[0195] Step 1302 above is an optional step. In some embodiments, if the user does not perform a second wake-up operation on the electronic device after step 1301, the electronic device will not perform step 1302 above.
[0196] Figure 13 The method provided by the illustrated embodiment displays a basic virtual keyboard and an additional virtual keyboard in response to a wake-up operation corresponding to the virtual keyboard by an electronic device, so as to meet the user's usage needs for the basic virtual keyboard and the additional virtual keyboard. Subsequently, in response to a wake-up operation corresponding to another additional virtual keyboard in the operation direction, another additional virtual keyboard is displayed. The user can wake up different additional virtual keyboards by wake-up operations corresponding to different operation directions, thereby meeting the user's usage needs for different additional virtual keyboards and improving the user's virtual keyboard experience.
[0197] In response to the first wake-up operation, the above Figure 6 Therefore, only the basic virtual keyboard is displayed. Figure 13 This explanation uses the simultaneous display of a basic virtual keyboard and an additional virtual keyboard as an example. In other embodiments, in response to a first wake-up operation, the electronic device can determine whether to display the additional virtual keyboard and the virtual keyboard simultaneously based on its current posture. Next, we will combine... Figure 19 This will be explained in detail.
[0198] Figure 19 This is a flowchart of another virtual keyboard display method provided in this application embodiment. The method applies an electronic device, which can be the electronic device 100 described above. The method includes the following steps.
[0199] 1901. The electronic device responds to the first wake-up operation and determines the attitude of the electronic device.
[0200] The posture of an electronic device refers to its current orientation, which may be in a horizontal, vertical, or folded state.
[0201] exist Figure 19 In the illustrated embodiment, the virtual keyboard 300 has two initial forms. The first initial form of the virtual keyboard 300 includes only a basic virtual keyboard, while the second initial form includes both a basic virtual keyboard and a second additional virtual keyboard. The first and second initial forms correspond to different postures of the electronic device. For example, the first initial form corresponds to the vertical and folded states of the electronic device, while the second initial form corresponds to the horizontal state of the electronic device. There is only one wake-up operation for the virtual keyboard 300, namely the first wake-up operation. In this case, the first wake-up operation instructs the activation of the initial form of the virtual keyboard 300. The first wake-up operation does not specify which initial form of the virtual keyboard 300 should be activated; the electronic device activates the corresponding initial form of the virtual keyboard 300 based on its own posture (as described in steps 1902 or 1903 below).
[0202] For example, when a user performs a first wake-up operation on an electronic device, the electronic device responds to the first wake-up operation by determining its posture. The posture determination can be achieved by acquiring first posture information of the electronic device, which indicates whether the electronic device is in a folded state. This first posture information includes the angle between the two screens. When the angle is greater than 0 degrees and less than or equal to an angle threshold degree, it indicates that the electronic device is in a folded state, and step 1902 is executed. When the angle is greater than the angle threshold or less than or equal to 180 degrees, it indicates that the electronic device is not in a folded state but in an unfolded state. In the unfolded state, the electronic device acquires gyroscope data and, based on the gyroscope data, determines the usage state of the electronic device in the unfolded state. This usage state may be a vertical usage state or a horizontal usage state. If the electronic device is in a vertical usage state, step 1902 is executed; if the electronic device is in a horizontal usage state, step 1903 is executed.
[0203] The aforementioned angle threshold can be any angle between 0 and 180 degrees, such as 170 degrees, 165 degrees, or 160 degrees. The angle threshold can be configured according to the actual application scenario. Here, this application embodiment does not limit the angle threshold.
[0204] 1902. When the electronic device is in a vertical or folded state, the electronic device responds to the first wake-up operation and displays the basic virtual keyboard.
[0205] The process of the electronic device responding to the first wake-up operation and displaying the basic virtual keyboard is the same as step 601 above, and will not be repeated here.
[0206] by Figure 20 Taking Figure (a) as an example, assuming the electronic device is currently in portrait mode and displays the interactive interface P on the display screen 101, the user performs a wake-up operation (i.e., the first wake-up operation) on the virtual keyboard 300. In response to this wake-up operation, the electronic device displays the basic virtual keyboard S1 on the interactive interface P. If the electronic device is currently in a folded state, the implementation method is the same as in the portrait mode, and will not be described in detail here.
[0207] After the basic virtual keyboard is displayed, if the user performs a second wake-up operation on the electronic device, the electronic device executes step 602 above to wake up the first additional virtual keyboard.
[0208] When the screen is in landscape mode or folded, the length of the bottom edge of the display is less than that of the bottom edge of the landscape screen. Therefore, when the screen is in landscape mode or folded, the bottom edge of the display has enough length to support the display of more virtual keyboards. Based on this, when the virtual keyboard 300 is woken up in landscape mode, more virtual keyboards can be displayed, as in step 1903 below.
[0209] 1903. When the electronic device is in a horizontal use state, the electronic device responds to a first wake-up operation and displays a basic virtual keyboard and a second additional virtual keyboard.
[0210] The process by which the electronic device responds to the first wake-up operation and displays the basic virtual keyboard and the second additional virtual keyboard is the same as step 1701 above, and will not be repeated here.
[0211] Taking the second additional virtual keyboard as a virtual numeric keypad as an example, such as Figure 20 As shown in Figure (b), assuming the electronic device is currently in landscape mode and displays an interactive interface P on display screen 101, the user performs a wake-up operation (i.e., the first wake-up operation) on the electronic device for the virtual keyboard 300. In response to the wake-up operation, the electronic device displays a virtual keyboard 300, which is a combination of the virtual numeric keypad S3 and the basic virtual keyboard S1, on the interactive interface P.
[0212] When the electronic device is in landscape mode, if the second additional virtual keyboard is a virtual touchpad S2, the electronic device responds to the first wake-up operation and displays the basic virtual keyboard S1 and the virtual touchpad S2, such as... Figure 14 Figure (a) shows that if the second additional virtual keyboard is a virtual handwriting pad S4, the electronic device responds to the first wake-up operation by displaying the basic virtual keyboard S1 and the virtual handwriting pad S4, as shown in Figure (a). Figure 14 Figure (c) in the middle.
[0213] Figure 14 and Figure 20 The examples all use the basic virtual keyboard and the second additional virtual keyboard as examples to display a single virtual keyboard. In other embodiments, the basic virtual keyboard and the second additional virtual keyboard can also be displayed as independent virtual keyboards in landscape mode, which will not be described in detail here.
[0214] After displaying the virtual keyboard and the second additional virtual keyboard, if the user performs a second wake-up operation on the electronic device, the electronic device executes step 1302 above to wake up the other additional virtual keyboard.
[0215] Figure 19The method provided by the illustrated embodiment satisfies the user's basic information input needs by displaying a basic virtual keyboard in response to a wake-up operation of the virtual keyboard when the electronic device is in a portrait or folded state. When the electronic device is in a landscape state, it satisfies the user's basic information input needs and the need to use the additional virtual keyboard by displaying a basic virtual keyboard and an additional virtual keyboard in response to a wake-up operation of the virtual keyboard.
[0216] The above embodiment illustrates an example where the basic virtual keyboard has a display form that fills the lower half of the display screen, and is displayed in this form in response to a first wake-up. In other embodiments, the basic virtual keyboard has multiple display forms. For example, the basic virtual keyboard has two display forms: a first form and a second form, where the keyboard size in the second form is smaller than that in the first form. In the first form, the size of the basic virtual keyboard is adapted to the current operating area of the display screen on the electronic device. For example, if the current operating area of the electronic device's screen is the lower half of the display screen, then the basic virtual keyboard S1 in the first form fills the lower half of that lower half of the screen. Figure 21 Taking the basic virtual keyboard S1 shown in Figure (a) as an example, in the first state, the lower edge of the basic virtual keyboard S1 coincides with the lower edge of the display screen 101 in the current posture, the left and right edges of the basic virtual keyboard S1 coincide with the left and right edges of the display screen 101 in the current posture, and the upper edge of the basic virtual keyboard S1 is located below the upper edge of the lower half of the display screen 101. The length of the upper and lower edges of the basic virtual keyboard S1 is the width of the basic virtual keyboard S1, the length of the left and right edges of the basic virtual keyboard S1 is the height of the basic virtual keyboard S1, and the width of the basic virtual keyboard S1 is equal to or approximately equal to the length of the lower edge of the display screen 101 in the current posture, that is, the width of the basic virtual keyboard S1 matches the length of the lower edge of the display screen 101 in the current posture. The height of the basic virtual keyboard S1 is less than or equal to half the length of the left and right edges of the display screen 101 in the current posture. Figure 21 Taking the basic virtual keyboard S1 shown in Figure (b) as an example, in the second state, the width of the basic virtual keyboard S1 is less than the length of the upper / lower edge of the display screen 101 in the current posture, and the height of the basic virtual keyboard S1 is less than 1 / 2 the length of the left / right edge of the display screen 101 in the current posture.
[0217] The second-form keyboard is smaller than the first-form keyboard. Compared to the second-form basic virtual keyboard, the virtual keys on the first-form basic virtual keyboard are larger to allow users to input information. The smaller size of the second-form basic virtual keyboard also means it obstructs less of the interactive interface currently displayed on the screen, allowing users to browse more content within the interactive interface.
[0218] In some embodiments, the arrangement of virtual keys on the basic virtual keyboard of the first form can be the same as or different from the arrangement of virtual keys on the basic virtual keyboard of the second form. Taking a different arrangement as an example... Figure 21 As shown, the basic virtual keyboard S1 in the first form corresponds to the basic keyboard on a physical keyboard, and the arrangement of the virtual keys on the basic virtual keyboard S1 in the first form is similar to the arrangement of the physical keys on the basic keyboard on a physical keyboard. The arrangement of the virtual keys on the basic virtual keyboard S1 in the second form is similar to the arrangement of the virtual keys on a virtual keyboard in a traditional PC, such as a traditional laptop or a traditional tablet. In some other embodiments, the basic virtual keyboard S1 in the second form can also be a simplified keyboard of the basic virtual keyboard S1 in the first form. For example, the basic virtual keyboard S1 in the second form only includes the letter virtual keys and control virtual keys on the basic virtual keyboard S1 in the first form, but does not include the function virtual keys on the basic virtual keyboard S1 in the first form.
[0219] The basic virtual keyboard offers various display modes to correspond to different postures of electronic devices. When a user wakes up the virtual keyboard 300, the electronic device can display the corresponding basic virtual keyboard mode based on its posture. Next, combined with... Figure 22 This will be explained in detail.
[0220] Figure 22 This is a flowchart of another virtual keyboard display method provided in an embodiment of this application. The method is applied to an electronic device (such as electronic device 100) and includes the following steps.
[0221] 2201. In response to the first wake-up operation, the electronic device displays a basic virtual keyboard corresponding to the posture of the electronic device.
[0222] The first wake-up operation refers only to the wake-up operation corresponding to the virtual keyboard 300 in its initial form, which is the basic virtual keyboard. The electronic device's posture includes a folded state, a portrait state, and a landscape state. Different display forms of the basic virtual keyboard correspond to different postures of the electronic device. For example, the basic virtual keyboard has a first form and a second form; the first form corresponds to the portrait and folded states, and the second form corresponds to the landscape state. When the user wakes up the virtual keyboard 300, the electronic device can display the basic virtual keyboard in the corresponding display form based on its current posture.
[0223] For example, when a user performs a first wake-up operation on an electronic device, the electronic device responds to the first wake-up operation by determining its orientation (this process is similar to step 1901 above). When the electronic device is in a portrait orientation or folded state, it responds to the first wake-up operation by displaying the basic virtual keyboard in a first configuration. Taking the portrait orientation as an example... Figure 21 As shown in Figure (a), in portrait mode, the electronic device displays the interactive interface P through the display screen 101. In response to the first wake-up operation, it displays the basic virtual keyboard S1 in a first form, which covers the lower half of the lower half of the display screen 101. In the folded state, the implementation is the same as in the portrait mode described above, and will not be repeated here.
[0224] If the electronic device is in a vertical or folded position, it means that the posture of the electronic device is similar to that of a traditional laptop. The basic virtual keyboard in the first form is similar to the physical keyboard of a traditional laptop. Therefore, the electronic device displays the basic virtual keyboard in the first form so that users can use the basic virtual keyboard in the same way they use the physical keyboard of a traditional laptop. This will not increase the learning cost and will improve the user experience of the virtual keyboard.
[0225] When the electronic device is in landscape mode, it responds to the first wake-up operation and displays the basic virtual keyboard in a second form. For example... Figure 21 As shown in Figure (b), when the screen is in landscape mode, the electronic device displays an interactive interface P through the display screen 101. In response to the first wake-up operation, the basic virtual keyboard S1 of the second form is displayed. The basic virtual keyboard S1 of the second form occupies a part of the lower half of the screen of the display screen 101, but does not fill the lower half of the screen.
[0226] In some embodiments, the electronic device may also display a second-form basic virtual keyboard via a floating window. For example, in response to a first wake-up operation, the electronic device displays a floating window on the currently displayed interactive interface, the floating window including the second-form basic virtual keyboard. In this case, the second-form basic virtual keyboard can also be referred to as a floating virtual keyboard.
[0227] If the electronic device is in a landscape orientation, it means that the orientation of the electronic device is similar to that of a traditional tablet computer. Since the virtual key layout of the second-form basic virtual keyboard is similar to that of a virtual keyboard in a traditional tablet computer, the electronic device displays the second-form basic virtual keyboard. This allows users to use the basic virtual keyboard based on their familiarity with the virtual key layout of a traditional tablet computer, without increasing the learning curve and improving the user experience. It should be understood that in traditional tablet computers, the virtual keyboard is adapted to the width of the display screen, filling the lower half of the screen. However, in this embodiment, as... Figure 21 As shown in Figure (b), the basic virtual keyboard S1 of the second form does not fit the width of the display screen 101 in the current posture. The basic virtual keyboard S1 of the second form will not fill the lower part of the lower half of the display screen 101, but will only occupy a small part of the lower half of the screen. Therefore, compared with the virtual keyboard in the traditional tablet computer, the electronic device displays the basic virtual keyboard S1 of the second form, which covers a smaller area of the interactive interface P.
[0228] The aforementioned basic virtual keyboard supports multiple display modes. When the basic virtual keyboard is activated, it displays different modes depending on the posture of the electronic device, thus meeting the user's requirements for the basic virtual keyboard's appearance in various usage scenarios. Users can trigger the switching of the basic virtual keyboard's appearance simply by changing the posture of the electronic device, making the operation convenient and simple, thereby improving the user experience of the virtual keyboard.
[0229] In some embodiments, after performing step 2201 above, if the user performs a second wake-up operation on the electronic device, the electronic device responds to the second wake-up operation by displaying the first additional virtual keyboard on the corresponding area of the basic virtual keyboard. When the basic virtual keyboard is displayed in its first form, the process of displaying the first additional virtual keyboard on the corresponding area of the basic virtual keyboard is the same as in step 602 above, and will not be repeated here. When the basic virtual keyboard is displayed in its second form, the first additional virtual keyboard can be displayed as shown in step 602, or it can be displayed in the style of a numeric keypad. Taking the first additional virtual keyboard as a virtual numeric keypad S3 as an example, as follows... Figure 23As shown, in landscape mode, the electronic device displays an interactive interface P on the display screen 101. The interactive interface P displays a basic virtual keyboard S1 in a second form. The user performs a sliding operation F3 (i.e., a wake-up operation corresponding to the virtual numeric keypad S3) from the right edge of the display screen 101 to the left. In response to the sliding operation F3, the electronic device merges the basic virtual keyboard S1 in the second form and the shrunk virtual numeric keypad S3 into a virtual keyboard 300. When the first additional virtual keyboard is a virtual touchpad S2 or a virtual handwriting pad S4, its implementation method is the same as... Figure 27 Similarly, I will not elaborate further here.
[0230] When the basic virtual keyboard can be displayed in both a first and a second form, after displaying the basic virtual keyboard, the electronic device may currently display it in either the first or the second form. Users can also trigger a switch in the display form of the basic virtual keyboard through certain operations, as described in step 2202 below.
[0231] 2202. In response to a mode switching event for a basic virtual keyboard, the electronic device switches the display mode of the basic virtual keyboard. The display modes of the virtual keyboard include a first mode and a second mode, wherein the keyboard size of the second mode is smaller than that of the first mode.
[0232] The form-switching event is used to trigger a change in the display form of the basic virtual keyboard. Form-switching events include changes in the posture of the electronic device, such as switching from a portrait to a landscape orientation, from a landscape orientation to a portrait orientation, from a landscape orientation to a folded orientation, or from a folded orientation to a portrait orientation.
[0233] When the basic virtual keyboard in its first form is displayed, in response to the electronic device switching from portrait to landscape mode, the electronic device switches the display form of the basic virtual keyboard to a second form. Figure 21 For example, suppose the electronic device is currently in portrait mode. The electronic device displays an interactive interface P on the display screen 101, and the interactive interface P displays a basic virtual keyboard S1 in the first form. After the user rotates the electronic device by 90 degrees, the posture of the electronic device changes from portrait mode to landscape mode. In response to this posture change, the electronic device rotates the interactive interface P by 90 degrees and switches the basic virtual keyboard S1 in the first form to the basic virtual keyboard S1 in the second form to adapt to the landscape mode.
[0234] Figure 21The following description uses a basic virtual keyboard that only displays the first form before the posture changes as an example. In other embodiments, if an additional virtual keyboard is also displayed before the posture changes, the electronic device will retract the additional virtual keyboard and switch the display form of the basic virtual keyboard to the second form.
[0235] When the basic virtual keyboard in its first form is displayed, in response to the electronic device switching from a folded usage state to a landscape usage state, the electronic device switches the display form of the basic virtual keyboard to a second form. The implementation method is similar to the case where the electronic device switches from a portrait usage state to a landscape usage state, and will not be described in detail here.
[0236] When only the basic virtual keyboard in its second form is displayed, in response to the electronic device switching from landscape to portrait mode, the electronic device switches the display form of the basic virtual keyboard back to its first form. For example... Figure 21 The reverse operation process will not be described in detail here. When both the additional virtual keyboard and the basic virtual keyboard in the second form are displayed, in response to the electronic device switching from horizontal to vertical usage mode, the electronic device retracts the additional virtual keyboard and switches the display mode of the basic virtual keyboard back to the first form.
[0237] When the basic virtual keyboard in its second form is displayed, in response to the electronic device switching from a landscape mode to a folded mode, the electronic device switches the display form of the basic virtual keyboard back to the first form. Implementation methods such as switching from a landscape mode to a portrait mode are not described in detail here.
[0238] The above-mentioned method can trigger the switching of the basic virtual keyboard mode of the electronic device by changing the posture of the electronic device. The operation is convenient and simple, thereby improving the user's experience of using the virtual keyboard.
[0239] In some embodiments, the form switching event further includes a first sliding operation and a second sliding operation, which are different from each other. The difference between the first and second sliding operations can be manifested in different starting positions and / or operation directions. For example, the conditions for the first sliding operation include: the starting position is the upper edge area of the basic virtual keyboard; the operation direction is from top to bottom; and the operation distance exceeds a first distance threshold. The operation direction from top to bottom can be vertically downward or diagonally downward, for example, from the upper edge area of the basic virtual keyboard to the lower left / right corner of the display screen (or the basic virtual keyboard). The first distance threshold can be set according to the specific implementation scenario; here, this application embodiment does not limit the first distance threshold. The conditions for the second sliding operation include: the starting position is located on the basic virtual keyboard; and the operation direction is from the basic virtual keyboard to any corner of the display screen (or the half-screen where the basic virtual keyboard is located).
[0240] When only the basic virtual keyboard in its first form is displayed, the electronic device responds to the first swipe operation by switching the display form of the basic virtual keyboard to the second form. For example... Figure 24 As shown, the electronic device displays an interactive interface P on the display screen 101. The interactive interface P displays a basic virtual keyboard S1 in a first form. The user performs a sliding operation F7, starting from position x1 on the upper edge of the basic virtual keyboard S1 and sliding towards the lower right corner of the display screen 101. When the user slides to position x2, the sliding distance (i.e., the operation distance) exceeds a first distance threshold, completing the first sliding operation. When the sliding distance exceeds the first distance threshold, the electronic device responds to the sliding operation F7 by switching the display form of the basic virtual keyboard S1 from the first form to the second form. For example, the first form of the basic virtual keyboard S1 is collapsed, and the second form of the basic virtual keyboard S1 is displayed, thus achieving the form switching.
[0241] When an additional virtual keyboard and a basic virtual keyboard in a first form are displayed, the electronic device responds to the first swipe operation by switching the display state of the basic virtual keyboard to the second form using either the first form change path or the second form change path.
[0242] (1) First morphological change path
[0243] When the first additional virtual keyboard and the basic virtual keyboard in the first form are displayed, the user performs a first swipe operation on the electronic device. In response to the first swipe operation, the electronic device collapses the first additional virtual keyboard and the basic virtual keyboard in the first form, and displays the basic virtual keyboard in the second form to achieve form switching.
[0244] Taking the first additional virtual keyboard as the virtual touchpad S2 as an example, such as Figure 25 As shown, the electronic device displays an interactive interface P on the display screen 101. The interactive interface P displays a virtual keyboard 300, which includes a virtual touchpad S2 and a basic virtual keyboard S1 in a first form. The user initiates a sliding operation F7 from position x1 on the upper edge of the basic virtual keyboard S1 towards the lower right corner of the display screen 101. When the sliding distance exceeds a first distance threshold, the first sliding operation is completed. During this process, the virtual keyboard 300 remains displayed. In response to the sliding operation F7, the electronic device retracts the virtual keyboard 300 and displays the basic virtual keyboard S1 in a second form. When the first additional virtual keyboard is a virtual numeric keypad S3 or a virtual handwriting pad S4, the electronic device can also switch the display form of the basic virtual keyboard S1 in a similar manner, which will not be elaborated further here.
[0245] (2) Second morphological change path
[0246] When the first additional virtual keyboard and the basic virtual keyboard in the first form are displayed, the electronic device responds to the first sliding operation, keeps the basic virtual keyboard displayed, hides the second additional virtual keyboard, and switches the display form of the basic virtual keyboard to the second form.
[0247] Taking the first additional virtual keyboard as the virtual touchpad S2 as an example, such as Figure 26 As shown, the electronic device displays an interactive interface P on the display screen 101. The interactive interface P displays a virtual keyboard 300, which includes a virtual touchpad S2 and a basic virtual keyboard S1 in a first form. The user initiates a sliding operation F7 from position x1 on the upper edge of the basic virtual keyboard S1 towards the lower right corner of the display screen 101. When the sliding distance is less than or equal to a second distance threshold, the virtual keyboard 300 remains displayed. When sliding from position x1 to position x2, the sliding distance exceeds the second distance threshold. In response to the sliding operation F7, the electronic device retracts the virtual touchpad S2 from the virtual keyboard 300 and moves the basic virtual keyboard S1 downwards. When sliding from position x1 to position x3, the sliding distance exceeds the first distance threshold, completing the first sliding operation. In response to the first sliding operation, the electronic device switches the display mode of the basic virtual keyboard S1 to the second form. The second distance threshold is less than the first distance threshold. The second distance threshold can be set according to the specific implementation scenario; however, this embodiment does not limit the second distance threshold.
[0248] In some embodiments, in response to a first sliding operation, the electronic device randomly selects a shape change path from a first shape change path or a second shape change path to switch the basic virtual keyboard display state to the second state.
[0249] Alternatively, in other embodiments, the electronic device selects a form change path from a first form change path or a second form change path based on a specific selection mechanism to switch the display state of the basic virtual keyboard. For example, the electronic device selects a form change path from the first form change path and the second form change path based on the sliding speed of the first sliding operation to complete the form switching of the basic virtual keyboard. For example, if the sliding speed of the first sliding operation is greater than or equal to a speed threshold, the first form change path is used to switch the display state of the basic virtual keyboard; if the sliding speed of the first sliding operation is less than the speed threshold, the electronic device uses the second form change path to switch the display state of the basic virtual keyboard.
[0250] When a second additional virtual keyboard and a basic virtual keyboard in the first form are displayed, the display form of the basic virtual keyboard can be switched in a similar manner using the first form change path and / or the second form change path, which will not be elaborated here.
[0251] In some embodiments, if the electronic device supports only one of the first and second form change paths, then in response to the first sliding operation, the display form of the basic virtual keyboard is switched using that form change path.
[0252] The above describes how to switch the display mode of the basic virtual keyboard from the first mode to the second mode. Next, we will describe how to switch the display mode of the basic virtual keyboard from the second mode to the first mode.
[0253] When the basic virtual keyboard in its second form is displayed, the electronic device responds to the second swipe operation by switching the display form of the basic virtual keyboard back to its first form. Figure 27 As shown, the electronic device displays an interactive interface P on the display screen 101. The interactive interface P displays a basic virtual keyboard S1 in a second form. The user performs a sliding operation F8 (i.e., the second sliding operation) starting from the upper left corner (x1) of the basic virtual keyboard S1 and sliding towards the upper left corner of the half-screen where the basic virtual keyboard S1 is located. In response to the sliding operation F8, the electronic device switches the display form of the basic virtual keyboard S1 from the second form to the first form. For example, it hides the basic virtual keyboard S1 in the second form and displays the basic virtual keyboard S1 in the first form to achieve the form switching.
[0254] In other embodiments, in response to a second sliding operation, the electronic device enlarges the basic virtual keyboard in a second form and switches the display form of the enlarged basic virtual keyboard back to a first form, making the form switching process of the basic virtual keyboard gradual and improving the user experience. The size of the keyboard in the enlarged second form is smaller than the size of the keyboard in the first form. For example, as the sliding distance of the second sliding operation increases, the electronic device enlarges the basic virtual keyboard in the second form. When the sliding distance exceeds a third distance threshold, the electronic device switches the display form of the basic virtual keyboard from the second form back to the first form. This makes the display process of the basic virtual keyboard appear animated, enhancing the user experience.
[0255] by Figure 28For example, the electronic device displays an interactive interface P on the display screen 101. The interactive interface P displays a basic virtual keyboard S1 in a second form. The user starts from the upper left corner (x1) of the basic virtual keyboard S1 and performs a sliding operation F8 (i.e., the second sliding operation) to slide towards the upper left corner of the half-screen where the basic virtual keyboard S1 is located. As the sliding distance increases, the electronic device enlarges the basic virtual keyboard S1 in the second form. When the sliding reaches position x2, the sliding distance (i.e., the operation distance) exceeds a third distance threshold, the basic virtual keyboard S1 in the second form collapses, and the basic virtual keyboard S1 in the first form is displayed to achieve form switching. The third distance threshold can be set according to the specific implementation scenario. Here, this application embodiment does not limit the third distance threshold.
[0256] The above-mentioned different sliding operations can trigger the electronic device to switch the form of the basic virtual keyboard. The operation is simple and convenient, which can improve the user's experience of using the virtual keyboard.
[0257] Step 2202 above is an optional step. If no basic virtual keyboard mode switching event occurs, the electronic device will not execute step 2202.
[0258] Figure 22 The method provided in the illustrated embodiment displays a basic virtual keyboard in response to a wake-up operation (i.e., a first wake-up operation) that corresponds to the posture of the electronic device. Different postures of the electronic device correspond to different display forms of the basic virtual keyboard. In this way, it is possible to display different forms of the basic virtual keyboard in different postures of the electronic device when the virtual keyboard is woken up. This variety of display methods enhances the user experience. Furthermore, by triggering a basic virtual keyboard posture switching event, the electronic device switches the display form of the basic virtual keyboard, providing more display forms and meeting the user's needs for different display forms of the basic virtual keyboard in different application scenarios.
[0259] The above Figure 22 This description uses a basic virtual keyboard having both a first and a second form as an example. In other embodiments, the basic virtual keyboard has only one of the first and second display forms. In this case, the electronic device responds to the first wake-up operation and displays the basic virtual keyboard in that display form. Taking the basic virtual keyboard having only the second form as an example, the electronic device responds to the first wake-up operation and displays the basic virtual keyboard in the second form. At this time, the posture of the electronic device can be a folded state, a horizontal use state, or a vertical use state.
[0260] The above Figure 6 , Figure 13 as well as Figure 19The process of waking up the attached virtual keyboard was introduced. After waking up the attached virtual keyboard, the user can also close it through certain operations. The following section will combine... Figure 29 This will be explained in detail.
[0261] Figure 29 This is a flowchart of a virtual keyboard display method provided in an embodiment of this application. The method uses an electronic device, which may be the electronic device 100 described above. The method includes the following steps.
[0262] 2901. In response to the first wake-up operation, the electronic device displays the basic virtual keyboard.
[0263] Step 2901 is similar to step 601 or step 1301 above. Therefore, this embodiment of the application will not repeat step 2901.
[0264] 2902. In response to the second wake-up operation, the electronic device displays a first additional virtual keyboard on the corresponding area of the basic virtual keyboard, and the first additional virtual keyboard corresponds to the operation direction of the second wake-up operation.
[0265] Step 2902 is similar to step 602 or step 1302 above. Therefore, this embodiment of the application will not repeat step 2902.
[0266] 2903. In response to a collapse operation, the electronic device collapses the first additional virtual keyboard, the first additional virtual keyboard corresponding to the operation direction of the collapse operation.
[0267] Similar to the wake-up operation corresponding to the first additional virtual keyboard, the operation direction of the first additional virtual keyboard and the collapse operation can be understood as follows: different additional virtual keyboards correspond to collapse operations in different operation directions, and users can close the corresponding additional virtual keyboard based on the collapse operation in different operation directions.
[0268] The collapse operation for each additional virtual keyboard is also designed based on the positional relationship between the additional virtual keyboard and the basic virtual keyboard. For example, different additional virtual keyboards correspond to different collapse operations, and the collapse operation for any additional virtual keyboard is the inverse operation of the wake-up operation for that additional virtual keyboard. As shown in Table 2 below.
[0269] Table 2
[0270]
[0271] When only the first additional virtual keyboard and the basic virtual keyboard are displayed, if the user performs a collapse operation corresponding to the first additional virtual keyboard on the electronic device, the electronic device responds to the collapse operation corresponding to the first additional virtual keyboard by maintaining the display of the basic virtual keyboard, collapsing the first additional virtual keyboard, and enlarging or moving the basic virtual keyboard down.
[0272] Taking the first additional virtual keyboard as the virtual touchpad S2 as an example, such as Figure 30 As shown in the figure, the electronic device displays an interactive interface P on the display screen 101. The interactive interface P displays a virtual keyboard 300 including a virtual touchpad S2 and a basic virtual keyboard S1. The user starts from a certain position on the virtual keyboard 300 and performs a sliding operation F2 to slide towards the lower edge of the display screen 101 (i.e., the virtual touchpad S2 is collapsed). In response to the sliding operation F2, the electronic device collapses the virtual touchpad S2 and moves the basic virtual keyboard S1 downward on the interactive interface P.
[0273] After retracting the first additional virtual keyboard, the basic virtual keyboard is moved downwards to the lower part of the display screen for easier user operation, thereby improving the user experience of the basic virtual keyboard.
[0274] Taking the first additional virtual keyboard as the virtual numeric keypad S3 as an example, such as Figure 31 and Figure 32 As shown, the electronic device displays an interactive interface P on the display screen 101. The interactive interface P displays a virtual numeric keypad S3 and a basic virtual keypad S1. The user starts from a certain position on the virtual numeric keypad S3 and performs a sliding operation F4 (i.e., the collapse operation corresponding to the virtual numeric keypad S3) to slide towards the right edge of the display screen 101. In response to the sliding operation F4, the electronic device collapses the virtual numeric keypad S3 and enlarges the basic virtual keypad S1, so that the basic virtual keypad S1 fills the lower half of the lower half of the display screen 101.
[0275] Taking the S4 virtual handwriting tablet as an example, with the first additional virtual keyboard as the virtual keyboard, as follows: Figure 33 As shown, the electronic device displays an interactive interface P on the display screen 101. The interactive interface P displays a virtual keyboard 300 including a virtual handwriting pad S4 and a basic virtual keyboard S1. When the user slides the virtual handwriting pad S4 from a certain position to the left edge of the display screen 101 in a sliding operation F6 (i.e., the collapse operation corresponding to the virtual handwriting pad S4), the electronic device responds to the sliding operation F6 by collapsing the virtual handwriting pad S4 and enlarging the basic virtual keyboard S1 so that the basic virtual keyboard S1 fills the lower half of the lower half of the display screen 101.
[0276] After collapsing the first additional virtual keyboard, the user can enlarge the basic virtual keyboard to increase the size of the virtual keys on the basic virtual keyboard, making it easier for the user to operate and thus improving the user experience of the basic virtual keyboard.
[0277] The above description uses a sliding operation as an example to illustrate the collapse operation corresponding to the additional virtual keyboard. In other embodiments, the collapse operation corresponding to any additional virtual keyboard can also be an operation of shaking a certain edge of the electronic device, where the edge is located in the direction of the additional virtual keyboard relative to the basic virtual keyboard. Taking the additional virtual keyboard as a virtual numeric keypad S3 as an example, the direction of the virtual numeric keypad S3 relative to the basic virtual keyboard is to the right. When the user performs a shaking operation by shaking the right edge of the electronic device, the electronic device responds to the shaking operation by maintaining the display of the basic virtual keyboard S1, collapsing the virtual numeric keypad S3, and enlarging or moving the basic virtual keyboard S1 downwards.
[0278] When only the second additional virtual keyboard and the basic virtual keyboard are displayed, the electronic device can also collapse the second additional virtual keyboard and zoom in or move the basic virtual keyboard down in a similar manner in response to the collapse operation corresponding to the second additional virtual keyboard.
[0279] When only the first additional virtual keyboard, the second additional virtual keyboard, and the basic virtual keyboard are displayed, the electronic device can also, in response to a collapse operation corresponding to the first additional virtual keyboard, collapse the second additional virtual keyboard and enlarge or move the basic virtual keyboard downwards in a similar manner. Similarly, in response to a collapse operation corresponding to the second additional virtual keyboard, the electronic device can also collapse the second additional virtual keyboard and enlarge or move the basic virtual keyboard downwards in a similar manner.
[0280] pass Figure 29 , Figure 25 and Figure 16 It is understood that both the first sliding operation and the corresponding collapse operation of the first additional virtual keyboard can trigger the electronic device to maintain the display of the basic virtual keyboard and collapse the additional virtual keyboard, or collapse both the basic virtual keyboard and the first additional virtual keyboard. In some embodiments, both the first sliding operation and the corresponding collapse operation of the first additional virtual keyboard can be referred to as target operations to trigger the collapse of the first additional virtual keyboard. In this way, users can collapse the additional virtual keyboard they do not want to use temporarily through target operations, which is simple and convenient and can improve the user experience of the virtual keyboard.
[0281] In some embodiments, the display position of each additional virtual keyboard can be configured. For example, users can configure the positional relationship between each additional virtual keyboard and the basic virtual keyboard through the electronic device according to their own operating habits. The electronic device updates the correspondence between each additional virtual keyboard and the collapse operation according to the positional relationship configured by the user, so that users can close the corresponding additional virtual keyboard according to their own operating habits based on the corresponding collapse operation, thereby improving the user's experience of using the virtual keyboard.
[0282] Figure 29 The method provided in this embodiment associates the operation direction of the collapse operation with the attached virtual keyboard. By using the operation direction to correspond to the collapse operation of the attached virtual keyboard, the electronic device can be triggered to collapse the attached virtual keyboard. The operation is simple and convenient, and can improve the user's experience of using the virtual keyboard.
[0283] In some other embodiments, the wake-up operation of the additional virtual keyboard may not be related to the positional relationship between the additional virtual keyboard and the basic virtual keyboard. For example, the additional virtual keyboard on the left can be woken up by swiping down, using an arc gesture, or in other ways.
[0284] In some other embodiments, the collapse operation of the additional virtual keyboard may not be related to the positional relationship between the additional virtual keyboard and the basic virtual keyboard. For example, the additional virtual keyboard on the left can be closed by swiping down, using an arc gesture, or otherwise.
[0285] It should be understood that the above Figure 4 , Figures 7 to 12 , Figures 14 to 18 , Figure 20 , Figure 21 , Figures 30 to 33 The layout of the virtual keys on the S1 Figures 24 to 28 The layout of the virtual keys on the S1 in its first form is consistent with... Figure 3 The layout of the virtual keys on the S1 is the same. Figure 4 , Figure 9 , Figure 11 , Figure 12 , Figures 14 to 18 , Figure 31 and Figure 32 The layout of the virtual keys on the S3 and Figure 3 The layout of the virtual keys is the same as that of the S3.
[0286] The methods of the embodiments of this application have been described above; the apparatus of the embodiments of this application will be described below. It should be understood that the apparatus described below has any of the functions of the electronic device in the above methods. (The above is in conjunction with...) Figures 6 to 33 The method for displaying a virtual keyboard according to embodiments of this application is described in detail. Based on the same inventive concept, the following will be combined with... Figure 34This describes an apparatus capable of implementing the method. It should be understood that the technical features described in the method embodiments also apply to the following apparatus embodiments.
[0287] Figure 34 This application provides a schematic diagram of the structure of a virtual keyboard display device. Figure 34 The device 3400 shown can be the electronic device described above, or it can be a component within an electronic device, used to execute the virtual keyboard display method provided in the embodiments of this application. For example... Figure 34 As shown, the device 3400 includes:
[0288] The first display module 3401 is used to display a basic virtual keyboard in response to the first wake-up operation;
[0289] The second display module 3402 is used to respond to the second wake-up operation by displaying the first additional virtual keyboard on the corresponding area of the basic virtual keyboard. The first additional virtual keyboard corresponds to the operation direction of the second wake-up operation.
[0290] Optionally, the first display module 3401 is used to display a basic virtual keyboard corresponding to the posture of the electronic device in response to the first wake-up operation.
[0291] Optionally, the first display module 3401 is configured to: display a basic virtual keyboard in a first form in response to a first wake-up operation when the electronic device is in a vertical or folded state; or, display a basic virtual keyboard in a second form in response to a first wake-up operation when the electronic device is in a horizontal state, wherein the keyboard size of the second form is smaller than that of the first form.
[0292] Optionally, the basic virtual keyboard is displayed in a first form or a second form, wherein the keyboard size in the second form is smaller than that in the first form.
[0293] Optionally, the second display module 3402 is used to display a first virtual keyboard, which includes a merged basic virtual keyboard and a first additional virtual keyboard; or, to display a target local keyboard area of the first virtual keyboard, which includes a local keyboard area of the basic virtual keyboard and the first additional virtual keyboard.
[0294] Optionally, the second display module 3402 is used to display the basic virtual keyboard and the first additional virtual keyboard as independent virtual keyboards respectively.
[0295] Optionally, the second display module 3402 is used to display the basic virtual keyboard and the first additional virtual keyboard side by side; or, to overlay the first additional virtual keyboard on the basic virtual keyboard.
[0296] Optionally, the second display module 3402 is used to shrink the basic virtual keyboard and display the first additional virtual keyboard in the area vacated after the basic virtual keyboard is shrunk; or, to move the basic virtual keyboard upward and display the first additional virtual keyboard in the area vacated after the basic virtual keyboard is moved.
[0297] Optionally, the first display module 3401 is configured to display a basic virtual keyboard and a second additional virtual keyboard in response to a first wake-up operation when the electronic device is in a horizontal use state.
[0298] Optionally, the second display module 3402 is used to retract the second additional virtual keyboard and display the first additional virtual keyboard on the corresponding area of the base virtual keyboard; or, to display the second virtual keyboard, which includes the merged base virtual keyboard, the first additional virtual keyboard, and the second additional virtual keyboard.
[0299] Optionally, the device 3400 further includes: a switching module, configured to switch the display mode of the basic virtual keyboard in response to a mode switching event for the basic virtual keyboard, the display modes of the virtual keyboard including a first mode and a second mode, wherein the keyboard size of the second mode is smaller than the keyboard size of the first mode.
[0300] Optionally, the form switching event includes a first sliding operation and a second sliding operation, the first sliding operation and the second sliding operation being different; the switching module is used to switch the display form of the basic virtual keyboard to the second form in response to the first sliding operation when the basic virtual keyboard in the first form is displayed; and to switch the display form of the basic virtual keyboard back to the first form in response to the second sliding operation when the basic virtual keyboard in the second form is displayed.
[0301] Optionally, a switching module is used to respond to a second sliding operation, enlarge the basic virtual keyboard in the second form, and switch the display form of the enlarged basic virtual keyboard back to the first form.
[0302] Optionally, the form switching event includes a change in the posture of the electronic device; the switching module is used to switch the display form of the basic virtual keyboard to a second form in response to the electronic device switching from a vertical usage state to a horizontal usage state when the basic virtual keyboard in the first form is displayed; and to switch the display form of the basic virtual keyboard back to the first form in response to the electronic device switching from a horizontal usage state to a vertical usage state when the basic virtual keyboard in the second form is displayed.
[0303] Optionally, the second display module 3402 is also configured to, in response to a target operation, maintain the display of the basic virtual keyboard and retract the first additional virtual keyboard; or, in response to a target operation, retract both the basic virtual keyboard and the first additional virtual keyboard.
[0304] Optionally, the basic virtual keyboard is displayed in a first form, and the target operation is a form switching event for the basic virtual keyboard. The device 3400 also includes a switching module, which is used to switch the display form of the basic virtual keyboard to a second form after the first additional virtual keyboard is retracted. The keyboard size of the second form is smaller than the keyboard size of the first form.
[0305] Optionally, the basic virtual keyboard is displayed in a first form, and the target operation is a form switching operation for the basic virtual keyboard. The device 3400 further includes a switching module for displaying the basic virtual keyboard in a second form after the basic virtual keyboard and the first additional virtual keyboard are collapsed. The keyboard size in the second form is smaller than the keyboard size in the first form.
[0306] Optionally, the device 3400 further includes a collapse module for collapsing a first additional virtual keyboard in response to a collapse operation, the first additional virtual keyboard corresponding to the operation direction of the collapse operation.
[0307] Optionally, the second display module 3402 is further configured to, after retracting the basic virtual keyboard and the first additional virtual keyboard, enlarge the basic virtual keyboard if the first additional virtual keyboard is located to the left or right of the basic virtual keyboard; and move the basic virtual keyboard downward if the first additional virtual keyboard is located below the basic virtual keyboard.
[0308] Optionally, the basic virtual keyboard and the first additional virtual keyboard each support different input modes.
[0309] Optionally, if the first additional virtual keyboard is a virtual numeric keypad, the first additional virtual keyboard is displayed to the left of the basic virtual keyboard; if the first additional virtual keyboard is a virtual touchpad, the first additional virtual keyboard is displayed below the basic virtual keyboard; if the first additional virtual keyboard is a virtual handwriting pad, the first additional virtual keyboard is displayed to the right of the basic virtual keyboard.
[0310] Optionally, the display location of the first additional virtual keyboard can be configured by the user.
[0311] Optionally, the device 3400 further includes an adjustment module for adjusting the display position of the first additional virtual keyboard in response to a position adjustment operation on the first additional virtual keyboard.
[0312] It should be understood that device 3400 corresponds to the electronic device in the above method embodiments. The modules in device 3400 and the other operations and / or functions described above are various steps and methods implemented by the electronic device in the above method embodiments. For specific details, please refer to the above method embodiments. For the sake of brevity, they will not be repeated here.
[0313] It should be understood that when displaying the virtual keyboard, the device 3400 is only illustrating the division of the above-described functional modules. In practical applications, the functions described above can be assigned to different functional modules as needed, that is, the internal structure of the device 3400 can be divided into different functional modules to complete all or part of the functions described above. Furthermore, the device 3400 provided in the above embodiments and the method embodiments belong to the same concept, and its specific implementation process is detailed in the above method embodiments, which will not be repeated here.
[0314] In an exemplary embodiment, a computer-readable storage medium is also provided, such as a memory including program code that can be executed by a processor in an electronic device to perform the virtual keyboard display method in the various method embodiments described above. For example, the computer-readable storage medium is a non-transitory computer-readable storage medium, such as a read-only memory (ROM), random access memory (RAM), compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage device.
[0315] This application also provides a computer program product or computer program, which includes program code. The computer instructions are stored in a computer-readable storage medium. The processor of the electronic device reads the program code from the computer-readable storage medium and executes the program code, causing the electronic device to perform the virtual keyboard display method in the above-described method embodiments.
[0316] In addition, this application also provides an apparatus, which may specifically be a chip, component or module. The apparatus may include a connected processor and a memory. The memory is used to store computer execution instructions. When the apparatus is running, the processor can execute the computer execution instructions stored in the memory to cause the chip to execute the virtual keyboard display method in the above method embodiments.
[0317] In this embodiment, the apparatus, device, computer-readable storage medium, computer program product or chip are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects of the corresponding methods provided above, and will not be repeated here.
[0318] In the description of the embodiments in this application, unless otherwise stated, " / " means "or". For example, A / B can mean A or B. The term "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Furthermore, "at least one" refers to one or more, and "multiple" refers to two or more. The terms "first," "second," etc., do not limit the quantity or execution order, and the terms "first," "second," etc., do not necessarily imply that they are different.
[0319] In this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0320] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.), and signals involved in the embodiments of this application are all authorized by the user or fully authorized by all parties, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, the configuration information of the virtual keyboard involved in the embodiments of this application was obtained under full authorization.
[0321] All of the above-mentioned optional technical solutions can be combined in any way to form optional embodiments of this disclosure, and will not be described in detail here.
[0322] The above description is merely an optional embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the embodiments of this application should be included within the protection scope of this application.
Claims
1. A display method of a virtual keyboard, characterized by, Applied to electronic devices, the method includes: In response to the first wake-up operation, the basic virtual keyboard is displayed; In response to the second wake-up operation, a first additional virtual keyboard is displayed on the corresponding area of the basic virtual keyboard, and the first additional virtual keyboard corresponds to the operation direction of the second wake-up operation.
2. The method of claim 1, wherein, The response to the first wake-up operation, displaying the basic virtual keyboard, includes: In response to the first wake-up operation, the basic virtual keyboard corresponding to the posture of the electronic device is displayed.
3. The method of claim 2, wherein, The basic virtual keyboard that is displayed in response to the first wake-up operation and corresponds to the posture of the electronic device includes: When the electronic device is in a vertical or folded state, in response to a first wake-up operation, the basic virtual keyboard is displayed in a first configuration; or, When the electronic device is in a horizontal use state, in response to a first wake-up operation, the basic virtual keyboard is displayed in a second form, the keyboard size of the second form being smaller than the keyboard size of the first form.
4. The method of claim 1, wherein, The basic virtual keyboard is displayed in a first form or a second form, wherein the keyboard size in the second form is smaller than that in the first form.
5. The method according to any one of claims 1-4, characterized in that, Displaying the first additional virtual keyboard on the corresponding area of the basic virtual keyboard includes: Display a first virtual keyboard, which includes the merged basic virtual keyboard and the first additional virtual keyboard; or... Displays a target local keyboard area of the first virtual keyboard, the target local keyboard area including the local keyboard area of the base virtual keyboard and the first additional virtual keyboard.
6. The method according to any one of claims 1-4, characterized in that, Displaying the first additional virtual keyboard on the corresponding area of the basic virtual keyboard includes: The basic virtual keyboard and the first additional virtual keyboard are displayed as independent virtual keyboards, respectively.
7. The method of claim 6, wherein, The step of displaying the basic virtual keyboard and the first additional virtual keyboard as independent virtual keyboards includes: Display the basic virtual keyboard side-by-side with the first additional virtual keyboard; or... The first additional virtual keyboard is displayed overlaid on the basic virtual keyboard.
8. The method according to any one of claims 1-4, characterized in that, Displaying the first additional virtual keyboard on the corresponding area of the basic virtual keyboard includes: Shrink the basic virtual keyboard, and display the first additional virtual keyboard in the area freed up by the shrinking of the basic virtual keyboard; or, Move the base virtual keyboard upwards, and display the first additional virtual keyboard in the area freed up after the base virtual keyboard is moved.
9. The method according to claim 2, characterized in that, The basic virtual keyboard that is displayed in response to the first wake-up operation and corresponds to the posture of the electronic device includes: When the electronic device is in landscape mode, in response to a first wake-up operation, the basic virtual keyboard and the second additional virtual keyboard are displayed.
10. The method according to claim 9, characterized in that, Displaying the first additional virtual keyboard on the corresponding area of the basic virtual keyboard includes: Collapse the second additional virtual keyboard and display the first additional virtual keyboard in the corresponding area of the base virtual keyboard; or, Display a second virtual keyboard, which includes the merged base virtual keyboard, the first additional virtual keyboard, and the second additional virtual keyboard.
11. The method according to any one of claims 1-10, characterized in that, After displaying the basic virtual keyboard in response to the first wake-up operation, the method further includes: In response to a mode switching event of the basic virtual keyboard, the display mode of the basic virtual keyboard is switched. The display modes of the virtual keyboard include a first mode and a second mode, wherein the keyboard size of the second mode is smaller than that of the first mode.
12. The method according to claim 11, characterized in that, The form switching event includes a first sliding operation and a second sliding operation, and the first sliding operation and the second sliding operation are different; The step of switching the display mode of the basic virtual keyboard in response to a mode switching event includes: When the basic virtual keyboard in the first form is displayed, in response to the first sliding operation, the display form of the basic virtual keyboard is switched to the second form; When the basic virtual keyboard in the second form is displayed, in response to the second swipe operation, the display form of the basic virtual keyboard is switched to the first form.
13. The method according to claim 12, characterized in that, The step of switching the display mode of the basic virtual keyboard to the first mode in response to the second sliding operation includes: In response to the second sliding operation, the basic virtual keyboard in the second form is enlarged, and the display form of the enlarged basic virtual keyboard is switched back to the first form.
14. The method according to claim 11, characterized in that, The form-switching event includes a change in the posture of the electronic device; the step of switching the display form of the basic virtual keyboard in response to the form-switching event includes: When the basic virtual keyboard of the first form is displayed, in response to the electronic device switching from vertical use mode to horizontal use mode, the display form of the basic virtual keyboard is switched to the second form; When the basic virtual keyboard in the second form is displayed, in response to the electronic device switching from a horizontal usage state to a vertical usage state, the display form of the basic virtual keyboard is switched to the first form.
15. The method according to claim 1, characterized in that, After displaying the first additional virtual keyboard on the corresponding area of the basic virtual keyboard, the method further includes: In response to the target operation, maintain the display of the basic virtual keyboard and retract the first additional virtual keyboard; or, In response to the target operation, the base virtual keyboard and the first additional virtual keyboard are collapsed.
16. The method according to claim 15, characterized in that, The basic virtual keyboard is displayed in a first form, the target operation is a form switching event for the basic virtual keyboard, and after the first additional virtual keyboard is collapsed, the method further includes: The display mode of the basic virtual keyboard is switched to a second mode, where the keyboard size in the second mode is smaller than that in the first mode.
17. The method according to claim 15, characterized in that, The basic virtual keyboard is displayed in a first form, the target operation is a form switching operation for the basic virtual keyboard, and after collapsing the basic virtual keyboard and the first additional virtual keyboard, the method further includes: The basic virtual keyboard is displayed in a second form, wherein the keyboard size in the second form is smaller than that in the first form.
18. The method according to any one of claims 1-14, characterized in that, After displaying the first additional virtual keyboard on the corresponding area of the basic virtual keyboard, the method further includes: In response to the collapse operation, the first additional virtual keyboard is collapsed, and the first additional virtual keyboard corresponds to the operation direction of the collapse operation.
19. The method according to claim 18, characterized in that, After retracting the first additional virtual keyboard, the method further includes: If the first additional virtual keyboard is located to the left or right of the basic virtual keyboard, enlarge the basic virtual keyboard; If the first additional virtual keyboard is located below the base virtual keyboard, move the base virtual keyboard downwards.
20. The method according to any one of claims 1-19, characterized in that, The basic virtual keyboard and the first additional virtual keyboard each support different input modes.
21. The method according to any one of claims 1-20, characterized in that, When the first additional virtual keyboard is a virtual numeric keypad, the first additional virtual keyboard is displayed to the left of the basic virtual keyboard; When the first additional virtual keyboard is a virtual touchpad, the first additional virtual keyboard is displayed below the basic virtual keyboard; When the first additional virtual keyboard is a virtual handwriting tablet, the first additional virtual keyboard is displayed to the right of the basic virtual keyboard.
22. The method according to any one of claims 1-21, characterized in that, The display position of the first additional virtual keyboard can be configured by the user.
23. The method according to any one of claims 1-22, characterized in that, After displaying the first additional virtual keyboard on the corresponding area of the basic virtual keyboard, the method further includes: In response to the position adjustment operation of the first additional virtual keyboard, the display position of the first additional virtual keyboard is adjusted.
24. A display device for a virtual keyboard, characterized in that, The device includes: The first display module is used to display a basic virtual keyboard in response to the first wake-up operation; The second display module is used to display a first additional virtual keyboard on the corresponding area of the basic virtual keyboard in response to the second wake-up operation. The first additional virtual keyboard corresponds to the operation direction of the second wake-up operation.
25. The apparatus according to claim 24, characterized in that, The first display module is used for: In response to the first wake-up operation, the basic virtual keyboard corresponding to the posture of the electronic device is displayed.
26. The apparatus according to claim 25, characterized in that, The first display module is used for: When the electronic device is in a vertical or folded state, in response to a first wake-up operation, the basic virtual keyboard is displayed in a first configuration; or, When the electronic device is in a horizontal use state, in response to a first wake-up operation, the basic virtual keyboard is displayed in a second form, the keyboard size of the second form being smaller than the keyboard size of the first form.
27. The apparatus according to claim 25, characterized in that, The first display module is used for: When the electronic device is in landscape mode, in response to a first wake-up operation, the basic virtual keyboard and the second additional virtual keyboard are displayed.
28. The apparatus according to any one of claims 24-27, characterized in that, The device further includes: A switching module is used to switch the display mode of the basic virtual keyboard in response to a mode switching event of the basic virtual keyboard. The display modes of the virtual keyboard include a first mode and a second mode, wherein the keyboard size of the second mode is smaller than the keyboard size of the first mode.
29. An electronic device, characterized in that, The electronic device includes a processor for executing program code that causes the electronic device to perform the method as described in any one of claims 1 to 23.
30. A computer-readable storage medium, characterized in that, The storage medium stores at least one piece of program code, which is read by a processor to cause the electronic device to perform the method as described in any one of claims 1 to 23.