Focus management method, electronic equipment, device and storage medium

By creating the target page and its control group in the BIOS Setup interface and generating a linked list recording the control identification, the problem of lack of initial focus objects when entering a new page is solved, and a user-friendly interface operation experience is achieved.

CN119473294APending Publication Date: 2025-02-18NEW H3C TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411675976.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-21
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

In the BIOS Setup interface, after entering a new page, the default initial focus object will not be displayed, resulting in inconvenience to view and set up by users.

Method used

By creating the target page and its corresponding control group, and generating a linked list that records the control identification. The order of the nodes of the linked list is the same as the pre-determined arrangement of the controls in the page. When displaying the target page, the control corresponding to the first node in the linked list is used as the initial focus. Object.

Benefits of technology

After entering a new page in the BIOS Setup interface, the default initial focus object will be displayed in the page, which is convenient for users to quickly view and set.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119473294A_ABST
    Figure CN119473294A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a focus management method, electronic equipment, a focus management device and a storage medium, and relates to the technical field of computers. Creating a first group corresponding to the target page, wherein the first group comprises a first control in the target page; a first linked list corresponding to the first group is generated, each first node in the first linked list records an identifier of the corresponding first control, and the sequence of the first nodes in the first linked list is the same as a predetermined first arrangement sequence of the corresponding first controls in the target page; the target page is displayed, the first focus object is displayed as a first initial focus object in the target page, and the first focus object is a first control corresponding to the first first node in the first linked list. By applying the scheme provided by the embodiment of the invention, after a new page is entered in the BIOS Setup interface, the default initial focus object can be displayed in the page.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a focus management method, electronic equipment, device and storage medium. Background Art

[0002] The BIOS (Basic Input Output System) Setup interface is a user interface provided by the firmware program embedded on the computer motherboard, which is used to manage and configure the computer's hardware settings. The BIOS Setup interface is usually entered by pressing a specific key combination (such as the Delete key, F2 key, etc.) when the computer starts. Its appearance can be a text-based menu structure or a modern graphical interface that presents various settings in a graphical or textual manner. The BIOS Setup interface contains a large number of controls. In order to facilitate user viewing and setting, the BIOS Setup interface often uses multi-level pages to manage these controls. Usually, a series of controls with link functions are included on the main page, allowing users to click on specific controls with link functions to navigate to related sub-pages for more detailed settings and configurations.

[0003] However, in the related art, when a user needs to enter the BIOS Setup interface to view and set, when entering a new page, the default initial focus object will not be displayed in the page, which brings inconvenience to the user's viewing and setting. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a focus management method, electronic device, apparatus and storage medium, so that after entering a new page in the BIOS Setup interface, a default initial focus object is displayed in the page. The specific technical solution is as follows:

[0005] In a first aspect, an embodiment of the present application provides a focus management method, the method comprising:

[0006] Creating a target page, wherein the target page is a page to be displayed in the basic input and output system setting interface;

[0007] Creating a first group corresponding to the target page, wherein the first group includes a first control in the target page;

[0008] Generate a first linked list corresponding to the first group, wherein each first node in the first linked list records an identifier of the corresponding first control, and the order of the first nodes in the first linked list is the same as a predetermined first arrangement order of the corresponding first controls in the target page;

[0009] The target page is displayed, and a first focus object is displayed as a first initial focus object in the target page, wherein the first focus object is: a first control corresponding to the first first node in the first linked list.

[0010] In one embodiment of the present application, before creating the target page, in the case where the previous level page is displayed in the basic input / output system setting interface, before displaying the target page and displaying the first focus object as the first initial focus object in the target page, the process further includes:

[0011] Deleting the previous level page;

[0012] Delete the second group and the second linked list corresponding to the second group, wherein the second group includes the second control in the previous-level page, each second node in the second linked list records the identifier of the corresponding second control, and the order of the second nodes in the second linked list is the same as the predetermined second arrangement order of the corresponding second control in the previous-level page.

[0013] In one embodiment of the present application, before deleting the previous level page, the method further includes:

[0014] Save the target order of the second focus object in the previous level page, wherein the second focus object is: when the page in the basic input and output system setting interface is triggered to switch from the previous level page to the target page, the second control in the previous level page is selected as the focus object, and the target order is: the order of the second node corresponding to the second focus object in the second linked list.

[0015] In one embodiment of the present application, after the target order of the second focus object in the previous page is saved, the method further includes:

[0016] Receive an instruction to switch the page to the previous page;

[0017] Create a new parent page;

[0018] Creating a new second group corresponding to the new upper-level page;

[0019] Generate a new second linked list corresponding to the new second group;

[0020] Query the target control corresponding to the second node at the target order from the new second linked list;

[0021] Deleting the target page, the first group and the first linked list;

[0022] The new upper-level page is displayed, and the target control is displayed as a second initial focus object in the new upper-level page.

[0023] In one embodiment of the present application, after creating the first group corresponding to the target page, the method further includes:

[0024] The group corresponding to the input device is updated to the first group, wherein the group corresponding to the input device is a group capable of receiving and processing instructions input by the input device.

[0025] In a second aspect, an embodiment of the present application provides an electronic device, the electronic device comprising:

[0026] processor;

[0027] Transceiver;

[0028] A machine-readable storage medium storing machine-executable instructions that can be executed by the processor; the machine-executable instructions prompt the processor to perform the following steps:

