Keyboard display method and device, vehicle and storage medium

By calculating the anchor point information of the keyboard and performing boundary conflict detection in the automotive intelligent cockpit system, the keyboard and editing box are prioritized for center alignment, which solves the problem of excessive lateral distance between the keyboard and editing box, and improves human-computer interaction efficiency and driving safety.

CN121255348APending Publication Date: 2026-01-02GREAT WALL MOTOR CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202511822214.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-05
Publication Date
2026-01-02

AI Technical Summary

Technical Problem

In automotive intelligent cockpit systems, excessive lateral distance between the keyboard and the editing box makes one-handed operation difficult, affecting input efficiency and driving safety.

Method used

By responding to the input events of the edit box, its position information is obtained, the anchor point information of the keyboard is calculated, and boundary conflict detection is performed. The keyboard and the edit box are centered and aligned. If there is a conflict, the display mode is adjusted to overlap with the screen on one side to reduce the horizontal distance.

Benefits of technology

It significantly improves human-computer interaction efficiency, reduces the time users spend focusing on input, enhances driving safety, and enables one-handed operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121255348A_ABST
    Figure CN121255348A_ABST
Patent Text Reader

Abstract

The invention provides a keyboard display method and device, a vehicle and a storage medium, and relates to the technical field of input methods.The method comprises the steps that an input event of an edit box is responded, and position information of the edit box is obtained; obtaining anchor point information of the keyboard according to the position information and the size information of the keyboard, wherein the anchor point information is coordinate information of a target vertex of the keyboard in a first display mode; boundary conflict detection is conducted on the keyboard according to the anchor point information and the size information, the keyboard is controlled to be displayed in a first display mode or a second display mode according to a detection result, the first display mode is a display mode in which the keyboard and the edit box are centered and aligned, and the second display mode is a display mode in which the keyboard and the edit box are centered and aligned. The second display mode is a display mode in which one side of the keyboard is overlapped with one side of the screen; the problems of large input span and inconvenient operation on ultra-wide screen equipment are effectively solved, and the man-machine interaction efficiency and the driving safety are remarkably improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of input method technology, and specifically to a keyboard display method, device, vehicle, and storage medium. Background Technology

[0002] In automotive intelligent cockpit systems, a continuous long screen is often installed. When the driver enters the destination in the navigation application on the driver's side, the system defaults to popping up a soft keyboard from the left side of the screen. This results in the horizontal distance between the editing box and the keyboard exceeding 40 centimeters, making one-handed operation difficult and seriously affecting input efficiency and driving safety. Summary of the Invention

[0003] In view of this, the present invention aims to provide a keyboard display method, device, vehicle and storage medium, which effectively solves the problem of "large input span and inconvenient operation" on ultra-wide screen devices, and significantly improves human-computer interaction efficiency and driving safety.

[0004] To achieve the above technical objectives, the embodiments of this specification provide the following technical solutions: In a first aspect, embodiments of this application provide a keyboard display method, which includes: responding to an input event of an edit box and obtaining position information of the edit box; obtaining anchor point information of the keyboard based on the position information and the size information of the keyboard, wherein the anchor point information is the coordinate information of a target vertex of the keyboard in a first display mode, wherein the first display mode is a display mode in which the keyboard and the edit box are centered and aligned; performing boundary conflict detection on the keyboard based on the anchor point information and the size information, and controlling the keyboard to be displayed in a first display mode or a second display mode based on the detection result, wherein the second display mode is a display mode in which one side of the keyboard overlaps with one side of the screen.

[0005] In this embodiment, the keyboard and the editing box are centered and aligned to avoid problems such as large input span and inconvenient operation. When it is determined that there is a boundary conflict between the keyboard and the editing box when centered and aligned according to the anchor point information of the keyboard, the display mode of the keyboard is adjusted. This effectively solves the problem of "large input span and inconvenient operation" on ultra-wide screen devices, significantly improves human-computer interaction efficiency, reduces the time users spend focusing on input, and allows for one-handed operation, thereby improving driving safety.

[0006] Optionally, the position information includes the first width and edge coordinates of the editing box in a preset coordinate system; the preset coordinate system has the top endpoint of the screen as the origin, the horizontal extension direction of the screen edge as the first coordinate axis direction, and the vertical extension direction of the screen edge as the second coordinate axis direction; the edge coordinates include the projection coordinates of the border of the editing box near the second coordinate axis on the first coordinate axis; obtaining the anchor point information of the keyboard according to the position information and the size information of the keyboard includes: calculating the sum of the edge coordinates and half of the first width to obtain the center coordinates of the editing box; obtaining the anchor point information of the keyboard according to the center coordinates and the size information.

[0007] In this embodiment, the center coordinates are determined based on the edge coordinates of the edit box and the first width of the edit box. Then, combined with the size information of the keyboard, the anchor point information of the keyboard can be accurately obtained. Then, based on the anchor point information, it can be determined whether the keyboard can be fully displayed when displayed in the first display mode.

[0008] Optionally, the size information includes the second width of the keyboard; obtaining the anchor point information of the keyboard based on the center coordinates and the size information includes: calculating the difference between the center coordinates and half of the second width to obtain the first coordinate of the projection of the target vertex of the keyboard on the first coordinate axis in a preset coordinate system; and using the first coordinate as the anchor point information of the keyboard.

[0009] In this embodiment, by calculating the first coordinates of the projection of the target vertex onto the first coordinate axis using the center coordinates of the edit box and the second width, the anchor point information of the keyboard can be accurately obtained, which facilitates subsequent accurate detection of whether the keyboard can be fully displayed in the first display mode based on the anchor point information.

[0010] Optionally, the step of performing boundary conflict detection on the keyboard based on the anchor point information and the size information, and controlling the keyboard to be displayed in a first display mode or a second display mode based on the detection result, includes: detecting whether the keyboard and the screen boundary conflict based on the first coordinates and the size information; if the keyboard and the screen boundary conflict, controlling the keyboard to be displayed in the second display mode; if the keyboard and the screen boundary do not conflict, controlling the keyboard to be displayed in the first display mode.

[0011] In this embodiment, by performing boundary conflict detection on the keyboard based on the first coordinates and the size information, and adjusting the keyboard to display in a first display mode when there is no conflict and in a second display mode when there is a conflict, it is possible to minimize the horizontal distance between the keyboard and the editing box while ensuring the full display of the keyboard, thus facilitating the user's input operation.

