WO2020168790A1 - 应用窗口的焦点刷新方法、装置、存储介质及终端 - Google Patents
应用窗口的焦点刷新方法、装置、存储介质及终端 Download PDFInfo
- Publication number
- WO2020168790A1 WO2020168790A1 PCT/CN2019/124564 CN2019124564W WO2020168790A1 WO 2020168790 A1 WO2020168790 A1 WO 2020168790A1 CN 2019124564 W CN2019124564 W CN 2019124564W WO 2020168790 A1 WO2020168790 A1 WO 2020168790A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- focus
- application window
- window
- application
- refreshing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Definitions
- This application provides a method for refreshing the focus of an application window, including:
- This application also provides a device for refreshing the focus of an application window, including:
- a window display module configured to display a first application window monitored by a target application, the first application window being in a focused state
- the second window output module is configured to receive an interactive operation input for the target application, and output a second application window based on the interactive operation, the second application window is an interactive window, and the second application window is preset to be lost Focal state
- the first window refresh module is configured to receive a focus operation input for the second application window, and refresh the second application window to a focused state.
- the present application also provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the above method steps.
- Figure 2a is a schematic diagram of an interface of a second application window provided by an embodiment of the present application.
- FIG. 6a is a schematic diagram of the effect of a focus operation control provided by an embodiment of the present application.
- FIG. 7 is a schematic flowchart of a method for refreshing the focus of an application window according to an embodiment of the present application
- FIG. 8 is a schematic structural diagram of a focus refresh device for an application window provided by an embodiment of the present application.
- FIG. 10 is a schematic structural diagram of a focus refresh device for an application window provided by an embodiment of the present application.
- FIG. 11 is a schematic structural diagram of a second window refresh module provided by an embodiment of the present application.
- the first application window refers to the window displayed by the application on the display interface when the user opens the application through the terminal.
- the application can be any application in the set of related applications. When there are multiple open applications, each application corresponds to a window, and the window selected by the user is the first application window.
- an application A, an application B, and an application C are displayed on the current display interface. If the user selects the application A, the display window corresponding to the application A is the first application window.
- the display window corresponding to the application with the opening time closest to the current time can be determined as the first application window, that is, multiple display windows are opened, and the display window opened last The window is the first application window.
- the window itself does not have any visible content, it provides a basic container for the view of the application.
- the view refers to the content filled in the container, for example, displaying images, text, shapes or a combination thereof.
- a window can be understood as a display window containing a view, and then the operation input to the window is the operation input to the view in the window.
- Target application refers to a specified application (such as an annotation application) opened by the user, which is used to monitor the focus of the first application window and form a link path with the first application window.
- the target application is covered on the first application window in the form of a transparent window, and the transparent window does not obtain the focus of the current display interface, and at the same time, the target application runs in a background service mode.
- the window of the target application is overlaid on the first application window, which can be understood as the first application window opened first, and the window of the target application opened later.
- the two windows can overlap completely or partially. A feasible way of displaying the two windows on the display interface is shown in Figure 1.
- the second application window refers to the interactive window that pops up when the user operates the target application, and the second application window is preset to be in the out-of-focus state (NOT FOCUS).
- NOT FOCUS out-of-focus state
- the second application window may be a child window of the target application (such as the view of the annotation application), or may be a display window of a third-party application.
- the second application window can have many forms, such as a text input box (as shown in Figure 2a), a selection input box (as shown in Figure 2b), and so on.
- the third application window refers to the non-interactive window that pops up when the user operates the target application, and the second application window is preset to be out of focus (NOT FOCUS).
- NOT FOCUS out of focus
- the third application window may be a child window of the target application (such as the view of the annotation application), or may be a display window of a third-party application.
- the third application window may be an information prompt box (as shown in Figure 2c).
- Interactive operation refers to the instruction generated by the user operating on the terminal display interface and executed by the terminal. The emphasis is on the interaction between the user and the terminal. There are many ways of interaction, such as touch operation, voice control operation, gesture control operation, etc., which are not specifically limited here.
- the user is required to enter "username or email address” and "password” in the input box, and click "Enter System” to complete the interactive operation instructions, and the terminal Verify the entered information and enter the system after the verification is passed, so as to realize the system login operation.
- the terminal returns to the information input interface after receiving the operation.
- this window does not require any input operation from the user, but only prompts, and the window will also be hidden or closed after a set duration.
- Out-of-focus operation refers to the operation that triggers the terminal to no longer assign focus to the corresponding window through user input. For example, move the cursor from the input box of the second application window to the outside of the input box, or click the input completion confirmation key, etc., after the terminal detects this operation, the second application window no longer assigns the focus.
- Focus state including focus state (FOCUS) and out of focus state (NOT FOCUS).
- Focus state refers to a state in which the focus is assigned to the window to activate the corresponding function of the window, for example, a soft keyboard is awakened so that information can be input.
- the node information is the elements contained in the window and element attribute information, such as element identification, style, position on the window, and so on.
- Out-of-focus state refers to a state in which the focus is no longer assigned to the window, and the window is operated without responding, for example, the soft keyboard is not activated and information cannot be input.
- the target application is only used to monitor the focus information of the first application window, and for the focus or out-of-focus operation of the second application window, the terminal adopts a reflection method (that is, this solution).
- the execution method for restoring the focus of the second application window) is executed.
- FIG. 3 is a schematic diagram of a system architecture provided by an embodiment of this application.
- the system architecture may include a terminal 1000, a first application window 2000, and a display window 3000 of the target application.
- the first application window 2000 and the display window 3000 of the target application are overlapped and displayed on the current terminal 1000.
- the interface is displayed, and the display window 3000 of the target application is transparently covered on the first application window 2000.
- the display window 3000 of the target application is a window corresponding to the specified application, and the window does not get the focus of the current display interface.
- the focus of the display interface is focused on the first application window 2000, and after the display window 3000 of the target application is opened, the focus of the display interface will still be focused on the first application window 2000.
- the node information of the first application window is monitored through the target application. If the node information of the first application window can be monitored, it indicates that the application corresponding to the first application window and the target application are established A communication link, and the communication link is in a path state;
- the terminal 1000 detects the interactive operation and pops up the second application Window 4000 (as shown on the right in Figure 3). Since the second application window 4000 is preset to be out of focus, the focus is still on the first application window, and what is monitored through the target application is still the node information of the first application window, that is, the target application and the first application window The link path between is still in the path state.
- the focus of the display interface will automatically be focused on the second application window 4000, causing the first application window 2000 to lose focus. Coke.
- the second application window 4000 is preset to be out of focus, so that the focus of the display interface is always focused on the first application window 2000;
- the second application window 4000 covers the first application window 3000.
- the second application window 4000 and the first application window 3000 may partially overlap or completely overlap.
- the target application is only used to monitor the focus state of the first application window 2000, the focus cannot be obtained after the second application window 4000 is preset to be out of focus, which affects the normal use of the second application window 4000.
- the application window can be used normally, you need to monitor the focus change of the second application window.
- the terminal 1000 monitors the focusing operation and determines that the user has an intention to operate the second application window.
- the focus state of the second application window 4000 is refreshed, so that the second application window 4000 is in a focused state (that is, from the NOT FOCUS state to the FOCUS state), and then the soft keyboard can be invoked to perform operations such as information input.
- the terminal 1000 can obtain the root node view of the second application window 4000, and obtain the layout attribute parameter of the root node view and the attribute manager, and then use the attribute manager to adjust the attribute value of the layout attribute parameter to the in-focus state. And refresh the second application window 4000 to adjust the focus state of the second application window 4000.
- the terminal 1000 first obtains the focus state of the second application window 4000 and determines whether the second application window 4000 is in the focused state. If it is in the focused state, no adjustment is needed. If it is out of focus, Make adjustments again.
- the terminal 1000 detects the out-of-focus operation and no longer The focus is allocated to the second application window 4000, so that the second application window changes from the focused state to the out-of-focus state (that is, changes from the FOCUS state to the NOT FOCUS state).
- the terminal may include terminal devices with information processing functions, such as a tablet computer, a personal computer (PC), a smart phone, a palmtop computer, and a mobile Internet device (MID).
- terminal devices with information processing functions such as a tablet computer, a personal computer (PC), a smart phone, a palmtop computer, and a mobile Internet device (MID).
- the second application window since the second application window is preset to the out-of-focus state, it can be ensured that the first application window is always in focus. At the same time, the second application window can be quickly restored by focusing only on the second application window. The focus of the window, and when the second application window does not need to be focused, the focus is recovered and turned into an out-of-focus state. Without affecting the normal use of the second application window, the window focus recovery time is saved, and the window focus recovery efficiency can be improved. In this way, the target application can always monitor the first application window when the target application is open.
- Window node information if the communication link between the target application and the first application window is not interrupted, the focus and defocus at a certain time only occur on the second application window that pops up, and does not affect the target window
- the focus is out of focus, the scope of focus out of focus is small, and the time it takes to restore the focus of the second application window is relatively short. On the one hand, it can shield the user from operating the first application window without responding, on the other hand, it does not need to re Restore the focus of the first application window.
- the focus refresh method of the application window provided by the embodiment of the present application will be described in detail below in conjunction with FIG. 4 to FIG. 7.
- the device for refreshing the focus of the application window in the embodiment of the present application may be the terminal shown in FIG. 3.
- FIG. 4 provides a schematic flowchart of a method for refreshing the focus of an application window according to an embodiment of this application.
- the method of the embodiment of the present application may include the following steps:
- S101 Display a first application window monitored by a target application, where the first application window is in a focused state;
- the display window corresponding to the application is the first application window.
- the display window corresponding to the application selected by the user is taken as the first application window.
- the display window corresponding to the application currently in use is determined as the first application window. For example, if the user is currently playing ppt, the display window of ppt is the first application window.
- the target application After the target application is opened, its corresponding display window is transparently covered on the first application window. Based on the properties of the target application, the transparent window does not request to assign focus. Therefore, regardless of whether the target application is opened or not, the first application window is always in focus ( FOCUS) status.
- FOCUS focus
- the application corresponding to the first application window and the target application are different applications, the target application may be an annotated application, and the application corresponding to the first application window may be any application except an annotated application Controllable application. Used to monitor the first application window and run as a background service.
- the annotation application is a timely writing program intended to supplement and extend certain information.
- functions such as pen, eraser, share, close, and page up and down.
- For PowerPoint (PPT) turning pages up and down and closing playback are functions to control PPT, and other information is writing-related information, for example, pen: writing; eraser: clear; sharing: save the content locally, etc.; close: close comments .
- the corresponding display interface is shown in Figure 5. After opening the annotation, the display interface displays "You are already in the annotation mode", and the corresponding function icon is suspended on the PPT.
- the terminal may use the accessibility services of the target application to dynamically monitor the window focus of the first application window. It can be periodic monitoring or real-time monitoring.
- the user can input an operation on the display window (transparent window) of the target application, and the terminal responds after receiving the operation, thereby realizing the interaction between the user and the terminal.
- S102 Receive an interactive operation input for the target application, and output a second application window based on the interactive operation, where the second application window is an interactive window, and the second application window is preset to an out-of-focus state;
- the second application window is the window that pops up when the user operates the target application, and is preset to be in an out-of-focus state, thereby preventing the window from preempting the focus of the first application window when the second application window pops up, thereby causing the target
- the communication link between the application and the first application window is interrupted. Therefore, the node information of the first application window cannot be monitored, which causes the first application window to lose focus.
- the view focus monitor of the terminal can be triggered to monitor the focus change, and the second application window can be monitored.
- S103 Receive a focus operation input for the second application window, and refresh the second application window to a focused state.
- the focusing operation may include multiple modes such as cursor moving in operation, voice control operation, gesture control operation, etc.
- the terminal obtains the cursor moving in operation input by the user for the second application window, and obtains the first cursor position indicated by the cursor moving in operation, when the first cursor position When it is within the focus position range of the second application window, refresh the focus state of the second application window to the focus state.
- the first cursor position refers to the position where the cursor finally stays when moving in the second application window.
- the user clicks the cursor with a finger to move it.
- the terminal confirms that the user needs to input information, and refreshes the current focus state of the second application window to In the focused state, various functions such as the keyboard can be activated, and the second application window can be operated normally.
- the terminal parses the voice control operation and extracts keywords in it, if the keywords match the keywords in the instruction library, or If the expressed meaning is consistent, the focus state of the second application window is refreshed to the focus state.
- the user inputs "move the cursor to the "username or email address” input box" through the voice operation transceiver interface of the terminal, and the terminal moves the cursor from the current position to the input box and confirms that the user needs Inputting information will refresh the current focus state of the second application window to the focus state, so that various functions such as the keyboard can be activated.
- the terminal parses the collected gesture actions and matches them with the gesture actions pre-stored in the gesture library. If the matching is successful in the gesture library The gesture action is to perform the focus operation corresponding to the gesture action, thereby refreshing the focus state of the second application window to the focus state.
- the user enters a gesture sliding motion through the camera of the terminal.
- the cursor On the display interface of the terminal, the cursor also moves synchronously with the movement of the finger.
- the terminal confirms that the user needs to input information, and refreshes the current focus state of the second application window to the focused state, so that various functions such as the keyboard can be activated.
- gesture control operations can also be preset gesture actions. As shown in Table 1, when the gesture action is “left thumb” or “left index finger”, the corresponding window focus state is “focus state”. When the gesture action is “right thumb” or “right index finger”, the corresponding window focus state is "out of focus”. Then, when the gesture action currently collected by the terminal camera is "left thumb”, the first 2. The current focus state of the application window is refreshed to the focused state.
- Another optional gesture action can also be as shown in Table 2.
- the gesture action is “1 finger”
- the corresponding window focus state is "focus state”
- the gesture action is “2 fingers”
- the corresponding window focus state is "out of focus state”
- the gesture action currently collected by the terminal camera is “1 finger”
- the current focus state of the second application window is refreshed to the focused state.
- the specific refresh method can be: reflectively obtain the root node view of the second application window and the attribute manager of the second application window; use the root node view to obtain the layout attribute parameters; set the attributes of the layout attribute parameters based on the monitored focus distribution, and Dynamically update the view of the second application window.
- the terminal responds to the interactive operation instruction for the target application, and based on the interactive operation instruction, outputs the second application window whose preset focus state is out of focus.
- the first focus change operation of the second application window is monitored Refresh the focus state of the second application window to the focus state. Since the second application window is preset to be out of focus, it can be ensured that when the second application window pops up, the link path between the first application window and the target application is not interrupted, thereby ensuring that the first application window is always in focus
- the focus can be assigned to the second application window only by focusing on the second application window. Therefore, the focus of the second application window can be quickly restored while ensuring that the first application window is always in focus. In the case of affecting the normal use of the second application window, the window focus recovery time is saved, and the window focus recovery efficiency can be improved.
- FIG. 7 provides a schematic flowchart of a method for refreshing the focus of an application window according to an embodiment of this application.
- the focus refresh method of the application window is applied to the terminal as an example.
- the focus refresh method of the application window may include the following steps:
- S201 Display a first application window monitored by the target application, where the first application window is in a focused state;
- the terminal before displaying the first application window monitored by the target application, obtains a window opening operation input for the target application on the display interface, and opens a transparent window based on the window opening instruction, the transparent window covering the On the first application window of the display interface.
- the window opening operation is the operation of opening a transparent window.
- the user input window opening operation can include opening the annotation application, such as double-clicking the annotation application icon, selecting the annotation application icon and then clicking the right mouse button, then clicking the "Open” option, and clicking the keyboard shortcut "Ctrl+ O" and so on, thus opening the comment window.
- the terminal may use annotated Accessibility Services to dynamically monitor the window focus of the first application window. It can be monitored periodically or in real time.
- S202 Receive an interactive operation input for the target application, and output a second application window based on the interactive operation, the second application window is an interactive window, and the second application window is preset to an out-of-focus state;
- S203 Receive a cursor movement input operation for the second application window, and obtain a first cursor position indicated by the cursor movement operation;
- the position of the cursor is constantly changing, and the first cursor position is the final position of the cursor.
- the coordinates at point s is the first cursor position.
- the focus position range refers to a range for information input, and may include a text input box and various keys.
- the focus position range includes areas corresponding to the "username or email address” input box, the "password” input box, and the "enter system” control key.
- the focus position range includes the area corresponding to the "OK" control key.
- Detect the current focus state before adjusting the focus state If the detected focus state is the focus state that needs to be adjusted, no adjustment is required; if the detected focus state is not the focus state that needs to be adjusted, then Make adjustments.
- the specific judgment method may be: by querying whether the window node information of the second application window exists in the view focus listener, if it contains the window node information of the second application window, it indicates that the second application window is in the focused state, if not included, It indicates that the second application window is out of focus.
- the window node is the element contained in the window, each window can include multiple nodes, and each node contains multiple attributes. These attributes include nodeName (node name), nodeValue (node value), nodeType (node type).
- the root node view is included in each window.
- the root node view DecorView of the second application window can be obtained by calling the statement getWindow().getDecorView().findViewById(android.R.id.content).
- DecorView contains layout attribute parameters (LayoutParams).
- LayoutParams stores the attributes of the window. Through this variable, you can assign various attributes to the window. You can also change its attribute values to perform various operations, such as dragging and stretching the floating window.
- the LayoutParams also contains the focus attribute flag (Flag), and the focus state of the window can be changed by changing the value of Flag.
- Flag focus attribute flag
- WindowManager is an interface class, which can realize the management of views in the window, including adding, updating and deleting.
- S208 Use the attribute manager to adjust the attribute value of the layout attribute parameter to the focus attribute value indicated by the focus state, and refresh the second application window.
- Flag Set the value of Flag and set it to the focus attribute value indicated by the focus state. For example, if 1 means focus and 0 means out of focus, then Flag is set to 1.
- receiving an out-of-focus operation input for the second application window and refreshing the second application window to an out-of-focus state.
- the second focus change signal may include a cursor moving out signal, an input completion signal, a confirmation signal or a cancellation signal, etc., in multiple ways.
- the terminal receives a cursor moving out operation input for the second application window, and acquiring the second cursor position indicated by the cursor moving out operation, When the second cursor position is outside the focus position range of the second application window, it indicates that the user does not need to operate on the second application window, and the focus state of the second application window is refreshed to the out-of-focus state .
- the second cursor position refers to the position where the cursor finally stays when it is far away from the second application window.
- the terminal obtains the input completion signal input by the user (such as clicking the OK control key), and directly refreshes the focus state of the second application window to the out-of-focus state .
- the refresh mode is the same as the refresh mode of the focus state described above, and will not be repeated here.
- the focus state of the second application window before refreshing the focus state of the second application window to the out-of-focus state, it may be judged whether the second application window is currently in the out-of-focus state, if so, no adjustment is required, otherwise, the focus state is adjusted.
- a specific application scenario is that the first application window corresponds to the PPT application, the target application corresponds to an annotation application (mark), and the second application window is a sub-window of mark.
- the second application window is not The default is the out-of-focus state, and the obtained focus distribution of the display interface is:
- rootInActiveWindow android.view.accessibility.AccessibilityNodeInfo@8001b4cf;
- the second application window is preset to be out of focus, it can ensure that the first application window is always in focus. At the same time, only the second application window needs to be focused to quickly restore the focus of the sub-window, and When the second application window does not need to be focused, the focus is recovered and turned into an out-of-focus state. Without affecting the normal use of the second application window, the window focus recovery time is saved, and the window focus recovery efficiency can be improved. In this way, the target application can always monitor the first application window when the target application is open.
- FIG. 8 shows a schematic structural diagram of a focus refresh apparatus for an application window provided by an exemplary embodiment of the present application.
- the device for refreshing the focus of the application window can be implemented as all or a part of the terminal through software, hardware or a combination of the two.
- the device includes a window display module 11, a first window output module 12, and a first window refresh module 13.
- the out-of-focus operation includes a cursor moving out operation
- the second window refresh module 16 includes:
- the terminal 1000 may include: at least one processor 1001, at least one network interface 1004, a user interface 1003, a memory 1005, and at least one communication bus 1002.
- the processor 1001 may include one or more processing cores.
- the processor 1001 uses various excuses and lines to connect various parts of the entire terminal 1000, and executes the terminal by running or executing instructions, programs, code sets, or instruction sets stored in the memory 1005, and calling data stored in the memory 1005.
- Various functions and processing data of 1000 may use at least one of digital signal processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA).
- DSP Digital Signal Processing
- FPGA Field-Programmable Gate Array
- PLA Programmable Logic Array
- the processor 1001 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), a modem, and the like.
- the CPU mainly processes the operating system, user interface, and application programs; the GPU is used to render and draw the content that the display needs to display; the modem is used to process wireless communication. It is understandable that the above-mentioned modem may not be integrated into the processor 1001, but may be implemented by a chip alone.
- the memory 1005 may include random access memory (RAM) or read-only memory (Read-Only Memory).
- the memory 1005 includes a non-transitory computer-readable storage medium.
- the memory 1005 may be used to store instructions, programs, codes, code sets or instruction sets.
- the memory 1005 may include a storage program area and a storage data area, where the storage program area may store instructions for implementing the operating system and instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), Instructions used to implement the foregoing method embodiments, etc.; the storage data area can store the data involved in the foregoing method embodiments.
- the memory 1005 may also be at least one storage device located far away from the foregoing processor 1001.
- the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a focus refresh application program of an application window.
- the processor 1001 further performs the following operations before performing the refreshing of the second application window to the focused state:
- the processor 1001 performs the following operations after receiving a focus operation input for the second application window and refreshing the second application window to a focused state:
- the out-of-focus operation includes a cursor moving out operation.
- the processor 1001 receives an out-of-focus operation input for the second application window, and refreshes the second application window to an out-of-focus state To perform the following operations:
- the processor 1001 further performs the following operations:
- the terminal responds to the interactive operation instruction for the target application, and based on the interactive operation instruction, outputs the second application window whose preset focus state is out of focus.
- the cursor moves on the second application window and moves to When the focus position is within the range, if the second application window is currently out of focus, by obtaining the layout attribute parameter of the root node view of the second application window and the attribute manager, the attribute manager is used to adjust the attribute value of the layout attribute parameter Then the second application window is dynamically refreshed, so as to realize the focus of the second application window.
- the same method is adopted to adjust the attribute value of the layout attribute parameter, so as to realize the defocus of the second application window.
- Window node information if the communication link between the target application and the first application window is not interrupted, the focus and defocus at a certain time only occur on the second application window that pops up, and does not affect the target window
- the focus is out of focus, the scope of focus out of focus is small, and the time it takes to restore the focus of the second application window is relatively short. On the one hand, it can shield the user from operating the first application window without responding, on the other hand, it does not need to re Restore the focus of the first application window.
- the program can be stored in a computer readable storage medium. During execution, it may include the procedures of the above-mentioned method embodiments.
- the storage medium can be a magnetic disk, an optical disc, a read-only storage memory or a random storage memory, etc.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
Claims (18)
- 一种应用窗口的焦点刷新方法,包括:显示采用目标应用监听的第一应用窗口,所述第一应用窗口为聚焦状态;接收针对所述目标应用输入的交互操作,基于所述交互操作输出第二应用窗口,所述第二应用窗口为交互窗口,所述第二应用窗口预设为失焦状态;接收针对所述第二应用窗口输入的聚焦操作,将所述第二应用窗口刷新为聚焦状态。
- 根据权利要求1所述的应用窗口的焦点刷新方法,其中,所述聚焦操作包括光标移入操作,所述接收针对所述第二应用窗口输入的聚焦操作,将所述第二应用窗口刷新为聚焦状态,包括:接收针对所述第二应用窗口输入的光标移入操作,获取所述光标移入操作所指示的第一光标位置;当所述第一光标位置位于所述第二应用窗口的聚焦位置范围内时,将所述第二应用窗口刷新为聚焦状态。
- 根据权利要求2所述的应用窗口的焦点刷新方法,其中,所述将所述第二应用窗口刷新为聚焦状态,包括:获取所述第二应用窗口的根节点视图,并获取所述根节点视图的布局属性参数;基于所述布局属性参数将所述第二应用窗口刷新为聚焦状态。
- 根据权利要求3所述的应用窗口的焦点刷新方法,还包括:获取所述根节点视图的属性管理器;所述基于所述布局属性参数将所述第二应用窗口刷新为聚焦状态,包括:采用所述属性管理器将所述布局属性参数的属性值调整为聚焦状态所指示的焦点属性值,并刷新所述第二应用窗口。
- 根据权利要求1所述的应用窗口的焦点刷新方法,其中,所述将所述第二应用窗口刷新为聚焦状态之前,还包括:获取所述第二应用窗口的焦点状态;判断所述焦点状态是否为聚焦状态;所述将所述第二应用窗口刷新为聚焦状态,包括:当所述焦点状态为失焦状态时,触发执行所述将所述第二应用窗口刷新为聚焦状态的步骤。
- 根据权利要求1所述的应用窗口的焦点刷新方法,其中,所述接收针对所述第二应用窗口输入的聚焦操作,将所述第二应用窗口刷新为聚焦状态之后,还包括:接收针对所述第二应用窗口输入的失焦操作,将所述第二应用窗口刷新为失焦状态。
- 根据权利要求6所述的应用窗口的焦点刷新方法,其中,所述失焦操作包括光标移出操作,所述接收针对所述第二应用窗口输入的失焦操作,将所述第二应用窗口刷新为失焦状态,包括:接收针对所述第二应用窗口输入的光标移出操作,获取所述光标移出操作所指示的第二光标位置;当所述第二光标位置位于所述第二应用窗口的聚焦位置范围外时,将所述第二应用窗口刷新为失焦状态。
- 根据权利要求1所述的应用窗口的焦点刷新方法,还包括:接收针对所述目标应用输入的交互操作,基于所述交互操作输出第三应用窗口,所述第三应用窗口为非交互窗口,所述第三应用窗口预设为失焦状态。
- 一种应用窗口的焦点刷新装置,包括:窗口显示模块,用于显示采用目标应用监听的第一应用窗口,所述第一应用窗口为聚焦状态;第一窗口输出模块,用于接收针对所述目标应用输入的交互操作,基于所述交互操作输出第二应用窗口,所述第二应用窗口为交互窗口,所述第二应用窗口预设为失焦状态;第一窗口刷新模块,用于接收针对所述第二应用窗口输入的聚焦操作,将所述第二应用窗口刷新为聚焦状态。
- 根据权利要求9所述的应用窗口的焦点刷新装置,其中,所述聚焦操作包括光标移入操作,所述第一窗口刷新模块,包括:位置获取单元,用于接收针对所述第二应用窗口输入的光标移入操作,获取所述光标移入操作所指示的第一光标位置;窗口刷新单元,用于当所述第一光标位置位于所述第二应用窗口的聚焦位置范围内时,将所述第二应用窗口刷新为聚焦状态。
- 根据权利要求10所述的应用窗口的焦点刷新装置,其中,所述窗口刷新单元,具体用于:获取所述第二应用窗口的根节点视图,并获取所述根节点视图的布局属性参数;基于所述布局属性参数将所述第二应用窗口刷新为聚焦状态。
- 根据权利要求11所述的应用窗口的焦点刷新装置,其中,所述窗口刷新单元,还用于:管理器获取单元,用于获取所述根节点视图的属性管理器;采用所述属性管理器将所述布局属性参数的属性值调整为聚焦状态所指示的焦点属性值,并刷新所述第二应用窗口。
- 根据权利要求9所述的应用窗口的焦点刷新装置,还包括:状态获取模块,用于获取所述第二应用窗口的焦点状态;状态判断模块,用于判断所述焦点状态是否为聚焦状态,当所述焦点状态为失焦状态时,触发所述窗口刷新模块将所述第二应用窗口刷新为聚焦状态。
- 根据权利要求9所述的应用窗口的焦点刷新装置,还包括:第二窗口刷新模块,用于接收针对所述第二应用窗口输入的失焦操作,将所述第二应用窗口刷新为失焦状态。
- 根据权利要求14所述的应用窗口的焦点刷新装置,其中,所述失焦操作包括光标移出操作,所述第二窗口刷新模块,包括:位置获取单元,用于接收针对所述第二应用窗口输入的光标移出操作,获取所述光标移出操作所指示的第二光标位置;窗口刷新单元,用于当所述第二光标位置位于所述第二应用窗口的聚焦位置范围外时,将所述第二应用窗口刷新为失焦状态。
- 根据权利要求9所述的应用窗口的焦点刷新装置,还包括:第二窗口输出模块,用于接收针对所述目标应用输入的交互操作,基于所述交互操作输出第三应用窗口,所述第三应用窗口为非交互窗口,所述第三应用窗口预设为失焦状态。
- 一种计算机存储介质,其中,所述计算机存储介质存储有多条指令,所述指令适于由处理器加载并执行如权利要求1~8任意一项的方法步骤。
- 一种终端,包括:处理器和存储器;其中,所述存储器存储有计算机程序,所述计算机程序适于由所述处理器加载并执行如权利要求1~8任意一项的方法步骤。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910126533.7A CN109828820B (zh) | 2019-02-20 | 2019-02-20 | 一种应用窗口的焦点刷新方法、装置、存储介质及终端 |
| CN201910126533.7 | 2019-02-20 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2020168790A1 true WO2020168790A1 (zh) | 2020-08-27 |
Family
ID=66863900
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2019/124564 Ceased WO2020168790A1 (zh) | 2019-02-20 | 2019-12-11 | 应用窗口的焦点刷新方法、装置、存储介质及终端 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN109828820B (zh) |
| WO (1) | WO2020168790A1 (zh) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109828820B (zh) * | 2019-02-20 | 2021-08-20 | 广州视源电子科技股份有限公司 | 一种应用窗口的焦点刷新方法、装置、存储介质及终端 |
| CN112256372B (zh) * | 2020-10-20 | 2023-12-26 | 北京字跳网络技术有限公司 | 信息处理方法、装置和电子设备 |
| CN113127056B (zh) * | 2021-05-17 | 2022-03-29 | 马上消费金融股份有限公司 | 一种信息处理方法、装置、设备及可读存储介质 |
| CN116467037B (zh) * | 2023-06-09 | 2023-09-22 | 成都融见软件科技有限公司 | 一种图形用户界面工作状态的恢复方法 |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101639755A (zh) * | 2009-09-10 | 2010-02-03 | 腾讯科技(深圳)有限公司 | 一种支持图片输入的方法和设备 |
| CN103440193A (zh) * | 2013-09-12 | 2013-12-11 | 广东电子工业研究院有限公司 | 一种快速记录选中信息的方法 |
| CN106339174A (zh) * | 2015-07-17 | 2017-01-18 | 阿里巴巴集团控股有限公司 | 多窗口显示键盘光标的方法及装置 |
| CN107484024A (zh) * | 2017-08-17 | 2017-12-15 | 四川长虹电器股份有限公司 | 基于webos智能电视系统利用热键实现全局悬浮菜单的方法 |
| CN108628650A (zh) * | 2018-03-20 | 2018-10-09 | 广州视源电子科技股份有限公司 | 触摸事件的处理方法、装置和智能交互设备 |
| CN108924029A (zh) * | 2018-04-11 | 2018-11-30 | 阿里巴巴集团控股有限公司 | 一种客服数据发送的方法及装置 |
| CN109828820A (zh) * | 2019-02-20 | 2019-05-31 | 广州视源电子科技股份有限公司 | 一种应用窗口的焦点刷新方法、装置、存储介质及终端 |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103455234A (zh) * | 2012-06-01 | 2013-12-18 | 腾讯科技(深圳)有限公司 | 显示应用程序界面的方法及装置 |
| US8443297B1 (en) * | 2012-06-15 | 2013-05-14 | Google Inc. | Dimming a window that is out of focus |
| CN103513857B (zh) * | 2012-06-28 | 2017-12-19 | 北京奇虎科技有限公司 | 不规则窗口中的消息处理方法及装置 |
| CN107301009A (zh) * | 2017-06-15 | 2017-10-27 | 深圳市金立通信设备有限公司 | 一种移除Toast消息框的方法、终端及计算机可读存储介质 |
-
2019
- 2019-02-20 CN CN201910126533.7A patent/CN109828820B/zh active Active
- 2019-12-11 WO PCT/CN2019/124564 patent/WO2020168790A1/zh not_active Ceased
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101639755A (zh) * | 2009-09-10 | 2010-02-03 | 腾讯科技(深圳)有限公司 | 一种支持图片输入的方法和设备 |
| CN103440193A (zh) * | 2013-09-12 | 2013-12-11 | 广东电子工业研究院有限公司 | 一种快速记录选中信息的方法 |
| CN106339174A (zh) * | 2015-07-17 | 2017-01-18 | 阿里巴巴集团控股有限公司 | 多窗口显示键盘光标的方法及装置 |
| CN107484024A (zh) * | 2017-08-17 | 2017-12-15 | 四川长虹电器股份有限公司 | 基于webos智能电视系统利用热键实现全局悬浮菜单的方法 |
| CN108628650A (zh) * | 2018-03-20 | 2018-10-09 | 广州视源电子科技股份有限公司 | 触摸事件的处理方法、装置和智能交互设备 |
| CN108924029A (zh) * | 2018-04-11 | 2018-11-30 | 阿里巴巴集团控股有限公司 | 一种客服数据发送的方法及装置 |
| CN109828820A (zh) * | 2019-02-20 | 2019-05-31 | 广州视源电子科技股份有限公司 | 一种应用窗口的焦点刷新方法、装置、存储介质及终端 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109828820B (zh) | 2021-08-20 |
| CN109828820A (zh) | 2019-05-31 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP7366976B2 (ja) | コンピューティング装置の通知のための通知チャネル | |
| US9965039B2 (en) | Device and method for displaying user interface of virtual input device based on motion recognition | |
| US20210349566A1 (en) | Device, Method, and User Interface for Processing Intensity of Touch Contacts | |
| US12353798B2 (en) | Condensed spoken utterances for automated assistant control of an intricate application GUI | |
| US9646145B2 (en) | Method and system for dynamically assignable user interface | |
| KR102033198B1 (ko) | 제스처 또는 터치를 통해 사용자 인터페이스를 제어하는 최적화 기법 | |
| US20110115814A1 (en) | Gesture-controlled data visualization | |
| US20170010771A1 (en) | Systems, Devices, and Methods for Dynamically Providing User Interface Controls at a Touch-Sensitive Secondary Display | |
| US9857955B2 (en) | Dynamic, optimized placement of computer-based windows | |
| WO2020168790A1 (zh) | 应用窗口的焦点刷新方法、装置、存储介质及终端 | |
| CN117270746A (zh) | 多显示器设备中的应用启动 | |
| US9804767B2 (en) | Light dismiss manager | |
| TW201502960A (zh) | 用於在鎖定螢幕上的動作之使用者定義式捷徑 | |
| CN107077287A (zh) | 启动和切换界面的应用 | |
| US20240385692A1 (en) | Two-handed gesture interpretation | |
| US11237699B2 (en) | Proximal menu generation | |
| US9037958B2 (en) | Dynamic creation of user interface hot spots | |
| CN113282213A (zh) | 界面显示方法及装置 | |
| CN113934501B (zh) | 翻译方法、装置、存储介质及电子设备 | |
| CN115562544A (zh) | 一种显示设备及撤销方法 | |
| CN119166004A (zh) | 信息交互方法、装置、电子设备、存储介质和程序产品 | |
| US10747403B2 (en) | Adaptable user input interface | |
| CN113360074B (zh) | 软键盘显示方法、相关装置及计算机程序产品 | |
| US11543932B1 (en) | Rule-based prioritization and activation of overlapping screen areas using pointing device | |
| BR112020024441A2 (pt) | método, dispositivo de computação local e mídia legível por computador não transitória para compartilhamento de área de trabalho através de uma conexão de soquete da web em um espaço de trabalho de colaboração em rede |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19915927 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 19915927 Country of ref document: EP Kind code of ref document: A1 |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 19915927 Country of ref document: EP Kind code of ref document: A1 |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 24/02/2022) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 19915927 Country of ref document: EP Kind code of ref document: A1 |


