Check patentability & draft patents in minutes with Patsnap Eureka AI!

Cursor control method and device

A cursor control and position display technology, applied in the computer field, can solve problems such as no user setting, cursor user can not be clearly defined, etc., to achieve the effect of good compatibility

Active Publication Date: 2022-02-25
GUANGZHOU PINWEI SOFTWARE
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The present invention provides a cursor control method and device, which solves the technical problem in the prior art that the user cannot specify the content input position because the user's cursor is not set.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Cursor control method and device
  • Cursor control method and device
  • Cursor control method and device

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0044] The present invention provides a first embodiment of a cursor control method, including:

[0045] 101. When the selected object is an input box, determine whether the browser supports the DOM activeElement attribute of H5.

[0046] It should be noted that the DOM activeElement attribute is an attribute of H5, which belongs to the prior art, and will not be described in detail here.

[0047] 102. If the browser supports the DOM activeElement attribute of H5, call the DOM activeElement attribute, and set the start position and end position of the selection area to be the same, so as to display the cursor in the input box.

[0048] In the DOM activeElement attribute, selectionStart and selectionEnd represent the start position and end position of the selection area respectively, and setting the start position and end position of the selection area to be the same can realize displaying the cursor at a certain position.

[0049] 103. If the browser does not support the DOM ...

no. 2 example

[0052] The present invention provides a second embodiment of a cursor control method, including:

[0053] 201. Determine whether the object selected by the user in the browser is an input box.

[0054] Because in the browser, the user can select various objects, for example, it can be a button, an input box, a picture, or a text.

[0055] 202. When the selected object is an input box, determine whether the browser supports the DOM activeElement attribute of H5.

[0056] The content of step 202 is the same as that of step 101 in the first embodiment of the present application. For specific description, please refer to the content of step 101 in the first embodiment, and details are not repeated here.

[0057]203. If the browser supports the DOM activeElement attribute of H5, call the DOM activeElement attribute, and set the start position and end position of the selection area to be the same, so as to display the cursor in the input box.

[0058] The content of step 203 is th...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a cursor control method and device, comprising: when the selected object is an input box, judging whether the browser supports the DOM activeElement attribute of H5; if the browser supports the DOM activeElement attribute of H5, calling the DOM activeElement attribute, and Set the start position and end position of the selected area to be the same to display the cursor in the input box; if the browser does not support the DOM activeElement attribute of H5, call the Range object and set the start position and The end position is set to be the same to display the cursor in said input box. It solves the technical problem that the user's cursor is not set in the prior art, so that the user cannot know the content input position.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a cursor control method and device. Background technique [0002] At present, we often encounter some input scenarios of long strings of numbers, such as inputting bank cards, ID cards, etc. In order to facilitate users to input accurately, such as figure 1 As shown, some input partitions by digits are often made, but there is no good control of the input cursor problem. For example, the user's cursor is not set, and the cursor cannot be displayed in the input box, so that the user cannot clearly enter the content. Location. Contents of the invention [0003] The invention provides a cursor control method and device, which solves the technical problem in the prior art that the user's cursor is not set, which causes the user to be unable to specify the content input position. [0004] The present invention provides a cursor control method, including: [0005] When the selec...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/451G06F3/0481
CPCG06F3/0481G06F9/451
Inventor 香伟健
Owner GUANGZHOU PINWEI SOFTWARE
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More