[0012] Optionally, detecting whether the boundaries of the keyboard and the screen conflict based on the first coordinates and the size information includes: detecting whether the first boundary of the keyboard and the screen conflict based on the first coordinates and the size information; if so, determining that the keyboard conflicts with the first boundary; if the keyboard does not conflict with the first boundary, further detecting whether the second boundary of the keyboard and the screen conflict based on the first coordinates and the size information; if so, determining that the keyboard conflicts with the second boundary; if the keyboard does not conflict with the second boundary, determining that the boundaries of the keyboard and the screen do not conflict.

[0013] In this embodiment, by detecting whether the keyboard and the first and second boundaries of the screen conflict, it is determined that the keyboard and the screen do not conflict only when neither the first nor the second boundary of the keyboard conflicts. This allows for accurate determination of whether the keyboard can be fully displayed in the first display mode, and facilitates subsequent adjustment of the keyboard's display mode.

[0014] Optionally, detecting whether the keyboard and the screen conflict on the first boundary based on the first coordinate and the size information includes: detecting whether the first coordinate is less than the projection coordinate of the screen's first boundary on the first coordinate axis; further detecting whether the keyboard and the screen conflict on the second boundary based on the first coordinate and the size information includes: detecting whether the sum of the first coordinate and the second width is greater than the projection coordinate of the screen's second boundary on the first coordinate axis.

[0015] In this embodiment, the horizontal coordinates of the left and right borders of the keyboard are determined based on the first coordinates and the second width of the keyboard. Then, they are compared with the left and right borders of the screen respectively to determine whether the keyboard conflicts with the first and second borders of the screen. This can accurately detect the conflict between the keyboard and the screen borders, which helps to adjust the keyboard display based on the conflict results.

[0016] Optionally, the second display mode includes a first edge-fitting display mode and a second edge-fitting display mode; the step of controlling the keyboard to display in the second display mode if the keyboard conflicts with the boundary of the screen includes: if the keyboard conflicts with the first boundary, controlling the keyboard to display in the first edge-fitting display mode, wherein the first edge-fitting display mode means that the projection coordinates of the target vertex of the keyboard on the first coordinate axis are the projection coordinates of the first boundary on the first coordinate axis; if the keyboard conflicts with the second boundary, controlling the keyboard to display in the second edge-fitting display mode, wherein the second edge-fitting display mode means that the projection coordinates of the target vertex of the keyboard on the first coordinate axis are the difference between the projection coordinates of the second boundary on the first coordinate axis and the second width of the keyboard.

[0017] In this embodiment, based on the conflict between the keyboard and the screen boundary, the overlap between the keyboard border and the conflicting screen boundary is adjusted. This ensures that the keyboard is fully displayed while minimizing the lateral distance between the keyboard and the editing box, significantly improving human-computer interaction efficiency and driving safety.

[0018] Secondly, embodiments of this application also provide a keyboard display device, the device comprising: a position acquisition module, configured to acquire position information of the edit box in response to an input event of the edit box; an anchor point acquisition module, configured to acquire anchor point information of the keyboard according to the position information and the size information of the keyboard, wherein the anchor point information is the coordinate information of the target vertex of the keyboard in a first display mode, wherein the first display mode is a display mode in which the keyboard and the edit box are centered and aligned; and a control display module, configured to perform boundary conflict detection on the keyboard according to the anchor point information and the size information, and control the display of the keyboard in a first display mode or a second display mode according to the detection result, wherein the second display mode is a display mode in which one side of the keyboard overlaps with one side of the screen.

[0019] Thirdly, embodiments of this application also provide a vehicle, including: a memory for storing an executable computer program; and a processor for calling and running the executable computer program from the memory, causing the processor to perform the aforementioned method.

[0020] Fourthly, embodiments of this application also provide a computer-readable storage medium storing a computer program that, when executed, implements the aforementioned method.

[0021] As can be seen from the above technical solution, the keyboard display method provided in this specification obtains the position information of the editing box by responding to the input event of the editing box; obtains the anchor point information of the keyboard according to the position information and the size information of the keyboard, wherein the anchor point information is the coordinate information of the target vertex of the keyboard in the first display mode; performs boundary conflict detection on the keyboard according to the anchor point information and the size information, and controls the keyboard to be displayed in the first display mode or the second display mode according to the detection result, wherein the first display mode is the display mode in which the keyboard and the editing box are centered and aligned, and the second display mode is the display mode in which one side of the keyboard overlaps with one side of the screen; prioritizes controlling the keyboard to be centered and aligned with the editing box to avoid the problem of large input span and inconvenient operation. When it is determined according to the anchor point information of the keyboard that there is a boundary conflict in the centered alignment display of the keyboard and the editing box, the display mode of the keyboard is adjusted. This effectively solves the problem of "large input span and inconvenient operation" on ultra-wide screen devices, significantly improves the efficiency of human-computer interaction, reduces the time users focus on input, and allows for one-handed operation, thereby improving driving safety.

[0022] The above description is merely an overview of the technical solution disclosed herein. In order to better understand the technical means of this disclosure and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this disclosure more apparent and understandable, specific embodiments of this disclosure are described below. Attached Figure Description

[0023] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the scope of this disclosure. Furthermore, the same reference numerals denote the same parts throughout the drawings.

[0024] Figure 1 The diagram shown is a schematic flowchart of the keyboard display method provided in an embodiment of this application.

[0025] Figure 2 The diagram shown is an example of the first display mode of the keyboard provided in an embodiment of this application.

[0026] Figure 3 The image shown is an example diagram of the first edge-mounted display mode of the keyboard provided in an embodiment of this application.

[0027] Figure 4 The image shown is an example of the second edge-mounted display mode of the keyboard provided in an embodiment of this application.

[0028] Figure 5 The diagram shown is a schematic representation of a keyboard display device according to an embodiment of this application.

[0029] Figure 6 The diagram shown is a structural schematic of a vehicle provided in one embodiment of this application. Detailed Implementation

