[go: up one dir, main page]

CN112987993A - Method, device, equipment and medium for determining display position - Google Patents

Method, device, equipment and medium for determining display position Download PDF

Info

Publication number
CN112987993A
CN112987993A CN202110285758.4A CN202110285758A CN112987993A CN 112987993 A CN112987993 A CN 112987993A CN 202110285758 A CN202110285758 A CN 202110285758A CN 112987993 A CN112987993 A CN 112987993A
Authority
CN
China
Prior art keywords
window
focus
webpage
identification information
mouse
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.)
Pending
Application number
CN202110285758.4A
Other languages
Chinese (zh)
Inventor
张�杰
安晓江
胡伯良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Haitai Fangyuan High Technology Co Ltd
Original Assignee
Beijing Haitai Fangyuan High Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Haitai Fangyuan High Technology Co Ltd filed Critical Beijing Haitai Fangyuan High Technology Co Ltd
Priority to CN202110285758.4A priority Critical patent/CN112987993A/en
Publication of CN112987993A publication Critical patent/CN112987993A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method, a device, equipment and a medium for determining a display position, which are used for accurately determining the display position of input content. According to the embodiment of the invention, when the mouse staying position where the mouse moving event is received is located in the first webpage window, the first identification information of the first webpage window is determined, whether the first identification information is the same as the second identification information of the second webpage window where the mouse clicking position where the mouse clicking event occurs last time is judged, and even if the first identification information is different from the second identification information, the input content can be displayed in the second webpage window based on the determined position of the focus, so that the content input by a user and the like can be still displayed in the second webpage window where the mouse clicking position exists, the display position of the input content is not influenced by the occurring mouse moving event, the display position of the input content can be accurately determined, and the accuracy of determining the display position is improved.

Description