[0029] Creating a target page, wherein the target page is a page to be displayed in the basic input and output system setting interface;

[0030] Creating a first group corresponding to the target page, wherein the first group includes a first control in the target page;

[0031] Generate a first linked list corresponding to the first group, wherein each first node in the first linked list records an identifier of the corresponding first control, and the order of the first nodes in the first linked list is the same as a predetermined first arrangement order of the corresponding first controls in the target page;

[0032] The target page is displayed, and a first focus object is displayed as a first initial focus object in the target page, wherein the first focus object is: a first control corresponding to the first first node in the first linked list.

[0033] In one embodiment of the present application, before creating the target page, when the previous level page is displayed in the basic input and output system setting interface, before displaying the target page and displaying the first focus object as the first initial focus object in the target page, the machine executable instructions further cause the processor to perform the following steps:

[0034] Deleting the previous level page;

[0035] Delete the second group and the second linked list corresponding to the second group, wherein the second group includes the second control in the previous-level page, each second node in the second linked list records the identifier of the corresponding second control, and the order of the second nodes in the second linked list is the same as the predetermined second arrangement order of the corresponding second control in the previous-level page.

[0036] In one embodiment of the present application, before deleting the previous-level page, the machine executable instructions further cause the processor to execute the following steps:

[0037] Save the target order of the second focus object in the previous level page, wherein the second focus object is: when the page in the basic input and output system setting interface is triggered to switch from the previous level page to the target page, the second control in the previous level page is selected as the focus object, and the target order is: the order of the second node corresponding to the second focus object in the second linked list.

[0038] In one embodiment of the present application, after the target order of the second focus object in the previous page is saved, the machine executable instructions further cause the processor to execute the following steps:

[0039] Receive an instruction to switch the page to the previous page;

[0040] Create a new parent page;

[0041] Creating a new second group corresponding to the new upper-level page;

[0042] Generate a new second linked list corresponding to the new second group;

[0043] Query the target control corresponding to the second node at the target order from the new second linked list;

[0044] Deleting the target page, the first group and the first linked list;

[0045] The new upper-level page is displayed, and the target control is displayed as a second initial focus object in the new upper-level page.

[0046] In one embodiment of the present application, after creating the first group corresponding to the target page, the machine executable instructions further cause the processor to perform the following steps:

[0047] The group corresponding to the input device is updated to the first group, wherein the group corresponding to the input device is a group capable of receiving and processing instructions input by the input device.

[0048] In a third aspect, an embodiment of the present application provides a focus management device, the device comprising:

[0049] A target page creation module, used to create a target page, wherein the target page is a page to be displayed in the basic input and output system setting interface;

[0050] A first group creation module, used to create a first group corresponding to the target page, wherein the first group includes a first control in the target page;

[0051] A first linked list generating module, configured to generate a first linked list corresponding to the first group, wherein each first node in the first linked list records an identifier of a corresponding first control, and an order of the first nodes in the first linked list is the same as a predetermined first arrangement order of the corresponding first controls in the target page;

[0052] The target page display module is used to display the target page and display the first focus object as the first initial focus object in the target page, wherein the first focus object is: the first control corresponding to the first first node in the first linked list.

[0053] In one embodiment of the present application, before creating the target page, when the previous level page is displayed in the basic input and output system setting interface, the device further includes:

[0054] A first deletion module, used to delete the previous level page;

[0055] A second deletion module is used to delete the second group and the second linked list corresponding to the second group, wherein the second group includes the second control in the previous level page, each second node in the second linked list records the identifier of the corresponding second control, and the order of the second nodes in the second linked list is the same as the predetermined second arrangement order of the corresponding second control in the previous level page.

[0056] In one embodiment of the present application, the device further includes:

[0057] A target order saving module is used to save the target order of the second focus object in the previous level page, wherein the second focus object is: when the page in the basic input and output system setting interface is triggered to switch from the previous level page to the target page, the second control in the previous level page is selected as the focus object, and the target order is: the order of the second node corresponding to the second focus object in the second linked list.

[0058] In one embodiment of the present application, the device further includes:

[0059] An instruction receiving module, used for receiving an instruction to switch a page to a previous page;

[0060] The parent page creation module is used to create a new parent page;

[0061] A second group creation module, used to create a new second group corresponding to the new upper-level page;

[0062] A second linked list generating module, used for generating a new second linked list corresponding to the new second group;

[0063] A target control query module, used for querying the target control corresponding to the second node at the target order from the new second linked list;

[0064] A third deletion module, used for deleting the target page, the first group and the first linked list;

[0065] The upper-level page display module is used to display the new upper-level page and display the target control as the second initial focus object in the new upper-level page.

[0066] In one embodiment of the present application, the device further includes:

[0067] The group updating module is used to update the group corresponding to the input device to the first group, wherein the group corresponding to the input device is a group that can receive and process instructions input by the input device.

[0068] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any method step described in the first aspect is implemented.

[0069] In a fifth aspect, an embodiment of the present application further provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute any of the method steps described in the first aspect above.

[0070] Beneficial effects of the embodiments of the present application:

[0071] The focus management method provided by the embodiment of the present application is that the created group corresponding to the target page contains the controls in the page, and the nodes in the linked list corresponding to the created group record the identifiers of the various controls in the target page, and the order of the nodes in the linked list is the same as the predetermined arrangement order of the corresponding controls in the target page. That is, the linked list can represent the order of the various controls in the target page. Therefore, when the target page is displayed, after the control corresponding to the first node in the linked list is displayed as the initial focus object in the target page, after entering a new page in the BIOS Setup interface, the default initial focus object will be displayed in the page, and the default initial focus object is the first control in the predetermined order. That is, through the solution of the present application, after a new page is displayed in the BIOS Setup interface, the first control with the most advanced order in the new page can be displayed as the initial focus object by default, which is convenient for users to view and set.

[0072] Of course, implementing any product or method of the present application does not necessarily require achieving all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

[0073] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other embodiments can also be obtained based on these drawings.

[0074] Figure 1 A schematic diagram of a flow chart of a first focus management method provided in an embodiment of the present application;

[0075] Figure 2 A schematic diagram of the arrangement of a first control provided in an embodiment of the present application;

[0076] Figure 3 A schematic diagram of a flow chart of a second focus management method provided in an embodiment of the present application;

[0077] Figure 4 A schematic diagram of a flow chart of a third focus management method provided in an embodiment of the present application;

[0078] Figure 5 A schematic diagram of a fourth focus management method provided in an embodiment of the present application;

[0079] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0080] Figure 7 A schematic diagram of the structure of a first focus management device provided in an embodiment of the present application;

[0081] Figure 8 A schematic diagram of the structure of a second focus management device provided in an embodiment of the present application;

[0082] Fig. 9 A schematic diagram of the structure of a third focus management device provided in an embodiment of the present application;

[0083] Fig.10 A schematic structural diagram of the fourth focus management device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0084] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field based on the present application belong to the scope of protection of the present application.

[0085] In the related art, when a user needs to enter the BIOS Setup interface to view and set, when entering a new page, there is no default initial focus object in the page, which brings inconvenience to the user's viewing and setting. In order to solve the above problem, the embodiment of the present application provides a focus management method, electronic device, device and storage medium.

[0086] See also Figure 1 , which is a flow chart of the first focus management method provided in an embodiment of the present application, including the following steps S101-S104.

[0087] S101: Create a target page.

[0088] Among them, the above-mentioned target page is a page to be displayed in the basic input and output system setting interface. Specifically, the above-mentioned target page can be a page to be displayed at any level in the basic input and output system setting interface. For example, the above-mentioned target page can be the main page to be displayed in the basic input and output system setting interface, the next level sub-page of the main page, etc.

[0089] S102: Create a first group corresponding to the target page.

[0090] The first group includes the first control in the target page. Specifically, the first control may be an editable control created in the target page, such as a button, text box, drop-down list, etc. in the target page. Group is a concept used to manage a collection of user interface elements, which allows developers to organize multiple controls in a page together and operate them as a whole.

[0091] In one example, the above basic input and output system setup interface is created based on LVGL (Light and Versatile Graphics Library), which is a new GUI (Graphical User Interface) system framework with the advantages of small code size and easy user interface development. As an open source embedded graphics library, LVGL is known for its lightweight, feature-rich, flexible, and portable features, which can help developers quickly and easily create beautiful and feature-rich graphical user interfaces. However, in the related art, when the BIOS Setup interface is developed based on LVGL, when entering a new page, the default initial focus object will not be displayed in the page, which brings inconvenience to users' viewing and settings.

[0092] In the embodiment of the present application, when the basic input and output system setting interface is created based on LVGL, a custom group can be directly designated as the first group corresponding to the target page. Specifically, the lv_group_set_default(lv_group_t group) function can be called to designate a custom group as the first group corresponding to the target page. In this way, the newly created first control will be automatically added to the first group. In addition, a group can be created first, and then the created first control can be added to the designated group. Specifically, the lv_group_t lv_group_create(void) function can be called to create a group, and then the lv_obj_add_to_group(obj, group) function can be called to add the created first control to the created group to obtain the first group.

[0093] S103: Generate a first linked list corresponding to the first group.

[0094] Each first node in the first linked list records the identifier of the corresponding first control, and the order of the first nodes in the first linked list is the same as the predetermined first arrangement order of the corresponding first controls in the target page.

[0095] The identifier of the first control corresponds to the first node in the first linked list. The first control corresponding to the first node can be found by searching the identifier in the first node. The predetermined first arrangement order can be a fixed order set directly. In one example, the fixed order can be from left to right and from top to bottom in the target page, and the left and right have higher priority than the top and bottom. Figure 2 , is a schematic diagram of the arrangement of a first control provided in an embodiment of the present application. The target page contains four first controls, namely A, B, C, and D. Then, in Figure 2The predetermined first arrangement order is A→B→C→D; the arrangement order of the first controls in the target page can also be determined by recording the position coordinates of each first control in the target page and comparing the coordinate values. The specific arrangement method of the first controls is not limited in the embodiment of the present application, as long as the order of the first nodes is the same as the arrangement order of the corresponding first controls in the target page.

[0096] In the embodiment of the present application, when the basic input and output system setting interface is created based on LVGL, the first linked list may be an obj_ll linked list.

[0097] S104: Displaying the target page, and displaying the first focus object as the first initial focus object in the target page.

[0098] The first focus object is: the first control corresponding to the first first node in the first linked list, and the first initial focus object is the default focus object in the target page before the target page is moved or selected after the target page is displayed. In addition, the first focus object can be displayed as the first initial focus object in the target page by adding a border, adding a raised effect, changing the control color, etc.