[0030] Unless otherwise defined, the technical or scientific terms used in the embodiments of this specification shall have the ordinary meaning understood by one of ordinary skill in the art to which this specification pertains. The terms "first," "second," and similar terms used in the embodiments of this specification do not indicate any order, quantity, or importance, but are merely used to avoid confusion of constituent elements.

[0031] Unless the context otherwise requires, throughout this specification, "a plurality of" means "at least two," and "including" is interpreted as open-ended or encompassing, that is, "including, but not limited to." In the description of this specification, terms such as "one embodiment," "some embodiments," "exemplary embodiment," "example," "specific example," or "some examples" are intended to indicate that a particular feature, structure, material, or characteristic associated with that embodiment or example is included in at least one embodiment or example of this specification. The illustrative representations of the above terms do not necessarily refer to the same embodiment or example.

[0032] Exemplary embodiments of the present disclosure will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.

[0033] In related technologies, automotive smart cockpit systems often feature a continuous, long screen. When the driver enters their destination in the navigation app on the driver's side, the system defaults to displaying a soft keyboard from the left side of the screen. However, because third-party input methods are mostly focused on mobile devices and not adapted to the special layout of the ultra-wide in-vehicle screen, and Android / iOS do not support center alignment by default, and the keyboard display position in in-vehicle systems is currently fixed by default, the lateral distance between the editing box and the keyboard exceeds 40 centimeters. This excessive lateral distance between the centered keyboard and the edge editing box makes one-handed operation difficult, resulting in low input efficiency, high error rates, and inconvenience, seriously affecting input efficiency and driving safety. For example, the `windowSoftInputMode` in the Android system does not support center alignment, leading to excessive lateral distance between the keyboard and the editing box and inconvenient operation.

[0034] Therefore, in order to solve the technical problem of inconvenient operation caused by excessive lateral distance between the keyboard and the editing box in related technologies, this application provides a keyboard display method, such as... Figure 1 As shown, Figure 1 This is a schematic flowchart illustrating a keyboard display method provided in an embodiment of this application. The keyboard display method is applied to a vehicle body controller and includes: Step S11: Respond to the input event of the edit box and obtain the position information of the edit box.

[0035] The system listens for input events in an Internet Protocol (IP) edit box, where an input event refers to a user clicking the edit box. In response to this input event, it obtains the position information of the edit box. This position information can be the target vertex position and width information of the edit box. The target vertex position can be the top-left corner or the top-right corner of the edit box, etc. This embodiment uses the top-left corner as an example. When the user clicks the edit box on the screen, the input method manager service (IMMS) obtains the borders of the edit box and transmits them to the IP Multimedia Subsystem (IMS) via inter-process communication. The IMS obtains the borders of the edit box and calculates the target vertex position displayed on the keyboard. For example, when the user clicks the "destination input box" in a navigation application, the View.onFocusChanged(true) event is triggered. The Human Machine Interface (HMI) framework captures this event and notifies the input method manager service. View.onFocusChanged() is used to handle the focus change event of the View.

[0036] Step S12: Obtain the anchor point information of the keyboard based on the position information and the size information of the keyboard. The anchor point information is the coordinate information of the target vertex of the keyboard in the first display mode, wherein the first display mode is the display mode in which the keyboard and the edit box are centered and aligned.

[0037] The target vertex is either the top-left or top-right corner of the keyboard. The size of the keyboard to be displayed is fixed, meaning its width and height are constant. The keyboard needs to be displayed correctly on the screen and cannot extend beyond the screen edge, as this could result in incomplete display and affect user input. To ensure the keyboard is fully displayed on the screen, anchor point information can be obtained based on the position and size information. This anchor point information represents the coordinates of the target vertex of the keyboard in the first display mode, specifically the coordinates of the target vertex when the keyboard is centered with the edit box. This anchor point information, along with the keyboard's size, can then be used to determine whether the keyboard can be displayed correctly in the first display mode, effectively addressing the issues of large input spans and inconvenient operation on ultra-wide screen devices.

[0038] Step S13: Perform boundary conflict detection on the keyboard based on the anchor point information and the size information, and control the keyboard to be displayed in a first display mode or a second display mode based on the detection result, wherein the second display mode is a display mode in which one side of the keyboard overlaps with one side of the screen.

[0039] To address the issue of excessive lateral distance between the editing box and the keyboard, resulting in large input spans and inconvenient operation, the keyboard needs to be displayed near the editing box while ensuring it is fully visible on the screen. Therefore, boundary conflict detection can be performed on the keyboard based on the anchor point information and the keyboard's size information. The boundary position of the keyboard in the first display mode can be determined based on these information, thus determining whether the keyboard can be fully displayed on the screen in this mode. If the keyboard can be fully displayed in the first display mode, it is displayed in this mode, where it is centered with the editing box, facilitating user input and significantly improving human-computer interaction efficiency. If a boundary conflict exists, meaning the keyboard cannot be fully displayed in the first display mode, it is displayed in a second display mode. In this mode, one side of the keyboard overlaps with one side of the screen. Although the keyboard is not fully centered with the editing box, it is only slightly off-center, resulting in a small lateral distance between the keyboard and the editing box, still facilitating user input and improving human-computer interaction efficiency.

[0040] The keyboard display method of this application embodiment obtains the position information of the edit box in response to the input event of the edit box; obtains the anchor point information of the keyboard according to the position information and the size information of the keyboard, wherein the anchor point information is the coordinate information of the target vertex of the keyboard in the first display mode; performs boundary conflict detection on the keyboard according to the anchor point information and the size information, and controls the keyboard to be displayed in the first display mode or the second display mode according to the detection result, wherein the first display mode is the display mode in which the keyboard and the edit box are centered, and the second display mode is the display mode in which one side of the keyboard overlaps with one side of the screen; prioritizes the display mode in which the keyboard and the edit box are centered to avoid the problem of large input span and inconvenient operation. When it is determined that there is a boundary conflict between the keyboard and the edit box in the center-aligned display according to the anchor point information of the keyboard, the display mode of the keyboard is adjusted. This effectively solves the problem of "large input span and inconvenient operation" on ultra-wide screen devices, significantly improves the efficiency of human-computer interaction, reduces the time users focus on input, and allows for one-handed operation, thereby improving driving safety.

[0041] To more clearly illustrate the technical solutions provided in the embodiments of this application, a keyboard display method provided in this application will be further described below.