Method, device, equipment and medium for determining display position
Technical Field
The present invention relates to the field of display position determination technologies, and in particular, to a method, an apparatus, a device, and a medium for determining a display position.
Background
The network permeates all walks of life in the present society, and becomes a technology that the production and the life of users are increasingly inseparable. Data query and entry through web windows, video viewing, listening to music, shopping, etc. have become the choice of many users. Wherein the web page window may include a parent window and a child window.
Fig. 1 is a schematic structural diagram of a web page window provided in the prior art, and as shown in fig. 1, a web page window in a display Interface of an electronic device is taken as a browser window and a plug-in window, where the browser window is a parent window of the plug-in window, that is, the browser window is a parent window, the plug-in window is a child window, a User Interface (UI) frame of the browser window is developed by using a Linux operating system, and the plug-in is developed by using a GtkPlug technology.
When the mouse click position is located in the browser window (for convenience of description, any position of the browser window except for the plug-in window is referred to as the browser window, and the position of the plug-in window is referred to as the plug-in window), it may be considered that the user wants to display the input information in the browser window, the position of the focus may be set in the browser window, the content input by the user and the like may be received based on the browser window, and the content input by the user and the like may be displayed in the browser window.
After the position of the focus is set to the browser window, if a mouse movement event occurs, for example, a mouse stopping position of the mouse movement event is not located in any web page window, is located at a position outside the web page window in the display interface (e.g., position P1 in the figure), or is still located in the browser window (e.g., position P2 in the figure), the content input by the user or the like may still be displayed in the browser window at this time. However, if the user carelessly moves the mouse rest position to the plug-in window (e.g., the P3 position in the figure), the focus position may be erroneously set in the plug-in window, the browser window may lose the focus position, and the content input by the user or the like may be erroneously displayed in the plug-in window.
As can be seen from the above description, the prior art has a problem of low accuracy in determining the display position of the input content.
Disclosure of Invention
The invention provides a method, a device, equipment and a medium for determining a display position, which are used for accurately determining the display position of input content.
In a first aspect, the present invention provides a method of determining a display position, the method comprising:
if the mouse stopping position of the received mouse moving event is located in a first webpage window, determining first identification information of the first webpage window, and judging whether the first identification information is the same as second identification information of a second webpage window where a mouse clicking position where a mouse clicking event occurs last time is located;
if not, determining the position of the focus, wherein the content input based on the position is displayed in the second webpage window.
Further, if the first webpage window is a child window of the second webpage window, the determining the position of the focus includes:
and setting the position of the focus in a preset focus proxy window, wherein the focus proxy window is a child window of the second webpage window.
Further, if the first webpage window is a parent window of the second webpage window, the determining the position of the focus includes:
setting the position of the focus in the second webpage window.
Further, if the first identification information is the same as the second identification information, the method further includes:
maintaining the position of the focus in the second webpage window.
Further, the method further comprises:
and if the mouse stopping position of the received mouse moving event is not positioned in any webpage window, keeping the position of the focus in the second webpage window.
In a second aspect, the present invention provides an apparatus for determining a display position, the apparatus comprising:
the judging module is used for determining first identification information of a first webpage window if the mouse stopping position of the received mouse moving event is positioned in the first webpage window, and judging whether the first identification information is the same as second identification information of a second webpage window where the mouse clicking position of the last mouse clicking event occurs;
and the display module is used for determining the position of the focus if the first identification information is different from the second identification information, wherein the content input based on the position is displayed in the second webpage window.
Further, the display module is specifically configured to set the position of the focus in a preset focus proxy window if the first web page window is a child window of the second web page window, where the focus proxy window is a child window of the second web page window.
Further, the display module is specifically configured to set the position of the focus in the second webpage window if the first webpage window is a parent window of the second webpage window.
Further, the display module is further configured to keep the position of the focus in the second webpage window if the first identification information is the same as the second identification information.
Further, the display module is further configured to keep the position of the focus in the second webpage window if the mouse stopping position of the received mouse moving event is not located in any webpage window.
In a third aspect, the invention provides an electronic device comprising at least a processor and a memory, the processor being adapted to carry out the steps of the method of determining a display position as described in any one of the above when executing a computer program stored in the memory.
In a fourth aspect, the invention provides a computer-readable storage medium, in which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the method for determining a display position as set forth in any of the above.
According to the embodiment of the invention, when the mouse staying position where the mouse moving event is received is located in the first webpage window, the first identification information of the first webpage window is determined, whether the first identification information is the same as the second identification information of the second webpage window where the mouse clicking position where the mouse clicking event occurs last time is judged, and even if the first identification information is different from the second identification information, the input content can be displayed in the second webpage window based on the determined position of the focus, so that the content input by a user and the like can be still displayed in the second webpage window where the mouse clicking position exists, the display position of the input content is not influenced by the occurring mouse moving event, the display position of the input content can be accurately determined, and the accuracy of determining the display position is improved.
Drawings
Fig. 1 is a schematic diagram of a web page window structure provided in the prior art;
FIG. 2 is a schematic diagram of a first process for determining a display position according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a second process for determining a display position according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a third process for determining a display position according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating a fourth process for determining a display position according to an embodiment of the present invention;
FIG. 6 is a diagram illustrating an apparatus for determining a display position according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application clearer, the present application will be described in further detail with reference to the accompanying drawings, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and in the claims, as well as in the drawings, are used for distinguishing between similar or analogous objects or entities and not necessarily for describing a particular sequential or chronological order, unless otherwise indicated. It is to be understood that the terms so used are interchangeable under appropriate circumstances.
In order to accurately determine a display position, embodiments of the present invention provide a method, an apparatus, a device, and a medium for determining a display position.
Example 1:
fig. 2 is a schematic diagram of a first process for determining a display position according to an embodiment of the present invention, where the process includes the following steps:
s201: if the mouse stopping position of the received mouse moving event is located in a first webpage window, determining first identification information of the first webpage window, and judging whether the first identification information is the same as second identification information of a second webpage window where a mouse clicking position where a mouse clicking event occurs last time is located, if not, performing S202; if yes, proceed to S203.
The method for determining the display position provided by the embodiment of the invention is applied to electronic equipment, and the electronic equipment can be equipment such as a PC (personal computer), a mobile terminal and the like, and can also be a server and the like.
In a possible implementation manner, if a user or the like triggers a mouse movement event, the electronic device may receive the mouse movement event and may determine a mouse stopping position of the mouse movement event, where determining the mouse stopping position of the mouse movement event may adopt the prior art, and details are not described herein. Meanwhile, in order to distinguish different web page windows, different web page windows may correspond to different identification information, where the identification information of a web page window may be flexibly set according to a requirement, and this is not specifically limited in the embodiment of the present invention. In a possible implementation manner, if the mouse stopping position of the received mouse moving event is located in the first webpage window, the first identification information of the first webpage window where the mouse stopping position of the mouse moving event is located may be determined, and at the same time, the second identification information of the second webpage window where the mouse clicking position of the last mouse clicking event occurs may be obtained.
In order to accurately determine the display position, it may be determined whether the first webpage window and the second webpage window are the same webpage window. In a possible implementation manner, whether the first webpage window and the second webpage window are the same webpage window may be determined by determining whether the first identification information and the second identification information are the same.
S202: and determining the position of the focus, wherein the focus is displayed in the second webpage window based on the content input at the position.
In one possible embodiment, if the first identification information is different from the second identification information, it may be considered that the first web page window where the mouse stays and the second web page window where the mouse click event exists are not the same web page window, and in order to accurately determine the display position, the position of the focus may be determined first, and when determining the position of the focus, the position of the focus may be set in the second web page window or the like, considering that, in general, a user usually wants to display the input content in the second web page window where the mouse click position where the mouse click event occurred last time.
After the position of the focus is determined, the content input by a user and the like can be received by receiving a keyboard input event and the like based on the position of the focus, and the received content is displayed in the second webpage window, so that the input content can be still displayed in the second webpage window where the mouse click position is located, and the display position of the input content is not influenced by the occurrence of a mouse movement event.
S203: maintaining the position of the focus in the second webpage window.
In a possible implementation manner, if the first identification information is the same as the second identification information, it may be considered that the first webpage window where the mouse stays and the second webpage window where the mouse click event locates are the same webpage window, and the position of the focus may still be maintained in the second webpage window, so that the content input by the user and the like may continue to be received by receiving the keyboard input event and the like based on the position of the focus, and the received content may continue to be displayed in the second webpage window.
In one possible implementation, when the mouse movement event is received, if it is determined that the mouse stopping position of the received mouse movement event is not located in any web page window but located at any position outside the web page window in the display interface (see position P1 in fig. 1), the position of the focus may still be saved in the second web page window where the mouse click position of the last mouse click event occurred, as in S203, so that the content input by the user or the like may continue to be received by receiving the keyboard input event or the like based on the position of the focus, and the received content may continue to be displayed in the second web page window.
According to the embodiment of the invention, when the mouse staying position where the mouse moving event is received is located in the first webpage window, the first identification information of the first webpage window is determined, whether the first identification information is the same as the second identification information of the second webpage window where the mouse clicking position where the mouse clicking event occurs last time is judged, and even if the first identification information is different from the second identification information, the input content can be displayed in the second webpage window based on the determined position of the focus, so that the content input by a user and the like can be still displayed in the second webpage window where the mouse clicking position exists, the display position of the input content is not influenced by the occurring mouse moving event, the display position of the input content can be accurately determined, and the accuracy of determining the display position is improved.
Example 2:
in order to accurately determine the position of the focus, on the basis of the foregoing embodiment, in an embodiment of the present invention, if the first web page window is a child window of the second web page window, the determining the position of the focus includes:
and setting the position of the focus in a preset focus proxy window, wherein the focus proxy window is a child window of the second webpage window.
In a possible implementation manner, if the first web page window is a child window of the second web page window, for convenience of description, in the embodiment of the present invention, the first web page window is referred to as a child window, and the second web page window is referred to as a parent window, and it may be considered that the input content needs to be displayed in the parent window.
In general, for example, the parent window is a browser window, the child window is a plug-in window, the UI framework of the browser window is developed by using the Linux operating system, and when the plug-in is developed by using the GtkPlug technology, when the mouse stopping position is located in the child window and the mouse clicking position is located in the parent window, the position of the focus is usually set in the child window by default. If the position of the focus is simply set in the parent window, there may be a case where the position of the focus is preempted again from the parent window and the position of the focus is set in the child window, so that there may be a problem that the position of the focus is switched back and forth between the parent window and the child window, resulting in switching back and forth between the parent window and the child window of the display position of the content input by the user or the like.
In order to accurately determine the display position, in one possible implementation, when the first webpage window where the mouse stopping position of the mouse moving event is located is a child window, and the second webpage window where the mouse clicking position of the last mouse clicking event occurs is a parent window, the position of the focus may be set in a preset focus proxy window, which is a child window of the second webpage window. In addition, the area where the focus agent window is located is usually located outside the display interface, that is, the mouse resting position of the mouse movement event and the mouse click position of the mouse click event cannot be usually located in the focus agent window, and when the position of the focus is located in the focus agent window, when content input by a user or the like is received based on the focus agent window, the content can be displayed in the second display window (parent window).
In one possible embodiment, the focus proxy window may not be a parent window of any other web page window, may be only a child window of the second web page window, and the size of the focus proxy window may be set relatively small, for example, may be 1 pixel (px) × 1px, or the like.
According to the embodiment of the invention, when the first webpage window is a child window and the second webpage window is a parent window, the position of the focus is set in the preset focus proxy window, so that the input content is displayed in the second webpage window, and the accuracy of determining the display position is improved.
Example 3:
in order to accurately determine the position of the focus, on the basis of the foregoing embodiments, in an embodiment of the present invention, if the first webpage window is a parent window of the second webpage window, the determining the position of the focus includes:
setting the position of the focus in the second webpage window.
In one possible embodiment, when the first web page window where the mouse stopping position of the mouse moving event is located is a parent window and the second web page window where the mouse clicking position of the last mouse clicking event is located is a child window, it may be considered that the user wants to display the input content in the child window, and in order to set the display position of the input content in the child window, the position of the focus may be set in the child window (second web page window). In general, the child window gets a higher priority of the position of focus than the parent window, so when the position of focus is set in the second web page window (child window), it is possible to receive the content input by the user or the like by receiving a keyboard input event or the like based on the second web page window and display the content in the second web page window.
For convenience of understanding, the process of determining the display position provided by the embodiment of the present invention is described below by a specific embodiment. Fig. 3 is a schematic diagram of a second process for determining a display position according to an embodiment of the present invention, as shown in fig. 3, the process includes the following steps:
s301: and receiving a mouse click event, and determining second identification information of a second webpage window where a mouse click position of the mouse click event is located.
In which the position of the current focus may be set in a second web page window in which contents input by the user or the like are displayed.
S302: if the mouse stopping position of the received mouse moving event is located in the first webpage window, determining first identification information of the first webpage window, and judging whether the first identification information is the same as second identification information of a second webpage window where a mouse clicking position where the mouse clicking event occurs last time is located, if not, performing S303.
S303: judging whether the first webpage window is a child window of the second webpage window, if so, performing S304; otherwise, if the first webpage window is the parent window of the second webpage window, S305 is performed.
S304: and setting the position of the focus in a preset focus proxy window, wherein the focus proxy window is a child window of the second webpage window. The content entered based on the focus agent window will be displayed in the second web page window.
S305: and setting the position of the focus in a second webpage window, and displaying the input content in the second webpage window.
In a possible implementation manner, the electronic device may include a processor, a focus determination unit, and a forwarding unit, where the focus determination unit and the forwarding unit are respectively connected to the processor, and for convenience of understanding, the process of determining a display position provided in the embodiment of the present invention is described below by using a specific embodiment. Fig. 4 is a schematic diagram of a third process for determining a display position according to an embodiment of the present invention, as shown in fig. 4, the process includes the following steps:
s401: if the processor in the electronic device receives the mouse moving event and determines that the mouse stopping position of the mouse moving event is located in the first webpage window, determining first identification information of the first webpage window, and judging whether the first identification information is the same as second identification information of the second webpage window where the mouse clicking position of the last mouse clicking event occurs, if not, performing S402.
S402: the processor judges whether the first webpage window is a child window of the second webpage window, if so, the S403 is carried out; otherwise, if the first webpage window is the parent window of the second webpage window, S404 is performed.
S403: the processor determines the display position as the first display identification (Flag 1) of the parent window. And the focus determining unit sets the position of the focus in a preset focus proxy window according to the first display identifier, wherein the focus proxy window is a child window of the second webpage window. The forwarding unit forwards the received content to a second webpage window when receiving the input content based on the focus proxy window, and displays the input content in the second webpage window.
S404: the processor determines the display position as the second display identification (Flag 2) of the sub-window. The focus determining unit sets the position of the focus in a second web page window (sub-window) according to the second display identifier, and displays the input content in the second web page window.
For convenience of understanding, on the basis of the above embodiments, the following describes a process for determining a display position according to an embodiment of the present invention by using a specific embodiment. Fig. 5 is a schematic diagram of a fourth process for determining a display position according to an embodiment of the present invention, as shown in fig. 5, in a possible implementation, when receiving a content input by a user through a keyboard input event or the like at a position of a focus, in order to ensure accuracy of the display position, it may be further determined whether the position of the current focus is located in a focus proxy window; if so, the first webpage window where the mouse stopping position is located may be considered as a child window, and the second webpage window where the mouse clicking position where the mouse clicking event occurred last time is located is a parent window, and the input content needs to be displayed in the parent window, and the content input based on the focus proxy window may be forwarded to the parent window (the second webpage window, such as a browser window) through the forwarding unit, so as to display the input content in the parent window.
Otherwise, if the current focus position is not located in the focus proxy window, the first webpage window where the mouse stays may be considered as a parent window, the second webpage window at the mouse click position where the mouse click event occurs last time is a child window, and the current focus position is located in the second webpage window, the input content may be displayed in the second webpage window (e.g., a plug-in window).
Example 4:
on the basis of the foregoing embodiments, fig. 6 is a schematic diagram of an apparatus for determining a display position according to an embodiment of the present invention, and as shown in fig. 6, the apparatus includes:
the judging module 61 is configured to determine first identification information of a first web page window if a mouse stopping position of a received mouse moving event is located in the first web page window, and judge whether the first identification information is the same as second identification information of a second web page window where a mouse clicking position where a mouse clicking event occurs last time;
a display module 62, configured to determine a position of the focus if the first identification information is different from the second identification information, where content input based on the position is displayed in the second webpage window.
In a possible implementation manner, the display module 62 is specifically configured to set the position of the focus in a preset focus proxy window if the first webpage window is a child window of the second webpage window, where the focus proxy window is a child window of the second webpage window.
In a possible implementation manner, the display module 62 is specifically configured to set the position of the focus in the second webpage window if the first webpage window is a parent window of the second webpage window.
In a possible implementation manner, the display module 62 is further configured to keep the position of the focus in the second webpage window if the first identification information is the same as the second identification information.
In a possible implementation manner, the display module 62 is further configured to maintain the position of the focus in the second webpage window if the mouse stopping position of the received mouse moving event is not located in any webpage window.
According to the embodiment of the invention, when the mouse staying position where the mouse moving event is received is located in the first webpage window, the first identification information of the first webpage window is determined, whether the first identification information is the same as the second identification information of the second webpage window where the mouse clicking position where the mouse clicking event occurs last time is judged, and even if the first identification information is different from the second identification information, the input content can be displayed in the second webpage window based on the determined position of the focus, so that the content input by a user and the like can be still displayed in the second webpage window where the mouse clicking position exists, the display position of the input content is not influenced by the occurring mouse moving event, the display position of the input content can be accurately determined, and the accuracy of determining the display position is improved.
Example 5:
on the basis of the foregoing embodiments, an embodiment of the present invention further provides an electronic device, and fig. 7 is a schematic structural diagram of the electronic device provided in the embodiment of the present invention, and as shown in fig. 7, the electronic device includes: the system comprises a processor 71, a communication interface 72, a memory 73 and a communication bus 74, wherein the processor 71, the communication interface 72 and the memory 73 are communicated with each other through the communication bus 74;
the memory 73 has stored therein a computer program which, when executed by the processor 71, causes the processor 71 to perform the steps of:
if the mouse stopping position of the received mouse moving event is located in a first webpage window, determining first identification information of the first webpage window, and judging whether the first identification information is the same as second identification information of a second webpage window where a mouse clicking position where a mouse clicking event occurs last time is located;
and if the first identification information is different from the second identification information, determining the position of the focus, wherein the focus is displayed in the second webpage window based on the content input at the position.
In a possible implementation manner, the processor 71 is specifically configured to set the position of the focus in a preset focus proxy window if the first web page window is a child window of the second web page window, where the focus proxy window is a child window of the second web page window.
In a possible implementation manner, the processor 71 is specifically configured to set the position of the focus in the second webpage window if the first webpage window is a parent window of the second webpage window.
In a possible implementation, the processor 71 is further configured to maintain the position of the focus in the second web page window if the first identification information is the same as the second identification information.
In a possible implementation, the processor 71 is further configured to maintain the position of the focus in the second web page window if the mouse stopping position of the received mouse moving event is not located in any web page window.
Because the principle of the electronic device for solving the problem is similar to the method for determining the display position, the implementation of the electronic device may refer to the implementation of the method, and repeated details are not repeated.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface 72 is used for communication between the above-described electronic apparatus and other apparatuses.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory.
The Processor may be a general-purpose Processor, including a central processing unit, a Network Processor (NP), and the like; but may also be a Digital instruction processor (DSP), an application specific integrated circuit, a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like.
Example 6:
on the basis of the foregoing embodiments, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program executable by an electronic device is stored, and when the program is run on the electronic device, the electronic device is caused to execute the following steps:
if the mouse stopping position of the received mouse moving event is located in a first webpage window, determining first identification information of the first webpage window, and judging whether the first identification information is the same as second identification information of a second webpage window where a mouse clicking position where a mouse clicking event occurs last time is located;
if not, determining the position of the focus, wherein the content input based on the position is displayed in the second webpage window.
In a possible implementation manner, if the first web page window is a child window of the second web page window, the determining the position of the focus includes:
and setting the position of the focus in a preset focus proxy window, wherein the focus proxy window is a child window of the second webpage window.
In a possible implementation manner, if the first web page window is a parent window of the second web page window, the determining the position of the focus includes:
setting the position of the focus in the second webpage window.
In a possible implementation manner, if the first identification information is the same as the second identification information, the method further includes:
maintaining the position of the focus in the second webpage window.
In one possible embodiment, the method further comprises:
and if the mouse stopping position of the received mouse moving event is not positioned in any webpage window, keeping the position of the focus in the second webpage window.
The computer-readable storage medium may be any available medium or data storage device that can be accessed by a processor in an electronic device, including but not limited to magnetic memory such as floppy disks, hard disks, magneto-optical disks (MO), etc., optical memory such as CDs, DVDs, BDs, HVDs, etc., and semiconductor memory such as ROMs, EPROMs, EEPROMs, non-volatile memories (NAND FLASH), Solid State Disks (SSDs), etc.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A method of determining a display location, the method comprising:
if the mouse stopping position of the received mouse moving event is located in a first webpage window, determining first identification information of the first webpage window, and judging whether the first identification information is the same as second identification information of a second webpage window where a mouse clicking position where a mouse clicking event occurs last time is located;
if not, determining the position of the focus, wherein the content input based on the position is displayed in the second webpage window.
2. The method of claim 1, wherein if the first webpage window is a child window of the second webpage window, the determining the position of the focus comprises:
and setting the position of the focus in a preset focus proxy window, wherein the focus proxy window is a child window of the second webpage window.
3. The method of claim 1, wherein if the first webpage window is a parent window of the second webpage window, the determining the position of the focus comprises:
setting the position of the focus in the second webpage window.
4. The method of claim 1, wherein if the first identification information is the same as the second identification information, the method further comprises:
maintaining the position of the focus in the second webpage window.
5. The method of claim 1, further comprising:
and if the mouse stopping position of the received mouse moving event is not positioned in any webpage window, keeping the position of the focus in the second webpage window.
6. An apparatus for determining a display position, the apparatus comprising:
the judging module is used for determining first identification information of a first webpage window if the mouse stopping position of the received mouse moving event is positioned in the first webpage window, and judging whether the first identification information is the same as second identification information of a second webpage window where the mouse clicking position of the last mouse clicking event occurs;
and the display module is used for determining the position of the focus if the first identification information is different from the second identification information, wherein the content input based on the position is displayed in the second webpage window.
7. The apparatus according to claim 6, wherein the display module is specifically configured to set the position of the focus in a preset focus proxy window if the first web page window is a child window of the second web page window, where the focus proxy window is a child window of the second web page window.
8. The apparatus of claim 6, wherein the display module is specifically configured to set the position of the focus in the second webpage window if the first webpage window is a parent window of the second webpage window.
9. An electronic device, characterized in that the electronic device comprises at least a processor and a memory, the processor being adapted to carry out the steps of the method of determining a display position according to any of claims 1-5 when executing a computer program stored in the memory.
10. A computer-readable storage medium, characterized in that it stores a computer program which, when being executed by a processor, carries out the steps of the method of determining a display position according to any one of claims 1 to 5.
CN202110285758.4A 2021-03-17 2021-03-17 Method, device, equipment and medium for determining display position Pending CN112987993A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110285758.4A CN112987993A (en) 2021-03-17 2021-03-17 Method, device, equipment and medium for determining display position

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110285758.4A CN112987993A (en) 2021-03-17 2021-03-17 Method, device, equipment and medium for determining display position

