A control method of an electronic device, an electronic device, and a related medium
Patent Information
- Application Number
- CN202410946560.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2026-09-25
- Estimated Expiration
- 2044-07-12
AI Technical Summary
然而,随着电子设备、操作系统和应用程序的升级,基础的触摸板操作手势已经无法满足用户的使用需求,因此需要针对不同使用场景为用户提供更加便捷的触摸板操作方法
[0122]可以理解地,上述第二方面和第三方面提供的电子设备、第四方面提供的芯片、第五方面提供的计算机可读存储介质以及第六方面提供的计算机程序产品均与第一方面提供的一种基于操作手势的界面显示方法相关,可用于执行本申请所提供的方法。因此,其所能达到的有益效果可参考对应第一方面中一种基于操作手势的界面显示方法的有益效果,此处不再赘述。
Smart Images

Figure CN121387094B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computers, and more particularly to a control method for an electronic device, an electronic device, and related media. Background Technology
[0002] Currently, touchpads are widely used as input devices in laptops, serving as a mouse replacement. Users can operate the touchpad using one or more fingers of one hand, or fingers of both hands, forming different gestures to achieve corresponding functions. For example, users can control the cursor on the laptop screen to move, select, and click, as well as swipe up and down on the page. However, with the upgrading of electronic devices, operating systems, and applications, basic touchpad gestures are no longer sufficient to meet user needs. Therefore, it is necessary to provide users with more convenient touchpad operation methods for different usage scenarios. Summary of the Invention
[0003] In a first aspect, this application provides a control method for an electronic device, an electronic device, and a related medium. The method is applied to an electronic device, which may include a touchpad, and the method may include:
[0004] At the first point in time, the electronic device displays the first window, which is the focus window and does not contain multiple tabs.
[0005] In response to an operation on the first area of the touchpad, the electronic device closes the first window;
[0006] At the second time point, the electronic device displays a second window, which is the focus window. The second time point is after the first time point. The second window contains multiple tab options. The pages of the first tab are displayed in the second window, while the pages of the second tab are not displayed in the second window.
[0007] In response to an operation on the first area of the touchpad, the electronic device closes the first tab and displays the page of the second tab in the second window.
[0008] The method provided in the first aspect determines different execution operations for the focus window based on whether the focus window contains multiple tabs. Specifically, if the user performs an operation in the first area, and the focus window contains multiple tabs, the electronic device closes the tab corresponding to the currently displayed page in the focus window. It can be seen that the embodiments of this application can analyze the user's true operation intention and the correct target execution operation by combining window information, which helps to avoid situations where some special windows or special applications cannot respond correctly to user operations, thereby improving the user experience.
[0009] In implementing the method provided in the first aspect, in some embodiments, the method of the present application embodiments may further include:
[0010] At the third time point, the electronic device displays the third window, which is the focus window. The third time point is after the first time point, and the process name corresponding to the third window is the first process name, which corresponds to the desktop process.
[0011] Receives an operation applied to the first area of the touchpad, and does not close the third window after receiving the operation applied to the first area of the touchpad.
[0012] By implementing the methods described above, it can be seen that the electronic device can further determine the target operation (i.e., the operation performed on the focus window) by combining the process name corresponding to the focus window. This helps to avoid erroneous responses caused by special applications or special windows while achieving the user's true operational purpose as much as possible, thus ensuring a good user experience. Specifically, if the process name corresponding to the focus window is not the first process name, the target operation is determined to be closing the focus window; if the process name corresponding to the focus window is the first process name, the target operation is determined to be not closing the focus window. It can be seen that the method of this application can also combine the process name corresponding to the focus window to select the correct target operation, which helps to more accurately identify the user's true operational intent and also helps to avoid erroneous responses caused by special applications or special windows, thus ensuring a good user experience.
[0013] In implementing the method provided in the first aspect, in some embodiments, the method of the present application embodiments may further include:
[0014] At the fourth time point, the electronic device displays the fourth window, which becomes the focus window at that time point.
[0015] In response to an operation on the second area of the touchpad, the electronic device minimizes the fourth window;
[0016] After the fourth window is minimized, the electronic device displays the third window;
[0017] Receive an operation applied to the second area of the touchpad, and do not minimize the third window after receiving the operation applied to the second area of the touchpad.
[0018] By implementing the methods described above, electronic devices can further avoid situations where certain windows or applications fail to respond correctly to user operations, thus improving the user experience. For example, suppose the focus window displayed on the electronic device screen is the Start Menu window. Since the Start Menu window corresponds to a desktop process, when a user minimizes the Start Menu window using touchpad shortcut gestures, errors such as desktop icons disappearing or the desktop image flickering may occur. However, if the method of this application is used, the electronic device will only print a log to record the user's operation history and maintain the current display state of the Start Menu window, helping to ensure a better user experience.
[0019] In implementing the method provided in the first aspect, in some embodiments, when the second window is the focus window and the second window displays the page of the first tab, the method of the embodiments of this application may further include:
[0020] In response to an operation on the first area of the touchpad, based on the option of multiple tabs in the second window, the electronic device closes the first tab and displays the second tab.
[0021] In implementing the method provided in the first aspect, in some embodiments, when the first window is the focus window, the method of the embodiments of this application may further include:
[0022] In response to an operation on the first area of the touchpad, the electronic device closes the first window based on the fact that the first window does not contain multiple tabs.
[0023] In implementing the method provided in the first aspect, in some embodiments, when the third window is the focus window, the method of the embodiments of this application may further include:
[0024] In response to an operation on the first area of the touchpad, the electronic device does not close the third window based on the process name corresponding to the third window being the first process name.
[0025] In implementing the method provided in the first aspect, in some embodiments, when the second window is the focus window, the method of the embodiments of this application may further include:
[0026] In response to an operation on the first area of the touchpad, obtain the window information of the second window, which may include the process name corresponding to the window;
[0027] Based on the window information of the second window, the process name corresponding to the second window is determined to be the second process name. The second process name is the process name corresponding to the application runtime of the main window, which may include multiple tabs.
[0028] After confirming that the process name corresponding to the second window is the second process name, close the first tab and display the second tab.
[0029] By implementing the methods described above, the electronic device can combine window information and the user's operational intent (which can be understood as the user wanting to close the focused window) to determine the target operation as closing the first tab. It can be seen that, compared to existing technologies, this application's embodiments can analyze the user's true operational intent and the correct target operation by combining window information, which helps to avoid situations where certain windows or applications fail to respond correctly to user operations, thus improving the user experience.
[0030] In implementing the method provided in the first aspect, in some embodiments, when the first window is the focus window, the method of the embodiments of this application may further include:
[0031] In response to an operation on the first area of the touchpad, obtain the window information of the first window. The window information may include the window's title bar, window type, and the process name corresponding to the window. The window type may include the main window, toolbar, menu bar, and child window.
[0032] Based on the window information of the first window, it is determined that the process name corresponding to the first window is not the second process name, the first window contains a title bar, and the first window is not a child window;
[0033] The first window is closed if the process name corresponding to the first window is not the second process name, the first window contains a title bar, and the first window is not a child window.
[0034] By implementing the methods described above, it can be seen that the electronic device can further determine the target operation by combining the process name corresponding to the focus window. This helps to avoid erroneous responses caused by special applications or special windows while achieving the user's true operational purpose as much as possible, thus ensuring a good user experience. Specifically, if the process name corresponding to the focus window is not a second process name, the target operation is determined to be closing the focus window. Since the method of this application can further combine the process name corresponding to the focus window to select the correct target operation, it helps to more accurately identify the user's true operational intent and also helps to avoid erroneous responses caused by special applications or special windows, thus ensuring a good user experience.
[0035] In implementing the method provided in the first aspect, in some embodiments, when the third window is the focus window, the method of the embodiments of this application may further include:
[0036] In response to an operation in the first area of the touchpad, obtain the window information corresponding to the third window;
[0037] Based on the window information corresponding to the third window, it is determined that the third window does not have a title bar, or the third window is not a child window;
[0038] The third window will not be closed if the process name corresponding to the third window is the same as the first process name, the third window does not contain a title bar, or the third window is not a child window.
[0039] By implementing the methods described above, it can be seen that the electronic device can further determine the target operation by combining the process name corresponding to the focus window. This helps to avoid erroneous responses caused by special applications or special windows while achieving the user's true operational purpose as much as possible, thus ensuring a good user experience. Specifically, if the process name corresponding to the focus window is the first process name, then the target operation is determined to be not closing the focus window. It can be seen that the method of this application can not only determine the target operation based on the title bar, window attributes, and target shortcut operation of the focus window, but also further combine the process name corresponding to the focus window to select the correct target operation. This helps to more accurately identify the user's true operational intent and also helps to avoid erroneous responses caused by special applications or special windows, thus ensuring a good user experience.
[0040] In implementing the method provided in the first aspect, in some embodiments, the fourth window includes a title bar and is not a child window;
[0041] When the fourth window is the focus window, the method in this application embodiment may further include:
[0042] In response to an operation on the second area of the touchpad, the electronic device minimizes the fourth window based on the fact that the fourth window contains a title bar and is not a child window.
[0043] In implementing the method provided in the first aspect, in some embodiments, when the fourth window is the focus window, the method of the embodiments of this application may further include:
[0044] In response to an operation on the second area of the touchpad, obtain window information of the fourth window. The window information may include the window's title bar and window type. The window type may include the main window, toolbar, menu bar, and child windows.
[0045] Based on the window information of the fourth window, it is determined that the fourth window contains a title bar and is not a child window;
[0046] The fourth window is minimized because it contains a title bar and is not a child window.
[0047] By implementing the methods described above, the electronic device minimizes the focus window only when the focus window does not contain a title bar or the third window is not a child window. This helps to avoid situations where certain windows or applications fail to respond correctly to user operations, thus improving the user experience. For example, suppose the focus window displayed on the electronic device screen is the Start Menu window (assuming the system settings window does not meet the first preset condition). Because the Start Menu window does not meet the first preset condition, when the user performs a minimize operation on the Start Menu window using touchpad shortcut gestures, erroneous responses such as desktop icons disappearing or desktop images flickering may easily occur.
[0048] In some implementations of the method provided in the first aspect, the third window does not contain a title bar, or the third window is not a child window;
[0049] When the third window is the focus window, the method in this application embodiment may further include:
[0050] In response to an operation on the second area of the touchpad, obtain window information of the third window, which may also include the process name corresponding to the window;
[0051] Based on the window information of the third window, determine whether the process name corresponding to the third window is the first process name, whether the third window does not contain a title bar, or whether the third window is not a child window;
[0052] The third window will not be minimized if the process name corresponding to the third window is the same as the first process name, the third window does not contain a title bar, or the third window is not a child window.
[0053] Implementing the method provided in the above embodiments, the window information may further include the process name corresponding to the focus window. The electronic device can further determine the target operation by combining the process name corresponding to the focus window. This helps to avoid erroneous responses caused by special applications or special windows while maximizing the achievement of the user's true operational purpose and ensuring a good user experience. Specifically, if the process name corresponding to the focus window is the first process name, then the target operation is determined not to minimize the focus window. It can be seen that the method of this application embodiment can not only determine the target operation based on the title bar, window attributes, and target shortcut operation of the focus window, but also further combine the process name corresponding to the focus window to select the correct target operation. This helps to more accurately identify the user's true operational intent and also helps to avoid erroneous responses caused by special applications or special windows, ensuring a good user experience.
[0054] In some embodiments of the method provided in the first aspect, the electronic device displays a fifth window, which is the focus window and contains a vertical scroll bar.
[0055] The method in this application embodiment may further include:
[0056] In response to a user pressing the touchpad with two fingers and then swiping upwards on the touchpad with two fingers, the electronic device scrolls upwards at a preset speed to display the content of the fifth window; or...
[0057] In response to a user pressing the touchpad with two fingers and swiping down on the touchpad with two fingers, the electronic device scrolls down to display the content in the fifth window at a preset speed.
[0058] By implementing the methods described above, the electronic device can also provide a function that simulates a mouse scroll wheel. After the user presses the touchpad with two fingers and slides it up and down, the electronic device can control the controls in the scroll bar to move up or down at a constant speed according to a preset speed, so that the user can perform relevant operation settings.
[0059] In implementing the method provided in the first aspect, in some embodiments, there are tabs on both the left and right sides of the second tab;
[0060] When the second window is the focused window and the page of the first tab is displayed in the second window, the method of this application embodiment may further include:
[0061] In response to a user swiping left along the top or bottom edge of the touchpad, the page displayed on the electronic device switches from the first tab to the left tab of the second tab; or,
[0062] In response to a user swiping right along the top or bottom edge of the touchpad, the page displayed on the electronic device switches from the first tab to the right tab of the second tab.
[0063] By implementing the methods described above, the electronic device can also provide a tab switching function. After the user slides left or right along the upper or lower edge of the touchpad with two fingers, the electronic device can switch tabs left and right on the screen for the user to perform relevant operation settings.
[0064] Secondly, embodiments of this application provide an electronic device, which may include a touchpad, a screen, and a processing module;
[0065] At the first point in time, the screen is used to display the first window, which is the focus window and does not contain multiple tabs.
[0066] The processing module is used to close the first window of the electronic device in response to an operation on the first area of the touchpad;
[0067] At the second time point, the screen is also used to display a second window, which is the focus window at the second time point. The second time point is after the first time point. The second window contains multiple tab options. The pages of the first tab are displayed in the second window, while the pages of the second tab are not displayed in the second window.
[0068] The processing module is also configured to respond to an operation in the first area of the touchpad, causing the electronic device to close the first tab and display the page of the second tab in the second window.
[0069] In implementing the method provided in the second aspect, in some embodiments, the electronic device may further include:
[0070] At the third time point, the screen is also used to display the third window. At the third time point, the third window is the focus window. The third time point is after the first time point. The process name corresponding to the third window is the first process name, and the first process name corresponds to the desktop process.
[0071] The touchpad is used to receive user input on a first area of the touchpad;
[0072] The processing module is also configured not to close the third window after receiving an operation applied to the first area of the touchpad.
[0073] In implementing the method provided in the second aspect, in some embodiments, the electronic device may further include:
[0074] At the fourth time point, the screen is also used to display the fourth window, which is the focus window at the fourth time point;
[0075] The processing module is also used to minimize the fourth window in response to an operation in the second area of the touchpad;
[0076] After the fourth window is minimized, the screen is also used to display the third window;
[0077] The touchpad is also used to receive operations from the second area of the touchpad;
[0078] The processing module is also configured not to minimize the third window after receiving an operation applied to the second area of the touchpad.
[0079] In implementing the method provided in the second aspect, in some embodiments, when the second window is the focused window and displays a page from the first tab, the electronic device may further include:
[0080] The processing module is also used to respond to an operation in the first area of the touchpad, based on the option of multiple tabs in the second window, and the electronic device closes the page of the first tab;
[0081] The screen is also used to display the page for the second tab.
[0082] In implementing the method provided in the second aspect, in some embodiments, when the first window is the focus window, the electronic device may further include:
[0083] The processing module is also used to respond to an operation in the first area of the touchpad, such that the electronic device closes the first window based on the fact that the first window does not contain multiple tabs.
[0084] In implementing the method provided in the second aspect, in some embodiments, when the third window is the focus window, the electronic device may further include:
[0085] The processing module is also used to respond to operations in the first area of the touchpad, based on the process name corresponding to the third window being the first process name, and the electronic device not closing the third window.
[0086] In implementing the method provided in the second aspect, in some embodiments, when the second window is the focus window, the electronic device may further include:
[0087] The processing module is also used to respond to the operation in the first area of the touchpad and obtain the window information of the second window, which may include the process name corresponding to the window;
[0088] The processing module is also used to determine the process name corresponding to the second window as the second process name based on the window information of the second window. The second process name is the process name corresponding to the application runtime of the main window, which may include multiple tabs.
[0089] The processing module is also used to close the first tab and display the second tab after determining that the process name corresponding to the second window is the second process name.
[0090] In implementing the method provided in the second aspect, in some embodiments, when the first window is the focus window, the electronic device may further include:
[0091] The processing module is also used to respond to the operation in the first area of the touchpad and obtain the window information of the first window. The window information may include the window's title bar, window type and the process name corresponding to the window. The window type may include the main window, toolbar, menu bar and child window.
[0092] The processing module is also used to determine, based on the window information of the first window, that the process name corresponding to the first window is not the second process name, and that the first window contains a title bar and is not a child window;
[0093] The processing module is also used to close the first window based on the fact that the process name corresponding to the first window is not the second process name, the first window contains a title bar, and the first window is not a child window.
[0094] In implementing the method provided in the second aspect, in some embodiments, when the third window is the focus window, the electronic device may further include:
[0095] The processing module is also used to obtain window information corresponding to the third window based on the operation in response to the first area of the touchpad;
[0096] The processing module is also used to determine, based on the window information corresponding to the third window, whether the third window does not have a title bar or is not a child window;
[0097] The processing module is also used to prevent the third window from closing if the process name corresponding to the third window is the first process name, the third window does not contain a title bar, or the third window is not a child window.
[0098] In implementing the method provided in the second aspect, in some embodiments, the fourth window includes a title bar and is not a child window;
[0099] When the fourth window is the focus window, the electronic device may further include:
[0100] The processing module is also configured to respond to an operation in the second area of the touchpad, and minimize the fourth window based on the fact that the fourth window contains a title bar and the fourth window is not a child window.
[0101] In implementing the method provided in the second aspect, in some embodiments, when the fourth window is the focus window, the electronic device may further include:
[0102] The processing module is also used to respond to the operation in the second area of the touchpad and obtain the window information of the fourth window. The window information may include the window's title bar and window type. The window type may include the main window, toolbar, menu bar, and child windows.
[0103] The processing module is also used to determine, based on the window information of the fourth window, whether the fourth window contains a title bar and whether the fourth window is a child window;
[0104] The processing module is also used to minimize the fourth window based on the fact that the fourth window contains a title bar and the fourth window is not a child window.
[0105] In implementing the method provided in the second aspect, in some embodiments, the third window does not contain a title bar, or the third window is not a child window;
[0106] When the third window is the focused window, the electronic device may further include:
[0107] The processing module is also used to respond to the operation in the second area of the touchpad and obtain the window information of the third window, which may also include the process name corresponding to the window;
[0108] The processing module is also used to determine, based on the window information of the third window, whether the process name corresponding to the third window is the first process name, whether the third window does not contain a title bar, or whether the third window is not a child window;
[0109] The processing module is also used to prevent the third window from being minimized based on the process name corresponding to the third window being the first process name, the third window not containing a title bar, or the third window not being a child window.
[0110] In implementing the method provided in the second aspect, in some embodiments, the electronic device displays a fifth window, which is the focus window, and a vertical scroll bar exists in the fifth window;
[0111] The electronic device may also include:
[0112] The processing module is also used to respond to a user pressing the touchpad with two fingers and swiping upwards on the touchpad with two fingers, causing the electronic device to scroll upwards at a preset speed to display the content of the fifth window; or,
[0113] The processing module is also used to respond to the user pressing the touchpad with two fingers and sliding down the touchpad with two fingers, and the electronic device scrolls down to display the content of the fifth window at a preset speed.
[0114] In implementing the method provided in the second aspect, in some embodiments, there are tabs on both the left and right sides of the second tab;
[0115] When the second window is the focused window and the page of the first tab is displayed in the second window, the electronic device may further include:
[0116] The processing module is also configured to, in response to a user swiping left along the top or bottom edge of the touchpad, switch the page displayed by the electronic device from the first tab to the left tab of the second tab; or,
[0117] The processing module is also configured to respond to a user swiping right along the top or bottom edge of the touchpad, causing the electronic device to switch the page displayed from the first tab to the right tab of the second tab.
[0118] Thirdly, embodiments of this application provide an electronic device including one or more processors and one or more memories; wherein the one or more memories are coupled to one or more processors, and the one or more memories are used to store computer program code, the computer program code including computer instructions, which, when executed by one or more processors, cause the execution of the method described in the first aspect and any possible implementation thereof.
[0119] Fourthly, embodiments of this application provide a chip including logic circuitry and an interface, wherein the logic circuitry and the interface are coupled; the interface is used to input and / or output code instructions, and the logic circuitry is used to execute the code instructions to cause the method in the first aspect or any possible implementation thereof to be executed.
[0120] Fifthly, this application provides a computer-readable storage medium including instructions that, when executed on a target terminal, cause the execution of the method described in the first aspect and any possible implementation thereof.
[0121] Sixthly, this application provides a computer program product containing instructions that, when the computer program product is run on an electronic device, cause the electronic device to perform the method described in the first aspect and any possible implementation thereof.
[0122] Understandably, the electronic devices provided in the second and third aspects, the chip provided in the fourth aspect, the computer-readable storage medium provided in the fifth aspect, and the computer program product provided in the sixth aspect are all related to the gesture-based interface display method provided in the first aspect, and can be used to execute the method provided in this application. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects of the gesture-based interface display method in the corresponding first aspect, and will not be repeated here. Attached Figure Description
[0123] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly described below. Obviously, the drawings described below are merely some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without any creative effort.
[0124] Figure 1 This is a schematic diagram of a scenario illustrating a touchpad operation method provided in an embodiment of this application;
[0125] Figures 2a-2g This is a schematic diagram of the interface of an electronic device provided in an embodiment of this application;
[0126] Figure 2hThis application provides a schematic diagram illustrating two different functions of a control button.
[0127] Figure 3 This is a flowchart illustrating a touchpad operation method provided in an embodiment of this application;
[0128] Figure 4 This is a schematic diagram illustrating the composition of an electronic device provided in an embodiment of this application;
[0129] Figures 5a-5b A schematic diagram illustrating the structural relationship between different window types provided in the application embodiment;
[0130] Figures 6a-6b This is a schematic diagram of a focus window provided in an embodiment of this application;
[0131] Figure 7a This is a flowchart illustrating a window minimization optimization scheme provided in an embodiment of this application;
[0132] Figure 7b This is a schematic diagram of a minimized window operation process provided in an embodiment of this application;
[0133] Figures 8a-8c This is another schematic diagram of the focus window provided in the embodiments of this application;
[0134] Figure 9a This is a flowchart illustrating an optimized window closing scheme provided in an embodiment of this application;
[0135] Figure 9b This is a schematic diagram of an operation process for closing a window provided in an embodiment of this application;
[0136] Figure 10 This is a schematic diagram illustrating the composition of another electronic device provided in an embodiment of this application;
[0137] Figure 11 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application;
[0138] Figure 12 This is a software structure block diagram provided in an embodiment of this application. Detailed Implementation
[0139] The technical solutions in the embodiments of this application will be clearly and thoroughly described below with reference to the accompanying drawings. The terminology used in the following embodiments of this application is for the purpose of describing specific embodiments only and is not intended to be a limitation of this application. As used in the specification and appended claims of this application, the singular expressions "a," "an," "the," "the," "the," and "this" are intended to include the plural expressions as well, unless the context clearly indicates otherwise. It should also be understood that in the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B; "and / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist, for example, A and / or B can represent: A alone, A and B simultaneously, and B alone. In addition, in the description of the embodiments of this application, "multiple" means two or more.
[0140] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.
[0141] The term "user interface (UI)" used in the following embodiments of this application refers to the medium interface through which an application or operating system interacts and exchanges information with the user. It realizes the conversion between the internal form of information and the form that the user can accept. The user interface is source code written in a specific computer language such as Java or Extensible Markup Language (XML). The interface source code is parsed and rendered on the electronic device, ultimately presenting content that the user can recognize. A common form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation displayed graphically. It can be visible interface elements such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets displayed on the screen of an electronic device.
[0142] To ensure clarity and conciseness in the description of the following embodiments, a brief introduction to the related technologies is given first:
[0143] (1) Touchpad
[0144] A touchpad (or trackpad), also known as a touch panel, is an input device based on pressure or capacitive sensing principles, typically located below or to the side of an electronic device's keyboard. Users can interact with the device by touching the touchpad with their fingers and / or swiping their fingers across it, controlling cursor movement, clicking, dragging, and other actions. The design and functionality of touchpads vary from device to device, but most touchpads share similar operating methods, including a touch panel and a navigation area. The touch panel is the core of the touchpad device, while the navigation area usually includes two buttons, left and right, to simulate the left and right mouse buttons. Some touchpads may also have additional multi-touch capabilities, such as pinch and rotate gestures.
[0145] Touchpads can utilize either pressure sensing or capacitive sensing. When a touchpad includes pressure sensing, the sensor detects the change when a user touches it with their finger or applies pressure, converting it into an electrical signal. The device analyzes these signals to determine the finger's position and operation, thus enabling mouse movement and clicking functions. When a touchpad includes capacitive sensing, it works by measuring the capacitance change caused by the user's finger touch, transmitting the resulting electrical signal to the device's processor for analysis and response.
[0146] (2) Window type
[0147] In the Windows operating system, there are several common window types:
[0148] Main Window: This is usually the main window of the application, containing the application's main functions and user interface.
[0149] Dialog Box: A temporary window used to display tasks or operations, typically containing controls and buttons for user interaction.
[0150] Modal window: Similar to a dialog box, but it prevents the user from interacting with other windows while it is open, until the modal window is closed.
[0151] Child window: A window nested within the main window or other windows, typically used to display additional content or functionality.
[0152] Toolbar: A horizontal or vertical bar area displayed in the main window or other windows for quick access to frequently used tools or functions.
[0153] Title Bar: Located at the top of the window, it contains the window's title, minimize, maximize, and close buttons, etc.
[0154] Status Bar: Located at the bottom of the window, it displays application status information, progress bars, or other prompts.
[0155] Menu Bar: Located at the top of the window, it contains the application's menu items for accessing different functions and options.
[0156] Floating window: A window that can float above other windows, often used to display temporary information or provide quick access functionality.
[0157] These are some common window types. Depending on the specific application requirements, technicians can also create other custom window types.
[0158] (3) Focus window
[0159] A focus window is the window or component in a graphical user interface that currently receives keyboard input. By setting a focus window, you can ensure that user input (such as keyboard keys) is correctly sent to the intended component or window, thereby achieving responsiveness and controllability of the user interface.
[0160] It should be noted that the explanations of terms in this application are exemplary and do not represent the full meaning of the terms, nor should they be construed as limiting the application.
[0161] Please see Figure 1 , Figure 1 This is a schematic diagram of a touchpad operation method provided in an embodiment of the present invention.
[0162] like Figure 1 As shown, users can input relevant operation commands on the laptop's touchpad.
[0163] Optionally, when a user wants to move the cursor on the laptop screen, they can move their finger on the touchpad; when a user wants to select an object displayed on the screen, they can tap the touchpad once; when a user wants to select and move (or drag) an object displayed on the screen, they can move the cursor to the object's location, then tap the touchpad twice consecutively, and on the second tap, place their finger on the touchpad and slide it across its surface, thereby achieving the effect of moving the object. It is understood that, in this embodiment, user operation on the touchpad can refer to the user operating on the surface of the touchpad, or it can refer to the user operating on the sensing area of the touchpad.
[0164] It can be seen that, Figure 1The scenario shown can provide users with some simple and basic touchpad interaction gestures and functions. However, when users want to implement more complex and intelligent functions based on the touchpad, the touchpad cannot provide relevant services.
[0165] The method in this application embodiment can also provide users with functions such as minimizing the focus window, closing the focus window, quickly displaying the operation center, taking screenshots, and screen recording. Furthermore, the method in this application embodiment can combine multiple dimensions of factors to determine the final target operation. Specifically, this application embodiment can combine the window information of the focus window and the user's operation on the touchpad to determine the target operation, which helps to avoid erroneous responses caused by conflicts between the electronic device's related execution logic and the user's control or operation commands, thereby helping to ensure the user experience.
[0166] Please see Figures 2a-2g , Figures 2a-2g This is a schematic diagram of the interface of an electronic device provided in an embodiment of this application.
[0167] Optionally, users can enable the touchpad function in different ways. In this embodiment, the touchpad function can also be referred to as a "smart touchpad". After the user selects to turn on the touchpad function, they can control the electronic device through the touchpad; after the user selects to turn off the touchpad function, the electronic device will no longer respond to the user's operation on the touchpad, that is, the touchpad will no longer detect the user's operation gesture or operation area.
[0168] Optionally, a specific example is provided here to illustrate how to turn the touchpad function on / off. It should be noted that this is merely an example; users can choose to turn the touchpad function on / off through other entry points or methods based on their actual needs. For example, users can turn the touchpad function on / off using a keyboard shortcut, or by clicking the tab or control button related to the "Smart Touchpad" function in the electronic device's settings. For example, as shown... Figure 2a As shown, users can activate the "Smart Touchpad" function in the "Operation Center" section of the electronic device 100. Users can activate the "Smart Touchpad" function via touchscreen by clicking the "Operation Center" icon on the display screen of the electronic device 100 (which can be understood as a touchscreen display) and then clicking the corresponding on / off switch for the "Smart Touchpad" function. Alternatively, users can activate the "Smart Touchpad" function by using a mouse to control the cursor on the screen of the electronic device 100 to click the "Operation Center" icon and then clicking the corresponding on / off switch for the "Smart Touchpad" function.
[0169] Optionally, such as Figure 2bAs shown, after the user clicks the "Smart Touchpad" function card, the electronic device can display the settings interface for the "Smart Touchpad" function. Optionally, the electronic device displays the settings interface for the "Smart Touchpad" function in response to the clicking of the "Smart Touchpad" function card. Figure 2a Similar to its related embodiments, the user can click via a touchscreen or control the display cursor with a mouse. For example, the settings interface of the "Smart Touchpad" function can be used to set the touchpad's sensitivity and touchpad gestures. Touchpad sensitivity can include press sensitivity and press vibration intensity; touchpad gestures can include three-finger movement gestures, mouse-like gestures, edge gestures, and knuckle gestures.
[0170] Optionally, the electronic device can provide users with various touchpad shortcut operations, such as "swiping and moving with three fingers to move text, files, and application windows," "sliding up and down along the left edge of the touchpad with one finger to adjust brightness," or "sliding up and down along the right edge of the touchpad with one finger to adjust volume," etc. In this embodiment, after the user selects to enable the relevant touchpad shortcut operation, they can control the electronic device to achieve the relevant function; after the user selects to disable the relevant touchpad shortcut operation, the electronic device will no longer respond to the user's operation on the touchpad, that is, the user can no longer perform the relevant shortcut operation based on the touchpad.
[0171] Optionally, a specific example is given here as follows: Figure 2c As shown, the touchpad sensitivity has three adjustable levels: high, medium, and low, and the vibration intensity of the touchpad also has three adjustable levels: high, medium, and low.
[0172] Touch sensitivity can be used to distinguish user gestures (such as taps and presses) and to represent the triggering conditions for an electronic device to respond to user actions. For example, when the touch sensitivity is at a "high" level, the pressure detection threshold of the pressure sensor on the touchpad can be a first pressure value; that is, when the pressure applied by the user to the touchpad is greater than or equal to the first pressure value, the electronic device can respond to the user's press operation. When the touch sensitivity is at a "medium" level, the pressure detection threshold of the pressure sensor on the touchpad can be a second pressure value; that is, when the pressure applied by the user to the touchpad is greater than or equal to the second pressure value, the electronic device can respond to the user's press operation, where the second pressure value is greater than the first pressure value. When the touch sensitivity is at a "low" level, the pressure detection threshold of the pressure sensor on the touchpad can be a third pressure value; that is, when the pressure applied by the user to the touchpad is greater than or equal to the third pressure value, the electronic device can respond to the user's press operation, where the third pressure value is greater than the second pressure value.
[0173] The intensity of the vibration feedback can be used to distinguish the strength of the haptic feedback provided to the user by the electronic device after responding to the user's operation. For example, when the vibration feedback intensity is at the "high" level, the motor in the touchpad vibrates at a first frequency after the electronic device responds to the user's operation, allowing the user to perceive the information that "the operation has been performed" through tactile feedback. When the vibration feedback intensity is at the "medium" level, the motor in the touchpad vibrates at a second frequency after the electronic device responds to the user's operation, allowing the user to perceive the information that "the operation has been performed" through tactile feedback, where the second frequency is lower than the first frequency. When the vibration feedback intensity is at the "low" level, the motor in the touchpad vibrates at a third frequency after the electronic device responds to the user's operation, allowing the user to perceive the information that "the operation has been performed" through tactile feedback, where the third frequency is lower than the second frequency.
[0174] Optionally, in the settings area corresponding to "Press Sensitivity" and "Press Vibration Intensity" (e.g., ... Figure 2c After the first setting area 201 and the second setting area 202 are selected, the electronic device 100 can display a first pop-up window 203 on the display screen. Optionally, the electronic device 100 displays the first pop-up window 203 in response to the operation of clicking the setting area corresponding to "press sensitivity" and "press vibration intensity". The user can select the corresponding adjustment level in the first pop-up window 203.
[0175] Optionally, users can access the gesture settings by clicking on the various gesture settings tabs in the "Touchpad Gestures" settings area (e.g., ...). Figure 2c The "Three-finger Movement Gestures," "Mouse-like Gestures," "Edge Gestures," and "Knuckle Gestures" labels shown can be used to learn about the settings details and activate the corresponding gesture functions. Optionally, such as... Figure 2d As shown, after the user clicks the "Three-finger movement gesture" tab, the electronic device 100 can display the "Move text, file, and application window" function and its corresponding control buttons and function descriptions on the screen (e.g., ...). Figure 2dAs shown, the functional description of the three-finger touch operation may include "swiping and moving with three fingers, supporting the movement of text, files, and application windows". For example, after the user selects the text, file, or application window to be moved (which can be understood as the selected text, file, or application window being moved), the user can use three fingers to move the selected text, file, or application window from point A to point B (or from the first folder to the second folder), where points A and B can represent coordinate positions on the screen of the electronic device 100. For example, after enabling the "move text, file, and application window" function, if the user wants to move the first, second, and third files from the first folder to the second folder, they can first select the first, second, and third files in the first folder, then slide three fingers on the touchpad. Once the cursor on the screen moves from the first folder to the second folder, the user can release their fingers, thus achieving the effect of "moving the first, second, and third files from the first folder to the second folder".
[0176] Optionally, users can click the control buttons corresponding to the "Move Text, File, and Application Windows" function (such as...). Figure 2d The first control button 204 shown is used to enable / disable the "Move Text, File, and Application Windows" function. For example, when a user selects to enable the "Move Text, File, and Application Windows" function, they can move text, files, and application windows by swiping and moving them with three fingers on the touchpad; when a user selects to disable the "Move Text, File, and Application Windows" function, the electronic device will no longer respond to the user's swiping and moving operation with three fingers, meaning the user cannot move text, files, and application windows by swiping and moving them with three fingers on the touchpad.
[0177] For example, such as Figure 2h As shown, the control buttons can have two different functions. Figure 2h The primary function of the control buttons in the middle can be understood as the corresponding function being turned off. Figure 2h The second display of the control button can be understood as the corresponding function being enabled. Optionally, when the control button switches from the first display to the second display, it can be understood as the corresponding function being enabled; when the control button switches from the second display to the first display, it can be understood as the corresponding function being disabled.
[0178] In some possible implementations, such as Figure 2e As shown, after the user clicks the "Mouse-like Gestures" tab, the electronic device 100 can display the "Simulated Mouse Wheel" function and its corresponding control buttons and function descriptions on the screen (e.g., ...). Figure 2e(The description of the "two-finger press and slide up and down to simulate mouse wheel" function is shown). For example, if a user is browsing a page or window with a vertical scroll bar, after the user presses the touchpad with two fingers and slides it upward, the electronic device 100 can control the controls in the scroll bar to move upward at a preset speed, achieving the effect of scrolling the content in the window upward, and the displayed content in the page or window also changes at a uniform speed; after the user presses the touchpad with two fingers and slides it downward, the electronic device 100 can control the controls in the scroll bar to move downward at a preset speed, achieving the effect of scrolling the content in the window downward, and the displayed content in the page or window also changes at a uniform speed.
[0179] Optionally, users can click the control button corresponding to the "Simulate Mouse Wheel" function (such as...). Figure 2e The second control button 205 shown is used to enable / disable the "simulated mouse wheel" function. For example, after the user selects to enable the "simulated mouse wheel" function, the user can achieve the effect of simulating a mouse wheel by pressing and sliding two fingers up and down on the touchpad; after the user selects to disable the "simulated mouse wheel" function, the electronic device 100 will no longer respond to the user's "press and slide two fingers up and down" operation, that is, the user cannot achieve the effect of simulating a mouse wheel by pressing and sliding two fingers up and down on the touchpad.
[0180] In other possible implementations, such as Figure 2fAs shown, after the user clicks the "Edge Gestures" tab, the electronic device 100 can display control buttons and function descriptions for the "Adjust Brightness" function, "Adjust Volume" function, "Notification Center and Control Center" function, and "Minimize Current Window; Close Current Window" function on the screen. For example, the function description for "Adjust Brightness" could be "Slide one finger up and down along the left edge of the touchpad," meaning that when the user slides one finger up and down along the left edge of the touchpad, the brightness of the electronic device 100's display screen can be adjusted. The function description for "Adjust Volume" could be "Slide one finger up and down along the right edge of the touchpad," meaning that when the user slides one finger up and down along the right edge of the touchpad, the audio volume of the electronic device 100 can be adjusted. The function description for "Notification Center and Control Center" could be "Slide two fingers to the left along the right edge of the touchpad," meaning that when the user... When you swipe left along the right edge of the touchpad with two fingers, you can display the settings interface of the notification center and control center on the screen of the electronic device 100. Here, "notification center and operation center" is a different name for the same content as the aforementioned "operation center." The function descriptions for "minimize current window; close current window" can be "minimize by pressing the upper left corner of the touchpad" and "close by pressing the upper right corner of the touchpad." This means that when the user presses the upper left corner of the touchpad, the electronic device 100 can minimize the currently focused window on the screen, and when the user presses the upper right corner of the touchpad, the electronic device 100 can close the currently focused window on the screen. It should be noted that although in the above example, the first area is the upper right corner and the second area is the upper left corner, this does not mean that the first area can only be the upper right corner of the touchpad, and the second area can only be the upper left corner of the touchpad. For example, the first area can also be the upper left corner, lower left corner, lower right corner or other specific area of the touchpad, and the second area can also be the upper right corner, lower left corner, lower right corner or other specific area of the touchpad, as long as the first area and the second area are different areas of the touchpad.
[0181] For example, after a user selects to enable the "Adjust Brightness" function, they can adjust the brightness of the electronic device's display by swiping up and down along the left edge of the touchpad with a single finger. When a user selects to disable the "Adjust Brightness" function, the electronic device 100 will no longer respond to the user's swiping gesture, meaning the user cannot adjust the display brightness using this gesture. For example, after a user enables the "Adjust Brightness" function in the "Edge Gestures" tab, when the user swipes up along the left edge of the touchpad with a single finger, the electronic device 100 can increase the display brightness; when the user swipes down along the left edge of the touchpad with a single finger, the electronic device 100 can decrease the display brightness.
[0182] For example, after a user selects to enable the "Adjust Volume" function, they can adjust the volume of the electronic device's display by swiping up and down along the right edge of the touchpad with a single finger. After a user selects to disable the "Adjust Volume" function, the electronic device 100 will no longer respond to the user's swiping gesture, meaning the user cannot adjust the display volume using this gesture. For example, after a user enables the "Adjust Volume" function in the "Edge Gestures" tab, when the user swipes up along the right edge of the touchpad with a single finger, the electronic device 100 can increase the audio playback volume; when the user swipes down along the right edge of the touchpad with a single finger, the electronic device 100 can decrease the audio playback volume. Specifically, the electronic device 100 can determine the user's currently used playback device as the default volume adjustment target. For example, if the user's currently used playback device is headphones, the electronic device 100 will adjust the playback volume of the headphones after receiving the user's volume adjustment gesture; if the user's currently used playback device is the electronic device 100's speaker, the electronic device 100 will adjust the playback volume of the speaker after receiving the user's volume adjustment gesture; if the user's currently used playback device is an external speaker, the electronic device 100 will adjust the playback volume of the external speaker after receiving the user's volume adjustment gesture. Furthermore, the user can also manually switch the volume adjustment target. For example, if the user's currently used playback device is an external speaker, but the user wants to adjust the playback volume of the headphones, they can set the volume adjustment target to headphones in the corresponding volume adjustment settings area.
[0183] For example, after a user selects to enable the "Notification Center and Control Center" function, the user can display the Notification Center and Control Center interface on the electronic device 100 by using a gesture of "swiping left along the right edge of the touchpad with two fingers" on the touchpad. After a user selects to disable the "Notification Center and Control Center" function, the electronic device 100 will no longer respond to the user's "swiping left along the right edge of the touchpad with two fingers" operation, that is, the user cannot display the Notification Center and Control Center interface on the electronic device 100 by using the gesture of "swiping left along the right edge of the touchpad with two fingers" on the touchpad.
[0184] For example, after a user selects to enable the "Minimize current window; Close current window" function, they can control the electronic device 100 to minimize the current window by pressing the second area of the touchpad; and they can control the electronic device 100 to close the current window by pressing the first area of the touchpad. Optionally, after a user selects to disable the "Minimize current window; Close current window" function, the electronic device 100 will no longer respond to the user's operation of "pressing the first area of the touchpad" or "pressing the second area of the touchpad," that is, the user cannot control the electronic device 100 to close the current window by pressing the first area of the touchpad, nor can they control the electronic device 100 to minimize the current window by pressing the second area of the touchpad.
[0185] In some possible implementations, to avoid erroneous command responses during the minimization or closing of the focused window (such as desktop flickering when minimizing a desktop window, a shutdown option popping up when closing a desktop window, or the user closing the entire browser window when only wanting to close a specific tab), the electronic device 100 determines whether to perform the minimization or closing operation on the focused window based on certain judgment factors. These judgment factors may include the title bar of the focused window, window attributes (e.g., main window or child window), and the process ID corresponding to the focused window. For example, if the focused window contains a title bar and is not a child window, it can be determined that the minimization operation can be performed on the focused window; if the focused window is not a desktop window (which can be understood as a desktop window, a window within a specific application, or a special window within an application, etc.), then the minimization operation is not performed on the focused window. This helps avoid erroneous command responses from the electronic device, thereby ensuring a good user experience. It should be noted that the detailed judgment process of the electronic device 100 for the focused window can be found in [reference needed]. Figure 7a , Figure 7b , Figure 9a and Figure 9b The relevant embodiments and examples are not described in detail here.
[0186] In other possible implementations, such as Figure 2g As shown, after the user clicks the "knuckle gesture" label, the electronic device 100 can display the control buttons and function descriptions for the "screenshot" and "screen recording" functions on the screen. For example, the function description for the "screenshot" function could be "Double-tap the touchpad with a single knuckle to open a window screenshot," which means that when the user double-tap the touchpad with a single knuckle, the electronic device 100 will activate the screenshot function. Similarly, the function description for the "screen recording" function could be "Double-tap the touchpad with two knuckles to start full-screen recording," which means that when the user double-tap the touchpad with two knuckles, the electronic device 100 will record the entire screen.
[0187] For example, after a user selects to enable the "screenshot" function, they can control the electronic device 100 to take a screenshot by using a "double-tap the touchpad with a single knuckle" gesture on the touchpad. After a user selects to disable the "screenshot" function, the electronic device 100 will no longer respond to the user's "double-tap the touchpad with a single knuckle" gesture; that is, the user cannot control the electronic device 100 to take a screenshot using this gesture. For example, after a user enables the "screenshot" function in the "knuckle gestures" tab, when the user double-tap the touchpad with a single knuckle, the electronic device 100 can activate the window screenshot function, and the user can customize the area to be captured. For example, the user can choose a portion of the screen as the area to be captured, or they can choose the entire screen as the area to be captured, which helps improve the user experience.
[0188] For example, after a user selects to enable the "screen recording" function, they can control the electronic device 100 to record the screen using a "double-tap the touchpad with two knuckles" gesture on the touchpad. After a user selects to disable the "screen recording" function, the electronic device 100 will no longer respond to the user's "double-tap the touchpad with two knuckles" gesture; that is, the user cannot control the electronic device 100 to record the screen using this gesture. For example, after a user enables the "screen recording" function in the "knuckle gestures" tab, when the user double-tap the touchpad with two knuckles, the electronic device 100 can start the screen recording function. For example, the electronic device 100 can use the entire screen as the recording area and record the screen.
[0189] For a more detailed explanation of the methods in the embodiments of this application, please refer to [link to relevant documentation]. Figure 3 , Figure 3 This is a flowchart illustrating a touchpad operation method provided in an embodiment of this application.
[0190] like Figure 3 As shown, the method may include the following steps:
[0191] S301: At a first time point, the electronic device displays a first window, wherein at the first time point, the first window is the focus window and the first window does not contain multiple tabs.
[0192] The fact that the first window does not contain multiple tabs can be interpreted as the first window not having the option to display multiple tabs, or as the first window not being able to switch between displaying different tabs.
[0193] It should be noted that the method described in this application embodiment can be applied to electronic device 100; please refer to [link / reference]. Figure 4 , Figure 4 This is a schematic diagram illustrating the composition of an electronic device provided in an embodiment of this application. For example... Figure 4 As shown, the electronic device 100 may include a touchpad 410 and a screen 420. The electronic device 100 can also be referred to as user equipment (UE). Its specific form may be a laptop computer or other smart terminal device with touch functionality. The specific structure of the electronic device 100 can be found in [reference needed]. Figure 10 and Figure 11 The relevant details will not be elaborated upon here.
[0194] S302: In response to an operation on the first area of the touchpad, the electronic device closes the first window.
[0195] Optionally, the first area can be the upper right corner of the touchpad 410, and the second area mentioned below can be the upper left corner of the touchpad 410. It should be noted that the first area can also be the upper left corner, lower left corner, lower right corner or other specific area of the touchpad, and the second area can also be the upper right corner, lower left corner, lower right corner or other specific area of the touchpad, as long as the first area and the second area are different areas of the touchpad.
[0196] In this embodiment, the touchpad 410 can be a pressure-sensitive touchpad, and can provide haptic feedback to the user after the user inputs relevant operation gestures, which helps to improve the user experience.
[0197] Combination Figures 2a-2f According to the relevant embodiments, users can use the touchpad or mouse to click to enter the "Action Center" function section and enter the settings interface corresponding to the "Smart Touchpad" function, thereby selecting to enable the "Minimize current window; Close current window" function.
[0198] S303: At a second time point, the electronic device displays a second window, which is the focus window at the second time point. The second time point is after the first time point, and the second window contains multiple tab options.
[0199] The multiple tabs may include a first tab and a second tab, with pages from the first tab displayed in the second window and pages from the second tab not displayed in the second window. Optionally, the multiple tabs may also include a third tab through an nth tab, but pages from the third tab through an nth tab are not displayed in the second window.
[0200] S304: In response to an operation on the first area of the touchpad, the electronic device closes the first tab and displays the page of the second tab in the second window.
[0201] In some possible implementations, the method of this application embodiment may further include:
[0202] At the third time point, the electronic device displays the third window, which is the focus window. The third time point is after the first time point, and the process name corresponding to the third window is the first process name, which corresponds to the desktop process.
[0203] Receives an operation applied to the first area of the touchpad, and does not close the third window after receiving the operation applied to the first area of the touchpad.
[0204] In other possible implementations, the method of this application embodiment may further include:
[0205] At the fourth time point, the electronic device displays the fourth window, which becomes the focus window at that time point.
[0206] In response to an operation on the second area of the touchpad, the electronic device minimizes the fourth window;
[0207] After the fourth window is minimized, the electronic device displays the third window;
[0208] Receive an operation applied to the second area of the touchpad, and do not minimize the third window after receiving the operation applied to the second area of the touchpad.
[0209] In some other possible implementations, the fourth window includes a title bar and is not a child window;
[0210] When the fourth window is the focus window, the method in this application embodiment may further include:
[0211] In response to an operation on the second area of the touchpad, the electronic device minimizes the fourth window based on the fact that the fourth window contains a title bar and is not a child window.
[0212] In some other possible implementations, where the fourth window is the focus window, the method of this application embodiment may further include:
[0213] In response to an operation on the second area of the touchpad, obtain window information of the fourth window. The window information may include the window's title bar and window type. The window type may include the main window, toolbar, menu bar, and child windows.
[0214] Based on the window information of the fourth window, it is determined that the fourth window contains a title bar and is not a child window;
[0215] The fourth window is minimized because it contains a title bar and is not a child window.
[0216] Alternatively, window types may also include dialog boxes, modal windows, status bars, title bars, and floating windows.
[0217] For example, please see Figures 5a-5b , Figures 5a-5b This is a schematic diagram illustrating the structural relationship between different window types, provided as an embodiment of this application. Figure 5a As shown, in a desktop scenario, desktop window 510 is the main window, and desktop window 510 may also include multiple child windows (such as multiple desktop icons 520, taskbar 530, and start menu 540); for example Figure 5b As shown, for the operation interface of the first application 550, the main operation window 560 corresponding to the first application 550 is the parent window. The user can create multiple child operation windows 570 in the main operation window, and the child operation windows 570 can be regarded as child windows of the main operation window 560.
[0218] In some other possible implementations, the third window does not include a title bar, or the third window is not a child window;
[0219] When the third window is the focus window, the method in this application embodiment may further include:
[0220] In response to an operation on the second area of the touchpad, obtain window information of the third window, which may also include the process name corresponding to the window;
[0221] Based on the window information of the third window, determine whether the process name corresponding to the third window is the first process name, whether the third window does not contain a title bar, or whether the third window is not a child window;
[0222] The third window will not be minimized if the process name corresponding to the third window is the same as the first process name, the third window does not contain a title bar, or the third window is not a child window.
[0223] For example, when the user inputs a target gesture in the second area (which can be understood as the user pressing the upper left corner of the touchpad), the focus window displayed on the screen of the electronic device 100 is as follows: Figure 6aAs shown (which can be understood as the focused window having a title bar and not being a child window), it can be considered that... Figure 6a If the corresponding focused window meets the first preset condition, the electronic device 100 can print the user's operation log and minimize the focused window. The first preset condition is that the focused window contains a title bar and the window type of the focused window is not a child window.
[0224] Optionally, when the user inputs a target operation gesture in the second area, the focus window displayed on the screen of the electronic device 100 is as follows: Figure 6b As shown (which can be understood as the focused window not having a title bar or being a child window), it can be considered that... Figure 6b If the corresponding focus window does not meet the first preset condition, the electronic device 100 can print the user's operation log and maintain the current display state of the focus window.
[0225] For example, please see Figure 7a , Figure 7a This is a flowchart illustrating a window minimization optimization scheme provided in an embodiment of this application. Figure 7a As shown, assuming the currently displayed focus window on the screen of electronic device 100 is the desktop window, if the user presses the upper left corner of the touchpad, electronic device 100 can recognize the user's gesture based on the microcontroller unit (MCU). Optionally, the MCU can transmit the gesture recognition result to computer management software (such as PC management software) using the data structure specified by the HID protocol via an integrated circuit bus (IIC or I2C). Figure 8a (The APP shown is mentioned here). Optionally, the PC Manager software can combine the gesture recognition results and the operation area of the user's input gesture to determine the corresponding target shortcut operation (here, the corresponding target shortcut operation can be determined as the first shortcut operation), and obtain the handle of the focus window. Optionally, the PC Manager software can call the Microsoft Application Programming Interface (Windows API) of the electronic device 100 and, based on the handle of the focus window, control the operating system (OS) to perform a minimize operation on the focus window. It should be noted that if the electronic device 100 directly performs a minimize operation on the focus window (which can be understood as the desktop window mentioned above), the icons on the desktop may disappear or the screen may flicker (which can be understood as the electronic device 100 incorrectly responding to the user's minimize command), which reduces the user experience and may even cause the electronic device 100 to crash in severe cases.
[0226] To address the issue of erroneous response of the electronic device 100 to the minimize command, the method in this embodiment optimizes the window minimization scheme. Specifically, similar to the above execution scheme, if the user presses the upper left corner of the touchpad, the electronic device 100 can recognize the user's gesture based on the MCU. Optionally, the MCU can transmit the gesture recognition result to PC management software (such as PC Manager software) using I2C and a data structure specified by the HID protocol. Figure 7a (The APP shown is an example). Optionally, the MCU can determine the area and gesture corresponding to the user operation based on the sensor number and the touch value (or key value) collected by the sensor in the touchpad that collects user operation data. For example, when the key value collected by the sensor is 0, it can indicate that the user has not operated in the area corresponding to the sensor; when the key value collected by the sensor is 1, it can indicate that the user has operated in the area corresponding to the sensor. Optionally, the touch events corresponding to the sensor data collected in the touchpad can include swiping up, swiping down, pressing, and tapping. Optionally, the method in this application embodiment is only an example of how an electronic device responds to user operation to achieve the effect of minimizing the current window based on multiple internal devices / modules, but it is not intended to be a specific limitation. Those skilled in the art can also implement the same function as the embodiment of this application based on other methods or devices of an electronic device with a touchpad. For example, an embedded chip (Embedded Controller, EC chip) or coprocessor in a laptop computer can be used instead of the MCU to achieve the same function as the embodiment of this application.
[0227] Optionally, the PC Manager software can combine the gesture recognition results and the user's input gesture area to determine the corresponding target shortcut operation (here, the target shortcut operation can be determined to be minimizing the focused window), and obtain the handle of the focused window. The difference is that in the optimized solution, the PC Manager software can also obtain the style of the focused window based on the handle (which can be understood as the aforementioned window information, including the title bar and window type). Optionally, the PC Manager software needs to determine whether the focused window style includes a title bar and is not a child window (which can be understood as whether the window information of the focused window meets the first preset condition). If the determination is yes, the PC Manager software can call the Windows API and, based on the focused window handle, control the OS to minimize the focused window; if the determination is no, the PC Manager software will not minimize the focused window (it can choose to record the user's operation by only printing a log), thereby solving the problem of desktop icons disappearing and screen flickering when the focused window is a desktop window, helping to ensure the user experience.
[0228] Optionally, to further address the issue of desktop icons disappearing and screen flickering when the focused window is a desktop window, embodiments of this application can further determine the target operation to be performed on different focused windows based on the process name corresponding to the focused window. The first process name can be the name of a process that manages system-related content such as the desktop; for example, the first process name could be explorer.
[0229] For example, after a user inputs a preset gesture in the preset operation area of the touchpad, the electronic device 100 can use the process retrieval statement `DWORD GetWindowThreadProcessId([in]HWND hWnd,[out,optional]LPDWORD lpdwProcessId);` to obtain the process name corresponding to the focused window. Specifically, this statement can retrieve the identifier of the thread that created the focused window. More specifically, this statement can also retrieve the identifier of the process that created the focused window.
[0230] For example, please see Figure 7b , Figure 7b This is a schematic diagram illustrating an operation flow for minimizing a window, as provided in an embodiment of this application. Figure 7b As shown, suppose a user presses the upper left corner of the touchpad (which can be understood as the user inputting a preset gesture in the second area, the target shortcut operation of which is to minimize the focus window). After receiving the gesture recognition result from the MCU, the PC Manager software can obtain the handle of the focus window and, based on the handle, obtain the window information corresponding to the focus window (including the title bar, window type, and corresponding process name of the focus window). After obtaining the window information corresponding to the focus window, the PC Manager software can determine whether the focus window contains a title bar and is not a child window. If it does, the target operation is determined to be "minimize the focus window"; if it does not, it can further determine whether the process name corresponding to the focus window is the first process name (such as explorer). If the process name corresponding to the focus window is not the first process name, the target operation is determined to be "minimize the focus window"; if the process name corresponding to the focus window is the first process name, the focus window is determined to be a window that "can cause the electronic device to respond with a 100 error", so the target operation is determined to be "do not minimize the focus window". Optionally, the electronic device can choose to record user operations using the "log only" method.
[0231] In summary, when the target shortcut operation corresponding to the user's operation command is "minimize the focused window", the target operation can be determined to be "minimize the focused window" when the window information corresponding to the focused window is "includes a title bar but is not a child window", "does not have a title bar, is a child window and the corresponding process name is not the first process name", "does not have a title bar, is not a child window and the corresponding process name is not the first process name", and "includes a title bar, is a child window and the corresponding process name is not the first process name". When the window information corresponding to the focused window is "does not have a title bar, is a child window and the corresponding process name is the first process name", and "does not have a title bar and is not a child window and the corresponding process name is the first process name", the target operation can be determined to be "do not minimize the focused window".
[0232] For example, a window that "includes a title bar and is not a child window" can be a system settings window, a folder window, or an application operation window; a window that "does not have a title bar, is a child window, and its corresponding process name is not the first process name" can be a special window within an application (such as a standalone video playback window in a video playback application); a window that "does not have a title bar, is not a child window, and its corresponding process name is not the first process name" can be an operation window of a special application; a window that "includes a title bar, is a child window, and its corresponding process name is not the first process name" can be, for example, a system settings window, a folder window, or an application operation window; a window that "includes a title bar, is a child window, and its corresponding process name is not the first process name" can be, for example, a window that "includes a title bar, is a child window, and its corresponding process name is not the first process name"; and ... Figure 5b The window shown is an internal child window of the application; the window that "does not have a title bar, is a child window and the corresponding process name is the first process name" can be a desktop icon, taskbar or start menu, etc.; the window that "does not have a title bar, is not a child window and the corresponding process name is the first process name" can be a desktop window, etc.
[0233] In other possible implementations, where the second window is the focused window and displays the page of the first tab, the method of this application embodiment may further include:
[0234] In response to an operation on the first area of the touchpad, based on the option of multiple tabs in the second window, the electronic device closes the first tab and displays the second tab.
[0235] In some other possible implementations, when the first window is the focus window, the method of this application embodiment may further include:
[0236] In response to an operation on the first area of the touchpad, the electronic device closes the first window based on the fact that the first window does not contain multiple tabs.
[0237] In some other possible implementations, when the third window is the focus window, the method of this application embodiment may further include:
[0238] In response to an operation on the first area of the touchpad, the electronic device does not close the third window based on the process name corresponding to the third window being the first process name.
[0239] In some other possible implementations, when the second window is the focus window, the method of this application embodiment may further include:
[0240] In response to an operation on the first area of the touchpad, obtain the window information of the second window, which may include the process name corresponding to the window;
[0241] Based on the window information of the second window, the process name corresponding to the second window is determined to be the second process name. The second process name is the process name corresponding to the application runtime of the main window, which may include multiple tabs.
[0242] After confirming that the process name corresponding to the second window is the second process name, close the first tab and display the second tab.
[0243] Optionally, if the electronic device 100 adopts the solution of the embodiment of this application, when the user inputs a preset operation gesture in the first area (which can be understood as the user pressing the upper right corner of the touchpad), if the focus window displayed on the screen of the electronic device 100 is as follows: Figure 8a As shown (assuming the focused window is the first tab of the browser window, and the corresponding process name is the second process name; the browser window may also contain a second tab and a third tab), then the target operation can be determined to be "close the first tab"; if the focused window displayed on the screen of the electronic device 100 is as follows... Figure 8b As shown (assuming the focus window meets the first preset condition), the target operation can be determined to be "close focus window"; if the focus window displayed on the screen of electronic device 100 is as follows... Figure 8c As shown (assuming the focused window does not meet the first preset condition), the target operation can be determined as "do not close the focused window".
[0244] In some other possible implementations, when the first window is the focus window, the method of this application embodiment may further include:
[0245] In response to an operation on the first area of the touchpad, obtain the window information of the first window. The window information may include the window's title bar, window type, and the process name corresponding to the window. The window type may include the main window, toolbar, menu bar, and child window.
[0246] Based on the window information of the first window, it is determined that the process name corresponding to the first window is not the second process name, the first window contains a title bar, and the first window is not a child window;
[0247] The first window is closed if the process name corresponding to the first window is not the second process name, the first window contains a title bar, and the first window is not a child window.
[0248] In some other possible implementations, when the third window is the focus window, the method of this application embodiment may further include:
[0249] In response to an operation in the first area of the touchpad, obtain the window information corresponding to the third window;
[0250] Based on the window information corresponding to the third window, it is determined that the third window does not have a title bar, or the third window is not a child window;
[0251] The third window will not be closed if the process name corresponding to the third window is the same as the first process name, the third window does not contain a title bar, or the third window is not a child window.
[0252] For example, when a user operates on the first area of the touchpad (which can be considered as the user wanting to close the current window), if the electronic device 100 does not employ the method of the embodiments of this application, when the focused window is as follows... Figure 8a When the first tab is displayed, the electronic device 100 will directly close the entire browser window, which does not conform to the user's actual operating intention; when the focused window is as shown Figure 8b As shown, the electronic device 100 can correctly close the focused window; when the focused window is as shown... Figure 5a When the desktop window 510 is displayed, the electronic device 100 may display a "shutdown" pop-up, which can be considered as the electronic device malfunctioning in response to the user's operation command.
[0253] In some possible implementations, the electronic device 100 can determine the user's operation intention based on the target area and the target gesture in response to the user inputting a target gesture (such as the single-finger double-tap and two-finger double-tap gestures mentioned above) in the target area of the touchpad, obtain the handle of the focus window, and finally obtain the corresponding window information based on the handle of the focus window. For example, after the user inputs a target gesture in the target area of the touchpad, the electronic device 100 can use the focus window retrieval function HWND GetForegroundWindow() to obtain the handle of the focus window. Optionally, the electronic device 100 can use the handle of the focus window and the statement LONG GetWindowLongA([in]HWND hWnd,[in]int nIndex) to retrieve window information (it should be noted that the window information obtained here includes the title bar and window type) to obtain the window information of the focus window.
[0254] Optionally, the title bar can be represented by the constant WS_CAPTION and its corresponding constant value 0x00C00000L, and the child window in the window type can be represented by the constant WS_CHILD and its corresponding constant value 0x40000000L. Optionally, if the window information corresponding to the focused window does not contain the constant WS_CAPTION and its corresponding constant value 0x00C00000L, then the focused window can be considered to not have a title bar; otherwise, the focused window can be considered to have a title bar. Optionally, if the window type corresponding to the focused window is not the constant WS_CHILD and its corresponding constant value 0x40000000L, then the window type of the focused window can be considered not to be a child window; otherwise, the window type of the focused window can be considered to be a child window.
[0255] Optionally, if the electronic device 100 adopts the solution of the embodiment of this application, when the user inputs a preset operation gesture in the first area (which can be understood as the user pressing the upper right corner of the touchpad), if the focus window displayed on the screen of the electronic device 100 is as follows: Figure 8a As shown (assuming the focused window is the first tab of the browser window, and the corresponding process name is the second process name; the browser window may also contain a second tab and a third tab), then the target operation can be determined to be "close the first tab"; if the focused window displayed on the screen of the electronic device 100 is as follows... Figure 8b As shown (assuming the focus window meets the first preset condition), the target operation can be determined to be "close focus window"; if the focus window displayed on the screen of electronic device 100 is as follows... Figure 8c As shown (assuming the focused window does not meet the first preset condition), the target operation can be determined as "do not close the focused window".
[0256] For example, please see Figure 9a , Figure 9a This is a flowchart illustrating an optimized window closing scheme provided in an embodiment of this application. Figure 9a As shown, assuming the currently displayed focus window on the screen of electronic device 100 is the first tab in a browser window, if the user presses the upper right corner of the touchpad, electronic device 100 can recognize the user's gesture based on the MCU. Optionally, the MCU can transmit the gesture recognition result to PC management software (such as PC Manager software) using the data structure specified by the HID protocol via I2C. Figure 9a(The APP shown). Optionally, the PC Manager software can combine the gesture recognition results and the user's input gesture operation area to determine the corresponding target shortcut operation (here, the corresponding target shortcut operation can be determined to be the second shortcut operation), and obtain the handle of the focus window. Optionally, the PC Manager software can call the Windows API of the electronic device 100 and, based on the focus window handle, control the OS to perform a closing operation on the focus window. It should be noted that if the electronic device 100 directly performs a closing operation on the focus window (which can be understood as the first tab in the browser window mentioned above), the entire browser window may be closed (which can be understood as the electronic device 100 incorrectly responding to the user's closing command), which may result in the loss of the user's browsing data and reduce the user experience.
[0257] To address the issue of incorrect response from the electronic device 100 to a close command, this application optimizes the window closing mechanism. Specifically, similar to the aforementioned implementation, if the user presses the upper right corner of the touchpad, the electronic device 100 can recognize the user's gesture using the MCU. Optionally, the MCU can transmit the gesture recognition result to PC management software (such as PC security software) via I2C using a data structure defined by the HID protocol. Figure 9a (See the APP shown). Furthermore, the PC Manager software can combine gesture recognition results and the user's input gesture area to determine the corresponding target shortcut (here, the corresponding target shortcut can be determined to be the second shortcut), and obtain the handle of the focus window. The difference is that in the optimized solution, the PC Manager software can also obtain the focus window style based on the focus window handle (which can be understood as the aforementioned window signals, including the title bar, window type, and corresponding process name). Further, the PC Manager software can obtain the current process name based on the process ID of the focus window, identify whether the process name corresponding to the focus window is the second process name (for example, let the second process name be the process name corresponding to a browser or other application with multiple tabs in its main operation window). If it is, it uses a simulated keyboard shortcut to close the first tab; if it is not, it continues to determine whether the focus window style includes a title bar and is not a child window (which can be understood as whether the window information of the focus window meets the first preset condition). Furthermore, if the focused window style includes a title bar and is not a child window, the PC Manager software can call the Windows API and, based on the focused window handle, control the OS to perform a closing operation on the focused window. If the focused window style does not include a title bar or is a child window, the PC Manager software can only print a log and not perform a closing operation on the focused window. This can solve the problem that when the focused window is a tab of a browser window, performing a closing operation on the browser window will cause the entire browser window to close, which helps to ensure the user experience.
[0258] For example, PC Manager software can use the synthesized keystroke syntax void keybd_event([in]BYTEbVk,[in]BYTE bScan,[in]DWORD dwFlags,[in]ULONG_PTR dwExtraInfo) to generate WM_KEYUP or WM_KEYDOWN messages, thereby achieving the effect of closing the window.
[0259] Optionally, please see Figure 9b , Figure 9b This is a schematic diagram illustrating an operation flow for closing a window, as provided in an embodiment of this application. Figure 9b As shown, suppose a user presses the upper right corner of the touchpad (which can be understood as the user inputting a preset gesture in the first area, and the target shortcut operation corresponding to this operation is to close the focus window). After receiving the gesture recognition result from the MCU, the PC Manager software can obtain the focus window handle and obtain the focus window information (including the title bar, window type, and corresponding process name) based on the focus window handle. After obtaining the window information, the PC Manager software can determine whether the process name corresponding to the focus window is a second process name (for example, whether the process name corresponding to the focus window is a browser). If the determination is yes, the target operation is determined to be "close the tab corresponding to the focus window"; if the determination is no, the PC Manager software needs to continue to determine the corresponding target operation based on the window information of the focus window.
[0260] The PC management software then needs to further determine the target operation based on the window information of the focused window. This may include: checking whether the focused window contains a title bar and is not a child window. If it does, the target operation is determined to be "close the focused window"; if not, it can further determine whether the process name corresponding to the focused window is the first process name (e.g., explorer). Specifically, if the process name corresponding to the focused window is not the first process name, the target operation is determined to be "close the focused window"; if the process name corresponding to the focused window is the first process name, the focused window is determined to be a window that "can cause the electronic device to respond with a 100 error," and therefore the target operation is determined to be "do not close the focused window."
[0261] In some possible implementations, in response to the aforementioned target operation of "not minimizing the focus window" or "not closing the focus window," the electronic device 100 may also display a reminder pop-up to alert the user that the corresponding operation cannot be performed. For example, assuming the currently displayed focus window on the screen of the electronic device 100 is the "Start Menu," when the user presses the upper left corner of the touchpad, since the "Start Menu" window cannot be minimized, a reminder pop-up containing the message "Unable to minimize this window" can be displayed on the screen; similarly, when the user presses the upper right corner of the touchpad, since the "Start Menu" cannot be minimized, a reminder pop-up containing the message "Unable to close this window" can be displayed on the screen.
[0262] In summary, when the target shortcut operation corresponding to the user's operation command is to close the focused window, and the process name corresponding to the focused window is not the second process name, the target operation can be determined to be "close the focused window" when the window information corresponding to the focused window is "includes a title bar and is not a child window", "does not have a title bar, is a child window and the corresponding process name is not the first process name", "does not have a title bar, is not a child window and the corresponding process name is not the first process name", and "includes a title bar, is a child window and the corresponding process name is not the first process name". When the window information corresponding to the focused window is "does not have a title bar, is a child window and the corresponding process name is the first process name", and "does not have a title bar and is not a child window and the corresponding process name is the first process name", the target operation can be determined to be "do not close the focused window".
[0263] In some other possible implementations, the electronic device displays a fifth window, which is the focus window and contains a vertical scroll bar.
[0264] The method in this application embodiment may further include:
[0265] In response to a user pressing the touchpad with two fingers and then swiping upwards on the touchpad with two fingers, the electronic device scrolls upwards at a preset speed to display the content of the fifth window; or...
[0266] In response to a user pressing the touchpad with two fingers and swiping down on the touchpad with two fingers, the electronic device scrolls down to display the content in the fifth window at a preset speed.
[0267] For details regarding the screenshot and screen recording functions, please refer to [link / reference]. Figure 2e The details of its related embodiments are not elaborated here.
[0268] In some other possible implementations, there are tabs on both the left and right sides of the second tab;
[0269] When the second window is the focused window and the page of the second tab is displayed in the second window, the method of this application embodiment may further include:
[0270] In response to a user swiping left along the top or bottom edge of the touchpad, the page displayed on the electronic device switches from the first tab to the left tab of the second tab; or,
[0271] In response to a user swiping right along the top or bottom edge of the touchpad, the page displayed on the electronic device switches from the first tab to the right tab of the second tab.
[0272] Optionally, users can choose to swipe left or right along the top or bottom edge of the touchpad using one or two fingers. Taking two-finger operation as an example, if the user is browsing a window with multiple tabs (assuming the user is currently viewing...), Figure 8a (As shown in the browser, the second tab page) When the user swipes left along the upper and lower edges of the touchpad with two fingers, the electronic device 100 can switch the currently displayed page from the page corresponding to the second tab to the page corresponding to the first tab; when the user swipes right along the upper or lower edges of the touchpad with two fingers, the electronic device 100 can switch the currently displayed page from the page corresponding to the second tab to the page corresponding to the third tab.
[0273] For example, after a user selects to enable the "switch tabs" function, they can control the electronic device 100 to switch tabs by using a gesture of "sliding two fingers left or right along the upper or lower edge of the touchpad" on the touchpad; after a user selects to disable the "switch tabs" function, the electronic device 100 will no longer respond to the user's operation of "sliding two fingers left or right along the upper or lower edge of the touchpad", that is, the user cannot control the electronic device 100 to switch tabs by using a gesture of "sliding two fingers left or right along the upper or lower edge of the touchpad".
[0274] As can be seen, through the method of the embodiments of this application, the electronic device can provide users with a variety of quick operation gestures based on the touchpad. Furthermore, the electronic device can also combine window information to analyze the user's true operation intention and the correct target operation, which helps to avoid situations where some special windows or special applications cannot respond correctly to user operations, thereby improving the user experience.
[0275] Please see Figure 10 , Figure 10 This is a schematic diagram illustrating the composition of another electronic device provided in an embodiment of this application.
[0276] like Figure 10 As shown, the electronic device 100 may include: a touchpad 410, a screen 420, and a processing module 430;
[0277] At the first time point, screen 420 is used to display the first window, which is the focus window and does not contain multiple tabs.
[0278] Processing module 430 is configured to close the first window in response to an operation in the first area of touchpad 410;
[0279] At the second time point, screen 420 is also used to display a second window, which is the focus window at the second time point. The second time point is after the first time point. The second window contains multiple tab options. The pages of the first tab are displayed in the second window, while the pages of the second tab are not displayed in the second window.
[0280] The processing module 430 is also configured to, in response to an operation in the first area of the touchpad 410, close the first tab and display the page of the second tab in the second window.
[0281] In some embodiments, the electronic device 100 may further include:
[0282] At the third time point, screen 420 is also used to display the third window. At the third time point, the third window is the focus window. The third time point is after the first time point. The process name corresponding to the third window is the first process name, and the first process name corresponds to the desktop process.
[0283] Touchpad 410 is used to receive user operations on a first area of touchpad 410;
[0284] The processing module 430 is also configured not to close the third window after receiving an operation applied to the first area of the touchpad 410.
[0285] In some embodiments, the electronic device 100 may further include:
[0286] At the fourth time point, screen 420 is also used to display the fourth window, which is the focus window at the fourth time point;
[0287] The processing module 430 is also configured to minimize the fourth window in response to an operation in the second area of the touchpad 410;
[0288] After the fourth window is minimized, screen 420 is also used to display the third window;
[0289] Touchpad 410 is also used to receive operations from the second area of the touchpad;
[0290] The processing module 430 is also configured not to minimize the third window after receiving an operation applied to the second area of the touchpad 410.
[0291] In some embodiments, when the second window is the focused window and displays the page of the first tab, the electronic device 100 may further include:
[0292] The processing module 430 is also configured to, in response to an operation in the first area of the touchpad 410, close the first tab of the electronic device based on the option that the second window contains multiple tabs;
[0293] Screen 420 is also used to display the page for the second tab.
[0294] In some embodiments, when the first window is the focus window, the electronic device 100 may further include:
[0295] The processing module 430 is also configured to close the first window in response to an operation in the first area of the touchpad 410, based on the fact that the first window does not contain multiple tabs.
[0296] In some embodiments, when the third window is the focus window, the electronic device 100 may further include:
[0297] The processing module 430 is also configured to respond to an operation in the first area of the touchpad 410, based on the process name corresponding to the third window being the first process name, and the electronic device not closes the third window.
[0298] In some embodiments, when the second window is the focus window, the electronic device 100 may further include:
[0299] The processing module 430 is also used to respond to an operation in the first area of the touchpad 410 to obtain window information of the second window, which may include the process name corresponding to the window;
[0300] The processing module 430 is also used to determine the process name corresponding to the second window as the second process name based on the window information of the second window. The second process name is the process name corresponding to the application runtime of the main window, which may include multiple tabs.
[0301] The processing module 430 is also used to close the first tab page and display the second tab page after determining that the process name corresponding to the second window is the second process name.
[0302] In some embodiments, when the first window is the focus window, the electronic device 100 may further include:
[0303] The processing module 430 is also used to respond to the operation in the first area of the touchpad 410 and obtain the window information of the first window. The window information may include the window's title bar, window type and the process name corresponding to the window. The window type may include the main window, toolbar, menu bar and child window.
[0304] The processing module 430 is also used to determine, based on the window information of the first window, that the process name corresponding to the first window is not the second process name, that the first window contains a title bar, and that the first window is not a child window;
[0305] The processing module 430 is also used to close the first window based on the fact that the process name corresponding to the first window is not the second process name, the first window contains a title bar, and the first window is not a child window.
[0306] In some embodiments, when the third window is the focus window, the electronic device 100 may further include:
[0307] The processing module 430 is also used to obtain window information corresponding to the third window based on the operation in response to the first area of the touchpad 410;
[0308] The processing module 430 is also used to determine, based on the window information corresponding to the third window, whether the third window does not have a title bar or the third window is not a child window;
[0309] The processing module 430 is also used to prevent the third window from closing if the process name corresponding to the third window is the first process name, the third window does not contain a title bar, or the third window is not a child window.
[0310] In some implementations, the fourth window includes a title bar and is not a child window;
[0311] When the fourth window is the focus window, the electronic device 100 may further include:
[0312] The processing module 430 is also configured to minimize the fourth window in response to an operation in the second area of the touchpad 410, based on the fact that the fourth window contains a title bar and the fourth window is not a child window.
[0313] In some embodiments, when the fourth window is the focus window, the electronic device 100 may further include:
[0314] The processing module 430 is also used to respond to an operation in the second area of the touchpad 410 to obtain window information of the fourth window. The window information may include the window's title bar and window type. The window type may include the main window, toolbar, menu bar, and child windows.
[0315] The processing module 430 is also used to determine, based on the window information of the fourth window, that the fourth window contains a title bar and that the fourth window is not a child window;
[0316] The processing module 430 is also used to minimize the fourth window based on the fact that the fourth window contains a title bar and the fourth window is not a child window.
[0317] In some implementations, the third window does not include a title bar, or the third window is not a child window;
[0318] When the third window is the focus window, the electronic device 100 may further include:
[0319] The processing module 430 is also used to respond to an operation in the second area of the touchpad 410 to obtain window information of the third window, which may also include the process name corresponding to the window.
[0320] The processing module 430 is also used to determine, based on the window information of the third window, whether the process name corresponding to the third window is the first process name, whether the third window does not contain a title bar, or whether the third window is not a child window;
[0321] The processing module 430 is also used to prevent the third window from being minimized based on the process name corresponding to the third window being the first process name, the third window not containing a title bar, or the third window not being a child window.
[0322] In some implementations, the electronic device displays a fifth window, which is the focus window and contains a vertical scroll bar.
[0323] Electronic device 100 may also include:
[0324] The processing module 430 is also configured to respond to a user pressing the touchpad 410 with two fingers and sliding upwards on the touchpad 410 with two fingers, causing the electronic device to control the controls in the scroll bar to move upwards at a preset speed; or,
[0325] The processing module 430 is also used to respond to the user pressing the touchpad 410 with two fingers and sliding down on the touchpad 410 with two fingers, and the electronic device controls the controls in the scroll bar to move down at a constant speed according to a preset speed.
[0326] In some implementations, there are tabs on both the left and right sides of the second tab;
[0327] When the second window is the focused window and the page from the first tab is displayed in the second window, the electronic device 100 may further include:
[0328] Processing module 430 is also configured to, in response to a user swiping left along the upper or lower edge of touchpad 410 with two fingers, switch the page displayed by the electronic device from the first tab to the left tab of the second tab; or,
[0329] The processing module 430 is also configured to respond to a user swiping to the right along the upper or lower edge of the touchpad 410 with two fingers, causing the electronic device to switch the page displayed from the first tab to the right tab of the second tab.
[0330] Optionally, please see Figure 11 , Figure 11 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application.
[0331] Electronic device 100 may include a processor 101, a memory 102, a wireless communication module 103, a mobile communication module 104, an antenna 103A, an antenna 104A, a power switch 105, a sensor module 106, a focusing motor 107, a camera 108, a display screen 109, etc. The sensor module 106 may include a gyroscope sensor 106A, an accelerometer sensor 106B, an ambient light sensor 106C, an image sensor 106D, a proximity sensor 106E, etc. The wireless communication module 103 may include a WLAN communication module, a Bluetooth communication module, etc. All of the above components can transmit data via a bus.
[0332] Processor 101 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). These different processing units may be independent devices or integrated into one or more processors.
[0333] Memory 102 can be used to store computer executable program code, which may include instructions. Processor 101 executes various functional applications and data processing of electronic device 100 by running the instructions stored in memory 102. Memory 102 may include a program storage area and a data storage area. In specific implementations, memory 102 may include high-speed random access memory, and may also include non-volatile memory, such as one or more disk storage devices, flash memory devices, or other non-volatile solid-state storage devices.
[0334] The wireless communication function of the electronic device 100 can be implemented through antenna 103A, antenna 104A, mobile communication module 104, wireless communication module 103, modem processor, and baseband processor.
[0335] Antennas 103A and 104A can be used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be reused to improve antenna utilization.
[0336] The mobile communication module 104 can provide wireless communication solutions, including 2G / 3G / 4G / 5G, for use on electronic devices 100.
[0337] The wireless communication module 103 can provide solutions for wireless communication applications on electronic devices 100, including wireless local area networks (WLAN), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR).
[0338] The gyroscope sensor 106A can be used to determine the motion attitude of the electronic device 100.
[0339] Accelerometer 106B can detect the magnitude of acceleration of electronic device 100 in various directions (generally three axes).
[0340] Electronic device 100 can perform shooting functions through ISP, camera 108, video codec, GPU, display screen 109 and application processor.
[0341] Electronic device 100 can implement display functions through a GPU, display screen 109, and application processor. The GPU is a microprocessor for image processing, connected to the display screen 109 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 101 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0342] The display screen 109 is used to display images, videos, etc. The display screen 109 includes a display panel. In some embodiments, the electronic device 100 may include one or N display screens 109, where N is a positive integer greater than 1.
[0343] The structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0344] In the embodiments of this application:
[0345] One or more of the following components can be used to detect the current environmental characteristics of the electronic device 100: wireless communication module 103, mobile communication module 104, sensor module 106, focusing motor 107, camera 108, etc.
[0346] The display screen 109 is used to display the user interface provided by the aforementioned electronic device 100, such as a camera interface or a photo album interface. The user interface displayed on the display screen 109 can be referred to the UI embodiment described above.
[0347] For details on the operations performed by each device in the electronic device 100, please refer to the relevant descriptions in the preceding method embodiments.
[0348] The software system of electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application embodiment uses a layered mobile operating system as an example to exemplify the software structure of electronic device 100.
[0349] Optionally, please refer to Figure 12 , Figure 12 This is another software structure block diagram provided in the embodiments of this application. For example... Figure 12 The layered architecture shown divides the software into several layers, each with a clear role and division of labor, and the layers can communicate with each other through software interfaces.
[0350] In some embodiments, the electronic device 100 system can be divided into five layers, from top to bottom: application layer, application framework layer, system runtime library layer, hardware abstraction layer (HAL), and kernel layer. The descriptions of each layer are as follows:
[0351] The application layer may include a series of application packages. For example, the application packages in the application layer may include applications such as camera, gallery, calendar, calling, map, navigation, browser, video, music, and SMS.
[0352] The application framework layer provides application programming interfaces (APIs) and programming frameworks for applications within the application layer. The application framework layer can include some predefined functions.
[0353] For example, the application framework layer may include an activity manager, a window manager, a content provider, a view system, a telephone manager, a resource manager, a notification manager, and an accelerated graphics port (AGP), etc. Among them:
[0354] The Activity Manager can be used to manage the lifecycle of individual applications and the usual navigation back functionality.
[0355] A window manager can be used to manage window programs. For example, a window manager can obtain the screen size of an electronic device 100, lock the screen, capture the screen, and determine whether a status bar is present, etc.
[0356] Content providers can be used to store and retrieve data, and make that data accessible to applications, enabling different applications to access or share data. For example, the data mentioned above may include videos, images, audio, phone calls made and received, browsing history and bookmarks, and phone books, etc.
[0357] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.
[0358] The phone manager is used to provide communication functions for electronic device 100, such as managing call status (including answering and hanging up calls).
[0359] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, etc.
[0360] The notification manager allows applications to display notifications in the status bar. These notifications can be used to convey informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify of download completion, message alerts, etc. The notification manager can also appear as an icon or scrolling text bar in the system's top status bar, such as notifications from background applications, or as a dialog box on the screen. Examples include displaying text messages in the status bar, emitting alert sounds, vibrating electronic devices, and flashing indicator lights.
[0361] AGP in the application framework layer can be used to improve the rendering performance of the graphics card, such as by providing the graphics card with more cache capacity to achieve faster image processing speed.
[0362] The system runtime layer can include system libraries and the Android runtime. Specifically:
[0363] The Android runtime consists of the core libraries and the virtual machine. The Android runtime is responsible for scheduling and managing the Android system. The core libraries comprise two parts: one part contains the functionalities that Java calls, and the other part contains the core Android libraries. The application layer and application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
[0364] System libraries can be understood as the support for the application framework, serving as a crucial link between the application framework layer and the kernel layer. The system layer can include multiple functional modules, such as a surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), and 2D graphics engines (e.g., SGL). Among these:
[0365] The surface manager can be used to manage the display subsystem, such as when multiple applications are running on electronic device 100, it manages the interaction between display and access operations. The surface manager can also be used to provide the blending of two-dimensional and three-dimensional layers for multiple applications.
[0366] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.
[0367] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0368] A 2D graphics engine can be understood as a graphics engine for 2D drawing.
[0369] The Hardware Abstraction Layer provides standard interfaces, such as the HAL (Hardware Interface Definition Language) interface or the Android Interface Definition Language (AIDL) interface.
[0370] The kernel layer can be understood as an abstraction layer between hardware and software. The kernel layer may include system services such as security, memory management, process management, power management, network protocol management, and driver management. For example, the kernel layer may include drivers, such as display drivers, camera drivers, audio drivers, and sensor drivers. Optionally, the kernel layer may also be called the Android kernel or kernel program. For example, the hardware layer of the electronic device 100 may include a touch panel (TP), a liquid crystal display (LCD), etc.
[0371] In some embodiments, the kernel layer can be understood as kernel mode, and the other four layers (i.e., application layer, application framework layer, system runtime library layer, and HAL) can be understood as user mode.
[0372] It is understandable that various applications within the application layer can have video recording and / or playback capabilities. For example, a camera may have video recording capabilities, while applications such as photo galleries, navigation apps, and browsers can also have video playback capabilities. Optionally, the duration, resolution, and shooting parameters of the video will all affect video recording and / or playback. These shooting parameters can include aperture value, shutter speed, ISO, exposure, focal length, and depth of field.
[0373] For example, the relevant parameters for video recording and / or playback supported by various applications can be stored in a sensor binary file (sensor bin), which can be stored in external storage, such as a disk or hard drive. When a user uses a specific application to record and / or play video, the application can read the relevant parameters for video recording and / or playback into memory so that the user can use the application normally and ensure a good user experience.
[0374] It should be understood that each step in the above method embodiments can be completed by integrated logic circuits in the processor hardware or by instructions in software form. The method steps disclosed in the embodiments of this application can be directly manifested as being executed by a hardware processor, or being executed by a combination of hardware and software modules in the processor.
[0375] This application also provides an electronic device, which may include a memory and a processor. The memory may be used to store a computer program; the processor may be used to invoke the computer program in the memory, causing the electronic device to execute the method executed on the electronic device side in any of the above embodiments.
[0376] This application also provides a chip system including at least one processor for implementing the functions involved on the electronic device side in any of the above embodiments.
[0377] In some possible designs, the chip system also includes a memory for storing program instructions and data, which may be located inside or outside the processor.
[0378] The chip system can consist of chips or include chips and other discrete components.
[0379] Optionally, the chip system may contain one or more processors. These processors can be implemented in hardware or software. When implemented in hardware, the processor can be a logic circuit, an integrated circuit, etc. When implemented in software, the processor can be a general-purpose processor, implemented by reading software code stored in memory.
[0380] Optionally, the chip system may contain one or more memories. The memory may be integrated with the processor or disposed separately from it; this application embodiment does not limit this. For example, the memory may be a non-transient processor, such as a read-only memory (ROM), which may be integrated with the processor on the same chip or disposed separately on different chips. This application embodiment does not specifically limit the type of memory or the arrangement of the memory and processor.
[0381] For example, the chip system may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a micro controller unit (MCU), a programmable logic device (PLD), or other integrated chips.
[0382] This application also provides a computer program product, the computer program product comprising: a computer program (also referred to as code or instructions), which, when the computer program is run, causes the computer to perform the method executed on the electronic device side in any of the above embodiments.
[0383] This application also provides a computer-readable storage medium storing a computer program (also referred to as code or instructions). When the computer program is run, it causes the computer to perform the method executed on the electronic device side in any of the above embodiments.
[0384] As used in the above embodiments, depending on the context, the term "when..." can be interpreted as meaning "if...", "after...", "in response to determining...", or "in response to detecting...". Similarly, depending on the context, the phrase "when determining..." or "if (the stated condition or event) is interpreted as meaning "if determining...", "in response to determining...", "when (the stated condition or event) is detected", or "in response to detecting (the stated condition or event)".
[0385] The various embodiments of this application can be combined arbitrarily to achieve different technical effects.
[0386] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as 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, all or part of the processes or functions described in this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).
[0387] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.
[0388] In summary, the above description is merely an embodiment of the technical solution of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made based on the disclosure of this application should be included within the scope of protection of this application.
Claims
1. A control method for an electronic device, characterized in that, Applied to an electronic device, the electronic device including a touchpad, the method includes: At a first point in time, the electronic device displays a first window, which is the focus window and does not contain multiple tabs. In response to an operation in the first area of the touchpad, the electronic device closes the first window; At a second time point, the electronic device displays a second window, which is the focus window at that time point. The second time point is after the first time point. The second window contains multiple tab options. The page of the first tab is displayed in the second window, while the page of the second tab is not displayed in the second window. When the second window is the focused window and the second window displays the page of the first tab, in response to an operation on the first area of the touchpad, based on the option that the second window contains multiple tabs, the electronic device closes the page of the first tab and displays the page of the second tab in the second window.
2. The method according to claim 1, characterized in that, The method further includes: At a third time point, the electronic device displays a third window, which is the focus window at the third time point. The third time point is after the first time point, and the process name corresponding to the third window is the first process name, which corresponds to the desktop process. The third window is not closed after receiving an operation applied to the first area of the touchpad.
3. The method according to claim 2, characterized in that, The method further includes: At the fourth time point, the electronic device displays a fourth window, which is the focus window at that time point; In response to an operation in the second area of the touchpad, the electronic device minimizes the fourth window; After the fourth window is minimized, the electronic device displays the third window; The third window is not minimized after receiving an operation applied to the second area of the touchpad.
4. The method according to claim 3, characterized in that, When the first window is the focused window, the electronic device closing the first window in response to an operation on the first area of the touchpad includes: In response to an operation in the first area of the touchpad, the electronic device closes the first window based on the fact that the first window does not contain multiple tabs.
5. The method according to claim 4, characterized in that, When the third window is the focused window, the method further includes: In response to an operation in the first area of the touchpad, the electronic device does not close the third window based on the process name corresponding to the third window being the first process name.
6. The method according to claim 5, characterized in that, When the second window is the focused window, the method further includes: In response to an operation on the first area of the touchpad, the window information of the second window is obtained, the window information including the process name corresponding to the window; Based on the window information of the second window, the process name corresponding to the second window is determined to be the second process name, which is the process name corresponding to the application running in the main window, which includes multiple tabs. After confirming that the process name corresponding to the second window is the second process name, close the first tab and display the second tab.
7. The method according to claim 6, characterized in that, When the first window is the focused window, the method further includes: In response to an operation on a first area of the touchpad, the window information of the first window is obtained. The window information includes the window's title bar, window type, and the process name corresponding to the window. The window type includes the main window, toolbar, menu bar, and child window. Based on the window information of the first window, it is determined that the process name corresponding to the first window is not the second process name, the first window contains a title bar, and the first window is not a child window. The first window is closed based on the fact that the process name corresponding to the first window is not the second process name, the first window contains a title bar, and the first window is not a child window.
8. The method according to claim 7, characterized in that, When the third window is the focused window, the method further includes: In response to an operation in the first area of the touchpad, obtain the window information corresponding to the third window; Based on the window information corresponding to the third window, it is determined that the third window does not have a title bar, or that the third window is not a child window; The third window is not closed if the process name corresponding to the third window is the first process name, the third window does not contain a title bar, or the third window is not a child window.
9. The method according to any one of claims 3-8, characterized in that, The fourth window includes a title bar and is not a child window; When the fourth window is the focused window, the method further includes: In response to an operation in the second area of the touchpad, the electronic device minimizes the fourth window based on the fact that the fourth window contains a title bar and the fourth window is not a child window.
10. The method according to claim 9, characterized in that, When the fourth window is the focused window, the method further includes: In response to an operation in the second area of the touchpad, window information of the fourth window is obtained, the window information including the window's title bar and window type, the window type including the main window, toolbar, menu bar, and child windows; Based on the window information of the fourth window, it is determined that the fourth window contains a title bar and that the fourth window is not a child window; Since the fourth window contains a title bar and is not a child window, the fourth window is minimized.
11. The method according to claim 10, characterized in that, The third window does not contain a title bar, or the third window is not a child window; When the third window is the focused window, the method further includes: In response to an operation in the second area of the touchpad, window information of the third window is obtained, the window information including the process name corresponding to the window; Based on the window information of the third window, it is determined that the process name corresponding to the third window is the first process name, the third window does not contain a title bar, or the third window is not a child window; The third window is not minimized if the process name corresponding to the third window is the first process name, the third window does not contain a title bar, or the third window is not a child window.
12. The method according to any one of claims 1-8, characterized in that, The electronic device displays a fifth window, which is the focus window, and a vertical scroll bar exists in the fifth window; The method further includes: In response to a user pressing the touchpad with two fingers and then swiping upwards on the touchpad with two fingers, the electronic device scrolls upwards at a preset speed to display the content of the fifth window; or... In response to a user pressing the touchpad with two fingers and sliding down on the touchpad with two fingers, the electronic device scrolls down to display the content in the fifth window at a preset speed.
13. The method according to claim 9, characterized in that, The electronic device displays a fifth window, which is the focus window, and a vertical scroll bar exists in the fifth window; The method further includes: In response to a user pressing the touchpad with two fingers and then swiping upwards on the touchpad with two fingers, the electronic device scrolls upwards at a preset speed to display the content of the fifth window; or... In response to a user pressing the touchpad with two fingers and sliding down on the touchpad with two fingers, the electronic device scrolls down to display the content in the fifth window at a preset speed.
14. The method according to claim 10, characterized in that, The electronic device displays a fifth window, which is the focus window, and a vertical scroll bar exists in the fifth window; The method further includes: In response to a user pressing the touchpad with two fingers and then swiping upwards on the touchpad with two fingers, the electronic device scrolls upwards at a preset speed to display the content of the fifth window; or... In response to a user pressing the touchpad with two fingers and sliding down on the touchpad with two fingers, the electronic device scrolls down to display the content in the fifth window at a preset speed.
15. The method according to claim 11, characterized in that, The electronic device displays a fifth window, which is the focus window, and a vertical scroll bar exists in the fifth window; The method further includes: In response to a user pressing the touchpad with two fingers and then swiping upwards on the touchpad with two fingers, the electronic device scrolls upwards at a preset speed to display the content of the fifth window; or... In response to a user pressing the touchpad with two fingers and sliding down on the touchpad with two fingers, the electronic device scrolls down to display the content in the fifth window at a preset speed.
16. The method according to claim 12, characterized in that, The second tab has tabs on both the left and right sides; When the second window is the focused window and the page of the second tab is displayed in the second window, the method further includes: In response to a user swiping left along the top or bottom edge of the touchpad, the page displayed by the electronic device switches from the page of the second tab to the page of the tab to the left of the second tab; or, In response to a user swiping right along the top or bottom edge of the touchpad, the page displayed by the electronic device switches from the page of the second tab to the page of the tab to the right of the second tab.
17. An electronic device, characterized in that, The electronic device includes a touchpad, a display module, and a processing module; At a first point in time, the display module is used to display a first window, which is the focus window and does not contain multiple tabs. The processing module is configured to control the display module to stop displaying the first window in response to an operation on the first area of the touchpad; At the second time point, the display module is used to display a second window. At the second time point, the second window is the focus window. The second time point is after the first time point. The second window contains multiple tab options. The page of the first tab is displayed in the second window, and the page of the second tab is not displayed in the second window. The processing module is further configured to, in response to an operation on the first area of the touchpad, control the display module to stop displaying the first tab's page and control the display module to display the second tab's page in the second window, based on the option that the second window contains multiple tabs, when the second window is the focus window and the second window displays the first tab's page, in the presence of an operation on the first area of the touchpad.
18. An electronic device, characterized in that, The device includes a processor and a memory, the memory being used to store a computer program, the computer program including program instructions, and the processor being configured to invoke the program instructions such that the method as described in any one of claims 1-16 is executed.
19. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, the computer program including program instructions that, when executed by a processor, cause the method as described in any one of claims 1-16 to be performed.
Citation Information
Patent Citations
Browsed page switching method and device
CN112612404A