[0099] In one embodiment, the predetermined first arrangement order is: the first controls in the target page are arranged from left to right and from top to bottom, and the left and right have higher priority than the top and bottom. Then, the first control corresponding to the first first node in the first linked list is the control in the upper left corner of the target page, that is, the first initial focus object to be displayed in the target page is the control in the upper left corner of the target page. Figure 2 As shown, when the target page contains four first controls, namely A, B, C, and D, the first initial focus object to be displayed in the target page is A.

[0100] It should be noted that in the embodiment of the present application, since the arrangement order of the above-mentioned first controls in the target page is not specifically limited, the first control corresponding to the first first node in the first linked list is not necessarily the first control in the upper left corner of the target page, but may also be the first control in the upper right corner of the target page or a control in another position, as long as the first control corresponding to the first first node in the first linked list is the first control at the front of the first controls in the target page after sorting. That is, the first focus object is not necessarily the first control in the upper left corner of the target page, but the control corresponding to the first first node in the first linked list.

[0101] As can be seen from the above, the focus management method provided by the embodiment of the present application, because the group corresponding to the target page is created and contains the controls in the page, and the nodes in the linked list corresponding to the created group record the identifiers of the various controls in the target page, and the order of the nodes in the linked list is the same as the predetermined arrangement order of the corresponding controls in the target page. That is, the linked list can represent the order of the various controls in the target page. Therefore, when the target page is displayed, after the control corresponding to the first node in the linked list is displayed as the initial focus object in the target page, after entering a new page in the BIOS Setup interface, the default initial focus object will be displayed in the page, and the default initial focus object is the first control in the predetermined order. That is, through the solution of the present application, after a new page is displayed in the BIOS Setup interface, the first control with the highest order in the new page can be displayed as the initial focus object by default, which is convenient for users to view and set.

[0102] In one embodiment of the present application, before creating the target page, when the previous page is displayed in the basic input and output system setting interface, refer to Figure 3 , which is a flow chart of the second focus management method provided in an embodiment of the present application, and before the aforementioned step S104, it also includes the following steps S105-S106.

[0103] S105: Delete the above-mentioned previous page.

[0104] The above-mentioned upper-level page is the upper-level page of the page displayed later when there are more than two pages to be displayed in the basic input / output system setting interface. Before creating the target page in the above-mentioned embodiment, if the upper-level page is displayed in the above-mentioned basic input / output system setting interface, the upper-level page of the target page is deleted first.

[0105] S106: Delete the second group and the second linked list corresponding to the second group.

[0106] Among them, the above-mentioned second group includes the second control in the above-mentioned previous-level page, each second node in the above-mentioned second linked list records the identifier of the corresponding second control, and the order of the second nodes in the above-mentioned second linked list is the same as the predetermined second arrangement order of the corresponding second control in the above-mentioned previous-level page.

[0107] Specifically, the second control can be an editable control created in the previous page, such as a button, a text box, a drop-down list, etc. in the previous page. The identifier of the second control corresponds to the second node in the second linked list, and the corresponding second control can be found by searching for the identifier in the second node. The predetermined second arrangement order can be a fixed order set directly, or it can be determined by recording the position coordinates of each second control in the previous page and comparing the size of the coordinate values. The specific arrangement method of the second control is not limited in the embodiment of the present application, as long as the order of the second nodes is the same as the arrangement order of the corresponding second controls in the previous page.

[0108] In the embodiment of the present application, when the basic input and output system setting interface is created based on LVGL, the second linked list may be an obj_ll linked list.

[0109] As can be seen from the above, the focus management method provided in the embodiment of the present application, before creating the target page, when the previous page is displayed in the BIOS Setup interface, will also delete the previous page, the second group containing the second control in the previous page, and the second linked list corresponding to the second group before displaying the target page, that is, when creating the pages to be displayed in the BIOS Setup interface in the embodiment of the present application, they are all newly created pages and there is no information related to the old pages. Compared with the method of pre-creating all pages in the related art and then adding hide and show flags to them, it can save memory space and the page switching logic is simple.

[0110] In one embodiment of the present application, see Figure 4 , which is a flow chart of the third focus management method provided in an embodiment of the present application, and before the aforementioned step S105, it also includes the following step S107.

[0111] S107: Save the target order of the second focus object in the above-mentioned upper-level page.

[0112] Among them, the above-mentioned second focus object is: when the page in the above-mentioned basic input and output system setting interface is triggered to switch from the above-mentioned previous level page to the above-mentioned target page, the second control selected as the focus object in the above-mentioned previous level page, and the above-mentioned target order is: the order of the second node corresponding to the above-mentioned second focus object in the above-mentioned second linked list.

[0113] In an example, in the basic input and output system setting interface, when switching from the target page to the target page, the control selected as the focus object in the target page is the fifth one, that is, the second node corresponding to the second focus object has an order of 5 in the second linked list, so 5 can be saved.