[0042] In this embodiment, the keyboard is preferentially displayed in a first display mode. Only when the first display mode cannot fully display the keyboard is the keyboard displayed in a second display mode. In the first display mode, the keyboard and the editing box are centered, meaning the lateral distance between the center point of the keyboard and the center point of the editing box is zero, facilitating user input. In the second display mode, one side of the keyboard overlaps with one side of the screen, i.e., the keyboard is displayed flush with the edge. In this mode, the lateral distance between the center point of the keyboard and the center point of the editing box is not zero, but its value is very small, maximizing user input convenience.

[0043] To accurately detect boundary conflicts and determine whether the keyboard can be fully displayed on the screen in the first display mode, it is necessary to accurately obtain the keyboard's anchor point information. Therefore, in this embodiment, optionally, the position information includes the first width and edge coordinates of the edit box in a preset coordinate system; the preset coordinate system has the top endpoint of the screen as the origin, the horizontal extension direction of the screen edge as the first coordinate axis direction, and the vertical extension direction of the screen edge as the second coordinate axis direction; the edge coordinates include the projection coordinates of the border of the edit box closest to the second coordinate axis onto the first coordinate axis. Obtaining the keyboard's anchor point information based on the position information and the keyboard's size information includes: calculating the sum of the edge coordinates and half the first width to obtain the center coordinates of the edit box; and obtaining the keyboard's anchor point information based on the center coordinates and the size information.

[0044] The origin of the preset coordinate system can be the top-left corner of the screen. The horizontal direction extending to the right along the screen edge is the first coordinate axis (x-axis), and the vertical direction extending downwards along the screen edge is the second coordinate axis (y-axis). In this case, the edge coordinates of the edit box include the projection coordinates of the left border of the edit box onto the x-axis, the target vertex is the top-left corner of the keyboard, and the keyboard's anchor point information is the projection coordinates of the top-left corner of the keyboard onto the x-axis. Alternatively, the origin of the preset coordinate system can be the top-right corner of the screen. The horizontal direction extending to the left along the screen edge is the first coordinate axis (x-axis), and the vertical direction extending downwards along the screen edge is the second coordinate axis (y-axis). In this case, the edge coordinates of the edit box include the projection coordinates of the right border of the edit box onto the x-axis, the target vertex is the top-right corner of the keyboard, and the keyboard's anchor point information is the projection coordinates of the top-right corner of the keyboard onto the x-axis.

[0045] The following explanation uses the origin of the preset coordinate system as the top-left corner of the screen as an example. The input method management service calls the getLocationOnScreen(int[]) method to obtain the position information of the edit box in the preset coordinate system.

[0046] int[] location = new int[2]; editText.getLocationOnScreen(location); int editBoxLeft = location[0]; / / X coordinate of the left edge of the edit box int editBoxTop = location[1]; / / Y coordinate of the top of the edit box int editBoxWidth = editText.getWidth(); / / Width of the edit box The position information of the edit box in the preset coordinate system is (editBoxLeft, editBoxTop), and the first width of the edit box is editBoxWidth. Assume the returned value of the position information of the edit box in the preset coordinate system is: the x-coordinate of the top-left corner of the edit box, editBoxLeft = 120px, and the first width of the edit box, editBoxWidth = 600px. The center coordinates of the edit box are the coordinates of the center point of the edit box. Considering that this embodiment mainly addresses the problem of excessive lateral distance between the keyboard and the edit box, the center coordinates of the edit box mainly consider the projected coordinates on the x-axis, i.e., the horizontal coordinates. The horizontal coordinate of the center point of the edit box is the horizontal coordinate of the top-left corner of the edit box plus half the width of the edit box. For example, the center coordinates of the edit box, editBoxCenterX = 120 + 300 = 420px. Therefore, the center coordinates of the edit box are obtained by calculating the sum of the edge coordinates and half the first width. Based on these center coordinates and the size information of the keyboard, the anchor point information of the keyboard can be accurately obtained. This application embodiment determines the center coordinates based on the edge coordinates of the edit box and the first width of the edit box, and then, combined with the size information of the keyboard, can accurately obtain the anchor point information of the keyboard. Then, based on the anchor point information, it can be determined whether the keyboard can be fully displayed when displayed in the first display mode.

[0047] Considering that the main purpose of this application embodiment is to solve the problem of excessive lateral distance between the keyboard and the editing box, the center coordinates of the editing box are considered as the projected coordinates on the x-axis, i.e., the horizontal coordinates. Based on this, in this application embodiment, optionally, the size information includes the second width of the keyboard; obtaining the anchor point information of the keyboard based on the center coordinates and the size information includes: calculating the difference between the center coordinates and half of the second width to obtain the first coordinate of the projection of the target vertex of the keyboard on the first coordinate axis in a preset coordinate system; and using the first coordinate as the anchor point information of the keyboard.

[0048] When the target vertex is the top-left corner of the keyboard, the first coordinate of the projection of the target vertex onto the first coordinate axis in the preset coordinate system is the x-coordinate of the top-left corner of the keyboard. After obtaining the center coordinates of the edit box, since the center point of the keyboard is aligned with the center point of the edit box in the first display mode, that is, the x-coordinate of the center point of the keyboard is the same as the x-coordinate of the center point of the edit box, the center coordinates of the edit box and the x-coordinate of the top-left corner of the keyboard differ by half the second width of the keyboard. Therefore, the difference between the center coordinates and half of the second width is calculated to obtain the first coordinate of the projection of the target vertex onto the first coordinate axis in the preset coordinate system. This first coordinate is the x-coordinate of the top-left corner of the keyboard, which is also the anchor point information of the keyboard. For example, if the second width is set to 800px, then the anchor point information keyboardStartX = 420 - 400 = 20px. This embodiment calculates the first coordinate of the projection of the target vertex onto the first coordinate axis using the center coordinates of the edit box and the second width, which can accurately obtain the anchor point information of the keyboard, making it easier to accurately detect whether the keyboard can be fully displayed in the first display mode based on this anchor point information.

