Virtual keyboard switching method and electronic device
Patent Information
- Application Number
- PCT/CN2025/146860
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-03-28
- Filing Date
- 2025-12-29
- Publication Date
- 2026-10-01
Smart Images

Figure CN2025146860_01102026_PF_FP_ABST
Abstract
Description
Virtual keyboard switching methods and electronic devices
[0001] This application claims priority to Chinese Patent Application No. 202510394777.9, filed on March 28, 2025, entitled "Virtual Keyboard Switching Method and Electronic Device", the entire contents of which are incorporated herein by reference. Technical Field
[0002] This application relates to the field of terminal technology, and in particular to a virtual keyboard switching method and an electronic device. Background Technology
[0003] With the rapid development of display hardware and touchscreen technology, more and more electronic devices are equipped with touchscreens. To improve the portability of electronic devices, virtual keyboards are also included. Virtual keyboards offer a wide variety of keyboard types, allowing users to switch flexibly between different virtual keyboards according to their needs.
[0004] However, switching between virtual keyboards relies on specific switching operations, such as gestures, and these operations differ between different virtual keyboards. Users need to practice or memorize these operations to switch between virtual keyboards effectively. For users, the diverse switching operations increase the learning curve and operational difficulty, making it difficult to quickly master the operations and switch between different virtual keyboards, resulting in a poor user experience. Summary of the Invention
[0005] To address the aforementioned technical problems, this application provides a virtual keyboard switching method and an electronic device, allowing the electronic device to switch between different virtual keyboards using the same operation. This method is easy to learn and remember, reducing operational difficulty and improving the user experience.
[0006] To achieve the above objectives, this application adopts the following technical solution:
[0007] In a first aspect, this application provides a virtual keyboard switching method applied to an electronic device. The method includes: displaying a first virtual keyboard; receiving a first touch operation input by a user, the first touch operation being used to trigger switching of the displayed virtual keyboard; displaying a second virtual keyboard in response to the first touch operation; receiving a second touch operation input by a user, the second touch operation being used to trigger switching of the displayed virtual keyboard, the second touch operation being the same as the first touch operation; and displaying a third virtual keyboard in response to the second touch operation.
[0008] This application utilizes the same touch operation to seamlessly switch between virtual keyboards of different types. It is easy to learn and remember, reducing operational difficulty, improving switching efficiency, and enhancing the user experience.
[0009] According to the first aspect, or any implementation of the first aspect above, after displaying the third virtual keyboard, the method further includes: receiving a third touch operation input by the user, the third touch operation being used to trigger switching of the displayed virtual keyboard, and the third touch operation being different from the first touch operation; and displaying a second virtual keyboard in response to the third touch operation.
[0010] In some examples, after displaying the second virtual keyboard, the method further includes: receiving a fourth touch operation input by the user, the fourth touch operation being used to trigger a switching of the displayed virtual keyboard, and the fourth touch operation being the same as the third touch operation; and displaying the first virtual keyboard in response to the fourth touch operation.
[0011] According to the first aspect, or any implementation of the first aspect above, the method further includes: after receiving a first touch operation input by a user, determining a second virtual keyboard based on the area where the operation position of the first touch operation is located and a preset correspondence; wherein the preset correspondence includes a correspondence between different areas and different virtual keyboards; different areas correspond to different areas pre-divided in the first virtual keyboard.
[0012] The operation position of the first touch operation can be either the starting position or the ending position. The starting position refers to the touch point position when the user begins to input the first touch operation, i.e., when the operating finger or stylus first touches the display screen. The ending position refers to the touch point position when the user ends the first touch operation on the display screen, i.e., when the operating finger or stylus leaves the display screen.
[0013] In this application, the electronic device quickly determines the second virtual keyboard based on the area where the first touch operation is located and a preset correspondence, which can improve keyboard switching efficiency.
[0014] According to the first aspect, or any implementation of the first aspect above, in response to a first touch operation, displaying a second virtual keyboard includes: in response to the first touch operation, determining a second virtual keyboard based on the first virtual keyboard and a switching order, wherein the switching order is used to indicate the switching order between different virtual keyboards supported by the electronic device.
[0015] In some embodiments, the touch operation used to trigger the switching of the displayed virtual keyboard is a swipe operation or a zoom operation, and the swipe direction of the touch operation includes a first direction or a second direction. For example, if the touch operation is a swipe operation, the first direction can be to the right (e.g., a right swipe operation), and the second direction can be to the left (e.g., a left swipe operation); if the touch operation is a zoom operation, the first direction can be inward (e.g., a zoom-out gesture), and the second direction can be outward (e.g., a zoom-in gesture). The electronic device pre-stores the correspondence between different swipe directions and different switching directions. For example, the switching direction corresponding to the first direction is a forward switching, that is, switching to a virtual keyboard after the currently displayed virtual keyboard in the switching sequence. The switching sequence corresponding to the second direction is a reverse switching, that is, switching to a virtual keyboard before the currently displayed virtual keyboard in the switching sequence.
[0016] Specifically, the swiping direction of the touch operation on the electronic device determines the corresponding switching direction. Based on the currently displayed virtual keyboard, the switching order, and the switching direction, the virtual keyboard to be displayed is determined.
[0017] In some examples, the virtual keyboard to be displayed is the one adjacent to the currently displayed virtual keyboard in the switching sequence, corresponding to the switching direction.
[0018] For example, taking a touch operation as the first zoom-out gesture, the switching direction corresponding to this first zoom-out gesture is forward switching. The electronic device determines the virtual keyboard to be displayed as the next virtual keyboard after the currently displayed virtual keyboard in the switching sequence, based on the currently displayed virtual keyboard, the switching order, and the forward switching. Similarly, taking a touch operation as the first zoom-in gesture, the switching direction corresponding to this first zoom-in gesture is reverse switching. The electronic device determines the virtual keyboard to be displayed as the previous virtual keyboard before the currently displayed virtual keyboard in the switching sequence, based on the currently displayed virtual keyboard, the switching order, and the reverse switching.
[0019] In this application, the switching direction is dynamically determined based on the swiping direction of the touch operation to accurately switch virtual keyboards, thus improving the smoothness of the switching process. Furthermore, users can switch between different virtual keyboards using the same switching operation without needing to learn complex switching maneuvers; they only need to roughly remember the switching sequence to complete the virtual keyboard switching, simplifying the switching operation and enhancing the user experience.
[0020] According to the first aspect, or any implementation of the first aspect above, the first touch operation is a sliding operation or a zooming operation; determining the second virtual keyboard according to the first virtual keyboard and the switching order includes: determining the second virtual keyboard according to the first virtual keyboard, the switching order and the operation parameters of the first touch operation, wherein the operation parameters include the movement distance and / or the movement speed.
[0021] In other examples, the virtual keyboard to be displayed is determined based on the currently displayed virtual keyboard, the switching direction, and the operation parameters of the touch operation during the switching sequence.
[0022] The movement distance is the distance between the starting and ending positions of the user's first touch operation. The movement speed is the speed at which the user's finger or stylus leaves the display screen after ending the first touch operation. This movement speed can be instantaneous or average.
[0023] Specifically, the swiping direction of the touch operation on the electronic device determines the corresponding switching direction. Based on the currently displayed virtual keyboard, switching order, switching direction, and touch operation swiping parameters, the virtual keyboard to be displayed is determined.
[0024] For example, taking a touch operation as the second zoom-out gesture, the switching direction corresponding to this second zoom-out gesture is forward switching. The electronic device determines, based on the currently displayed virtual keyboard, the switching order, the forward switching, and the movement distance of the second zoom-out gesture, that the virtual keyboard to be displayed is the one following the currently displayed virtual keyboard in the switching order, corresponding to the movement distance of the second zoom-out gesture. Similarly, taking a touch operation as the second zoom-in gesture, the switching direction corresponding to this second zoom-in gesture is reverse switching. The electronic device determines, based on the currently displayed virtual keyboard, the switching order, the reverse switching, and the movement speed of the second zoom-in gesture, that the virtual keyboard to be displayed is the one preceding the currently displayed virtual keyboard in the switching order, corresponding to the movement distance of the second zoom-in gesture.
[0025] In this application, the electronic device can dynamically adjust the virtual keyboard to be displayed based on the operation parameters of the touch operation, improving the flexibility and adaptability of the interaction, thereby enhancing the convenience and accuracy of the user experience. Different operation parameters for the same touch operation correspond to different virtual keyboards, improving the intelligence and efficiency of virtual keyboard switching.
[0026] In other examples, the touch operation used to trigger the switching of the virtual keyboard is a touch operation, such as a click or double-click, which does not involve displacement. The electronic device pre-stores preset switching directions, such as forward or reverse switching. Specifically, after receiving a user's touch operation to trigger the switching of the virtual keyboard, the system determines the virtual keyboard to be displayed based on the currently displayed virtual keyboard, the preset switching direction, and the switching order. The virtual keyboard to be displayed is the one adjacent to the currently displayed virtual keyboard in the switching order, corresponding to that switching direction.
[0027] In some embodiments, the touch operation used to trigger the switching of the virtual keyboard is a touch operation, such as a click or double-click, which does not involve displacement, and the electronic device displays functional controls with different switching directions. For example, a "Previous / Zoom In" control corresponds to a reverse switching direction, and a "Next / Zoom Out" control corresponds to a forward switching direction. The electronic device responds to the user's touch operation on different functional controls, determines the switching direction, and determines the virtual keyboard to be displayed based on the currently displayed virtual keyboard, the switching order, and the switching direction.
[0028] According to the first aspect, or any implementation of the first aspect above, before displaying the second virtual keyboard, the method further includes: displaying a first preview image of the second virtual keyboard; wherein the display position of the first preview image is related to the operation position of the first touch operation, and / or, the display size of the first preview image is related to the operation parameters of the first touch operation.
[0029] According to the first aspect, or any implementation of the first aspect above, before displaying the second virtual keyboard, the method further includes: during the execution of the first touch operation, displaying a second preview image of the virtual keyboard corresponding to the current operation parameters of the first touch operation in the switching sequence; wherein the display position of the second preview image is related to the current operation position of the first touch operation, and / or, the display size of the second preview image is related to the current operation parameters of the first touch operation.
[0030] In this application, the electronic device displays a real-time preview of the virtual keyboard when switching virtual keyboards, allowing users to intuitively see the switching effect and improving the smoothness and intuitiveness of virtual keyboard switching. Furthermore, dual-screen computers can dynamically switch between virtual keyboards and their previews based on the current touch operation, allowing multiple virtual keyboards to be switched with a single touch operation, thus improving the flexibility and efficiency of virtual keyboard switching. Real-time feedback based on changes in touch operation parameters and position enhances system intelligence, resulting in a smoother user experience and improved control and satisfaction.
[0031] According to the first aspect, or any implementation of the first aspect above, the switching order includes one or more of the following: a preset switching order between different virtual keyboards; a personalized switching order between different virtual keyboards generated based on the user's historical behavior data of using different virtual keyboards; and a custom switching order between different virtual keyboards generated in response to user-defined operations.
[0032] According to the first aspect, or any implementation of the first aspect above, the display position of the second virtual keyboard is related to the operation position where the user performs the first touch operation; the display size of the second virtual keyboard is related to the operation parameters of the user performing the first touch operation.
[0033] In this application, the display effect of the second virtual keyboard is related to the first touch operation, which can provide accurate display effect and improve user experience.
[0034] According to the first aspect, or any implementation of the first aspect above, the method further includes: after receiving the first touch operation input by the user, determining a second virtual keyboard according to the text type of the input text, wherein the second virtual keyboard corresponds to the text type.
[0035] In this application, the second virtual keyboard is determined based on the text type of the input text, which expands the way virtual keyboard switching is determined and makes the device more intelligent.
[0036] In a second aspect, this application provides an electronic device comprising: a memory and one or more processors; the memory being coupled to the processors; wherein the memory stores computer program code, the computer program code including computer instructions, which, when executed by the processor, cause the electronic device to perform a method as described in the first aspect and any one of the embodiments of the first aspect, or cause the electronic device to perform a method as described in the second aspect and any one of the embodiments of the second aspect.
[0037] Thirdly, this application provides a virtual keyboard switching device, which includes a processor and a memory, the memory being coupled to the processor and used to store computer-readable instructions. When the processor reads the computer-readable instructions from the memory, it causes the display device to perform the method as described in the first aspect and any one of the embodiments of the first aspect.
[0038] Fourthly, this application provides a chip system including at least one processor and at least one interface circuit. The at least one interface circuit is used to perform transceiver functions and send instructions to the at least one processor. The at least one processor executes the instructions and performs the method as described in the first aspect and any embodiment of the first aspect.
[0039] Fifthly, this application provides a computer-readable storage medium including computer instructions that, when executed on an electronic device, cause the electronic device to perform the method as described in the first aspect and any embodiment of the first aspect.
[0040] Sixthly, this application provides a computer program product that, when run on a computer, causes the computer to perform the method as described in the first aspect and any one of the embodiments in the first aspect.
[0041] The technical effects corresponding to any implementation method of aspects two through six, as well as any aspect, can be found in the first aspect and the technical effects corresponding to any implementation method of the first aspect mentioned above, and will not be repeated here. Attached Figure Description
[0042] Figure 1 is a schematic diagram of different virtual keyboards provided in the embodiments of this application;
[0043] Figure 2A is a product schematic diagram of the electronic device provided in an embodiment of this application;
[0044] Figure 2B is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of this application;
[0045] Figure 3 is a schematic diagram of different virtual keyboards provided in the embodiments of this application;
[0046] Figure 4 is a schematic diagram of a virtual keyboard switching scenario provided in an embodiment of this application;
[0047] Figure 5 is a second schematic diagram of a virtual keyboard switching scenario provided in an embodiment of this application;
[0048] Figure 6 is a schematic diagram of the third scenario of virtual keyboard switching provided in the embodiment of this application;
[0049] Figure 7 is a schematic diagram of a virtual keyboard switching scenario provided in an embodiment of this application;
[0050] Figure 8 is a schematic diagram of the virtual keyboard switching scenario provided in the embodiment of this application;
[0051] Figure 9 is a schematic diagram of a virtual keyboard switching scenario provided in an embodiment of this application;
[0052] Figure 10 is a flowchart illustrating the virtual keyboard switching method provided in an embodiment of this application.
[0053] Figure 11 is a schematic flowchart of the virtual keyboard switching method provided in the embodiment of this application;
[0054] Figure 12 is a schematic diagram of the structure of the electronic device provided in an embodiment of this application;
[0055] Figure 13 is a schematic diagram of the chip system provided in an embodiment of this application. Detailed Implementation
[0056] The technical solutions of the embodiments of this application will be described below with reference to the accompanying drawings. In the description of this application, unless otherwise stated, " / " indicates that the objects before and after are in an "or" relationship. For example, A / B can represent A or B. "And / or" in this application 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 alone, A and B simultaneously, and B alone, where A and B can be singular or plural. Furthermore, in the description of this application, unless otherwise stated, "multiple" refers to two or more. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple. Furthermore, to facilitate a clear description of the technical solutions in the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish identical or similar items with substantially the same function and effect. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and the terms "first" and "second" are not necessarily different.
[0057] 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 this application should not be construed as being better or more 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 to facilitate understanding.
[0058] Furthermore, the business scenarios described in the embodiments of this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided in the embodiments of this application. As those skilled in the art will know, with the emergence of new business scenarios, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.
[0059] Currently, electronic devices are equipped with virtual keyboards for user convenience. These virtual keyboards come in a wide variety of types, allowing users to switch flexibly according to their needs. For example, switching between virtual keyboards relies on specific switching operations, such as gestures, and these operations differ between different virtual keyboards.
[0060] In some examples, electronic devices include virtual keyboards of different keyboard types, as well as a mapping between switching gestures and keyboard types set by the developer. For instance, based on this mapping, the electronic device can receive a user-input switching gesture and, in response to the gesture, display a virtual keyboard of the keyboard type corresponding to that gesture. Each keyboard type corresponds to one switching gesture, and the switching gestures differ for different keyboard types.
[0061] For example, keyboard types in electronic devices can include full-screen keyboards, touchpad keyboards, and half-screen keyboards. Correspondingly, the virtual keyboards for these keyboard types in electronic devices are: virtual full-screen keyboards, virtual touchpad keyboards, and virtual half-screen keyboards, respectively. Electronic devices also have pre-defined mappings between switching gestures and keyboard types. For example, the switching gesture for a full-screen keyboard is an eight-finger tap on the lower half of the display screen, the switching gesture for a touchpad keyboard is a three-finger tap on the lower half of the display screen, and the switching gesture for a half-screen keyboard is a five-finger swipe across the display screen.
[0062] If the electronic device detects an eight-finger tapping gesture on the lower half of the display screen, it responds to the gesture by displaying a virtual full-screen keyboard as shown in Figure 1(a). This virtual full-screen keyboard includes a virtual touchpad and a virtual standard keyboard. The virtual touchpad is a virtualized version of a traditional touchpad, allowing users to control the cursor and perform other touch operations. The virtual standard keyboard is a virtualized version of a traditional physical keyboard, allowing users to input text and perform other control operations. If the electronic device detects a three-finger tapping gesture on the lower half of the display screen, it responds to the gesture by displaying a virtual touchpad keyboard as shown in Figure 1(b). This virtual touchpad keyboard includes a virtual touchpad, which can be displayed anywhere on the display screen. If the electronic device detects a five-finger swipe gesture on the display screen, it responds to the gesture by displaying a virtual half-screen keyboard as shown in Figure 1(c). This virtual half-screen keyboard includes a virtual standard keyboard and is displayed in the lower half of the display screen.
[0063] In this example, the switching gestures differ for different keyboard types, and the touch positions for these gestures also vary. Specifically, the touch positions for switching gestures on full-screen keyboards and touchpad keyboards are in the lower half of the display. For half-screen keyboards, the touch positions for switching gestures can be anywhere on the display. Consequently, this variety of switching gestures increases the learning curve and is not user-friendly. Users find it difficult to quickly master and accurately use various switching gestures, increasing the difficulty of operation and resulting in a poor user experience.
[0064] This application provides a virtual keyboard switching method that uses the same switching operation to switch between virtual keyboards of different types. It is easy to learn and remember, reducing operational difficulty and improving switching efficiency. Furthermore, during the switching operation, a preview image of the virtual keyboard corresponding to the current keyboard type is displayed in real time, allowing users to intuitively see preview images of different keyboard types, thus improving smoothness and user experience.
[0065] The technical solutions of the embodiments of this application will now be described with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them.
[0066] This application can be applied to various scenarios where input is performed via a virtual keyboard. As examples, these scenarios include, but are not limited to, text input, number input, and voice input. For instance, users input text via a virtual keyboard on social media. Users input passwords or other information via a virtual keyboard when logging into a system or making payments. Users input voice via a virtual keyboard while traveling or communicating across languages, allowing electronic devices to translate the input in real-time. This application does not impose any special limitations on the application scenarios for input via a virtual keyboard.
[0067] In this application embodiment, the electronic device may be referred to as terminal equipment, user equipment (UE), mobile station (MS), mobile terminal (MT), etc.
[0068] In this embodiment, the electronic device can be a mobile phone, tablet computer, wearable device, in-vehicle device, augmented reality (AR) / virtual reality (VR) device, laptop computer, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), artificial intelligence (AI) terminal, etc. This embodiment does not impose any special limitations on the specific form of the electronic device.
[0069] In this embodiment, the electronic device can be a device including a display screen. The display screen is a touch screen. The electronic device can have one or more display screens. For example, the electronic device can be an electronic device with two display screens. These two display screens can be two separate display screens, or they can be two display screens formed by folding a flexible folding screen.
[0070] Taking a dual-screen laptop as an example, this dual-screen laptop can also be described as a dual-screen computer, and will be referred to as a dual-screen computer from now on. Figure 2A shows a product illustration of a dual-screen computer.
[0071] The dual-screen computer includes two displays, namely the main display 201 and the secondary display 202.
[0072] The main display 201, also described as the main screen, is a traditional laptop screen, typically located at the top. The main display 201 handles the core display tasks of the dual-screen computer, such as displaying the interface of a specific application on the dual-screen computer. The main display 201 features high resolution and a clear display effect. The main display 201 can be a touchscreen or a regular display screen.
[0073] The secondary display 202, also described as a secondary screen, is typically located below, to the side of, or embedded around the main display 201 in some way. As shown in Figure 2A, the secondary display 202 is located below the main display 201. The secondary display 202 provides additional display space and is typically used to display auxiliary information, such as a virtual keyboard or toolbar. The resolution of the secondary display 202 can be lower than or the same as that of the main display 201. The secondary display 202 is usually a touchscreen, providing touch functionality for flexible operation of the dual-screen computer. As shown in Figure 2A, a virtual half-screen keyboard is displayed on the secondary display 202.
[0074] It is understood that the product schematic diagram of the dual-screen computer shown in Figure 2A is only an example, and the embodiments of this application do not impose specific limitations on the product architecture of the dual-screen computer.
[0075] Taking a dual-screen computer as an example, the hardware structure of the electronic device will be illustrated.
[0076] Figure 2B shows a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application.
[0077] Electronic devices may include processor 210, sensor module 220, display screen 230, etc.
[0078] The structures illustrated in the embodiments of this application do not constitute a limitation on the electronic device. It may include more or fewer components than illustrated, or combine or separate certain components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of both.
[0079] Processor 210 may include one or more processing units, such as an application processor (AP) and / or memory. These different processing units may be independent devices or integrated into one or more processors.
[0080] The processor 210 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor is a cache memory, which can store instructions or data that the processor has just used or that are used repeatedly. If the processor needs to use the instruction or data again, it can directly retrieve it from the memory. This avoids repeated accesses, reduces processor waiting time, and thus improves system efficiency.
[0081] In this embodiment of the application, the processor 210 can determine the switching operation and switch the virtual keyboard according to the target type indicated by the switching operation.
[0082] The sensor module 220 of the electronic device may specifically include: a pressure sensor, a distance sensor, an ambient light sensor, a fingerprint sensor, a temperature sensor, and a touch sensor, etc. The touch sensor, also known as a "touch panel," can be installed on the display screen 230. A display screen 230 equipped with a touch sensor can be called a touchscreen. The touch sensor is used to detect touch operations applied to or near it and determine the location of the touch operation.
[0083] In this embodiment, the touch sensor in the sensor module 220 is used to detect switching operations. Specifically, when a user slides their finger or stylus on the display screen 230, the touch sensor detects the touch point position and changes. The touch sensor sends the detected data to the processor 210 so that the processor 210 can analyze and process the switching operation.
[0084] The display screen 230 is used to display images, videos, etc. The display screen 230 includes a display panel. The display panel can be an LCD (liquid crystal display), OLED (organic light-emitting diode), active-matrix organic light-emitting diode (AMOLED), flexible light-emitting diode (FLED), Minied, MicroLED, Micro-OLED, quantum dot light-emitting diode (QLED), etc. In this embodiment, the electronic device has two display screens 230. In other embodiments, the electronic device may include one or N display screens, where N is a positive integer greater than 2.
[0085] In this embodiment, the display screen 230 is used to display virtual keyboards of different keyboard types.
[0086] It is understood that electronic devices may include more or fewer components than those shown in Figure 1, or combine some components, or separate some components, or replace some components, or have different component arrangements. The components illustrated may be implemented in hardware, software, or a combination of software and hardware.
[0087] The following section uses a dual-screen computer as an example, with the secondary display screen being a touchscreen, to provide a detailed description of the virtual keyboard switching method provided in this application.
[0088] In this embodiment, the dual-screen computer includes pre-stored virtual keyboards of different keyboard types. For example, the virtual keyboards in a dual-screen computer include, but are not limited to: a virtual full-screen keyboard, a virtual half-screen keyboard, a virtual floating keypad (26-key version), a virtual floating keypad (9-key layout), a virtual handwriting keyboard, a virtual numeric keypad, a virtual voice keyboard, and a virtual ergonomic keyboard. The keyboard types of the aforementioned virtual keyboards are: full-screen keyboard, half-screen keyboard, floating keypad (26-key version), floating keypad (9-key layout), handwriting keyboard, numeric keypad, voice keyboard, and ergonomic keyboard.
[0089] The virtual full-screen keyboard includes a virtual standard keyboard and a virtual touchpad. The virtual standard keyboard is a virtualized display of a traditional physical keyboard, allowing users to input text and perform other control operations. It includes letter keys, numeric keys, and function keys. The virtual touchpad is a virtualized display of a traditional touchpad, allowing users to control the cursor and perform other touch operations. For example, users can touch or swipe on the virtual touchpad to control the cursor displayed on the dual-screen computer. The virtual full-screen keyboard is illustrated in Figure 1(a).
[0090] The virtual half-screen keyboard includes a virtual standard keyboard, for example, the virtual half-screen keyboard is shown in Figure 1(c).
[0091] The virtual floating keyboard (26-key version) includes 26 letter keys, with a layout similar to a traditional physical keyboard, and is displayed as a floating window on the secondary display of a dual-screen computer. For example, the virtual floating keyboard (26-key version) is shown as 301 in Figure 3.
[0092] The virtual floating keypad (9-key layout) is similar in layout to a traditional numeric keypad (9-key), and is displayed as a floating window on the secondary display of a dual-screen computer. For example, the virtual floating keypad (9-key layout) is shown as 302 in Figure 3.
[0093] Users can handwrite text on the virtual handwriting keyboard, for example, the virtual handwriting keyboard is shown as 303 in Figure 3.
[0094] A virtual numeric keypad typically includes number keys from 0 to 9, as well as commonly used symbols. For example, a virtual numeric keypad is shown as 304 in Figure 3.
[0095] Users can use a virtual voice keyboard for voice input. For example, the virtual voice keyboard is shown as 305 in Figure 3.
[0096] A virtual ergonomic keyboard is a virtualized display of a keyboard designed with ergonomics as its core principle. For example, a virtual ergonomic keyboard is shown as 306 in Figure 3.
[0097] Dual-screen computers can also include a virtual full-screen standard keyboard, a virtual touchpad keyboard, a virtual emoji keyboard, and a virtual custom keyboard. The keyboard types corresponding to these virtual keyboards are: full-screen standard keyboard, touchpad keyboard, emoji keyboard, and custom keyboard, respectively.
[0098] The virtual full-screen standard keyboard includes a virtual standard keyboard that fills the entire secondary display. This virtual full-screen standard keyboard does not include a virtual touchpad.
[0099] The virtual touchpad keyboard includes a virtual touchpad, as shown in Figure 1(b).
[0100] The virtual emoji keyboard includes a variety of emojis.
[0101] A virtual custom keyboard is a virtual keyboard that users can customize according to their needs. For example, a virtual custom keyboard can include multiple virtual keyboards of the different keyboard types mentioned above. The layout of the different keyboard types in the virtual custom keyboard supports user-defined design. For example, a virtual custom keyboard can include a virtual half-screen keyboard and a virtual writing keyboard.
[0102] It is understood that this application embodiment does not limit the type of virtual keyboard. Furthermore, the various types of virtual keyboards shown in Figures 1 and 3 are merely examples for ease of understanding. In specific products, the content and display method of the virtual keyboards of various types can be set according to actual needs. This application embodiment does not specifically limit the content and display method of the virtual keyboards of various types.
[0103] In this embodiment, the dual-screen computer includes a pre-stored switching order between different virtual keyboards, and / or, a pre-stored switching order between different keyboard types. The switching order includes a preset switching order, a personalized switching order, and a custom switching order.
[0104] In some embodiments, the dual-screen computer includes a pre-stored preset switching order between different virtual keyboards. And / or, the dual-screen computer includes a pre-stored preset switching order between different keyboard types. This preset switching order may be determined by the developer based on the display size of the virtual keyboards and pre-stored in the dual-screen computer.
[0105] For example, different virtual keyboards can be sorted according to display size to obtain a preset switching order. Alternatively, different keyboard types can be sorted according to display size to obtain a preset switching order. Another example is sorting different virtual keyboards and their corresponding keyboard types according to display size to obtain a preset switching order.
[0106] If the display sizes are the same, the switching order between different virtual keyboards with the same display size and / or different keyboard types can be determined based on experience or sample data. The sample data consists of behavioral data from different users using different virtual keyboards, including the frequency of use of different virtual keyboards and the user's input frequency on different virtual keyboards.
[0107] It is understandable that one keyboard type corresponds to one virtual keyboard, and different keyboard types correspond to different virtual keyboards.
[0108] For example, to determine the preset switching order between different keyboard types, for the 26-key numeric keypad and the 9-key numeric keypad, based on sample data, the virtual numeric keypad (26-key version) corresponding to the 26-key numeric keypad is used more frequently than the virtual numeric keypad (9-key numeric keypad) corresponding to the 9-key numeric keypad. Therefore, the preset switching order between the 26-key numeric keypad and the 9-key numeric keypad should be: 26-key numeric keypad before 9-key numeric keypad. This can also be described as: 26-key numeric keypad – 9-key numeric keypad. Correspondingly, using the above method, the preset switching order between the full-screen keyboard and the full-screen standard keyboard is: full-screen keyboard – full-screen standard keyboard.
[0109] For example, consider a dual-screen computer that includes a virtual full-screen keyboard, a virtual half-screen keyboard, a virtual floating keypad (26-key version), a virtual floating keypad (9-key version), a virtual handwriting keyboard, a virtual numeric keypad, a virtual voice keyboard, and a virtual ergonomic keyboard. The preset switching order for these virtual keyboards can be (based on the display size of the different virtual keyboards, determined in descending order of size): Virtual Full-Screen Keyboard – Virtual Ergonomic Keyboard – Virtual Half-Screen Keyboard – Virtual Handwriting Keyboard – Virtual Floating Keypad (26-key version) – Virtual Floating Keypad (9-key version) – Virtual Numeric Keypad – Virtual Voice Keyboard.
[0110] The preset switching order between different keyboard types can be determined based on the preset switching order between different virtual keyboards. Alternatively, the preset switching order between different keyboard types can be determined based on the display size of the different virtual keyboards, in descending order. The preset switching order between different keyboard types is as follows: Full-screen keyboard – Ergonomic keyboard – Half-screen keyboard – Handwriting keyboard – Floating keypad (26-key version) – Floating keypad (9-key version) – Numeric keypad – Voice keyboard.
[0111] In some embodiments, a dual-screen computer can automatically generate a personalized switching order between different virtual keyboards based on the user's historical behavior data when using different virtual keyboards. And / or, a dual-screen computer can also automatically generate a personalized switching order between different keyboard types based on the user's historical behavior data when using virtual keyboards of different keyboard types.
[0112] Historical behavioral data includes the frequency of use of virtual keyboards of different keyboard types, the duration of use of virtual keyboards of different keyboard types, and the frequency of user input on different virtual keyboards.
[0113] Optionally, the dual-screen computer can collect historical behavioral data on the user's use of different virtual keyboard types while using the dual-screen computer. This historical behavioral data includes the frequency and / or duration of use of different virtual keyboard types. The historical behavioral data can be analyzed and processed through machine learning algorithms or models to obtain a personalized switching sequence specific to the user.
[0114] For example, dual-screen computers periodically collect historical behavioral data on users' use of different types of virtual keyboards. Based on this historical behavioral data, it is determined that the data includes behaviors related to virtual full-screen keyboards, virtual half-screen keyboards, virtual floating keypads (9-key layout), virtual numeric keyboards, and virtual voice keyboards. Furthermore, these virtual keyboards are sorted by usage frequency from highest to lowest in the historical behavioral data as follows: virtual half-screen keyboard, virtual floating keypad (9-key layout), virtual full-screen keyboard, virtual numeric keyboard, and virtual voice keyboard. Thus, the personalized switching order obtained through model analysis of the above historical behavioral data can be (a personalized switching order between different virtual keyboards determined by their usage frequency from highest to lowest): virtual half-screen keyboard – virtual floating keypad (9-key layout) – virtual full-screen keyboard – virtual numeric keyboard – virtual voice keyboard.
[0115] In some embodiments, dual-screen computers support user-defined switching order between different virtual keyboards. The dual-screen computer can generate a custom switching order between different virtual keyboards based on the user's design. And / or, dual-screen computers support user-defined switching order between different keyboard types. The dual-screen computer can generate a custom switching order between different keyboard types based on the user's design.
[0116] In some embodiments, a dual-screen computer may include two or three of the following switching sequences: a custom switching sequence, a personalized switching sequence, or a preset switching sequence.
[0117] In dual-screen computers with custom, personalized, and preset switching orders, the custom switching order has the highest priority, followed by the personalized switching order, and then the preset switching order has the lowest priority. Similarly, in dual-screen computers with both personalized and preset switching orders, the personalized switching order has a higher priority than the preset switching order.
[0118] Understandably, when a user first uses a dual-screen computer, the computer can switch virtual keyboards according to a pre-stored preset switching order. After a period of use, the computer can generate a personalized switching order based on the user's historical behavior data regarding different keyboard types. If the dual-screen computer includes both a personalized and a preset switching order, it will switch virtual keyboards according to the personalized order. Furthermore, during use, the dual-screen computer can also generate a custom switching order based on a user-defined switching order. If the dual-screen computer includes a custom, personalized, and preset switching order, it will switch virtual keyboards according to the custom switching order.
[0119] It is understood that the embodiments of this application do not limit the specific method for determining the switching order between virtual keyboards of different keyboard types.
[0120] In this embodiment, the dual-screen computer can receive a user-input switching operation and, in response to the switching operation, switch between virtual keyboards of different keyboard types. The switching operation is a predefined operation for switching virtual keyboards. This switching operation may include shortcut operations such as switching gestures, keyboard shortcuts, and voice commands.
[0121] In some embodiments, the switching operation can be a forward operation or a backward operation. For example, a forward operation can include a forward gesture, a forward shortcut key, a forward voice command, etc., and a backward operation can include a backward gesture, a backward shortcut key, a backward voice command, etc.
[0122] For example, taking a switching operation as a switching gesture, and a forward operation as a forward gesture. For instance, this forward gesture could be a shrinking gesture, such as a user sliding multiple fingers towards each other on the screen, with the distance between the fingers decreasing. For example, a shrinking gesture could be a two-finger pinch gesture. Another example is a three-finger right swipe on the screen. Taking a switching operation as an operation shortcut key, a shrink control can be displayed on the virtual keyboard, and the forward operation can be the user's action on this shrink control, such as a click.
[0123] For example, taking a toggle operation as a toggle gesture, the back operation is a back gesture. For instance, this back gesture could be a magnification gesture, such as a user sliding multiple fingers backwards on the screen, with the distance between the fingers increasing. For example, a magnification gesture could be a two-finger magnification gesture. Another example is a three-finger left swipe on the screen. Taking a toggle operation as an operation shortcut, a magnification control can be displayed on the virtual keyboard, and the back operation can be the user's action on this magnification control, such as a click.
[0124] In some embodiments, the switching operation may include a first switching operation and a second switching operation. The first switching operation may be predefined and is used to trigger the electronic device to switch the currently displayed virtual keyboard to the virtual keyboard adjacent to it in the switching order. The second switching operation may be predefined and is used to trigger the electronic device to switch the currently displayed virtual keyboard to the virtual keyboard corresponding to the second switching operation in the switching order. For example, the second switching operation may be a second switching gesture.
[0125] Specifically, the first switching operation includes a first forward operation and a first backward operation. The first forward operation can be a predefined operation used to trigger the electronic device to switch the currently displayed virtual keyboard to the next virtual keyboard in the switching order, following the currently displayed virtual keyboard. Alternatively, the first forward operation can be a predefined operation used to trigger the electronic device to switch the currently displayed virtual keyboard to the next keyboard type in the switching order, following the keyboard type of the currently displayed virtual keyboard. The first backward operation can be a predefined operation used to trigger the electronic device to switch the currently displayed virtual keyboard to the previous virtual keyboard in the switching order, following the currently displayed virtual keyboard. Alternatively, the first backward operation can be a predefined operation used to trigger the electronic device to switch the currently displayed virtual keyboard to the previous keyboard type in the switching order, following the keyboard type of the currently displayed virtual keyboard.
[0126] For example, the first switching operation is the first switching gesture, the first forward operation is the first shrink gesture, and the first backward operation is the first zoom-in gesture.
[0127] For example, consider the preset switching order between different virtual keyboards as described above: Virtual Full-Screen Keyboard – Virtual Ergonomic Keyboard – Virtual Half-Screen Keyboard – Virtual Handwriting Keyboard – Virtual Floating Keyboard (26-key version) – Virtual Floating Keyboard (9-key version) – Virtual Numeric Keyboard – Virtual Voice Keyboard. If the currently displayed virtual keyboard is the Virtual Half-Screen Keyboard, the dual-screen computer can respond to the first forward operation and switch the Virtual Half-Screen Keyboard to the next virtual keyboard in the switching order, i.e., the Virtual Handwriting Keyboard. If the currently displayed virtual keyboard is the Virtual Half-Screen Keyboard, the dual-screen computer can respond to the first backward operation and switch the Virtual Half-Screen Keyboard to the previous virtual keyboard in the switching order, i.e., the Virtual Ergonomic Keyboard.
[0128] Understandably, when a dual-screen computer determines which keyboard type of virtual keyboard to switch to in response to a first switching operation (i.e., the target keyboard type virtual keyboard as described below), it can follow a cyclic switching rule. For example, consider a switching order between different keyboard types. If the dual-screen computer is currently displaying the virtual keyboard of the last keyboard type in the switching order and receives a first forward operation, then the dual-screen computer switches the currently displayed virtual keyboard to the virtual keyboard of the first keyboard type in the switching order. If the dual-screen computer is currently displaying the virtual keyboard of the first keyboard type in the switching order and receives a first back operation, then the dual-screen computer switches the currently displayed virtual keyboard to the virtual keyboard of the last keyboard type in the switching order.
[0129] For example, consider the preset switching order between different keyboard types as described above: full-screen keyboard – ergonomic keyboard – half-screen keyboard – handwriting keyboard – floating keypad (26-key version) – floating keypad (9-key version) – numeric keypad – voice keyboard. Figure 4 shows the switching order between different keyboard types after the dual-screen computer receives the first switching operation.
[0130] When the first switching operation is a forward operation, the dual-screen computer can switch keyboard types sequentially in the following order: full-screen keyboard – ergonomic keyboard – half-screen keyboard – handwriting keyboard – floating keypad (26-key version) – floating keypad (9-key version) – numeric keypad – voice keyboard, following a cyclic switching rule. When the first switching operation is a backward operation, the dual-screen computer can switch keyboard types sequentially in the following order: full-screen keyboard – voice keyboard – numeric keypad – floating keypad (9-key version) – floating keypad (26-key version) – handwriting keyboard – half-screen keyboard – ergonomic keyboard, following a cyclic switching rule.
[0131] For example, if the dual-screen computer receives the first forward input from the user while displaying a virtual full-screen keyboard of a full-screen keyboard, the dual-screen computer determines to switch the keyboard type from a full-screen keyboard to an ergonomic keyboard according to the switching sequence shown in Figure 4, and displays the virtual ergonomic keyboard of that ergonomic keyboard. If the dual-screen computer receives the first back input from the user while displaying a virtual full-screen keyboard of a full-screen keyboard, the dual-screen computer determines to switch the keyboard type from a full-screen keyboard to a voice keyboard according to the switching sequence shown in Figure 4, and displays the virtual voice keyboard of that voice keyboard.
[0132] Specifically, the second switching operation includes a second forward operation and a second backward operation. The second forward operation can be a predefined operation that triggers the electronic device to switch the currently displayed virtual keyboard to the virtual keyboard corresponding to the second forward operation, following the switching order of different virtual keyboards. Alternatively, the second forward operation can be a predefined operation that triggers the electronic device to switch the currently displayed virtual keyboard to the virtual keyboard of the type corresponding to the second forward operation, following the switching order of different keyboard types. Similarly, the second backward operation can be a predefined operation that triggers the electronic device to switch the currently displayed virtual keyboard to the virtual keyboard corresponding to the second backward operation, following the switching order of different virtual keyboards. Alternatively, the second backward operation can be a predefined operation that triggers the electronic device to switch the currently displayed virtual keyboard to the virtual keyboard of the type corresponding to the second backward operation, following the switching order of different keyboard types.
[0133] For example, the second switching operation is the second switching gesture, the second forward operation is the second zoom-out gesture, and the second backward operation is the second zoom-in gesture.
[0134] For example, consider the preset switching order between different keyboard types as described above: full-screen keyboard – ergonomic keyboard – half-screen keyboard – handwriting keyboard – floating keypad (26-key version) – floating keypad (9-key version) – numeric keypad – voice keyboard. If the currently displayed virtual keyboard is a virtual half-screen keyboard, the dual-screen computer can respond to the second forward operation to determine that the keyboard type of the currently displayed virtual keyboard is a half-screen keyboard. The dual-screen computer can also, based on the half-screen keyboard, the preset switching order, and the second forward operation, switch the currently displayed virtual half-screen keyboard to the virtual keyboard type corresponding to the second forward operation, which follows the half-screen keyboard type in the preset switching order. For example, if the keyboard type corresponding to the second forward operation is a floating keypad (9-key), then the dual-screen computer will switch the virtual half-screen keyboard to the virtual floating keypad (9-key) corresponding to the floating keypad (9-key).
[0135] Alternatively, if the currently displayed virtual keyboard is a virtual half-screen keyboard, the dual-screen computer can respond to the second back operation to determine that the keyboard type of the currently displayed virtual keyboard is a half-screen keyboard. The dual-screen computer can also, based on the half-screen keyboard, a preset switching order, and the second back operation, switch the currently displayed virtual half-screen keyboard to the virtual keyboard of the type corresponding to the second back operation, which precedes the half-screen keyboard type in the preset switching order. For example, if the keyboard type corresponding to the second back operation is a full-screen keyboard, the virtual half-screen keyboard will be switched to the virtual floating full-screen keyboard corresponding to the full-screen keyboard.
[0136] Understandably, dual-screen computers may also follow a cyclic switching rule when determining which type of virtual keyboard to switch to in response to a second switching operation (i.e., the target keyboard type virtual keyboard described below).
[0137] It is understood that the embodiments of this application do not limit the specific implementation of the switching operation.
[0138] The following section will take the preset switching order shown in Figure 4 as an example, and the switching operation as the first switching operation, to explain in detail the specific implementation of switching virtual keyboards on a dual-screen computer.
[0139] When the dual-screen computer displays a virtual keyboard of the first keyboard type, the dual-screen computer receives a first switching operation input by the user. In response to this first switching operation, the dual-screen computer determines the target keyboard type based on the first switching operation, the first keyboard type, and a preset switching order, and then displays a virtual keyboard of that target keyboard type.
[0140] The virtual keyboard of the first keyboard type can be any of the aforementioned keyboard types.
[0141] Specifically, if the first switching operation is a first forward operation, the target keyboard type is the next keyboard type after the first keyboard type in the preset switching sequence. For example, the first forward operation includes a first shrink gesture.
[0142] If the first switching operation is the first back operation, then the target keyboard type is the previous keyboard type in the preset switching sequence, preceding the first keyboard type. For example, the first back operation includes the first zoom-in gesture.
[0143] For example, taking a full-screen keyboard as the first keyboard type, as shown in Figure 5(a), the secondary display screen of the dual-screen computer displays a virtual full-screen keyboard. While displaying the virtual full-screen keyboard, the secondary display screen of the dual-screen computer receives a first switching operation input by the user. If the dual-screen computer determines that the first switching operation is a first forward operation, then based on the preset switching order shown in Figure 4 and the keyboard type corresponding to the currently displayed virtual full-screen keyboard being a full-screen keyboard, it determines the target keyboard type to be an ergonomic keyboard. The secondary display screen of the dual-screen computer displays a virtual ergonomic keyboard of this ergonomic keyboard, as shown in Figure 5(b). If the dual-screen computer determines that the first switching operation is a first backward operation, then based on the preset switching order shown in Figure 4 and the keyboard type corresponding to the currently displayed virtual full-screen keyboard being a full-screen keyboard, it determines the target keyboard type to be a voice keyboard. The secondary display screen of the dual-screen computer displays a virtual voice keyboard of this voice keyboard, as shown in Figure 5(c).
[0144] In some embodiments, the display position of the virtual keyboard of the target keyboard type is related to the position where the user performs the first switching operation. Taking the first switching operation as a first switching gesture as an example, the display position of the virtual keyboard of the target keyboard type is specifically related to the end position of the user's first switching gesture. For example, the end position of the first switching gesture is the touch point position on the secondary display screen when the user ends the first switching gesture and raises their hand.
[0145] For example, taking the first switching gesture as a first shrink gesture, and the first shrink gesture as a two-finger pinch gesture, the display position of the virtual keyboard of the target keyboard type is the midpoint between the two ending positions of the first shrink gesture. Alternatively, the display position of the virtual keyboard of the target keyboard type is the intersection of the movement trajectories of the two fingers in the first shrink gesture.
[0146] It is understood that the embodiments of this application do not limit the method for determining the display position of the virtual keyboard of the target keyboard type.
[0147] In some embodiments, the display size of the virtual keyboard for a target keyboard type can be a preset size. For example, developers can define the maximum and minimum display sizes of the virtual keyboard for each keyboard type to obtain a range of display sizes for that keyboard type. For each keyboard type, developers can determine a preset size based on that range of display sizes and store it on the dual-screen computer.
[0148] For example, the preset size of the virtual keyboard for each keyboard type in a dual-screen computer is the maximum display size of the virtual keyboard for that keyboard type.
[0149] In other embodiments, the dual-screen computer can collect the user's hand data to determine the user's hand characteristics. Based on these hand characteristics, personalized sizes of different virtual keyboards are automatically generated.
[0150] Specifically, dual-screen computers collect hand data such as the trajectory and pressure of the user's touch operations on the display screen. Alternatively, dual-screen computers scan the user's hand data, such as hand images, using sensors like cameras. Based on the acquired hand data, the dual-screen computers analyze and determine the user's hand characteristics, such as finger length and palm width. Based on these hand characteristics, they generate personalized virtual keyboards of different sizes specifically for each user, making the virtual keyboards more ergonomic and improving user comfort during input.
[0151] In some other embodiments, if the first switching operation is a first switching gesture, the display size of the virtual keyboard of the target keyboard type can be determined by the movement distance and / or movement speed of the first switching gesture.
[0152] The movement distance of the first switching gesture is the distance between the starting and ending positions of the gesture input by the user on the secondary display screen. The starting position refers to the touch point position when the user first touches the secondary display screen with their finger or stylus. The ending position refers to the touch point position when the user ends the gesture and removes their finger or stylus from the secondary display screen. The movement distance of the first switching gesture is typically measured in pixels.
[0153] The movement speed of the first switching gesture is the speed at which the user moves their finger or stylus away from the secondary display screen after ending the first switching gesture. For example, the movement speed of the first switching gesture is the ratio of the distance traveled by the first switching gesture to the time taken to travel that distance.
[0154] Understandably, developers can predefine the minimum and maximum movement distances for the first switching gesture. Developers can also predefine the maximum and minimum movement speeds for the first switching gesture. Based on this data, the range of movement distances and speeds is determined so that the display size of the virtual keyboard for the target keyboard type can be set according to this data, establishing a correspondence between the movement distance and / or speed of the first switching gesture.
[0155] In some examples, the display size of a virtual keyboard of a target keyboard type is determined based on the movement distance of a first switching gesture. For each keyboard type, the dual-screen computer pre-stores a correspondence between different movement distances and the display size of the virtual keyboard of the target keyboard type. This correspondence may be different or the same for different keyboard types. For the same keyboard type, the correspondence may be different or the same for different first switching gestures (such as a first zoom-out gesture and a first zoom-in gesture).
[0156] It is understood that the display size of the virtual keyboard for the target keyboard type corresponding to different movement distances in the above correspondence does not exceed the display size range of the virtual keyboard for that target keyboard type. The different movement distances in the above correspondence do not exceed the movement distance range.
[0157] For example, based on the example in Figure 4 above, taking a keyboard type of half-screen keyboard, a virtual keyboard of this type, and a first switching gesture of either a zoom-in gesture or a zoom-out gesture as an example: When the first switching gesture is a zoom-in gesture and the movement distance is movement distance 1, the target keyboard type is an ergonomic keyboard, and the display size of the virtual ergonomic keyboard of the ergonomic keyboard is size a1. When the first switching gesture is a zoom-in gesture and the movement distance is movement distance 2, the target keyboard type is an ergonomic keyboard, and the display size of the virtual ergonomic keyboard of the ergonomic keyboard is size a2. When the first switching gesture is a zoom-out gesture and the movement distance is movement distance 1, the target keyboard type is a handwriting keyboard, and the display size of the virtual handwriting keyboard of the handwriting keyboard is size b1. When the first switching gesture is a zoom-out gesture and the movement distance is movement distance 2, the target keyboard type is a handwriting keyboard, and the display size of the virtual handwriting keyboard of the handwriting keyboard is size b2.
[0158] For example, continuing with the keyboard type being a half-screen keyboard, the virtual keyboard of this keyboard type being a virtual half-screen keyboard, and the first switching gesture being a first zoom-in gesture or a first zoom-out gesture, Figure 6(a) illustrates the relationship between the movement distance and the display size of the virtual keyboard of the target keyboard type when the first zoom-in gesture is input to the virtual half-screen keyboard. As the movement distance increases, the display size of the virtual keyboard of the target keyboard type also gradually increases. Figure 6(b) illustrates the relationship between the movement distance and the display size of the virtual keyboard of the target keyboard type when the first zoom-out gesture is input to the virtual half-screen keyboard. As the movement distance increases, the display size of the virtual keyboard of the target keyboard type also gradually decreases.
[0159] Understandably, the display size of the virtual keyboard of the target keyboard type can dynamically change based on the movement distance of the first switching gesture.
[0160] In other examples, the display size of a virtual keyboard of a target keyboard type is determined based on the movement speed of the first switching gesture. For each keyboard type, the dual-screen computer pre-stores a correspondence between different movement speeds and the display size of the virtual keyboard of the target keyboard type. This correspondence may be different or the same for different keyboard types. For the same keyboard type, the correspondence may be different or the same for different first switching gestures (such as a first zoom-out gesture and a first zoom-in gesture).
[0161] It is understood that the display size of the virtual keyboard for the target keyboard type corresponding to different movement speeds in the above correspondence does not exceed the display size range of the virtual keyboard for that target keyboard type. The different movement speeds in the above correspondence do not exceed the movement speed range.
[0162] Understandably, the display size of the virtual keyboard of the target keyboard type can dynamically change according to the movement speed of the first switching gesture.
[0163] In some further examples, the display size of a virtual keyboard of a target keyboard type is determined based on the movement distance and speed of the first switching gesture. For each keyboard type, the dual-screen computer pre-stores the correspondence between different movement distances, different movement speeds, and the display size of the virtual keyboard of the target keyboard type. This correspondence may be different or the same for different keyboard types. For the same keyboard type, the correspondence may be different or the same for different first switching gestures (such as a first zoom-out gesture and a first zoom-in gesture).
[0164] It is understood that the display size of the virtual keyboard for the target keyboard type corresponding to different movement distances and different movement speeds in the above correspondence does not exceed the display size range of the virtual keyboard for that target keyboard type. In the above correspondence, different movement distances do not exceed the movement distance range, and different movement speeds do not exceed the movement speed range.
[0165] Understandably, the display size of the virtual keyboard of the target keyboard type can be dynamically changed based on the movement distance and speed of the first switching gesture.
[0166] It is understood that in this embodiment, for each movement distance and / or each movement speed, there is a corresponding display size of the virtual keyboard of the target keyboard type, which can provide accurate display effects and improve user experience.
[0167] In other embodiments, multiple thresholds can be set for movement distance and / or movement speed, and the display size of the virtual keyboard of the target keyboard type can be determined based on these thresholds. This optimizes the method of determining the display size of the virtual keyboard of the target keyboard type while ensuring display quality. The specific implementation method for dynamically determining the display size of the virtual keyboard of the target keyboard type based on the first switching gesture is described in detail below.
[0168] In some embodiments, the display size of a virtual keyboard of a target keyboard type is determined based on the movement distance of a first switching gesture and a first distance threshold. For each keyboard type, the dual-screen computer pre-stores a correspondence between different first distance thresholds and the display size of the virtual keyboard of the target keyboard type. This correspondence may be different or the same for different keyboard types. For the same keyboard type, the correspondence may be different or the same for different first switching gestures (such as a first zoom-out gesture and a first zoom-in gesture).
[0169] It is understood that the display size of the virtual keyboard corresponding to different first distance thresholds in the above correspondence does not exceed the display size range of the virtual keyboard of that target keyboard type. The different first distance thresholds in the above correspondence do not exceed the range of movement distances.
[0170] The first distance threshold is used to determine the display size of the virtual keyboard of the target keyboard type.
[0171] For example, developers can set multiple first distance thresholds based on the movement distance. For each keyboard type, based on the distance range between any two adjacent first distance thresholds, they can set the display size of the target keyboard type's virtual keyboard corresponding to that distance range. This yields the correspondence between the first distance thresholds and the display size of the target keyboard type's virtual keyboard for different keyboard types, and this correspondence can be pre-stored in the dual-screen computer.
[0172] When a dual-screen computer is displaying a virtual keyboard of the first keyboard type and detects a first switching gesture, it determines which distance range the movement distance is located in based on multiple first distance thresholds corresponding to the first keyboard type and the movement distance of the first switching gesture, and determines the display size of the virtual keyboard of the target keyboard type based on the distance range.
[0173] For example, based on the example in Figure 4 above, continuing with the keyboard type as a half-screen keyboard, the virtual keyboard of this keyboard type as a virtual half-screen keyboard, and the first switching gesture as a first zoom-in gesture or a first zoom-out gesture. When the first switching gesture is the first zoom-in gesture, the developer can set two first distance thresholds, namely, first distance threshold a and first distance threshold b. When the movement distance is greater than 0 and does not exceed the first distance threshold a, that is, 0 < movement distance ≤ first distance threshold a, the target keyboard type is set to ergonomic keyboard, and the display size of the virtual ergonomic keyboard is size A1. When the movement distance is greater than the first distance threshold a and does not exceed the first distance threshold b, that is, first distance threshold a < movement distance ≤ first distance threshold b, the target keyboard type is set to ergonomic keyboard, and the display size of the virtual ergonomic keyboard is size A2.
[0174] When the first switching gesture is a first zoom-out gesture, developers can also set two first distance thresholds, namely first distance threshold a and first distance threshold b. It is understood that for the same virtual keyboard, the first distance thresholds corresponding to different first switching gestures can be the same or different. When the movement distance is greater than 0 and does not exceed the first distance threshold a (i.e., 0 < movement distance ≤ first distance threshold a), the target keyboard type is set to a handwriting keyboard, and the display size of the virtual handwriting keyboard is size B1. When the movement distance is greater than the first distance threshold a and does not exceed the first distance threshold b (i.e., first distance threshold a < movement distance ≤ first distance threshold b), the target keyboard type is set to a handwriting keyboard, and the display size of the virtual handwriting keyboard is size B2.
[0175] Developers can use the above method to obtain the correspondence between the first distance threshold and the display size of the virtual keyboard of the target keyboard type when performing different first switching gestures on the virtual half-screen keyboard. Developers can store this correspondence in a dual-screen computer so that the dual-screen computer can use it.
[0176] Specifically, if the virtual keyboard of the first keyboard type displayed on the dual-screen computer is a half-screen keyboard, the dual-screen computer can determine the display size of the virtual keyboard of the target keyboard type based on the above correspondence and the movement distance of the first switching operation.
[0177] In other embodiments, the display size of a virtual keyboard of a target keyboard type is determined based on the movement speed of a first switching gesture and a first speed threshold, as an example. For each keyboard type, the dual-screen computer pre-stores a correspondence between different first speed thresholds and the display size of the virtual keyboard of the target keyboard type. This correspondence may be different or the same for different keyboard types. For the same keyboard type, the correspondence may be different or the same for different first switching gestures (such as a first zoom-out gesture and a first zoom-in gesture).
[0178] It is understood that the display size of the virtual keyboard corresponding to different first speed thresholds in the above correspondence does not exceed the display size range of the virtual keyboard of that target keyboard type. The different first speed thresholds in the above correspondence do not exceed the movement speed range.
[0179] The first speed threshold is used to determine the display size of the virtual keyboard of the target keyboard type.
[0180] For example, developers can set multiple first speed thresholds based on movement speed. For each keyboard type, based on the speed range between any two adjacent first speed thresholds, they can set the display size of the target keyboard type's virtual keyboard corresponding to that speed range. This yields the correspondence between the first speed thresholds and the display size of the target keyboard type's virtual keyboard for different keyboard types, and this correspondence is pre-stored in the dual-screen computer.
[0181] When a dual-screen computer is displaying a virtual keyboard of the first keyboard type and detects a first switching gesture, it determines which speed range the movement speed is in based on multiple first speed thresholds corresponding to the first keyboard type and the movement speed of the first switching gesture, and determines the display size of the virtual keyboard of the target keyboard type based on the speed range.
[0182] In some embodiments, the display size of a virtual keyboard of a target keyboard type is determined based on the movement distance, first distance threshold, movement speed, and first speed threshold of a first switching gesture. For each keyboard type, the dual-screen computer pre-stores the correspondence between different first distance thresholds, different first speed thresholds, and the display size of the virtual keyboard of the target keyboard type. The correspondence may be different or the same for different keyboard types. For the same keyboard type, the correspondence may be different or the same for different first switching gestures (such as a first zoom-out gesture and a first zoom-in gesture).
[0183] It is understood that the display size of the virtual keyboard corresponding to different first distance thresholds and different speed thresholds in the above correspondence does not exceed the display size range of the virtual keyboard of that target keyboard type. Similarly, the different first distance thresholds in the above correspondence do not exceed the range of movement distances, and the different first speed thresholds do not exceed the range of movement speeds.
[0184] It is understood that the embodiments of this application do not limit the method for determining the display size of the virtual keyboard of the target keyboard type.
[0185] In this embodiment, the display size of the virtual keyboard for the target keyboard type is determined by dividing the screen into intervals, reducing the complexity of determining the display size of the virtual keyboard for the target keyboard type. Furthermore, only a small amount of mapping relationships need to be stored in a dual-screen computer, saving storage space and reducing storage pressure. While maintaining the display experience, it can also improve response speed and processing efficiency.
[0186] In this embodiment, during the execution of the first switching gesture (i.e., while sliding a finger or stylus on the secondary display screen), the dual-screen computer can display a preview image of a virtual keyboard of the target keyboard type. The display position of the preview image is related to the current sliding position of the user performing the first switching gesture. The display size of the preview image is related to the current moving distance and / or current moving speed of the user performing the first switching gesture.
[0187] The current swipe position of the first switching gesture refers to the real-time touch point position of the user's finger or stylus as they swipe on the secondary display screen while inputting the first switching gesture. The current swipe position of the first switching gesture changes as the first switching gesture changes.
[0188] The current movement distance of the first switching gesture is the distance between the starting position of the first switching gesture entered by the user on the secondary display screen and the current swipe position.
[0189] The current movement speed of the first switching gesture is the instantaneous speed at which the user slides their finger or stylus on the secondary display screen while performing the first switching gesture. The current movement speed of the first switching gesture changes as the first switching gesture changes. For example, the current movement speed of the first switching gesture is the ratio of the current movement distance of the first switching gesture to the time taken to move that current distance.
[0190] It is understandable that the specific implementation method for the display size of the virtual keyboard preview image of the target keyboard type can be found in the above description of the specific implementation method for the display size of the virtual keyboard of the target keyboard type, and will not be repeated here.
[0191] Optionally, the display size of the preview image of the virtual keyboard of the target keyboard type may not be within the display size range of the virtual keyboard of that target keyboard type. For example, if the first switching gesture is a first zoom-in gesture, and the movement distance of the first switching gesture is greater than the maximum movement distance, and / or the movement speed of the first switching gesture is greater than the maximum movement speed, the display size of the preview image may be greater than the maximum display size within the display size range of the virtual keyboard of the target keyboard type. Correspondingly, if the first switching gesture is a first zoom-out gesture, and the movement distance of the first switching gesture is greater than the maximum movement distance, and / or the movement speed of the first switching gesture is greater than the maximum movement speed, the display size of the preview image may be smaller than the minimum display size within the display size range of the virtual keyboard of the target keyboard type.
[0192] For example, if the target keyboard type is a full-screen keyboard, and the movement distance of the first zoom-in gesture exceeds the maximum movement distance within the range, the dual-screen computer determines that the display size of the preview image of the virtual full-screen keyboard corresponding to the first zoom-in gesture exceeds the maximum display size of the virtual full-screen keyboard. The dual-screen computer can calculate and determine the display size corresponding to this movement distance, and display the preview image of the virtual full-screen keyboard based on this display size. That is, the dual-screen computer can display a preview image of the virtual full-screen keyboard after zooming in to the maximum display size. The dual-screen computer can also use a transparent background or edge blurring effect to indicate to the user that the currently displayed preview effect is a zoomed-in preview.
[0193] Understandably, in this embodiment, the dual-screen computer can switch virtual keyboards in response to the same first switching operation and switching sequence. Users do not need to learn complex switching operations; they only need to roughly remember the switching sequence to complete the virtual keyboard switching, simplifying the switching operation and improving the user experience.
[0194] It is understood that in the above embodiments, the dual-screen computer responds to the first switching operation by switching to the virtual keyboard of the previous keyboard type in the switching order, or switching to the virtual keyboard of the next keyboard type in the switching order.
[0195] In other embodiments, the dual-screen computer can respond to a second switching operation by switching the currently displayed virtual keyboard of the first keyboard type to the virtual keyboard of the keyboard type corresponding to the second switching operation. Below, taking the preset switching order shown in Figure 4 as an example, we will explain in detail the specific implementation of dynamically switching the virtual keyboard according to the second switching operation.
[0196] When the dual-screen computer displays a virtual keyboard of the first keyboard type, the dual-screen computer receives a second switching operation input by the user. In response to this second switching operation, the dual-screen computer determines the target keyboard type based on the second switching operation, the first keyboard type, and a preset switching order, and then displays a virtual keyboard of that target keyboard type.
[0197] Specifically, if the second switching operation is a second forward operation, the second forward operation is used to trigger the dual-screen computer to switch the virtual keyboard of the currently displayed first keyboard type to the virtual keyboard of the keyboard type corresponding to the second switching operation after the first keyboard type, according to a preset switching order and the first keyboard type of the currently displayed virtual keyboard. For example, the second forward operation includes a second zoom-out gesture.
[0198] If the second switching operation is a second back operation, the second forward operation is used to trigger the dual-screen computer to switch the virtual keyboard of the currently displayed first keyboard type to the virtual keyboard of the keyboard type corresponding to the second switching operation, according to a preset switching order and the first keyboard type of the currently displayed virtual keyboard. For example, the second back operation includes a second zoom-in gesture.
[0199] The following section will use the second switching operation as an example to illustrate the concept.
[0200] In some examples, for each type of virtual keyboard, the dual-screen computer can pre-store the correspondence between the second switching gesture and the initial keyboard type range. This correspondence differs for virtual keyboards of different types. For the same type of virtual keyboard, the correspondence differs for different second switching gestures (such as the second zoom-out gesture and the second zoom-in gesture).
[0201] For example, for each keyboard type of virtual keyboard, the initial keyboard type range is determined based on the second switching gesture and the preset switching order.
[0202] Specifically, for a virtual keyboard of the first keyboard type, if the switching gesture is the second zoom-out gesture, the initial keyboard type range corresponding to the second zoom-out gesture includes multiple keyboard types following the first keyboard type in the preset switching order. If the switching gesture is the second zoom-in gesture, the initial keyboard type range corresponding to the second zoom-in gesture includes multiple keyboard types preceding the first keyboard type in the preset switching order.
[0203] Understandably, a cyclical switching rule can be followed when determining the initial range of keyboard types.
[0204] For example, based on the example in Figure 4, continuing with the keyboard type as a half-screen keyboard, the virtual keyboard of this keyboard type as a virtual half-screen keyboard, and the second switching gesture as a second zoom-in gesture or a second zoom-out gesture. If the second switching gesture is a second zoom-out gesture, then the initial keyboard type range corresponding to the second zoom-out gesture can include a handwriting keyboard, a floating keypad (26-key version), a floating keypad (9-key version), a numeric keypad, and a voice keyboard. Alternatively, the initial keyboard type range corresponding to the second zoom-out gesture can include a handwriting keyboard, a floating keypad (26-key version), and a floating keypad (9-key version). If the second switching gesture is a second zoom-in gesture, then the initial keyboard type range corresponding to the second zoom-in gesture can include an ergonomic keyboard and a full-screen keyboard.
[0205] In some embodiments, the target keyboard type is determined based on the movement distance of the second switching gesture and a second distance threshold. For each keyboard type's virtual keyboard corresponding to an initial keyboard type range, the dual-screen computer pre-stores the correspondence between different second distance thresholds and different keyboard types within that initial keyboard type range. Specifically, the correspondence differs for the initial keyboard type ranges corresponding to different keyboard types. For the same keyboard type's virtual keyboard corresponding to an initial keyboard type range, the correspondence differs for different second switching gestures (such as a second zoom-out gesture and a second zoom-in gesture).
[0206] It is understandable that the different second distance thresholds in the above correspondence do not exceed the range of movement distance.
[0207] The movement distance of the second switching gesture is the distance between the starting position and the ending position of the second switching gesture entered by the user on the secondary display screen.
[0208] The second distance threshold is used to distinguish different keyboard types within the initial keyboard type range.
[0209] For example, for each virtual keyboard type, the developers set multiple second distance thresholds based on the number of keyboard types included in the initial keyboard type range. For each keyboard type within this initial range, the developers set the keyboard type corresponding to the distance interval between any two adjacent second distance thresholds. This results in the correspondence between different second distance thresholds and different keyboard types within the initial keyboard type range for each virtual keyboard type, and this correspondence is pre-stored in the dual-screen computer.
[0210] For example, taking a virtual keyboard of the first keyboard type as a virtual floating keypad (26-key version), and the user inputting a second shrinking gesture as an example. The initial keyboard type range corresponding to the floating keypad (26-key version) includes the following keyboard types: floating keypad (9-key version), numeric keypad, and voice keypad. The developers set three second distance thresholds based on this initial keyboard type range: second distance threshold a and second distance threshold b. When the movement distance is greater than 0 and does not exceed the second distance threshold a (i.e., 0 < movement distance ≤ second distance threshold a), the keyboard type corresponding to this distance range is set to the floating keypad (9-key version) within the initial keyboard type range. When the movement distance is greater than the second distance threshold a and does not exceed the second distance threshold b (i.e., second distance threshold a < movement distance ≤ second distance threshold b), the keyboard type corresponding to this distance range is set to the numeric keypad within the initial keyboard type range. When the movement distance is greater than the second distance threshold b (i.e., second distance threshold b < movement distance), the keyboard type corresponding to this distance range is set to the voice keypad within the initial keyboard type range.
[0211] Developers can use the above method to obtain the correspondence between the second distance threshold and the keyboard type within the initial keyboard type range corresponding to the virtual floating keyboard (26-key version) when performing the second shrink gesture. Developers can store this correspondence on a dual-screen computer so that the dual-screen computer can use it.
[0212] In other embodiments, the target keyboard type is determined based on the movement speed of the second switching gesture and a second speed threshold. For each keyboard type's virtual keyboard corresponding to an initial keyboard type range, the dual-screen computer pre-stores the correspondence between different second speed thresholds and different keyboard types within that initial keyboard type range. Specifically, the correspondence differs for the initial keyboard type ranges corresponding to different keyboard types. For the same keyboard type's virtual keyboard corresponding to an initial keyboard type range, the correspondence differs for different second switching gestures (such as a second zoom-out gesture and a second zoom-in gesture).
[0213] It is understandable that the different second speed thresholds in the above correspondence do not exceed the range of moving speeds.
[0214] The second speed threshold is used to distinguish different keyboard types within the initial keyboard type range.
[0215] The movement speed of the second switching gesture is the speed at which the user moves their finger or stylus away from the secondary display screen after ending the second switching gesture.
[0216] In other embodiments, the target keyboard type is determined based on the movement distance, movement speed, second distance threshold, and second speed threshold of the second switching gesture. For each keyboard type's virtual keyboard corresponding to an initial keyboard type range, the dual-screen computer pre-stores the correspondence between different second distance thresholds, different second speed thresholds, and different keyboard types within that initial keyboard type range. Specifically, the correspondence differs for the initial keyboard type ranges corresponding to different keyboard types. For the same keyboard type's virtual keyboard corresponding to an initial keyboard type range, the correspondence differs for different second switching gestures (such as a second zoom-out gesture and a second zoom-in gesture).
[0217] It is understood that in this embodiment, the keyboard type changes dynamically following the change of the second switching gesture.
[0218] It is understood that the above embodiments are detailed descriptions of various pre-stored correspondences in a dual-screen computer, and the specific implementation methods of each correspondence. The following details how a dual-screen computer determines the target keyboard type based on the above correspondences and displays the virtual keyboard corresponding to that target keyboard type.
[0219] In some embodiments, the dual-screen computer receives a second switching gesture input by the user, and determines the initial keyboard type range corresponding to the virtual keyboard of the first keyboard type based on the second switching gesture, the currently displayed virtual keyboard of the first keyboard type, and the pre-stored correspondence between different second switching gestures and the initial keyboard type range of virtual keyboards of different keyboard types.
[0220] After determining the initial keyboard type range corresponding to the virtual keyboard of the first keyboard type, the dual-screen computer determines the target keyboard type based on the movement distance of the second switching gesture and the correspondence between different keyboard types in the initial keyboard type range corresponding to the virtual keyboard of the first keyboard type, which is pre-stored with different second distance thresholds.
[0221] Alternatively, after determining the initial keyboard type range corresponding to the virtual keyboard of the first keyboard type, the dual-screen computer determines the target keyboard type based on the movement speed of the second switching gesture and the pre-stored correspondence between different second speed thresholds and different keyboard types in the initial keyboard type range corresponding to the virtual keyboard of the first keyboard type.
[0222] Alternatively, after determining the initial keyboard type range corresponding to the virtual keyboard of the first keyboard type, the dual-screen computer determines the target keyboard type based on the movement distance and speed of the second switching gesture, as well as the pre-stored correspondence between different second distance thresholds, different second speed thresholds, and different keyboard types in the initial keyboard type range corresponding to the virtual keyboard of the first keyboard type.
[0223] The dual-screen computer displays a virtual keyboard of the target keyboard type.
[0224] In some embodiments, the display position of the virtual keyboard of the target keyboard type is related to the position where the user performs the second switching operation. Taking the second switching operation as a second switching gesture as an example, the display position of the virtual keyboard of the target keyboard type is specifically related to the end position of the user's second switching gesture. For example, the end position of the second switching gesture is the touch point position on the secondary display screen when the user ends the second switching gesture and raises their hand.
[0225] In some embodiments, the display size of the virtual keyboard of the target keyboard type can be a preset size. Alternatively, the display size of the virtual keyboard of the target keyboard type can be determined by the movement distance and / or movement speed of the second switching gesture.
[0226] As is understandable, the method for determining the display size of the virtual keyboard of the target keyboard type is as described above, and will not be repeated here.
[0227] In this embodiment, during the execution of the second switching gesture (i.e., while sliding a finger or stylus on the secondary display screen), the dual-screen computer can display a preview image of a virtual keyboard corresponding to the current movement distance and / or current movement speed of the second switching gesture, within the initial keyboard type range corresponding to the first keyboard type and the second switching gesture. The display position of the preview image is related to the current sliding position of the user executing the second switching gesture. The display size of the preview image is related to the current movement distance and / or current movement speed of the user executing the second switching gesture.
[0228] The current movement distance of the second switching gesture is the distance between the starting position of the second switching gesture entered by the user on the secondary display screen and the current sliding position of the second switching gesture.
[0229] The current swipe position of the second switching gesture refers to the real-time touch point position of the user's finger or stylus as they swipe on the secondary display screen while inputting the second switching gesture. The current swipe position of the second switching gesture changes as the second switching gesture changes.
[0230] The current movement speed of the second switching gesture is the instantaneous speed at which the user slides their finger or stylus on the secondary display screen while performing the second switching gesture. The current movement speed of the second switching gesture changes as the second switching gesture changes. For example, the current movement speed of the second switching gesture is the ratio of the current movement distance of the second switching gesture to the time taken to move that current distance.
[0231] For example, based on the preset switching sequence shown in Figure 4 above, as shown in Figure 7(a), the dual-screen computer displays a virtual floating keyboard (26-key version), and the user inputs a second shrink gesture in the upper left corner of the virtual floating keyboard (26-key version). In response to this second shrink gesture, the dual-screen computer determines the initial keyboard type range corresponding to the virtual floating keyboard (26-key version) based on the second shrink gesture, the currently displayed virtual floating keyboard (26-key version), and the pre-stored correspondence between different second switching gestures and the initial keyboard type range for different keyboard types. This range includes: floating keyboard (nine-key layout), numeric keypad, and voice keyboard.
[0232] During the user's second zoom-out gesture, if the current movement distance of the second zoom-out gesture is less than the second distance threshold a, the dual-screen computer displays a preview of the virtual floating keypad (nine-grid version) at the location of the second zoom-out gesture, as shown in Figure 7(b). If the user continues to slide on the display screen, when the current movement distance of the second zoom-out gesture exceeds the second distance threshold a, the interface shown in Figure 7(c) is displayed, in which the dual-screen computer displays a preview of the virtual numeric keypad. If the movement distance at the end of the second zoom-out gesture is greater than the second distance threshold a but does not exceed the second distance threshold b, the dual-screen computer determines the target keyboard type as a numeric keypad, determines the display size of the virtual numeric keypad based on the movement distance at the end of the second zoom-out gesture, and determines the display position of the virtual numeric keypad based on the position at the end of the second zoom-out gesture. The dual-screen computer displays the virtual numeric keypad according to this display size and position. If the movement distance at the end of the second zoom-out gesture is greater than the second distance threshold b, the dual-screen computer determines the target keyboard type as a voice keyboard, determines the display size of the virtual voice keyboard based on the movement distance at the end of the second zoom-out gesture, and determines the display position of the virtual voice keyboard based on the position at the end of the second zoom-out gesture. Dual-screen computers display a virtual voice keyboard based on the screen size and position.
[0233] Understandably, the display size of the virtual keyboard of the target keyboard type is related to the movement distance and / or speed of the second switching operation, and the target keyboard type is also related to the movement distance and / or speed of the second switching operation. Therefore, for each keyboard type, the dual-screen computer can pre-store the correspondence between different thresholds, switching operations, keyboard types, and display sizes.
[0234] For example, as shown in Figure 8(a), when the switching operation is the second magnification gesture and the first keyboard type is a half-screen keyboard, the diagram illustrates the correspondence between the second distance threshold, the switching operation, the keyboard type, and the display size. The second distance threshold includes threshold a, threshold b, and threshold c. When 0 < movement distance ≤ threshold a, the keyboard type corresponding to this distance interval is keyboard type a; when threshold a < movement distance ≤ threshold b, the keyboard type corresponding to this distance interval is keyboard type b; and when threshold b < movement distance ≤ threshold c, the keyboard type corresponding to this distance interval is keyboard type c. The display size increases with the increase of the movement distance.
[0235] Figure 8(b) illustrates the correspondence between the second speed threshold, the switching operation, the keyboard type, and the display size when the switching operation is the second shrink gesture and the first keyboard type is a half-screen keyboard. The second speed threshold includes threshold A, threshold B, and threshold C. When 0 < movement speed ≤ threshold A, the keyboard type corresponding to this speed range is keyboard type A; when threshold A < movement speed ≤ threshold B, the keyboard type corresponding to this speed range is keyboard type B; and when threshold B < movement speed ≤ threshold C, the keyboard type corresponding to this speed range is keyboard type C. The display size increases with increasing movement speed.
[0236] In this application, the dual-screen computer, in response to the second switching operation, displays a preview image of the keyboard type corresponding to that operation in real time. Users can intuitively see the virtual keyboard switching effect, improving the smoothness and intuitiveness of the virtual keyboard switching. Furthermore, the dual-screen computer can automatically adjust the target keyboard type in response to the second switching operation. Multiple keyboard types can be switched in a single operation, increasing the flexibility and efficiency of the second switching operation. Real-time feedback based on changes in the second switching operation enhances the system's intelligence, resulting in a smoother user experience and improved control and satisfaction.
[0237] It is understood that the virtual keyboard switching in the above embodiments is based on the switching order. To facilitate user operation, some preset areas can be set in the virtual keyboard, and the keyboard type corresponding to each preset area can be determined. This allows the user to directly switch to the keyboard type corresponding to the preset area when operating on that preset area.
[0238] Specifically, for each keyboard type's virtual keyboard, developers can set a preset area and establish a mapping between this preset area and the target keyboard type. For each keyboard type's virtual keyboard, the dual-screen computer can store different preset area mappings to target keyboard types. These mappings can be different or the same for virtual keyboards of different keyboard types. For virtual keyboards of the same keyboard type, these mappings can be different or the same for different switching operations.
[0239] For example, taking a full-screen keyboard as an example, as shown in Figure 9, multiple preset areas can be set on the full-screen keyboard, such as the numeric keypad area 901, the spacebar area 902, and the areas on both sides of the touchpad 903. For example, if a switch operation is entered in the numeric keypad area 901, the dual-screen computer responds to the switch operation and determines that the target keyboard type is a numeric keypad. The dual-screen computer displays the numeric keypad at the location where the user performed the switch operation. For example, if a switch operation is entered in the spacebar area 902, the dual-screen computer responds to the switch operation and determines that the target keyboard type is a voice keyboard. The dual-screen computer displays the voice keyboard at the location where the user performed the switch operation. As another example, if a zoom-out gesture is entered in the areas on both sides of the touchpad 903, the target keyboard type is determined to be a full-screen standard keyboard in response to the zoom-out gesture. The dual-screen computer displays the full-screen standard keyboard at the location where the user performed the zoom-out gesture. If a zoom-in gesture is entered in the areas on both sides of the touchpad 903, the target keyboard type is determined to be a touchpad keyboard in response to the zoom-in gesture. The dual-screen computer displays the touchpad keyboard at the location where the user performed the zoom-in gesture.
[0240] As is understandable, the method for determining the display position and size of the virtual keyboard of the target keyboard type is as described above, and will not be repeated here.
[0241] In this embodiment, when the dual-screen computer receives a user input switching operation, it first determines whether the starting position of the switching operation is within a preset area of the virtual keyboard of the currently displayed first keyboard type. If the starting position of the switching operation is determined to be within the preset area of the currently displayed first keyboard type, the target keyboard type corresponding to the current switching operation is determined according to the pre-stored correspondence between preset areas and target keyboard types. At the end of the switching operation, the display size of the virtual keyboard of the target keyboard type is determined based on the movement distance and / or movement speed at the end of the switching operation, and the display position of the virtual keyboard of the target keyboard type is determined based on the position at the end of the switching operation. The dual-screen computer displays the virtual keyboard of the target keyboard type according to the display size and display position. If the starting position of the switching operation is determined not to be within the preset area of the virtual keyboard of the currently displayed first keyboard type, the target keyboard type is determined according to the switching order, and the virtual keyboard of the target keyboard type is displayed, according to the technical solution described in the above embodiment.
[0242] In this embodiment of the application, when the dual-screen computer receives a switching operation, if the current interface still displays text entered by the user, the dual-screen computer can also obtain the text type displayed on the current interface and determine the target keyboard according to the correspondence between the text type and the target keyboard pre-stored in the dual-screen computer.
[0243] The text types include, but are not limited to, numbers, letters, and Chinese characters. For example, the correspondence between text types and target keyboards can be: if the text type is numbers, the target keyboard is a numeric keyboard; if the text type is letters, the target keyboard can be a full-screen keyboard; if the text type is Chinese characters, the target keyboard can be a half-screen keyboard.
[0244] Optionally, the above correspondence between text types and target keyboards can also be updated according to user habits. For example, a dual-screen computer can collect data on the behavior of the virtual keyboard used when inputting different text types during a call, and update the correspondence between text types and target keyboards based on this data.
[0245] For example, Figure 10 shows a flowchart of the method for switching virtual keyboards on a dual-screen computer.
[0246] S1001, A virtual keyboard of the first keyboard type is displayed in the dual-screen computer, and the dual-screen computer receives user input switching gestures.
[0247] S1002. The dual-screen computer responds to the switching gesture and determines whether the starting position of the switching gesture is located in a preset area of the virtual keyboard of the first keyboard type. If yes, then execute S1003-S1005; otherwise, execute S1006-S1008.
[0248] S1003, Dual-screen computers determine the target keyboard type based on the preset area.
[0249] S1004. During the switching gesture swipe process, the dual-screen computer displays a preview image of the virtual keyboard of the target keyboard type. The size of the preview image is related to the current movement distance and / or current movement speed of the switching gesture, and the display position of the preview image is related to the current swipe position of the switching gesture.
[0250] S1005. When the switching gesture ends, the dual-screen computer displays a virtual keyboard of the target keyboard type. The display size of the virtual keyboard of the target keyboard type is related to the movement distance and / or movement speed when the switching gesture ends, and the display position of the virtual keyboard of the target keyboard type is related to the end position when the switching gesture ends.
[0251] It is understandable that the specific implementation methods of S1003-S1005 can be found in the above-described implementation method of determining the target keyboard type based on the preset area, and will not be repeated here.
[0252] S1006. The dual-screen computer determines the initial keyboard type range corresponding to the virtual keyboard of the first keyboard type based on the correspondence between the first keyboard type, the switching gesture, and the different switching gestures of the virtual keyboards of different keyboard types stored in advance, and the initial keyboard type range.
[0253] S1007. During the switching gesture swipe process, the dual-screen computer displays a preview image of a virtual keyboard of the keyboard type corresponding to the current movement distance and / or current movement speed of the switching gesture within the initial keyboard type range. The display size of the preview image is related to the current movement distance and / or current movement speed of the switching gesture, and the display position of the preview image is related to the current swipe position of the switching gesture.
[0254] S1008. When the switching gesture ends, the dual-screen computer determines the keyboard type in the initial keyboard type range that corresponds to the movement distance and / or movement speed at the end of the switching gesture as the target keyboard type, and displays a virtual keyboard of the target keyboard type. The display size of the virtual keyboard of the target keyboard type is related to the movement distance and / or movement speed at the end of the switching gesture, and the display position of the virtual keyboard of the target keyboard type is related to the end position at the end of the switching gesture.
[0255] It is understandable that the specific implementation methods of S1006-S1008 can be found in the above-described implementation method of determining the target keyboard type based on the preset area, and will not be repeated here.
[0256] Based on the above descriptions of various embodiments, Figure 11 shows a flowchart of another virtual keyboard switching method provided by this application embodiment, applied to an electronic device, the method including:
[0257] S1101, Display the first virtual keyboard.
[0258] The first virtual keyboard can be any type of virtual keyboard supported by the electronic device. For example, the first virtual keyboard can be any of the following: virtual full-screen keyboard, virtual half-screen keyboard, virtual floating keypad (26-key version), virtual floating keypad (9-key version), virtual handwriting keyboard, virtual numeric keypad, virtual voice keyboard, or virtual ergonomic keyboard.
[0259] S1102, Receive the first touch operation input by the user, the first touch operation is used to trigger the switching of the displayed virtual keyboard.
[0260] The first touch operation refers to the operation performed by the user on the touchscreen using a finger, stylus, or other conductive object. The first touch operation includes shortcut operations such as switching gestures and keyboard shortcuts as described above. Examples include first switching gestures, second switching gestures, operations on minimizing controls, and operations on zooming in / out controls. The first touch operation can be a swipe operation, a touch operation, or a zoom operation. Swipe and zoom operations are the switching gestures described above, such as the first or second switching gesture. Touch operations are the keyboard shortcut operations described above, such as clicking or double-clicking on minimizing controls.
[0261] Optionally, the operation used to trigger the switching of the virtual keyboard display can be a voice command, etc. The electronic device can respond to the voice command and switch the first virtual keyboard to the virtual keyboard indicated by the voice command.
[0262] S1103, In response to the first touch operation, display the second virtual keyboard.
[0263] In this embodiment of the application, the method further includes: after receiving a touch operation input by the user to trigger the switching of the virtual keyboard, determining the virtual keyboard to be displayed based on the area where the touch operation is located and the corresponding relationship; wherein, the corresponding relationship includes the correspondence between different areas and different virtual keyboards; different areas correspond to different areas pre-divided in the currently displayed virtual keyboard.
[0264] The touch operation used to trigger the virtual keyboard display switching can be either the first touch operation or the second touch operation mentioned above. The operation position of the touch operation can be either the starting position or the ending position. The starting position refers to the touch point position when the user begins to input touch operation, i.e., when the operating finger or stylus first touches the display screen. The ending position refers to the touch point position when the user ends the touch operation on the display screen, i.e., when the operating finger or stylus leaves the display screen.
[0265] The different areas refer to the different preset areas mentioned above. For each virtual keyboard, the electronic device can store the correspondence between the different preset areas of that virtual keyboard and different virtual keyboards.
[0266] Specifically, the electronic device determines whether the touch location is within a preset area based on the touch location of the touch operation.
[0267] If the touch location is determined to be within a preset area, the virtual keyboard corresponding to that preset area is determined based on the correspondence between the preset area and the virtual keyboard.
[0268] Taking a touch operation that triggers the switching of the virtual keyboard as the first touch operation, and the currently displayed virtual keyboard as the first virtual keyboard as an example, in this embodiment, after receiving the first touch operation input by the user, a second virtual keyboard is determined according to the area where the operation position of the first touch operation is located and a preset correspondence; wherein, the preset correspondence includes the correspondence between different areas and different virtual keyboards; different areas correspond to different areas pre-divided in the first virtual keyboard.
[0269] For example, the first virtual keyboard is a virtual full-screen keyboard, the first touch operation is a swipe operation, and the initial position of the swipe operation is located in the space bar area of the virtual full-screen keyboard. In response to this swipe operation, the electronic device determines that the virtual keyboard corresponding to the space bar area is a virtual voice keyboard.
[0270] In this way, electronic devices can quickly determine the second virtual keyboard based on the area where the touch operation is located and the preset correspondence, which can improve keyboard switching efficiency.
[0271] If it is determined that the touch location is not in the preset area, the virtual keyboard is determined according to the switching order as described below.
[0272] In this embodiment of the application, the method further includes: after receiving a touch operation input by the user to trigger the switching of the virtual keyboard, determining the virtual keyboard to be displayed based on the currently displayed virtual keyboard and the switching order, wherein the switching order is used to indicate the switching order between different virtual keyboards supported by the electronic device.
[0273] Taking a touch operation that triggers the switching of the virtual keyboard as the first touch operation, and the currently displayed virtual keyboard as the first virtual keyboard, as an example, in this embodiment, in response to the first touch operation, a second virtual keyboard is determined based on the first virtual keyboard and the switching order, wherein the switching order is used to indicate the switching order between different virtual keyboards supported by the electronic device.
[0274] In some embodiments, the touch operation used to trigger the switching of the displayed virtual keyboard is a swipe operation or a zoom operation, and the swipe direction of the touch operation includes a first direction or a second direction. For example, if the touch operation is a swipe operation, the first direction can be to the right (e.g., a right swipe operation), and the second direction can be to the left (e.g., a left swipe operation); if the touch operation is a zoom operation, the first direction can be inward (e.g., a zoom-out gesture), and the second direction can be outward (e.g., a zoom-in gesture). The electronic device pre-stores the correspondence between different swipe directions and different switching directions. For example, the switching direction corresponding to the first direction is a forward switching, that is, switching to a virtual keyboard after the currently displayed virtual keyboard in the switching sequence. The switching sequence corresponding to the second direction is a reverse switching, that is, switching to a virtual keyboard before the currently displayed virtual keyboard in the switching sequence.
[0275] It is understood that the above is only an example, and the embodiments of this application do not limit the correspondence between the sliding direction and the switching direction of the touch operation.
[0276] Specifically, the swiping direction of the touch operation on the electronic device determines the corresponding switching direction. Based on the currently displayed virtual keyboard, the switching order, and the switching direction, the virtual keyboard to be displayed is determined.
[0277] In some examples, the virtual keyboard to be displayed is the one adjacent to the currently displayed virtual keyboard in the switching sequence, corresponding to the switching direction.
[0278] For example, taking a touch operation as the first zoom-out gesture, the switching direction corresponding to this first zoom-out gesture is forward switching. The electronic device determines the virtual keyboard to be displayed as the next virtual keyboard after the currently displayed virtual keyboard in the switching sequence, based on the currently displayed virtual keyboard, the switching order, and the forward switching. Similarly, taking a touch operation as the first zoom-in gesture, the switching direction corresponding to this first zoom-in gesture is reverse switching. The electronic device determines the virtual keyboard to be displayed as the previous virtual keyboard before the currently displayed virtual keyboard in the switching sequence, based on the currently displayed virtual keyboard, the switching order, and the reverse switching.
[0279] It is understandable that in the above example, the virtual keyboard to be displayed is the virtual keyboard adjacent to the currently displayed virtual keyboard in the switching order, and the sequential touch operation only switches one virtual keyboard.
[0280] In this way, the switching direction is dynamically determined based on the swipe direction of the touch operation, so as to accurately switch virtual keyboards and improve the smoothness of the switching. Moreover, users can switch between different virtual keyboards by using the same switching operation. They do not need to learn complicated switching operations. They only need to roughly remember the switching sequence to complete the switching of virtual keyboards, which simplifies the switching operation and improves the user experience.
[0281] In other examples, the virtual keyboard to be displayed is determined based on the currently displayed virtual keyboard, the switching direction, and the operation parameters of the touch operation during the switching sequence.
[0282] In this embodiment, the touch operation used to trigger the switching of the virtual keyboard is a swipe operation or a zoom operation. Determining the virtual keyboard to be displayed based on the currently displayed virtual keyboard and the switching order includes: determining the virtual keyboard to be displayed based on the currently displayed virtual keyboard, the switching order, and the operation parameters of the touch operation, where the operation parameters include movement distance and / or movement speed.
[0283] The movement distance is the distance between the start and end positions of the user's touch input. The movement speed is the speed at which the user's finger or stylus moves away from the display screen after ending the touch operation. This movement speed can be instantaneous or average. For example, the movement speed of a touch operation is the ratio of the movement distance to the duration of the touch operation.
[0284] Taking a touch operation that triggers the switching of the virtual keyboard as the first touch operation, and the currently displayed virtual keyboard as the first virtual keyboard as an example. In this embodiment, the first touch operation is a sliding operation or a zooming operation; determining the second virtual keyboard based on the first virtual keyboard and the switching order includes: determining the second virtual keyboard based on the first virtual keyboard, the switching order, and the operation parameters of the first touch operation, wherein the operation parameters include the movement distance and / or the movement speed.
[0285] The movement distance is the distance between the start and end positions of the first touch operation input by the user. The movement speed is the speed at which the user moves their finger or stylus away from the display screen after ending the first touch operation. This movement speed can be instantaneous or average. For example, the movement speed of the first touch operation is the ratio of the movement distance of the first touch operation to the duration of the first touch operation.
[0286] Specifically, the swiping direction of the touch operation on the electronic device determines the corresponding switching direction. Based on the currently displayed virtual keyboard, switching order, switching direction, and touch operation swiping parameters, the virtual keyboard to be displayed is determined.
[0287] For example, taking a touch operation as the second zoom-out gesture, the switching direction corresponding to this second zoom-out gesture is forward switching. The electronic device determines, based on the currently displayed virtual keyboard, the switching order, the forward switching, and the movement distance of the second zoom-out gesture, that the virtual keyboard to be displayed is the one following the currently displayed virtual keyboard in the switching order, corresponding to the movement distance of the second zoom-out gesture. Similarly, taking a touch operation as the second zoom-in gesture, the switching direction corresponding to this second zoom-in gesture is reverse switching. The electronic device determines, based on the currently displayed virtual keyboard, the switching order, the reverse switching, and the movement speed of the second zoom-in gesture, that the virtual keyboard to be displayed is the one preceding the currently displayed virtual keyboard in the switching order, corresponding to the movement distance of the second zoom-in gesture.
[0288] In this way, electronic devices can dynamically adjust the virtual keyboard to be displayed based on the operation parameters of touch operations, improving the flexibility and adaptability of interaction, thereby enhancing the convenience and accuracy of the user experience. Different operation parameters for the same touch operation correspond to different virtual keyboards, improving the intelligence and efficiency of virtual keyboard switching.
[0289] In this embodiment of the application, when the electronic device switches the virtual keyboard according to the switching order, it can follow a cyclic switching rule. The specific implementation method is described above and will not be repeated here.
[0290] In other examples, the touch operation used to trigger the switching of the virtual keyboard is a touch operation, such as a click or double-click, which does not involve displacement. The electronic device pre-stores preset switching directions, such as forward or reverse switching. Specifically, after receiving a user's touch operation to trigger the switching of the virtual keyboard, the system determines the virtual keyboard to be displayed based on the currently displayed virtual keyboard, the preset switching direction, and the switching order. The virtual keyboard to be displayed is the one adjacent to the currently displayed virtual keyboard in the switching order, corresponding to that switching direction.
[0291] It's understandable that touch operations correspond to only one switching direction. When switching, the electronic device sequentially switches virtual keyboards according to the same switching direction. For example, if a touch operation is a click operation and the preset switching direction is forward, at the first moment, the user inputs a click near the first virtual keyboard. The electronic device responds to this click operation and determines the next virtual keyboard in the switching sequence after the second virtual keyboard as the one to be displayed. If at the second moment, the user inputs a click near the second virtual keyboard, the electronic device responds to this click operation and determines the next virtual keyboard in the switching sequence after the second virtual keyboard as the one to be displayed.
[0292] In some embodiments, the touch operation used to trigger the switching of the virtual keyboard is a touch operation, such as a click or double-click, which does not involve displacement, and the electronic device displays functional controls with different switching directions. For example, a "Previous / Zoom In" control corresponds to a reverse switching direction, and a "Next / Zoom Out" control corresponds to a forward switching direction. The electronic device responds to the user's touch operation on different functional controls, determines the switching direction, and determines the virtual keyboard to be displayed based on the currently displayed virtual keyboard, the switching order, and the switching direction.
[0293] It is understood that the embodiments of this application do not limit the specific implementation of determining the virtual keyboard to be displayed.
[0294] In this embodiment of the application, before displaying the virtual keyboard to be displayed, the method further includes: displaying a preview image of the virtual keyboard to be displayed; wherein the display position of the preview image of the virtual keyboard to be displayed is related to the position of the touch operation used to trigger the switching of the virtual keyboard display, and / or, the display size of the preview image of the virtual keyboard to be displayed is related to the operation parameters of the touch operation used to trigger the switching of the virtual keyboard display.
[0295] The location of the touch operation is the end point of the touch operation.
[0296] In this embodiment of the application, before the virtual keyboard to be displayed, the method further includes: during the execution of a touch operation to trigger the switching of the displayed virtual keyboard, displaying a preview image of the virtual keyboard corresponding to the current operation parameters of the touch operation in the switching sequence; wherein the display position of the preview image of the virtual keyboard corresponding to the current operation parameters of the touch operation is related to the current operation position of the touch operation, and / or, the display size of the preview image of the virtual keyboard corresponding to the current operation parameters of the touch operation is related to the current operation parameters of the touch operation.
[0297] The current operating position is the same as the current sliding position mentioned above, and the current operating parameters include the current moving distance and / or the current moving speed.
[0298] Taking a touch operation that triggers the switching of the virtual keyboard as the first touch operation, and the currently displayed virtual keyboard as the first virtual keyboard as an example, in this embodiment of the application, before displaying the second virtual keyboard, the method further includes: displaying a first preview image of the second virtual keyboard; wherein, the display position of the first preview image is related to the operation position of the first touch operation, and / or, the display size of the first preview image is related to the operation parameters of the first touch operation.
[0299] The position of the first touch operation is the end position of the first touch operation.
[0300] In this embodiment of the application, before displaying the second virtual keyboard, the method further includes: during the execution of the first touch operation, displaying a second preview image of the virtual keyboard corresponding to the current operation parameters of the first touch operation in the switching sequence; wherein the display position of the second preview image is related to the current operation position of the first touch operation, and / or, the display size of the second preview image is related to the current operation parameters of the first touch operation.
[0301] In this way, electronic devices display a real-time preview of the virtual keyboard when switching, allowing users to intuitively see the switching effect and improving the smoothness and intuitiveness of virtual keyboard switching. Furthermore, dual-screen computers can dynamically switch between virtual keyboards and their previews based on the current touch operation, allowing multiple virtual keyboards to be switched with a single touch operation, increasing the flexibility and efficiency of virtual keyboard switching. Real-time feedback based on changes in touch operation parameters and position enhances system intelligence, resulting in a smoother user experience and improved control and satisfaction.
[0302] In this application embodiment, the switching order includes one or more of the following: a preset switching order between different virtual keyboards; a personalized switching order between different virtual keyboards generated based on the user's historical behavior data of using different virtual keyboards; and a custom switching order between different virtual keyboards generated in response to user-defined operations.
[0303] In some embodiments, the display position of the second virtual keyboard is related to the position where the user performs the first touch operation; the display size of the second virtual keyboard is related to the operation parameters of the user performing the first touch operation.
[0304] In this way, the display effect of the second virtual keyboard is related to the first touch operation, which can provide accurate display effect and improve user experience.
[0305] S1104. Receive a second touch operation input by the user. The second touch operation is used to trigger the switching of the displayed virtual keyboard. The second touch operation is the same as the first touch operation.
[0306] The second touch operation being identical to the first touch operation includes the following: the switching intention indicated by the first touch operation is the same as the switching intention indicated by the second touch operation. The switching intention can be that the switching direction indicated by the first and second touch operations is the same, such as both being forward switching or both being reverse switching. The operation parameters, operation positions, and number of touch points corresponding to the first and second touch operations can be different.
[0307] For example, the first and second touch operations can be clicks, double-clicks, or other touch gestures. They can also be used to shrink a control. Furthermore, when the first and second touch operations are zoom operations, they operate in the same direction, such as both moving inwards (shrinking) or both moving outwards (zooming in). They can also move left or right. The first touch operation can be a multi-finger zoom-out gesture, and the second touch operation can be a two-finger zoom-out gesture.
[0308] S1105, In response to the second touch operation, display the third virtual keyboard.
[0309] In this embodiment of the application, after receiving the second touch operation input by the user, a third virtual keyboard is determined according to the area where the operation position of the second touch operation is located and a preset correspondence; wherein, the preset correspondence includes the correspondence between different areas and different virtual keyboards; different areas correspond to different areas pre-divided in the second virtual keyboard.
[0310] In this embodiment of the application, displaying a third virtual keyboard in response to a second touch operation includes: determining a third virtual keyboard based on the second virtual keyboard and a switching order in response to the second touch operation, wherein the switching order is used to indicate the switching order between different virtual keyboards supported by the electronic device.
[0311] In this embodiment of the application, the second touch operation is a sliding operation or a zooming operation; determining the third virtual keyboard according to the second virtual keyboard and the switching order includes: determining the third virtual keyboard according to the second virtual keyboard, the switching order and the operation parameters of the second touch operation, wherein the operation parameters include the movement distance and / or the movement speed.
[0312] In this embodiment of the application, before displaying the third virtual keyboard, the method further includes: displaying a third preview image of the third virtual keyboard; wherein the display position of the third preview image is related to the operation position of the second touch operation, and / or the display size of the third preview image is related to the operation parameters of the second touch operation.
[0313] In this embodiment of the application, before displaying the third virtual keyboard, the method further includes: during the execution of the second touch operation, displaying a fourth preview image of the virtual keyboard corresponding to the current operation parameters of the second touch operation in the switching sequence; wherein the display position of the fourth preview image is related to the current operation position of the second touch operation, and / or, the display size of the fourth preview image is related to the current operation parameters of the second touch operation.
[0314] In this embodiment, the display position of the third virtual keyboard is related to the position where the user performs the second touch operation; the display size of the third virtual keyboard is related to the operation parameters of the user performing the second touch operation.
[0315] It is understandable that the specific implementation of displaying the third virtual keyboard in response to the second touch operation in S1105 is described in S1103 above, and will not be repeated here.
[0316] In this embodiment of the application, after displaying the third virtual keyboard, the method further includes: receiving a third touch operation input by the user, the third touch operation being used to trigger switching of the displayed virtual keyboard, and the third touch operation being different from the first touch operation; and displaying a second virtual keyboard in response to the third touch operation.
[0317] The differences between the third touch operation and the first touch operation include: the switching intention indicated by the third touch operation differs from that indicated by the first touch operation. Specifically, the switching intention may differ in the switching direction indicated by the first and second touch operations; for example, the first touch operation indicates a forward switching direction, while the third touch operation indicates a reverse switching direction. The operation parameters, operation position, and number of touch points of the first touch operation can also differ.
[0318] Optionally, after displaying the second virtual keyboard, the method further includes: receiving a fourth touch operation input by the user, the fourth touch operation being used to trigger switching of the displayed virtual keyboard, and the fourth touch operation being the same as the third touch operation; and displaying the first virtual keyboard in response to the fourth touch operation.
[0319] In this embodiment of the application, after receiving the first touch operation input by the user, a second virtual keyboard is determined according to the text type of the input text, and the second virtual keyboard corresponds to the text type.
[0320] In this way, the second virtual keyboard is determined based on the text type of the entered text, which expands the way virtual keyboard switching is determined and makes the device more intelligent.
[0321] In this way, the same touch operation can be used to switch between different virtual keyboard types. This is easy to learn and remember, reduces the difficulty of operation, and improves switching efficiency. Furthermore, a preview of the virtual keyboard corresponding to the current touch operation is displayed in real time during the touch operation, allowing users to intuitively see previews of different virtual keyboards, improving smoothness and user experience.
[0322] The foregoing mainly describes the solutions provided by the embodiments of this application from a methodological perspective. To achieve the above functions, it includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, based on the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0323] This application embodiment can divide the above-described electronic device into functional modules based on the method example described above. For example, each function can be divided into its own functional modules, or two or more functions can be integrated into one processing module. The integrated modules can be implemented in hardware or as software functional modules. It should be noted that the module division in this application embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.
[0324] Based on the same inventive concept, as shown in FIG12, which is a schematic diagram of the structure of an electronic device provided in an embodiment of this application, the electronic device 1200 may include a transceiver module 1201, a processing module 1202, and a display module 1203. The electronic device 1200 can be used to implement the functions of the electronic device involved in the above method embodiments.
[0325] Optionally, the transceiver module 1201 is used to support the electronic device 1200 in interacting with other electronic devices.
[0326] Optionally, the processing module 1202 is used to support the electronic device 1200 in implementing the processing functions shown in FIG10 or FIG11.
[0327] Optionally, the display module 1203 is used to support the electronic device 1200 in implementing the display function shown in Figure 10 or Figure 11.
[0328] Optionally, the transceiver module may include a receiving unit and a transmitting unit, and may be implemented by a transceiver or transceiver-related circuit components, and may be a transceiver or a transceiver module. The operation and / or function of each unit in the electronic device 1200 are respectively to implement the corresponding process of the virtual keyboard switching method described in the above method embodiments. All relevant content of each step involved in the above method embodiments can be referred to the functional description of the corresponding functional unit, and for the sake of brevity, it will not be repeated here.
[0329] Optionally, the electronic device 1200 shown in FIG12 may further include a storage unit (not shown in FIG12) storing a program or instructions. When the transceiver module 1201, the processing module 1202, and the display module 1203 execute the program or instructions, the electronic device 1200 shown in FIG12 can execute the virtual keyboard switching method described in the above method embodiment.
[0330] The technical effect of the electronic device 1200 shown in Figure 12 can be referred to the technical effect of the virtual keyboard switching method described in the above method embodiment, and will not be repeated here.
[0331] In addition to being in the form of electronic device 1200, the technical solution provided in this application can also be a functional unit or chip in an electronic device, or a device used in conjunction with an electronic device.
[0332] This application also provides a virtual keyboard switching device, which includes a processor and a memory. The memory is coupled to the processor and is used to store computer-readable instructions. When the processor reads the computer-readable instructions from the memory, the virtual keyboard switching device executes the method described in the above method embodiments.
[0333] This application also provides a chip system, as shown in FIG13. The chip system 1300 includes at least one processor 1301 and at least one interface circuit 1302. As an example, when the chip system 1300 includes one processor and one interface circuit, the processor can be the processor 1301 shown in the solid box in FIG13 (or the processor 1301 shown in the dashed box), and the interface circuit can be the interface circuit 1302 shown in the solid box in FIG13 (or the interface circuit 1302 shown in the dashed box). When the chip system 1300 includes two processors and two interface circuits, the two processors include the processor 1301 shown in the solid box and the processor 1301 shown in the dashed box in FIG13, and the two interface circuits include the interface circuit 1302 shown in the solid box and the interface circuit 1302 shown in the dashed box in FIG13. This is not a limitation.
[0334] Processor 1301 and interface circuit 1302 can be interconnected via lines. For example, interface circuit 1302 can be used to receive signals. As another example, interface circuit 1302 can be used to send signals to other devices (e.g., processor 1301). Exemplarily, interface circuit 1302 can read instructions stored in memory and send the instructions to processor 1301. When the instructions are executed by processor 1301, the steps in the above embodiments can be performed. Of course, the chip system may also include other discrete devices, and this application embodiment does not specifically limit this.
[0335] Optionally, there can be one or more processors in the chip system. The processor can be implemented in hardware or software. When implemented in hardware, the processor can be a logic circuit, integrated circuit, etc. When implemented in software, the processor can be a general-purpose processor that reads software code stored in memory.
[0336] Optionally, the chip system may also include a memory (not shown in Figure 13). There may be one or more memories, which may be integrated with the processor or disposed separately from it; this application does not limit this. For example, the memory may be a non-transient processor, such as read-only memory (ROM), which may be integrated with the processor on the same chip or disposed separately on different chips. This application does not specifically limit the type of memory or the arrangement of the memory and processor. For example, the chip system may be a field-programmable gate array (FPGA), an application-specific integrated circuit (ASIC), a system-on-a-chip (SoC), a central processing unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD), or other integrated chips.
[0337] It should be understood that each step in the above method embodiments can be completed by integrated logic circuits in the processor hardware or by instructions in software form. The method steps disclosed in the embodiments of this application can be directly manifested as being executed by a hardware processor, or being executed by a combination of hardware and software modules in the processor.
[0338] This application also provides a computer storage medium storing computer instructions. When the computer instructions are executed on an electronic device, the electronic device performs the method described in the above-described method embodiments.
[0339] Computer-readable storage media include, but are not limited to, any of the following: USB flash drive, portable hard drive, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, and other media capable of storing program code.
[0340] This application provides a computer program product, which includes a computer program or instructions that, when run on a computer, cause the computer to perform the methods described in the above-described method embodiments.
[0341] 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 may execute the computer execution instructions stored in the memory to cause the apparatus to perform the methods in the above-described method embodiments.
[0342] In addition, this application also provides a system, which may specifically be a chip, component or module. The system may include a connected processor and a memory. The memory is used to store computer execution instructions. When the system is running, the processor can execute the computer execution instructions stored in the memory to enable the system to perform the methods in the above-described method embodiments.
[0343] In this embodiment, the electronic device, computer storage medium, computer program product or chip are all used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects of the corresponding method provided above, and will not be repeated here.
[0344] The steps of the methods or algorithms described in conjunction with the embodiments of this application can be implemented in hardware or by a processor executing software instructions. The software instructions can consist of corresponding software modules, which can be stored in random access memory (RAM), flash memory, read-only memory, erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, portable hard disks, compact disc read-only memory (CD-ROM), or any other form of storage medium well known in the art. An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can reside in an application-specific integrated circuit (ASIC).
[0345] Through the above description of the embodiments, those skilled in the art will clearly understand that, for the sake of convenience and brevity, the division of the above functional modules is only used as an example. In practical applications, the above functions can be assigned to different functional modules as needed; that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device, and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0346] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. The embodiments can be combined with or referenced to each other without conflict. The apparatus embodiments described above are merely illustrative; for example, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0347] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0348] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0349] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, essentially or in other words, the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. The software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0350] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for switching virtual keyboards, characterized in that, Applied to electronic devices, the method includes: Display the first virtual keyboard; The system receives a first touch input from the user, which triggers a switch to display a virtual keyboard. In response to the first touch operation, a second virtual keyboard is displayed; The system receives a second touch operation from the user, which triggers the switching of the displayed virtual keyboard. The second touch operation is the same as the first touch operation. In response to the second touch operation, a third virtual keyboard is displayed.
2. The method according to claim 1, characterized in that, After displaying the third virtual keyboard, the method further includes: The system receives a third touch operation input by the user, which triggers the switching of the displayed virtual keyboard, and the third touch operation is different from the first touch operation. In response to the third touch operation, the second virtual keyboard is displayed.
3. The method according to claim 1 or 2, characterized in that, The method further includes: After receiving the first touch operation input by the user, the second virtual keyboard is determined according to the area where the operation position of the first touch operation is located and the preset correspondence. The preset correspondence includes the correspondence between different regions and different virtual keyboards; the different regions correspond to different regions pre-divided in the first virtual keyboard.
4. The method according to claim 1 or 2, characterized in that, The step of displaying a second virtual keyboard in response to the first touch operation includes: In response to the first touch operation, a second virtual keyboard is determined based on the first virtual keyboard and the switching order, the switching order being used to indicate the switching order among different virtual keyboards supported by the electronic device.
5. The method according to claim 4, characterized in that, The first touch operation is a swipe operation or a zoom operation; Determining the second virtual keyboard based on the first virtual keyboard and the switching order includes: The second virtual keyboard is determined based on the first virtual keyboard, the switching order, and the operation parameters of the first touch operation, wherein the operation parameters include the movement distance and / or the movement speed.
6. The method according to claim 5, characterized in that, Before displaying the second virtual keyboard, the method further includes: Displaying a first preview image of the second virtual keyboard; Wherein, the display position of the first preview image is related to the operation position of the first touch operation, and / or, the display size of the first preview image is related to the operation parameters of the first touch operation.
7. The method according to claim 5 or 6, characterized in that, Before displaying the second virtual keyboard, the method further includes: During the execution of the first touch operation, a second preview image of the virtual keyboard corresponding to the current operation parameters of the first touch operation in the switching sequence is displayed; The display position of the second preview image is related to the current operation position of the first touch operation, and / or the display size of the second preview image is related to the current operation parameters of the first touch operation.
8. The method according to any one of claims 4 to 7, characterized in that, The switching order includes one or more of the following: Preset switching order between different virtual keyboards; A personalized switching order between different virtual keyboards is generated based on the user's historical behavior data when using different virtual keyboards. A custom switching order between different virtual keyboards generated in response to user-defined actions.
9. The method according to any one of claims 1 to 8, characterized in that, The display position of the second virtual keyboard is related to the operation position where the user performs the first touch operation; the display size of the second virtual keyboard is related to the operation parameters of the user performing the first touch operation.
10. The method according to claim 1 or 2, characterized in that, The method further includes: After receiving the first touch operation input by the user, the second virtual keyboard is determined according to the text type of the input text, and the second virtual keyboard corresponds to the text type.
11. An electronic device, characterized in that, include: A memory, one or more processors; the memory is coupled to the processors; wherein the memory stores computer program code, the computer program code including computer instructions, which, when executed by the processor, cause the electronic device to perform the method as described in any one of claims 1-10.
12. A computer-readable storage medium, characterized in that, Includes computer instructions that, when executed on an electronic device, cause the electronic device to perform the method as described in any one of claims 1-10.
13. A computer program product, characterized in that, When the computer program product is run on a computer, it causes the computer to perform the method as described in any one of claims 1-10.