[0114] In the aforementioned embodiment, before creating the target page, when the upper-level page is displayed in the above basic input / output system setting interface, the upper-level page of the target page, the second group including the second control in the upper-level page, and the second linked list corresponding to the second group are deleted first, and on this basis, all contents related to the upper-level page of the target page are deleted. In the embodiment of the present application, before deleting the upper-level page of the target page, the target order of the second focus object needs to be saved first. In an example, the target order can be saved in the form of a stack. Since the stack is a first-in, last-out data structure, the target order in the previous page of the target page is first saved at the bottom of the stack. When reading, the target order saved first will be read last. For example, the target order saved in the process of switching from the previous page of the target page to the target page is 5, and in the process of switching from the target page to the next page, an order of 3 is saved (when the next page of the target page needs to be displayed), then when switching from the next page of the target page to the target page, 3 will be read first. Furthermore, when switching from the target page to the previous page of the target page, since 3 has been taken out, the target order 5 will be read at this time.

[0115] From the above, it can be seen that the focus management method provided in the embodiment of the present application can, after deleting the previous level page and creating a new page, retain the order of the controls selected as focus objects in the previous level page when the page in the basic input and output system setting interface is switched from the previous level page to the new page.

[0116] In one embodiment of the present application, see Figure 5 , which is the fourth focus management method provided in the embodiment of the present application, after the aforementioned step S107, it also includes the following steps S108-S114.

[0117] S108: receiving an instruction to switch a page to a previous page.

[0118] S109: Create a new upper-level page.

[0119] S110: creating a new second group corresponding to the new upper-level page.

[0120] S111: Generate a new second linked list corresponding to the new second group.

[0121] S112: Query the target control corresponding to the second node at the target order from the new second linked list.

[0122] S113: Delete the target page, the first group and the first linked list.

[0123] S114: Displaying the new upper-level page, and displaying the target control as the second initial focus object in the new upper-level page.

[0124] The second initial focus object is the default focus object before being moved or selected in the new upper-level page after the new upper-level page is displayed.

[0125] The method of creating a new upper-level page, creating a new second group, generating a new second linked list, and displaying a new upper-level page in the embodiment of the present application is exactly the same as the processing process of the target page in the first focus management method provided in the aforementioned embodiment. The method of deleting the target page, the first group, and the first linked list in the embodiment of the present application is exactly the same as the processing process of the upper-level page of the target page in the second focus management method provided in the aforementioned embodiment, and will not be repeated here. The difference is that: the embodiment of the present application creates a new upper-level page of the target page, and the controls in the page, the group containing the controls, and the linked list corresponding to the group are the same as the content related to the previously deleted upper-level page, and are only recreated or generated once; the embodiment of the present application deletes not the content related to the upper-level page of the target page, but the content related to the target page. On this basis, since in the embodiment of the present application, the above-mentioned basic input and output system setting interface needs to be switched to the upper-level page, it is necessary to first receive an instruction to switch the page to the upper-level page, which is an instruction input by a device such as a mouse, keyboard, or touch-sensitive device.

[0126] In addition, before displaying the above-mentioned new upper-level page, the target control corresponding to the second node at the previously saved target order is first queried from the generated new second linked list, and when the above-mentioned new upper-level page is displayed, the above-mentioned target control is displayed as the second initial focus object in the above-mentioned new upper-level page.

[0127] In an embodiment of the present application, when the basic input / output system setting interface is created based on LVGL, the new second linked list may be an obj_ll linked list, and the target control corresponding to the node at the target order may be found by traversing the obj_ll linked list in the new second group, and then calling the void lv_group_focus_obj(lv_obj_tobj) function and substituting the identifier of the target space into the function, thereby setting the target control as the second initial focus object in the new upper-level page.

[0128] From the above, it can be seen that in the focus management method provided in the embodiment of the present application, when the page switching in the BIOS Setup interface is designed based on the deletion switching method, after switching to a sub-page through a control with a link function on the main page, when it is necessary to switch back to the main page of the sub-page after the sub-page is set up, the focus object can be easily restored to the control selected as the focus object in the main page when the page in the BIOS Setup interface is switched from the main page to the sub-page by querying the control corresponding to the node in the saved order from the linked list. That is, the newly created main page can restore the display effect of the originally deleted main page.

[0129] In another embodiment of the present application, after the aforementioned step S102, the following step A is also included.

[0130] Step A: Update the group corresponding to the input device to the first group.

[0131] The group corresponding to the above-mentioned input device is a group that can receive and process instructions input by the above-mentioned input device, and the above-mentioned input device can be a device that can input instructions, such as a mouse, a keyboard, a touch-controlled device, etc.

[0132] In the embodiment of the present application, each time a new target page is created and a first group corresponding to the target page is created, the group corresponding to the input device can be updated to the first group.

[0133] In the embodiment of the present application, when the basic input and output system setting interface is created based on LVGL, the group corresponding to the input device can be modified to the first group by calling the void lv_indev_set_group(lv_indev_t indev, lv_group_t group) function.

[0134] As can be seen from the above, the focus management method provided in the embodiment of the present application, when a new page is created in the BIOS Setup interface, by updating the group corresponding to the input device to a group containing the controls in the page, when the page is updated, the input device can input relevant instructions into the new page.

[0135] Corresponding to the aforementioned focus management method, an embodiment of the present application also provides an electronic device.

[0136] See also Figure 6 , is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, the electronic device comprising:

[0137] Processor 601;

[0138] transceiver 602;

[0139] A machine-readable storage medium 603, wherein the machine-readable storage medium 603 stores machine-executable instructions that can be executed by the processor 601; the machine-executable instructions prompt the processor 601 to perform the following steps:

[0140] Creating a target page, wherein the target page is a page to be displayed in the basic input and output system setting interface;