[0049] While minimizing the lateral distance between the keyboard and the editing box, it is also necessary to ensure that the keyboard can be fully displayed to facilitate user input. Therefore, in this embodiment, optionally, the step of performing boundary conflict detection on the keyboard based on the anchor point information and the size information, and controlling the keyboard to be displayed in a first display mode or a second display mode based on the detection result, includes: detecting whether the keyboard and screen boundaries conflict based on the first coordinates and the size information; if the keyboard and screen boundaries conflict, controlling the keyboard to be displayed in the second display mode; if the keyboard and screen boundaries do not conflict, controlling the keyboard to be displayed in the first display mode.

[0050] Since this application aims to address the problem of excessive horizontal distance between the keyboard and the editing box, making user input inconvenient, the main consideration for ensuring the keyboard is fully displayed is that its horizontal border can be displayed on the screen. Therefore, the system can detect whether the keyboard and screen boundaries conflict based on the first coordinates and the size information. If a conflict occurs, it indicates that the keyboard's horizontal border exceeds the screen's display area, and the keyboard cannot be displayed in the first display mode. Therefore, the system adjusts to display the keyboard in the second display mode. If there is no conflict, it indicates that the keyboard's horizontal border does not exceed the screen's display area, and the first display mode can fully display the keyboard. Therefore, the system controls the keyboard to be displayed in the first display mode. (See the first display mode for details.) Figure 2With the keyboard centered and the editing box displayed, the keyboard and editing box are simultaneously in the user's line of sight when inputting, eliminating the need for the user to look around to observe them. This makes operation convenient, significantly improves human-computer interaction efficiency, reduces the time users spend focusing on input, enhances driving safety, and has good industrialization prospects.

[0051] This application embodiment detects boundary conflicts of the keyboard based on the first coordinates and the size information, and adjusts the keyboard to display in a first display mode when there is no conflict and in a second display mode when there is a conflict. This can ensure the full display of the keyboard while minimizing the horizontal distance between the keyboard and the editing box, thus facilitating the user's input operation.

[0052] Considering that the keyboard needs to be fully displayed on the screen, both horizontal borders of the keyboard need to be visible on the screen. Therefore, in this embodiment, optionally, detecting whether the keyboard and screen boundaries conflict based on the first coordinates and the size information includes: detecting whether the keyboard and screen have a first boundary conflict based on the first coordinates and the size information; if so, determining that the keyboard conflicts with the first boundary; if the keyboard and screen do not conflict, further detecting whether the keyboard and screen have a second boundary conflict based on the first coordinates and the size information; if so, determining that the keyboard and screen have a second boundary conflict; if the keyboard and screen do not conflict, determining that the keyboard and screen boundaries do not conflict.

[0053] The first boundary of the screen is either the left or right boundary, and the corresponding second boundary is either the right or left boundary. Whether the left and right edges of the keyboard conflict with the screen boundaries can be determined by the first coordinate of the projection of the target vertex of the keyboard onto the first coordinate axis and the size information of the keyboard. Specifically, the first boundary of the keyboard and the first boundary of the screen can be checked first based on the first coordinate and the size information; if there is no conflict, the second boundary of the keyboard and the screen can be checked. If neither the left nor right boundary of the keyboard conflicts with the screen, then the keyboard and screen boundaries are determined not to conflict. If either the first or second boundary of the keyboard conflicts with the screen, then the keyboard and screen boundaries are determined to conflict. This embodiment of the application, by separately checking whether the first and second boundaries of the keyboard and the screen conflict, determines that the keyboard and screen boundaries are not conflicting only when neither the first nor the second boundary conflicts. This accurately determines whether the keyboard can be fully displayed in the first display mode, facilitating subsequent adjustments to the keyboard's display mode.

[0054] Considering the need to detect whether the keyboard conflicts with the first or second boundary of the screen, the conflict can be determined based on the horizontal coordinates of the left and right edges of the keyboard. Therefore, in this embodiment, optionally, detecting whether the keyboard conflicts with the first boundary of the screen based on the first coordinates and the size information includes: detecting whether the first coordinate is less than the projected coordinates of the first boundary of the screen on the first coordinate axis; further detecting whether the keyboard conflicts with the second boundary of the screen based on the first coordinates and the size information includes: detecting whether the sum of the first coordinate and the second width is greater than the projected coordinates of the second boundary of the screen on the first coordinate axis.

[0055] The keyboard's size information primarily considers its second width. The first coordinate, serving as anchor point information, is the coordinate of the projection of the target vertex of the keyboard, displayed in the first display mode, onto the first coordinate axis in a preset coordinate system; that is, the x-coordinate of the target vertex in the first display mode. Taking the origin of the preset coordinate system as the top-left corner of the screen as an example, the target vertex is the top-left corner of the keyboard, the first boundary of the screen is the left boundary, and the second boundary of the screen is the right boundary. In this case, the first coordinate is the x-coordinate of the left border of the keyboard. To determine if the left border of the keyboard is displayed on the screen, we can directly check if the first coordinate is less than the coordinate of the first boundary of the screen along the first coordinate axis. The coordinate of the first boundary of the screen along the first coordinate axis is the x-coordinate of the left boundary of the screen. If the first coordinate is less than the x-coordinate of the left boundary of the screen, it means the left border of the keyboard is to the left of the left boundary of the screen, exceeding the display range, and the keyboard conflicts with the screen boundary. If the first coordinate is greater than or equal to the x-coordinate of the left boundary of the screen, it means the left border of the keyboard is to the right of the left boundary of the screen, or overlaps with the left boundary of the screen, and the left border of the keyboard can be displayed on the screen; that is, the left border of the keyboard does not conflict with the first boundary of the screen. The horizontal coordinate of the right edge of the keyboard is the sum of a first coordinate and the keyboard's second width. To determine if the right edge of the keyboard can be displayed on the screen, it is only necessary to check if the horizontal coordinate of the right edge of the keyboard is to the right of the right edge of the screen. This can be done by checking if the sum of the first coordinate and the second width is greater than the projected coordinate of the screen's second edge on the first coordinate axis, which is the horizontal coordinate of the screen's right edge. If the sum of the first coordinate and the second width is greater than the projected coordinate of the screen's second edge on the first coordinate axis, it means the right edge of the keyboard is to the right of the screen's right edge, and the screen cannot display the right edge of the keyboard, i.e., the keyboard conflicts with the screen's second edge. If the sum of the first coordinate and the second width is less than or equal to the projected coordinate of the screen's second edge on the first coordinate axis, it means the right edge of the keyboard is to the left of the screen's right edge, or overlaps with the screen's right edge, and the right edge of the keyboard can be displayed on the screen, i.e., the keyboard does not conflict with the screen's second edge. If the keyboard does not conflict with either the first or second edge of the screen, it means the keyboard does not conflict with the screen's boundaries, and the keyboard can be fully displayed on the screen in the first display mode.