Publications (1)

Publication Number Publication Date
CN112987993A true CN112987993A (en) 2021-06-18

Family

ID=76332848

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110285758.4A Pending CN112987993A (en) 2021-03-17 2021-03-17 Method, device, equipment and medium for determining display position

Country Status (1)

Country Link
CN (1) CN112987993A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102460344A (en) * 2009-06-19 2012-05-16 莫门特美国股份有限公司 Systems and methods for dynamic background user interface(s)
US20180018304A1 (en) * 2016-07-14 2018-01-18 Intent Media, Inc. Graphical user interface and system for viewing landing page content

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102460344A (en) * 2009-06-19 2012-05-16 莫门特美国股份有限公司 Systems and methods for dynamic background user interface(s)
US20180018304A1 (en) * 2016-07-14 2018-01-18 Intent Media, Inc. Graphical user interface and system for viewing landing page content

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
MIAN7BAO: "Linux 焦点模型分析", 《道客巴巴》 *

Similar Documents

Publication Publication Date Title
TWI690812B (en) Method, device and client for dynamic layout of page elements
CN107038042B (en) Service execution method and device
US20180183651A1 (en) Content push method and server, and terminal
CN110941779B (en) Page loading method and device, storage medium and electronic equipment
CN105827510A (en) Push message processing method for mobile terminal, and mobile terminal
CN110764849A (en) Rendering method and device for user interface, client device and electronic device
CN110377341B (en) Method, device, medium and electronic equipment for monitoring no-response exception
CN111880990B (en) Exception handling method and device
CN107045546B (en) Webpage processing method and device and intelligent terminal
CN105094841A (en) Page commenting method and device
CN105376719A (en) Information pushing method and device
CN113434063B (en) An information display method, device and equipment
CN113296841A (en) Application program processing method, device, equipment and medium
WO2024221877A1 (en) Content editing method and apparatus, and device and storage medium
CN106547486A (en) A data migration method and device
CN103257881A (en) Plug-in operation method based on browser, browser device and terminal
CN111046290A (en) Advertisement processing method and device, electronic equipment and storage medium
CN107908679B (en) Script statement conversion method and device and computer readable storage medium
CN104503674A (en) Screenshot picture generating method
CN111414207A (en) Page construction method, device and equipment
CN111459581A (en) Page switching method and device, electronic equipment and computer readable medium
CN112987993A (en) Method, device, equipment and medium for determining display position
CN111639007B (en) Data processing method, device, terminal and computer readable storage medium
CN110858115A (en) Application display method, device, system, terminal and storage medium
CN116010016A (en) Method, device, electronic equipment and medium for switching abnormal languages of service by system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210618