[0141] Creating a first group corresponding to the target page, wherein the first group includes a first control in the target page;

[0142] Generate a first linked list corresponding to the first group, wherein each first node in the first linked list records an identifier of the corresponding first control, and the order of the first nodes in the first linked list is the same as a predetermined first arrangement order of the corresponding first controls in the target page;

[0143] The target page is displayed, and a first focus object is displayed as a first initial focus object in the target page, wherein the first focus object is: a first control corresponding to the first first node in the first linked list.

[0144] like Figure 6 As shown, the network device may further include a communication bus 604. The processor 601, the machine-readable storage medium 603 and the transceiver 602 communicate with each other through the communication bus 604, and the communication bus 604 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus 604 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick bidirectional arrow is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0145] The transceiver 602 may be a wireless communication module. Under the control of the processor 601 , the transceiver 602 exchanges data with other devices.

[0146] The machine-readable storage medium 603 may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk storage. In addition, the machine-readable storage medium 603 may also be at least one storage device located away from the processor 601.

[0147] The processor 601 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0148] As can be seen from the above, the electronic device provided by the embodiment of the present application, because the group corresponding to the target page is created and contains the controls in the page, and the nodes in the linked list corresponding to the created group record the identification of each control in the target page, and the order of the nodes in the linked list is the same as the predetermined arrangement order of the corresponding controls in the target page. That is, the linked list can represent the order of each control in the target page. Therefore, when the target page is displayed, after the control corresponding to the first node in the linked list is displayed as the initial focus object in the target page, after entering a new page in the BIOS Setup interface, the default initial focus object will be displayed in the page, and the default initial focus object is the first control in the predetermined order. That is, through the scheme of the present application, after a new page can be displayed in the BIOS Setup interface, the first control with the most advanced order in the new page will be displayed as the initial focus object by default, which is convenient for users to view and set.

[0149] In one embodiment of the present application, before creating the target page, when the previous level page is displayed in the basic input and output system setting interface, before displaying the target page and displaying the first focus object as the first initial focus object in the target page, the machine executable instructions further cause the processor 601 to perform the following steps:

[0150] Deleting the previous level page;

[0151] Delete the second group and the second linked list corresponding to the second group, wherein the second group includes the second control in the previous-level page, each second node in the second linked list records the identifier of the corresponding second control, and the order of the second nodes in the second linked list is the same as the predetermined second arrangement order of the corresponding second control in the previous-level page.

[0152] As can be seen from the above, the electronic device provided in the embodiment of the present application, before creating the target page, when the previous page is displayed in the BIOS Setup interface, will also delete the previous page, the second group containing the second control in the previous page, and the second linked list corresponding to the second group before displaying the target page, that is, when creating the pages to be displayed in the BIOS Setup interface in the embodiment of the present application, they are all newly created pages and there is no information related to the old pages. Compared with the method of pre-creating all pages in the related art and then adding hide and show flags to them, memory space can be saved and the page switching logic is simple.

[0153] In one embodiment of the present application, before deleting the previous page, the machine executable instruction further causes the processor 601 to perform the following steps:

[0154] Save the target order of the second focus object in the previous level page, wherein the second focus object is: when the page in the basic input and output system setting interface is triggered to switch from the previous level page to the target page, the second control in the previous level page is selected as the focus object, and the target order is: the order of the second node corresponding to the second focus object in the second linked list.

[0155] From the above, it can be seen that the electronic device provided in the embodiment of the present application can, after deleting the previous level page and creating a new page, retain the order of the controls selected as focus objects in the previous level page when the page in the basic input / output system setting interface is switched from the previous level page to the new page.

[0156] In one embodiment of the present application, after the target order of the second focus object in the previous page is saved, the machine executable instructions further cause the processor 601 to execute the following steps:

[0157] Receive an instruction to switch the page to the previous page;

[0158] Create a new parent page;

[0159] Creating a new second group corresponding to the new upper-level page;

[0160] Generate a new second linked list corresponding to the new second group;

[0161] Query the target control corresponding to the second node at the target order from the new second linked list;

[0162] Deleting the target page, the first group and the first linked list;

[0163] The new upper-level page is displayed, and the target control is displayed as a second initial focus object in the new upper-level page.

[0164] From the above, it can be seen that in the electronic device provided by the embodiment of the present application, when the page switching in the BIOS Setup interface is designed based on the deletion switching method, after switching to a sub-page through a control with a link function on the main page, when it is necessary to switch back to the main page of the sub-page after the sub-page is set up, the focus object can be easily restored to the control selected as the focus object in the main page when the page in the BIOS Setup interface is switched from the main page to the sub-page by querying the control corresponding to the node in the saved order from the linked list. That is, the newly created main page can restore the display effect of the originally deleted main page.

[0165] In one embodiment of the present application, after creating the first group corresponding to the target page, the machine executable instructions further cause the processor 601 to perform the following steps:

[0166] The group corresponding to the input device is updated to the first group, wherein the group corresponding to the input device is a group capable of receiving and processing instructions input by the input device.

[0167] From the above, it can be seen that in the electronic device provided in the embodiment of the present application, when a new page is created in the BIOS Setup interface, by updating the group corresponding to the input device to a group containing the controls in the page, when the page is updated, the input device can input relevant instructions into the new page.

[0168] Corresponding to the aforementioned focus management method, an embodiment of the present application also provides a focus management device.