[0056] In this embodiment, the horizontal coordinates of the left and right borders of the keyboard are determined based on the first coordinate and the second width of the keyboard. Then, they are compared with the left and right boundaries of the screen to determine whether the keyboard conflicts with the first and second boundaries of the screen. This can accurately detect the conflict between the keyboard and the screen boundaries, which helps to adjust the keyboard display based on the conflict results.

[0057] Considering that when there is a boundary conflict between the keyboard and the screen, it could be a conflict between the left and right boundaries of the keyboard and the screen. Different conflict situations will result in different adjustments to the keyboard display. Therefore, in this embodiment, optionally, the second display mode includes a first edge-fitting display mode and a second edge-fitting display mode; the step of controlling the keyboard to display in the second display mode if the first coordinate conflicts with the screen boundary includes: if the keyboard conflicts with the first boundary, controlling the keyboard to display in the first edge-fitting display mode, where the projection coordinates of the target vertex of the keyboard on the first coordinate axis are the projection coordinates of the first boundary on the first coordinate axis; if the keyboard conflicts with the second boundary, controlling the keyboard to display in the second edge-fitting display mode, where the projection coordinates of the target vertex of the keyboard on the first coordinate axis are the difference between the projection coordinates of the second boundary on the first coordinate axis and the second width of the keyboard.

[0058] Taking the origin of the preset coordinate system as the top-left corner of the screen as an example, the target corner is the top-left corner of the keyboard, the first boundary of the screen is the left boundary, and the second boundary is the right boundary. If the keyboard conflicts with the first boundary, that is, the left edge of the keyboard exceeds the display range of the screen, the keyboard is controlled to be displayed in the first edge-fitting display mode. That is, the horizontal coordinate of the target corner of the keyboard is set to the projection coordinate of the first boundary of the screen on the first coordinate axis. In other words, the keyboard is displayed from the left edge of the screen to the right. This can ensure that the keyboard is fully displayed while minimizing the lateral distance between the keyboard and the editing box, significantly improving human-computer interaction efficiency and driving safety.

[0059] If the keyboard conflicts with the second boundary, it means that the right edge of the keyboard exceeds the display range of the screen. In this case, the keyboard is controlled to be displayed in the second edge-fitting display mode. That is, the horizontal coordinate of the target vertex of the keyboard is set to the difference between the projection coordinate of the second boundary on the first coordinate axis and the second width of the keyboard. In this way, the right edge of the keyboard overlaps with the right edge of the screen, and the keyboard is displayed from the right edge of the screen to the left. This can ensure that the keyboard is fully displayed while minimizing the horizontal distance between the keyboard and the editing box, which significantly improves the efficiency of human-computer interaction and driving safety.

[0060] The operation code is as follows: int screenWidth=getResources().getDisplayMetrics().widthPixel; / / 2880px int(keyboardStartX<0){ keyboardStartX=0; / / Left edge aligned to the display }else if(keyboardStartX+keyboardWidth>screenWidth){ keyboardStartX=screenWidth-keyboardStartX; / / Right edge snapped to the screen } In this context, the horizontal coordinate of the left edge of the screen is 0, the horizontal coordinate of the right edge of the screen is screenWidth, and keyboardStartX is the projection coordinate of the target vertex of the keyboard on the first coordinate axis, i.e., the horizontal coordinate of the target vertex. keyboardStartX < 0 indicates that in the first display mode, the first coordinate is less than the horizontal coordinate of the left edge of the screen, meaning the keyboard and the left edge of the screen conflict. In this case, the projection coordinate of the target vertex on the first coordinate axis is set to the projection coordinate of the first edge on the first coordinate axis, i.e., keyboardStartX = 0 is executed. The corresponding keyboard display is as follows: Figure 3 As shown, the left edge of the keyboard overlaps with the left edge of the screen.

[0061] `keyboardStartX + keyboardWidth > screenWidth` indicates that in the first display mode, the sum of the first coordinate and the second width is greater than the horizontal coordinate of the right edge of the screen, meaning the keyboard and the right edge of the screen conflict. In this case, the projected coordinates of the target vertex on the first coordinate axis are set to the difference between the projected coordinates of the second edge on the first coordinate axis and the second width of the keyboard; that is, `keyboardStartX = screenWidth - keyboardStartX` is executed. The corresponding keyboard display is as follows: Figure 4 As shown, the right edge of the keyboard overlaps with the right edge of the screen.

[0062] According to the embodiment of this application, the overlap between the keyboard border and the screen boundary is adjusted based on the conflict between the keyboard and the screen boundary. This can minimize the lateral distance between the keyboard and the editing box while ensuring that the keyboard is fully displayed, thus significantly improving human-computer interaction efficiency and driving safety.

[0063] It should be noted that the projection of the target vertex of the keyboard onto the second coordinate axis, i.e., the ordinate, can be achieved by adding a value to the ordinate of the top-left vertex of the edit box. This value should be greater than the height of the edit box, so that the keyboard is located below the edit box. This value can be set as needed and is not specifically limited here.

[0064] This application embodiment obtains the position information of the edit box by responding to the input event of the edit box; obtains the anchor point information of the keyboard according to the position information and the size information of the keyboard, the anchor point information being the coordinate information of the target vertex of the keyboard in the first display mode, wherein the first display mode is the display mode in which the keyboard and the edit box are centered and aligned; performs boundary conflict detection on the keyboard according to the anchor point information and the size information, and controls the keyboard to be displayed in the first display mode or the second display mode according to the detection result, wherein the second display mode is the display mode in which one side of the keyboard overlaps with one side of the screen, prioritizing the display of the keyboard and the edit box in a centered alignment to avoid the problem of large input span and inconvenient operation. When it is determined according to the anchor point information of the keyboard that there is a boundary conflict in the display of the keyboard and the edit box in a centered alignment, the display mode of the keyboard is adjusted, effectively solving the problem of "large input span and inconvenient operation" on ultra-wide screen devices, significantly improving human-computer interaction efficiency, reducing the time users focus on input, and allowing one-handed operation, thereby improving driving safety.