[0169] See also Figure 7 , is a schematic diagram of the structure of a first focus management device provided in an embodiment of the present application, the device comprising:

[0170] A target page creation module 701 is used to create a target page, wherein the target page is a page to be displayed in the basic input and output system setting interface;

[0171] A first group creation module 702, configured to create a first group corresponding to the target page, wherein the first group includes a first control in the target page;

[0172] A first linked list generation module 703 is used to generate a first linked list corresponding to the first group, wherein each first node in the first linked list records the identifier of the corresponding first control, and the order of the first nodes in the first linked list is the same as the predetermined first arrangement order of the corresponding first controls in the target page;

[0173] The target page display module 704 is used to display the target page and display the first focus object as the first initial focus object in the target page, wherein the first focus object is: the first control corresponding to the first first node in the first linked list.

[0174] As can be seen from the above, the focus management device provided by the embodiment of the present application, because the created group corresponding to the target page contains the controls in the page, and the nodes in the generated linked list corresponding to the created group record the identifiers of the various controls in the target page, and the order of the nodes in the linked list is the same as the predetermined arrangement order of the corresponding controls in the target page. That is, the linked list can represent the order of the various controls in the target page. Therefore, when the target page is displayed, after the control corresponding to the first node in the linked list is displayed as the initial focus object in the target page, after entering a new page in the BIOS Setup interface, the default initial focus object will be displayed in the page, and the default initial focus object is the first control in the predetermined order. That is, through the solution of the present application, after a new page is displayed in the BIOS Setup interface, the first control with the highest order in the new page can be displayed as the initial focus object by default, which is convenient for users to view and set.

[0175] In one embodiment of the present application, before creating the target page, when the previous page is displayed in the basic input and output system setting interface, refer to Figure 8 , is a schematic diagram of the structure of a second focus management device provided in an embodiment of the present application, wherein the device further comprises:

[0176] A first deletion module 705, used to delete the previous level page;

[0177] The second deletion module 706 is used to delete the second group and the second linked list corresponding to the second group, wherein the second group includes the second control in the previous level page, each second node in the second linked list records the identifier of the corresponding second control, and the order of the second nodes in the second linked list is the same as the predetermined second arrangement order of the corresponding second control in the previous level page.

[0178] As can be seen from the above, the focus management device provided in the embodiment of the present application, before creating the target page, when the previous page is displayed in the BIOS Setup interface, will also delete the previous page, the second group containing the second control in the previous page, and the second linked list corresponding to the second group before displaying the target page, that is, when creating the pages to be displayed in the BIOS Setup interface in the embodiment of the present application, they are all newly created pages and there is no information related to the old pages. Compared with the method of pre-creating all pages in the related art and then adding hide and show flags to them, it can save memory space and the page switching logic is simple.

[0179] In one embodiment of the present application, see Fig. 9 , is a schematic diagram of the structure of a third focus management device provided in an embodiment of the present application, wherein the device further includes:

[0180] The target order saving module 707 is used to save the target order of the second focus object in the previous level page, wherein the second focus object is: when the page in the basic input and output system setting interface is triggered to switch from the previous level page to the target page, the second control in the previous level page is selected as the focus object, and the target order is: the order of the second node corresponding to the second focus object in the second linked list.

[0181] From the above, it can be seen that the focus management device provided in the embodiment of the present application can, after deleting the previous level page and creating a new page, retain the order of the controls selected as focus objects in the previous level page when the page in the basic input and output system setting interface is switched from the previous level page to the new page.

[0182] In one embodiment of the present application, see Fig.10 , is a schematic diagram of the structure of a fourth focus management device provided in an embodiment of the present application, wherein the device further includes:

[0183] The instruction receiving module 708 is used to receive an instruction to switch a page to a previous page;

[0184] The upper-level page creation module 709 is used to create a new upper-level page;

[0185] A second group creation module 710, configured to create a new second group corresponding to the new upper-level page;

[0186] A second linked list generating module 711, configured to generate a new second linked list corresponding to the new second group;

[0187] A target control query module 712, configured to query the target control corresponding to the second node at the target order from the new second linked list;

[0188] A third deleting module 713, used to delete the target page, the first group and the first linked list;

[0189] The upper-level page display module 714 is used to display the new upper-level page and display the target control as the second initial focus object in the new upper-level page.

[0190] As can be seen from the above, in the focus management device provided by the embodiment of the present application, when the page switching in the BIOS Setup interface is designed based on the deletion switching method, after switching to a sub-page through a control with a link function on the main page, when the sub-page needs to be switched back to the main page of the sub-page after the sub-page is set up, by querying the control corresponding to the node at the saved order from the linked list, the focus object can be easily restored to the control selected as the focus object in the main page when the page in the BIOS Setup interface is switched from the main page to the sub-page, that is, the created new main page can restore the display effect of the main page that was originally deleted. In one embodiment of the present application, the device also includes:

[0191] The group updating module is used to update the group corresponding to the input device to the first group, wherein the group corresponding to the input device is a group that can receive and process instructions input by the input device.

[0192] From the above, it can be seen that the focus management device provided in the embodiment of the present application, when creating a new page in the BIOS Setup interface, updates the group corresponding to the input device to a group containing controls in the page. When the page is updated, the input device can input relevant instructions into the new page.

[0193] In another embodiment provided in the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above focus management methods are implemented.

[0194] In another embodiment provided by the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute any focus management method in the above embodiments.

[0195] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.

[0196] It should be noted that, in this article, relational terms such as first and second, etc. are only used 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. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0197] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for electronic devices, devices, computer-readable storage media, and computer program products, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0198] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims

1. A focus management method, characterized in that: The method comprises: Creating a target page, wherein the target page is a page to be displayed in the basic input and output system setting interface; Creating a first group corresponding to the target page, wherein the first group includes a first control in the target page; Generate a first linked list corresponding to the first group, wherein each first node in the first linked list records an identifier of the corresponding first control, and the order of the first nodes in the first linked list is the same as a predetermined first arrangement order of the corresponding first controls in the target page; The target page is displayed, and a first focus object is displayed as a first initial focus object in the target page, wherein the first focus object is: a first control corresponding to the first first node in the first linked list.

2. The method according to claim 1, characterized in that Before creating the target page, in the case where the previous level page is displayed in the basic input / output system setting interface, before displaying the target page and displaying the first focus object as the first initial focus object in the target page, the method further includes: Deleting the previous level page; Delete the second group and the second linked list corresponding to the second group, wherein the second group includes the second control in the previous-level page, each second node in the second linked list records the identifier of the corresponding second control, and the order of the second nodes in the second linked list is the same as the predetermined second arrangement order of the corresponding second control in the previous-level page.

3. The method according to claim 2, characterized in that Before deleting the upper level page, the method further includes: Save the target order of the second focus object in the previous level page, wherein the second focus object is: when the page in the basic input and output system setting interface is triggered to switch from the previous level page to the target page, the second control in the previous level page is selected as the focus object, and the target order is: the order of the second node corresponding to the second focus object in the second linked list.

4. The method according to claim 3, characterized in that: After the target order of the second focus object in the upper level page is saved, the method further includes: Receive an instruction to switch the page to the previous page; Create a new parent page; Creating a new second group corresponding to the new upper-level page; Generate a new second linked list corresponding to the new second group; Query the target control corresponding to the second node at the target order from the new second linked list; Deleting the target page, the first group and the first linked list; The new upper-level page is displayed, and the target control is displayed as a second initial focus object in the new upper-level page.

5. The method according to any one of claims 1 to 4, characterized in that After creating the first group corresponding to the target page, the method further includes: The group corresponding to the input device is updated to the first group, wherein the group corresponding to the input device is a group capable of receiving and processing instructions input by the input device.

6. An electronic device, characterized in that: The electronic device comprises: processor; Transceiver; A machine-readable storage medium storing machine-executable instructions that can be executed by the processor; the machine-executable instructions prompt the processor to perform the following steps: Creating a target page, wherein the target page is a page to be displayed in the basic input and output system setting interface; Creating a first group corresponding to the target page, wherein the first group includes a first control in the target page; Generate a first linked list corresponding to the first group, wherein each first node in the first linked list records an identifier of the corresponding first control, and the order of the first nodes in the first linked list is the same as a predetermined first arrangement order of the corresponding first controls in the target page; The target page is displayed, and a first focus object is displayed as a first initial focus object in the target page, wherein the first focus object is: a first control corresponding to the first first node in the first linked list.

7. The electronic device according to claim 6, characterized in that: Before creating the target page, in a case where the previous level page is displayed in the basic input and output system setting interface, before displaying the target page and displaying the first focus object as the first initial focus object in the target page, the machine executable instructions further cause the processor to perform the following steps: Deleting the previous level page; Delete the second group and the second linked list corresponding to the second group, wherein the second group includes the second control in the previous-level page, each second node in the second linked list records the identifier of the corresponding second control, and the order of the second nodes in the second linked list is the same as the predetermined second arrangement order of the corresponding second control in the previous-level page.

8. The electronic device according to claim 7, characterized in that: Before deleting the previous level page, the machine executable instructions further cause the processor to execute the following steps: Save the target order of the second focus object in the previous level page, wherein the second focus object is: when the page in the basic input and output system setting interface is triggered to switch from the previous level page to the target page, the second control in the previous level page is selected as the focus object, and the target order is: the order of the second node corresponding to the second focus object in the second linked list.

9. The electronic device according to claim 8, characterized in that: After the target order of the second focus object in the previous page is saved, the machine executable instructions further cause the processor to execute the following steps: Receive an instruction to switch the page to the previous page; Create a new parent page; Creating a new second group corresponding to the new upper-level page; Generate a new second linked list corresponding to the new second group; Query the target control corresponding to the second node at the target order from the new second linked list; Deleting the target page, the first group and the first linked list; The new upper-level page is displayed, and the target control is displayed as a second initial focus object in the new upper-level page.

10. A focus management device, characterized in that: The device comprises: A target page creation module, used to create a target page, wherein the target page is a page to be displayed in the basic input and output system setting interface; A first group creation module, used to create a first group corresponding to the target page, wherein the first group includes a first control in the target page; A first linked list generating module, configured to generate a first linked list corresponding to the first group, wherein each first node in the first linked list records an identifier of a corresponding first control, and an order of the first nodes in the first linked list is the same as a predetermined first arrangement order of the corresponding first controls in the target page; The target page display module is used to display the target page and display the first focus object as the first initial focus object in the target page, wherein the first focus object is: the first control corresponding to the first first node in the first linked list.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 5 are implemented.