[0065] In one exemplary embodiment of this specification, a keyboard display device is also provided, applied to a vehicle controller. For example... Figure 5 As shown, the keyboard display device 500 includes: The position acquisition module 501 is used to respond to the input event of the edit box and acquire the position information of the edit box; Anchor point acquisition module 502 is used to acquire anchor point information of the keyboard according to the position information and the size information of the keyboard. The anchor point information is the coordinate information of the target vertex of the keyboard in the first display mode, wherein the first display mode is the display mode in which the keyboard is centered and aligned with the edit box. The control display module 503 is used to perform boundary conflict detection on the keyboard according to the anchor point information and the size information, and control the keyboard to be displayed in a first display mode or a second display mode according to the detection result, wherein the second display mode is a display mode in which one side of the keyboard overlaps with one side of the screen.

[0066] In one specific embodiment, the position information includes the first width and edge coordinates of the editing box in a preset coordinate system; the preset coordinate system takes the top endpoint of the screen as the origin, the horizontal extension direction of the screen edge as the first coordinate axis direction, and the vertical extension direction of the screen edge as the second coordinate axis direction; the edge coordinates include the projection coordinates of the border of the editing box near the second coordinate axis on the first coordinate axis; the anchor point acquisition module 502 is used to: calculate the sum of the edge coordinates and half of the first width to obtain the center coordinates of the editing box; and obtain the anchor point information of the keyboard according to the center coordinates and the size information.

[0067] In some embodiments, the size information includes the second width of the keyboard; the anchor point acquisition module 502 is further configured to: calculate the difference between the center coordinate and half of the second width to obtain the first coordinate of the projection of the target vertex of the keyboard on the first coordinate axis in a preset coordinate system; and use the first coordinate as the anchor point information of the keyboard.

[0068] In some implementations, the control display module 503 is used to: detect whether the boundary between the keyboard and the screen conflicts based on the first coordinates and the size information; if the boundary between the keyboard and the screen conflicts, control the keyboard to be displayed in a second display mode; if the boundary between the keyboard and the screen does not conflict, control the keyboard to be displayed in a first display mode.

[0069] In some embodiments, the control display module 503 is further configured to: detect whether the keyboard and the screen conflict with a first boundary based on the first coordinates and the size information; if so, determine that the keyboard and the first boundary conflict; if the keyboard and the first boundary do not conflict, further detect whether the keyboard and the screen conflict with a second boundary based on the first coordinates and the size information; if so, determine that the keyboard and the second boundary conflict; if the keyboard and the second boundary do not conflict, determine that the keyboard and the screen boundary do not conflict.

[0070] In some embodiments, the control display module 503 is further configured to: when detecting whether the keyboard and the first boundary of the screen conflict based on the first coordinate and the size information, detect whether the first coordinate is less than the projection coordinate of the first boundary of the screen on the first coordinate axis; and when further detecting whether the keyboard and the second boundary of the screen conflict based on the first coordinate and the size information, detect whether the sum of the first coordinate and the second width is greater than the projection coordinate of the second boundary of the screen on the first coordinate axis.

[0071] In some embodiments, the second display mode includes a first edge-fitting display mode and a second edge-fitting display mode; the control display module 503 is further configured to: if the keyboard conflicts with the first boundary, control the keyboard to display in the first edge-fitting display mode, wherein the first edge-fitting display mode refers to the projection coordinates of the target vertex of the keyboard on the first coordinate axis being the projection coordinates of the first boundary on the first coordinate axis; if the keyboard conflicts with the second boundary, control the keyboard to display in the second edge-fitting display mode, wherein the second edge-fitting display mode refers to the projection coordinates of the target vertex of the keyboard on the first coordinate axis being the difference between the projection coordinates of the second boundary on the first coordinate axis and the second width of the keyboard.

[0072] For specific limitations regarding the keyboard display device, please refer to the limitations regarding the keyboard display method above, which will not be repeated here. Each module in the aforementioned keyboard display device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of the computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0073] Regarding the apparatus in the above embodiments, the specific manner in which each unit performs its operation has been described in detail in the embodiments concerning the keyboard display method, and will not be elaborated upon here.

[0074] Figure 6 This is a schematic diagram of the structure of a vehicle provided in an embodiment of this application.

[0075] For example, such as Figure 6 As shown, the vehicle includes a memory 601 and a processor 602. The memory 601 stores an executable computer program 6011, and the processor 602 is used to call and execute the executable computer program 6011 to perform a keyboard display method.

[0076] This embodiment can divide the vehicle into functional modules according to the above method embodiment. For example, each function can be assigned to a separate module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware. It should be noted that the module division in this embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.

[0077] When each function is divided into its own modules, the vehicle may include: a location acquisition module, an anchor point acquisition module, and a control and display module, etc.

[0078] It should be noted that all relevant content of each step involved in the above method embodiments can be referenced from the functional description of the corresponding functional module, and will not be repeated here.

[0079] The vehicle provided in this embodiment is used to execute the above-described keyboard display method, and thus can achieve the same effect as the above-described implementation method.

[0080] When using integrated units, the vehicle may include a processing module and a storage module. The processing module is used to control and manage the vehicle's movements. The storage module is used to support the processing module in executing computer programs and processing data.

[0081] The processing module may be a processor or a controller, which can implement or execute various exemplary logic blocks, modules, and circuits as disclosed in this application. The processor may also be a combination of computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and microprocessors, etc., and the storage module may be a memory.

[0082] This embodiment also provides a computer-readable storage medium (including but not limited to disk storage, CD-ROM, optical storage, etc.) storing computer program code. When the computer program code is run on a computer, the computer executes the above-mentioned related method steps to implement a keyboard display method provided in the above embodiment. The computer-readable storage medium may include, but is not limited to, any type of disk, including floppy disks, optical disks, Digital Video Discs (DVDs), Compact Disc Read-Only Memory (CD-ROMs), microdrives, and magneto-optical disks, read-only memory (ROMs), random access memory (RAMs), erasable programmable read-only memory (EPROMs), electrically erasable programmable read-only memory (EEPROMs), dynamic random access memory (DRAMs), video random access memory (VRAMs), flash memory devices, magnetic cards or optical cards, nanosystems (including molecular memory ICs), or any type of medium or device suitable for storing instructions and / or data.

[0083] This embodiment also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned steps to implement a keyboard display method provided in the above embodiment.

[0084] The beneficial effects of the above embodiments can be referred to the beneficial effects of the corresponding methods provided above, and will not be repeated here.

[0085] Through the above description of the embodiments, those skilled in the art will understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual 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.

[0086] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, 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.

[0087] In the description of this disclosure, it should be understood that if the terms "upper", "lower", "front", "rear", "left" and "right" are used to indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, they are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the position or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this disclosure.

[0088] It should be noted that, in the embodiments of this application, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes the element.

[0089] The above are merely embodiments of this disclosure and are not intended to limit the scope of this disclosure. Various modifications and variations can be made to this disclosure by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this disclosure should be included within the scope of the claims of this disclosure.

Claims

1. A keyboard display method, characterized in that, The method includes: Respond to the input event of the edit box and obtain the position information of the edit box; The anchor point information of the keyboard is obtained based on the position information and the size information of the keyboard. The anchor point information is the coordinate information of the target vertex of the keyboard in the first display mode. The first display mode is the display mode in which the keyboard is centered and aligned with the edit box. The keyboard is subjected to boundary conflict detection based on the anchor point information and the size information, and the keyboard is controlled to be displayed in a first display mode or a second display mode according to the detection result. The second display mode is a display mode in which one side of the keyboard overlaps with one side of the screen.

2. The method according to claim 1, characterized in that, The position information includes the first width and edge coordinates of the edit box in a preset coordinate system; the preset coordinate system has the top endpoint of the screen as the origin, the horizontal extension direction of the screen edge as the first coordinate axis direction, and the vertical extension direction of the screen edge as the second coordinate axis direction; the edge coordinates include the projection coordinates of the border of the edit box near the second coordinate axis onto the first coordinate axis; obtaining the anchor point information of the keyboard based on the position information and the keyboard size information includes: The center coordinates of the edit box are obtained by summing the edge coordinates with half of the first width. The anchor point information of the keyboard is obtained based on the center coordinates and the size information.

3. The method according to claim 2, characterized in that, The size information includes the second width of the keyboard; obtaining the anchor point information of the keyboard based on the center coordinates and the size information includes: Calculate the difference between the center coordinates and half of the second width to obtain the first coordinate of the projection of the target vertex of the keyboard onto the first coordinate axis in the preset coordinate system; The first coordinate is used as the anchor point information of the keyboard.

4. The method according to claim 3, characterized in that, The step of performing boundary conflict detection on the keyboard based on the anchor point information and the size information, and controlling the keyboard to be displayed in a first display mode or a second display mode based on the detection result, includes: Detect whether the boundaries between the keyboard and the screen conflict based on the first coordinates and the size information; If the keyboard conflicts with the boundary of the screen, the keyboard is controlled to be displayed in a second display mode; If the keyboard does not conflict with the boundary of the screen, the keyboard is controlled to be displayed in a first display mode.

5. The method according to claim 4, characterized in that, The step of detecting whether the keyboard and screen conflict based on the first coordinates and the size information includes: Based on the first coordinates and the size information, detect whether the keyboard conflicts with the first boundary of the screen; if so, determine that the keyboard conflicts with the first boundary. If the keyboard does not conflict with the first boundary, then based on the first coordinates and the size information, it is further detected whether the keyboard conflicts with the second boundary of the screen; if so, it is determined that the keyboard conflicts with the second boundary. If the keyboard does not conflict with the second boundary, then it is determined that the keyboard does not conflict with the boundary of the screen.

6. The method according to claim 5, characterized in that, The step of detecting whether the keyboard and the first boundary of the screen conflict based on the first coordinates and the size information includes: Detect whether the first coordinate is less than the projection coordinate of the first boundary of the screen on the first coordinate axis; The step of further detecting whether the keyboard and the second boundary of the screen conflict based on the first coordinates and the size information includes: Detect whether the sum of the first coordinate and the second width is greater than the projected coordinate of the second boundary of the screen on the first coordinate axis.

7. The method according to claim 5, characterized in that, The second display mode includes a first edge-fitting display mode and a second edge-fitting display mode; the step of controlling the keyboard to display in the second display mode if the keyboard conflicts with the screen boundary includes: If the keyboard conflicts with the first boundary, the keyboard is controlled to be displayed in a first edge-fitting display mode. The first edge-fitting display mode means that the projection coordinates of the target vertex of the keyboard on the first coordinate axis are the projection coordinates of the first boundary on the first coordinate axis. If the keyboard conflicts with the second boundary, the keyboard is controlled to be displayed in a second edge-fitting display mode. The second edge-fitting display mode means that the projected coordinates of the target vertex of the keyboard on the first coordinate axis are the difference between the projected coordinates of the second boundary on the first coordinate axis and the second width of the keyboard.

8. A keyboard display device, characterized in that, The device includes: The position acquisition module is used to respond to the input event of the edit box and acquire the position information of the edit box; An anchor point acquisition module is used to acquire anchor point information of the keyboard based on the position information and the size information of the keyboard. The anchor point information is the coordinate information of the target vertex of the keyboard in the first display mode, wherein the first display mode is the display mode in which the keyboard is centered and aligned with the edit box. The control display module is used to perform boundary conflict detection on the keyboard based on the anchor point information and the size information, and control the keyboard to be displayed in a first display mode or a second display mode based on the detection result, wherein the second display mode is a display mode in which one side of the keyboard overlaps with one side of the screen.

9. A vehicle, characterized in that, The vehicles include: Memory, used to store executable computer programs; A processor for calling and running the executable computer program from the memory, such that the processor performs the method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed, implements the method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Display method of virtual keyboard, control device and touch equipment

    CN103577104A

  • System and method for controlling floating soft keyboard

    CN105426111A

  • Adjustment method and device of browsing page and computer readable storage medium

    CN108132716A

  • Soft keyboard display method, apparatus and device, and computer readable storage medium

    CN116166173A

  • Display device and soft keyboard display and input method

    CN116301558A