CN113821133A - Method for controlling cursor movement, content selection method, method for controlling page scrolling and electronic equipment - Google Patents

Method for controlling cursor movement, content selection method, method for controlling page scrolling and electronic equipment Download PDF

Info

Publication number
CN113821133A
CN113821133A CN202111003376.4A CN202111003376A CN113821133A CN 113821133 A CN113821133 A CN 113821133A CN 202111003376 A CN202111003376 A CN 202111003376A CN 113821133 A CN113821133 A CN 113821133A
Authority
CN
China
Prior art keywords
user
cursor
electronic device
edge
preset
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.)
Withdrawn
Application number
CN202111003376.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.)
Huawei Device Co Ltd
Original Assignee
Huawei Device 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 Huawei Device Co Ltd filed Critical Huawei Device Co Ltd
Priority to CN202111003376.4A priority Critical patent/CN113821133A/en
Publication of CN113821133A publication Critical patent/CN113821133A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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
    • G06F3/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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
    • G06F3/0488Interaction 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 using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction 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 using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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
    • G06F3/0488Interaction 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 using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction 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 using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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
    • G06F3/0489Interaction 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 using dedicated keyboard keys or combinations thereof
    • G06F3/04892Arrangements for controlling cursor position based on codes indicative of cursor displacements from one discrete location to another, e.g. using cursor control keys associated to different directions or using the tab key
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting

Abstract

The embodiment of the application discloses a method for controlling cursor movement, a content selection method, a page scrolling method and electronic equipment, and relates to the technical field of electronic equipment. The embodiment of the application discloses a method for controlling cursor movement, which aims to solve the problem that the efficiency of moving a cursor is low in the prior art. The method is applied to the electronic equipment and comprises the following steps: the electronic equipment displays a content editing area and a virtual keyboard area on a current interface, a cursor is displayed in the content editing area, and a virtual keyboard is displayed in the virtual keyboard area. The electronic equipment detects a first preset operation of a user, and responds to the first preset operation, the electronic equipment displays a cursor moving area in the virtual keyboard area. And the electronic equipment detects a second preset operation of the user within a preset time interval after the first preset operation, and responds to the second preset operation, and the electronic equipment controls the cursor to move in the content editing area. Wherein the first preset operation comprises any one of the following operations: clicking, pressing or sliding on a first edge of the electronic device; a tangential press operation within the virtual keyboard zone; and performing touch operation with the contact area of the virtual keyboard larger than a preset threshold value. The second preset operation includes any one of the following operations: a sliding operation within the cursor movement region, a tangential pressing operation, or a sliding operation at a second edge of the electronic device.

Description

Method for controlling cursor movement, content selection method, method for controlling page scrolling and electronic equipment
Technical Field
The present application relates to the field of electronic devices, and in particular, to a method for controlling cursor movement, a method for selecting content, a method for controlling page scrolling, and an electronic device.
Background
In the process of browsing a page or editing contents, there are cases where a user needs to move a cursor to adjust the position of text input. Referring to fig. 1, currently, in some electronic devices, a user can move a cursor 102 with a finger in a content editing area 101 to adjust the position of the cursor 102. Considering the position where the cursor 102 is occluded by a finger, a magnifying glass 103 is displayed above the content editing area 101 for magnifying and displaying the content where the finger occludes when the cursor 102 is moved by the finger. The user can observe and adjust the position of the cursor 102 through the magnifying glass 103. However, the magnifying glass 103 has limited contents and can only display partial contents. The user's line of sight needs to switch back and forth between the content displayed in the content editing area 101 and the content displayed in the magnifying glass 103 in order to adjust the cursor 102 to the target position. Therefore, the existing cursor moving method is inefficient.
Disclosure of Invention
The application provides a method for controlling cursor movement and electronic equipment, and aims to solve the problem that cursor movement efficiency is low in the prior art.
In a first aspect, a method for controlling cursor movement is provided, which is applied to an electronic device, and includes: the electronic equipment detects a first preset operation of a user. And responding to the first preset operation, and starting a cursor moving function by the electronic equipment. And the electronic equipment detects a second preset operation of the user within a preset time interval after the first preset operation. And responding to the second preset operation, and controlling the cursor to move by the electronic equipment.
The method can be applied to the scene that the electronic equipment currently displays the interface and the user wants to move the cursor in the process of browsing the interface. For example: the user opens applications such as word and electronic book on the mobile phone, and wants to position the cursor at a certain position to perform subsequent operations such as inserting comments at the position in the process of browsing pages of the applications.
In this scenario, the first preset operation includes any one of the following operations: a click operation, a press operation, or a slide operation at a first edge of the electronic device. Correspondingly, the starting of the cursor movement function by the electronic equipment comprises the following steps: the electronic device flashes a cursor within the current interface to indicate to the user that the cursor movement function has been turned on to move the cursor. Or the electronic equipment displays the cursor moving area in the current interface. The content editing area and the cursor moving area are not completely overlapped, namely the cursor moving area can be completely independent from the content editing area and has no overlapped part; or may partially overlap the content editing region. As long as the cursor movement region and the content editing region do not completely coincide. The second preset operation includes: a sliding operation at a second edge of the electronic device. If a virtual keyboard is displayed on the current interface, the cursor movement region can be overlaid (overlaid) or hovered over the virtual keyboard.
Optionally, the second edge and the first edge may be the same edge or different edges.
Through the method, when the electronic equipment detects the clicking, pressing or sliding operation of the user on the edge of the electronic equipment, the electronic equipment flickers the cursor to start the cursor moving function. The user may then slide on the edge of the electronic device to control cursor movement. Therefore, the method for controlling the cursor movement by sliding at the edge of the electronic device provided by the embodiment of the application can avoid the problem that the efficiency of moving the cursor by a user is low because a hand caused by moving the cursor by a finger in the content editing area can shield part of the content.
The method can also be applied to a content editing area included in an interface currently displayed by the electronic device, for example, when a user wants to move a cursor or perform positioning in the process of browsing articles or mails on a tablet computer.
The method can also be applied to the interface currently displayed by the electronic equipment, wherein the interface comprises a content editing area and a virtual keyboard area, a cursor is displayed in the content editing area, and a virtual keyboard is displayed in the virtual keyboard area. I.e. in the scenario where the user is editing the content. For example: when a user opens applications such as short messages and words on a mobile phone to edit texts, the user wants to move a cursor.
In this scenario, the first preset operation includes any one of the following operations: clicking, pressing or sliding on a first edge of the electronic device; a tangential press operation within the electronic device virtual keyboard zone; and performing touch operation with the contact area of the virtual keyboard larger than a preset threshold value. Correspondingly, the starting of the cursor movement function by the electronic equipment comprises the following steps: the electronic device displays a cursor movement region within the virtual keyboard region. The second preset operation includes any one of the following operations: a sliding operation or a tangential pressing operation within the cursor movement region; a sliding operation at a second edge of the electronic device.
Optionally, the second edge and the first edge may be the same edge or different edges.
Through the method, the user executes certain operations to control the cursor to move through the cursor moving area loaded on the edge of the electronic equipment or the virtual keyboard, and the problem that the efficiency of moving the cursor by the user is low because the hand of the user can shield part of content when the user moves the cursor by using the finger in the content editing area can be avoided.
In one possible design of the first aspect, the cursor movement region is used to display preset content associated with the cursor position.
In a possible design of the first aspect, when the second preset operation includes a sliding operation at the second edge of the electronic device, the moving direction of the cursor is associated with a sliding direction of the sliding operation of the user at the second edge of the electronic device. When the second preset operation comprises a sliding operation in the cursor moving area, the moving direction of the cursor is associated with the sliding direction of the sliding operation of the user in the cursor moving area. When the second preset operation comprises a tangential pressing operation in the cursor moving area, the moving direction of the cursor is associated with the tangential pressing direction of the tangential pressing operation of the user in the cursor moving area.
In a possible design of the first aspect, when the second preset operation includes a sliding operation at the second edge of the electronic device, the moving speed of the cursor is associated with a sliding speed of the sliding operation of the user at the second edge of the electronic device. When the second preset operation comprises a sliding operation in the cursor moving area, the moving speed of the cursor is associated with the sliding speed of the sliding operation of the user in the cursor moving area. When the second preset operation comprises a tangential pressing operation in the cursor moving area, the moving speed of the cursor is associated with the pressing force degree of the tangential pressing operation of the user in the cursor moving area.
In a second aspect, a content selection method is provided, which is applied to an electronic device, and includes: the electronic equipment detects a first preset operation of a user. Responding to the first preset operation, the electronic equipment displays a content selection control in a current interface, wherein the content selection control comprises a starting control and an ending control, and the content between the starting control and the ending control is selected content. And the electronic equipment detects a second preset operation of the user within a preset time interval after the first preset operation. And responding to the second preset operation, and the electronic equipment moves the starting control in the current interface. And the electronic equipment detects a third preset operation of the user within a preset time interval after the first preset operation. And responding to the third preset operation, and moving the tail control in the current interface by the electronic equipment.
Wherein the first preset operation comprises any one of the following operations: clicking, pressing and sliding on a first edge of the electronic device; the second preset operation includes: a sliding operation at a second edge of the electronic device; the third preset operation comprises a sliding operation at a third edge of the electronic device.
Wherein the second edge and the third edge are different.
By the method, when the electronic equipment detects that a user clicks, presses or slides on the edge of the electronic equipment, the content selection control is displayed to start the content selection function, and then the user controls the tail control and the start control of the content selection control to move by sliding on the edge of the electronic equipment, so that specific content is selected. The problem of inconvenient operation caused by that a user selects the content by moving the content selection control in the content editing frame can be avoided.
In one possible design of the second aspect, the moving direction of the start control is associated with a sliding direction of a sliding operation of a user at the second edge of the electronic device. The moving direction of the tail control is associated with the sliding direction of the sliding operation of the user at the third edge of the electronic equipment.
In one possible design of the second aspect, the movement speed of the start control is associated with a sliding speed of a sliding operation of a user at the second edge of the electronic device. The moving speed of the end control is associated with the sliding speed of the sliding operation of the user at the third edge of the electronic equipment.
In a possible design of the second aspect, the method is applied to a scenario in which a user edits content, that is, before the electronic device detects a first preset operation of the user, a content editing area and a virtual keyboard area are displayed on a current interface of the electronic device, a cursor is displayed in the content editing area, and a virtual keyboard is displayed in the virtual keyboard area. In this scenario, in response to the first preset operation, the electronic device displays the content selection control at the position of the cursor in the content editing area. In addition, in response to the first preset operation, the electronic equipment displays a content display area in the virtual keyboard area, and the content selected between the starting control and the ending control is displayed in the content display area.
In a third aspect, a method for controlling page scrolling is provided, which is applied to an electronic device, and includes: the electronic device displays a page. The electronic equipment detects a first preset operation of a user. And responding to the first preset operation, and starting a page scrolling function by the electronic equipment. And the electronic equipment detects a second preset operation of the user within a preset time interval after the first preset operation. And responding to the second preset operation, and the electronic equipment scrolls and displays the page.
Wherein the first preset operation comprises: pressing operation of a user on the first edge of the electronic equipment and/or touch operation of the user, wherein the contact area of the user and the first edge of the electronic equipment is larger than a preset area threshold; the second preset operation includes any one of the following operations: a tangential pressing operation or a sliding operation of a user at a second edge of the electronic device;
or, the first preset operation includes: pressing the page by a user and/or touching the page by the user, wherein the contact area of the user and the page is larger than a preset area threshold; the second preset operation includes: a tangential press operation of the user pressing the page.
Through the above method, the user controls page scrolling by pressing and applying a tangential force or sliding on the edge of the electronic device. Alternatively, the user controls the page scrolling by pressing the page and applying tangential force. The method can realize that the user can control the page scrolling display without moving the finger back and forth.
In a possible design of the third aspect, the scrolling direction of the page is associated with a tangential pressing direction when the user performs the tangential pressing operation.
In a possible design of the third aspect, the scrolling speed of the page is associated with a pressing force degree of the user performing the tangential pressing operation.
In a fourth aspect, an electronic device is provided, comprising: the display unit is used for displaying a content editing area and a virtual keyboard area, a cursor is displayed in the content editing area, and a virtual keyboard is displayed in the virtual keyboard area. The detection unit is used for detecting a first preset operation of a user. The display unit is further configured to display a cursor moving area in the virtual keyboard area in response to the first preset operation detected by the detection unit. The detection unit is further configured to detect a second preset operation of the user within a preset time interval after the first preset operation. And the control unit is used for responding to the second preset operation, and the electronic equipment controls the cursor to move in the content editing area.
The second edge and the first edge may be the same edge or different edges.
Wherein the first preset operation comprises any one of the following operations: clicking, pressing or sliding on a first edge of the electronic device; a tangential press operation within the virtual keyboard zone; touch operation with the contact area of the virtual keyboard larger than a preset threshold value;
the second preset operation includes any one of the following operations: a sliding operation within the cursor movement region, a tangential pressing operation, or a sliding operation at a second edge of the electronic device.
In one possible design of the fourth aspect, the cursor movement region is used to display preset content associated with the cursor position.
In a possible design of the fourth aspect, when the second preset operation includes a sliding operation at the second edge of the electronic device, the moving direction of the cursor is associated with a sliding direction of the sliding operation of the user at the second edge of the electronic device. When the second preset operation comprises a sliding operation in the cursor moving area, the moving direction of the cursor is associated with the sliding direction of the sliding operation of the user in the cursor moving area. When the second preset operation comprises a tangential pressing operation in the cursor moving area, the moving direction of the cursor is associated with the tangential pressing direction of the tangential pressing operation of the user in the cursor moving area.
In a possible design of the fourth aspect, when the second preset operation includes a sliding operation at the second edge of the electronic device, the moving speed of the cursor is associated with a sliding speed of the sliding operation of the user at the second edge of the electronic device. When the second preset operation comprises a sliding operation in the cursor moving area, the moving speed of the cursor is associated with the sliding speed of the sliding operation of the user in the cursor moving area. When the second preset operation comprises a tangential pressing operation in the cursor moving area, the moving speed of the cursor is associated with the pressing force degree of the tangential pressing operation of the user in the cursor moving area.
For specific implementation of the fourth aspect and the beneficial effects thereof, reference may be made to the method described in the foregoing first aspect, and details are not repeated here.
In a fifth aspect, an electronic device is provided, comprising: the detection unit is used for detecting a first preset operation of a user. And the display unit is used for responding to the first preset operation and displaying a content selection control in a current interface displayed by the display unit, wherein the content selection control comprises a starting control and an ending control, and the content between the starting control and the ending control is selected content. The detection unit is further configured to detect a second preset operation of the user within a preset time interval after the first preset operation. And the control unit is used for responding to the second preset operation and moving the starting control in the current interface. The detection unit is further configured to detect a third preset operation of the user within a preset time interval after the first preset operation. And the control unit is also used for responding to the third preset operation and moving the tail control in the current interface.
Wherein the first preset operation comprises any one of the following operations: clicking, pressing and sliding on a first edge of the electronic device; the second preset operation includes: a sliding operation at a second edge of the electronic device; the third preset operation comprises a sliding operation at a third edge of the electronic device. Wherein the second edge and the third edge are different.
In one possible design of the fifth aspect, the moving direction of the start control is associated with a sliding direction of a sliding operation of a user at the second edge of the electronic device. The moving direction of the tail control is associated with the sliding direction of the sliding operation of the user at the third edge of the electronic equipment.
In one possible design of the fifth aspect, the movement speed of the start control is associated with a sliding speed of a sliding operation of a user at the second edge of the electronic device. The moving speed of the end control is associated with the sliding speed of the sliding operation of the user at the third edge of the electronic equipment.
In a possible design of the fifth aspect, the display unit is further configured to display a content editing area and a virtual keyboard area on a current interface of the electronic device, where a cursor is displayed in the content editing area and a virtual keyboard is displayed in the virtual keyboard area; the content selection control is further used for responding to the first preset operation and displaying the position of the cursor in the content editing area; and the virtual keyboard area is used for displaying a content display area in response to the first preset operation, and the content selected between the starting control and the ending control is displayed in the content display area.
For a specific implementation of the fifth aspect and its advantages, reference may be made to the method described in the foregoing second aspect, which is not described herein again.
In a sixth aspect, an electronic device is provided, comprising: and the display unit is used for displaying the page. The detection unit is used for detecting a first preset operation of a user. And the control unit is used for responding to the first preset operation detected by the detection unit and starting a page scrolling function. The detection unit is further configured to detect a second preset operation of the user within a preset time interval after the first preset operation. And the display unit is also used for responding to the second preset operation and displaying the page in a scrolling manner.
Wherein the first preset operation comprises: pressing operation of a user on the first edge of the electronic equipment and/or touch operation of the user, wherein the contact area of the user and the first edge of the electronic equipment is larger than a preset area threshold; the second preset operation includes any one of the following operations: a tangential pressing operation or a sliding operation of a user at a second edge of the electronic device;
or, the first preset operation includes: pressing the page by a user and/or touching the page by the user, wherein the contact area of the user and the page is larger than a preset area threshold; the second preset operation includes: a tangential press operation of the user pressing the page.
In a possible design of the sixth aspect, the scrolling direction of the page is associated with a tangential pressing direction when the user performs the tangential pressing operation.
In one possible design of the sixth aspect, the scrolling speed of the page is associated with a pressing force degree of the user performing the tangential pressing operation.
For specific implementation of the sixth aspect and beneficial effects thereof, reference may be made to the method described in the foregoing third aspect, and details are not repeated here.
In a seventh aspect, an electronic device is provided, including: one or more processors, a display, an input device, and a memory; wherein the memory stores one or more programs therein, the one or more programs comprising instructions which, when executed by the electronic device, cause the electronic device to perform the method of:
the display is used for displaying a current interface, the current interface comprises a content editing area and a virtual keyboard area, a cursor is displayed in the content editing area, and a virtual keyboard is displayed in the virtual keyboard area. The input device is used for detecting a first preset operation of a user. The display is further used for responding to the first preset operation detected by the input device and displaying a cursor moving area in the virtual keyboard area. The input device is further used for detecting a second preset operation of the user within a preset time interval after the first preset operation. The one or more processors are configured to control the cursor to move within the content editing area in response to the second preset operation.
Wherein the first preset operation comprises any one of the following operations: clicking, pressing or sliding on a first edge of the electronic device; a tangential press operation within the virtual keyboard zone; and performing touch operation with the contact area of the virtual keyboard larger than a preset threshold value. The second preset operation includes any one of the following operations: a sliding operation within the cursor movement region, a tangential pressing operation, or a sliding operation at a second edge of the electronic device.
In a possible design of the seventh aspect, the cursor movement region is used to display preset content associated with the cursor position.
In a possible design of the seventh aspect, when the second preset operation includes a sliding operation at the second edge of the electronic device, the moving direction of the cursor is associated with a sliding direction of the sliding operation of the user at the second edge of the electronic device. When the second preset operation comprises a sliding operation in the cursor moving area, the moving direction of the cursor is associated with the sliding direction of the sliding operation of the user in the cursor moving area. When the second preset operation comprises a tangential pressing operation in the cursor moving area, the moving direction of the cursor is associated with the tangential pressing direction of the tangential pressing operation of the user in the cursor moving area.
In a possible design of the seventh aspect, when the second preset operation includes a sliding operation at the second edge of the electronic device, the moving speed of the cursor is associated with a sliding speed of the sliding operation of the user at the second edge of the electronic device. When the second preset operation comprises a sliding operation in the cursor moving area, the moving speed of the cursor is associated with the sliding speed of the sliding operation of the user in the cursor moving area. When the second preset operation comprises a tangential pressing operation in the cursor moving area, the moving speed of the cursor is associated with the pressing force degree of the tangential pressing operation of the user in the cursor moving area.
In a possible design of the seventh aspect, the second edge is the same edge as the first edge.
For a specific implementation of the seventh aspect and its advantages, reference may be made to the method described in the foregoing first aspect, and details are not repeated here.
In an eighth aspect, an electronic device is provided, including: one or more processors, a display, an input device, and a memory; wherein the memory stores one or more programs therein, the one or more programs comprising instructions which, when executed by the electronic device, cause the electronic device to perform the method of:
the display displays a current interface, and the input device detects a first preset operation of a user. Responding to the first preset operation, the display displays a content selection control in a current interface, wherein the content selection control comprises a starting control and an ending control, and the content between the starting control and the ending control is selected content. And the input equipment detects a second preset operation of the user within a preset time interval after the first preset operation. In response to the second preset operation, the one or more processors move the start control within the current interface. The input device further detects a third preset operation of the user within a preset time interval after the first preset operation. And responding to the third preset operation, and the processor moves the tail control in the current interface.
Wherein the first preset operation comprises any one of the following operations: a click operation, a press operation, and a slide operation at a first edge of the electronic device. The second preset operation includes: a sliding operation at a second edge of the electronic device; the third preset operation comprises a sliding operation at a third edge of the electronic equipment;
wherein the second edge and the third edge are different.
In one possible design of the eighth aspect, the moving direction of the start control is associated with a sliding direction of a sliding operation of a user at the second edge of the electronic device. The moving direction of the tail control is associated with the sliding direction of the sliding operation of the user at the third edge of the electronic equipment.
In one possible design of the eighth aspect, the movement speed of the start control is associated with a sliding speed of a sliding operation of a user at the second edge of the electronic device. The moving speed of the end control is associated with the sliding speed of the sliding operation of the user at the third edge of the electronic equipment.
In one possible design of the eighth aspect, a content editing area and a virtual keyboard area are displayed in the current interface displayed by the display, a cursor is displayed in the content editing area, and a virtual keyboard is displayed in the virtual keyboard area. The display is configured to display the content selection control at a position of the cursor within the content editing region in response to the first preset operation. And in response to the first preset operation, the display is further configured to display a content display area in the virtual keyboard area, where content selected between the start control and the end control is displayed in the content display area.
For a specific implementation of the eighth aspect and its advantages, reference may be made to the method described in the foregoing second aspect, which is not described herein again.
In a ninth aspect, there is provided an electronic device comprising: one or more processors, a display, an input device, and a memory; wherein the memory stores one or more programs therein, the one or more programs comprising instructions which, when executed by the electronic device, cause the electronic device to perform the method of:
the display displays a page; the input device detects a first preset operation of a user. And responding to the first preset operation, and starting a page scrolling function by the processor. And the input equipment detects a second preset operation of the user within a preset time interval after the first preset operation. And responding to the second preset operation, and the display scrolls to display the page.
Wherein the first preset operation comprises: pressing operation of a user on the first edge of the electronic equipment and/or touch operation of the user, wherein the contact area of the user and the first edge of the electronic equipment is larger than a preset area threshold; the second preset operation includes any one of the following operations: a user's tangential pressing operation or sliding operation at a second edge of the electronic device. Or, the first preset operation includes: pressing the page by a user and/or touching the page by the user, wherein the contact area of the user and the page is larger than a preset area threshold; the second preset operation includes: a tangential press operation of the user pressing the page.
In a possible design of the ninth aspect, the scrolling direction of the page is associated with a tangential pressing direction when the user performs the tangential pressing operation.
In one possible design of the ninth aspect, the scrolling speed of the page is associated with a pressing force degree of the user performing the tangential pressing operation.
For a specific implementation of the ninth aspect and its advantages, reference may be made to the method described in the foregoing third aspect, which is not described herein again.
In a tenth aspect, a computer-readable storage medium is provided, having instructions stored therein, which when run on an electronic device, cause the electronic device to perform the method of controlling cursor movement according to the first aspect.
In an eleventh aspect, there is provided a computer-readable storage medium having instructions stored therein, wherein the instructions, when executed on an electronic device, cause the electronic device to perform the content selection method according to the second aspect.
In a twelfth aspect, a computer-readable storage medium is provided, which has instructions stored therein, and when the instructions are run on an electronic device, the instructions cause the electronic device to execute the method for controlling page scrolling according to the third aspect.
In a thirteenth aspect, there is provided a computer program product comprising instructions which, when run on an electronic device, cause the electronic device to perform a method of controlling cursor movement as described in the first aspect.
In a fourteenth aspect, there is provided a computer program product comprising instructions which, when run on an electronic device, cause the electronic device to perform the content selection method according to the second aspect.
In a fifteenth aspect, a computer program product is provided comprising instructions which, when run on an electronic device, cause the electronic device to perform the method of controlling page scrolling according to the third aspect.
Drawings
FIG. 1 is a schematic interface diagram of a method for controlling cursor movement provided by the prior art applied to an electronic device;
FIG. 2 is a schematic diagram of a mobile phone;
fig. 3 is a schematic diagram of an edge of an electronic device according to an embodiment of the present application;
fig. 4 is a flowchart illustrating a method for controlling cursor movement according to an embodiment of the present disclosure;
FIG. 4a is a schematic interface diagram of the method of FIG. 4 applied to an electronic device;
FIG. 5 is a flowchart illustrating a further method for controlling cursor movement according to an embodiment of the present disclosure;
FIG. 5a is a schematic diagram of an application scenario;
FIG. 5b is a schematic interface diagram illustrating the application of the method shown in FIG. 5 to the electronic device to start the cursor moving function in the application scenario shown in FIG. 5 a;
FIG. 5c is a schematic diagram of another interface for starting the cursor moving function by applying the method shown in FIG. 5 to the electronic device in the application scenario shown in FIG. 5 a;
FIG. 5d is a schematic diagram of an interface for controlling cursor movement by applying the method shown in FIG. 5 to the electronic device in the application scenario shown in FIG. 5 a;
FIG. 5e is a schematic diagram of another interface for controlling cursor movement by applying the method shown in FIG. 5 to the electronic device in the application scenario shown in FIG. 5 a;
FIG. 5f is a schematic diagram of another interface for controlling cursor movement by applying the method shown in FIG. 5 to the electronic device in the application scenario shown in FIG. 5 a;
fig. 6 is a schematic flowchart of another method for controlling cursor movement according to an embodiment of the present disclosure;
FIG. 6a is a schematic interface diagram of the method of FIG. 6 applied to an electronic device;
fig. 7 is a flowchart illustrating a further method for controlling cursor movement according to an embodiment of the present application;
FIG. 7a is a schematic interface diagram illustrating the method of FIG. 7 being applied to an electronic device to initiate a cursor movement function;
FIG. 7b is a schematic diagram of an interface for controlling cursor movement on an electronic device by applying the method of FIG. 7;
FIG. 7c is a schematic diagram of another interface for controlling cursor movement on an electronic device using the method of FIG. 7;
fig. 8 is a flowchart illustrating a further method for controlling cursor movement according to an embodiment of the present application;
FIG. 8a is a schematic interface diagram illustrating the method of FIG. 8 being applied to an electronic device to activate a cursor movement function;
FIG. 8b is a schematic diagram of an interface for controlling cursor movement by applying the method of FIG. 8 to an electronic device;
fig. 9 is a schematic flowchart of a content selection method according to an embodiment of the present application;
FIG. 9a is a schematic interface diagram illustrating application of the method of FIG. 9 to an electronic device;
fig. 10 is a schematic flowchart of another content selection method provided in the embodiment of the present application;
FIG. 10a is a schematic diagram of an interface for enabling content selection functionality in an electronic device using the method of FIG. 10;
FIG. 10b is a schematic diagram of another interface for enabling the content selection function by applying the method of FIG. 10 to an electronic device;
FIG. 10c is a schematic diagram of an interface for controlling movement of a content selection control on an electronic device using the method of FIG. 10;
FIG. 10d is a schematic diagram of another interface for controlling movement of a content selection control by applying the method of FIG. 10 to an electronic device;
FIG. 10e is a schematic diagram of another interface for controlling movement of a content selection control by applying the method of FIG. 10 to an electronic device;
fig. 11 is a flowchart illustrating a method for controlling page scrolling according to an embodiment of the present application;
FIG. 11a is a schematic diagram of an interface for applying the method of FIG. 11 to an electronic device;
FIG. 11b is a schematic view of another interface for applying the method of FIG. 11 to an electronic device;
FIG. 12 is a block diagram of an electronic device;
fig. 13 is another block diagram of the electronic device.
Detailed Description
The embodiment of the application provides one or more methods for controlling cursor movement, a content selection method and a page browsing method, and the methods can be applied to electronic equipment. The electronic device in this embodiment of the application may be a mobile phone, a tablet computer, a wearable device, an Augmented Reality (AR) \ Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), and the like, which is not limited in this embodiment of the application.
Taking the electronic device as a mobile phone as an example, referring to fig. 2, the mobile phone 200 includes: a Radio Frequency (RF) circuit 210, a memory 220, an input unit 230, one or more sensors 240, a processor 250, a power supply 260, a display unit 270, an audio circuit 280, and the like. Those skilled in the art will appreciate that the handset configuration shown in fig. 2 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The functional components of the mobile phone 200 are described below:
the RF circuit 210 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information of a base station and then processes the received downlink information to the processor 250; in addition, the uplink data is transmitted to the base station. In general, the RF circuit 210 is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 210 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to global system for mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), etc.
The memory 220 may be used to store software programs and modules, and the processor 250 executes various functional applications and data processing of the mobile phone 200 by operating the software programs and modules stored in the memory 220. The memory 220 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an Application (APP) required by at least one function, such as a sound playing function, an image playing function, and the like; the storage data area may store data (such as audio data, image data, a phonebook, etc.) created according to the use of the cellular phone 200, and the like. Further, the memory 220 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 230 may be used to receive numeric or character information input by a user and generate key signal inputs related to user settings and function control of the cellular phone 200. Specifically, the input unit 230 may include a touch screen 231 and other input devices 232. The touch screen 231, also referred to as a touch panel, may collect a touch operation performed by a user on or near the touch screen 231 (e.g., an operation performed by the user on or near the touch screen 231 using any suitable object or accessory such as a finger or a stylus), and drive the corresponding connection device according to a preset program. Alternatively, the touch screen 231 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 250, and can receive and execute commands sent by the processor 250. In addition, the touch screen 231 may be implemented in various types, such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 230 may include other input devices 232 in addition to the touch screen 231. In particular, other input devices 232 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, power switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The sensor 240 includes a sensor for performing biometric recognition, such as a fingerprint recognition sensor, a face recognition sensor, and an iris recognition sensor. Taking a fingerprint identification sensor as an example, the fingerprint identification sensor can collect fingerprint information of a user and report the collected fingerprint information to the processor 250, and the processor 250 identifies the user according to the fingerprint information.
The sensor 240 further includes a gravity sensor (gravity sensor), which can detect the acceleration of the mobile phone in each direction (generally three axes), detect the gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), and the like.
Cell phone 200 may also include other sensors, such as light sensors. In particular, the light sensor may include an ambient light sensor and a proximity light sensor. The ambient light sensor can adjust the brightness of the display panel 231 according to the brightness of ambient light; the proximity light sensor may detect whether an object is near or touching the phone, and may turn off the display panel 231 and/or the backlight when the phone 200 is moved to the ear. The mobile phone 200 may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which are not described herein again.
The display unit 270 may be used to display information input by or provided to the user and various menus of the cellular phone 200. The Display unit 270 may include a Display panel 271, and optionally, the Display panel 271 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch screen 231 may cover the display panel 271, and when the touch screen 231 detects a touch operation thereon or nearby, the touch screen is transmitted to the processor 250 to determine the type of the touch event, and then the processor 250 provides a corresponding visual output on the display panel 271 according to the type of the touch event. Although in fig. 2 the touch screen 231 and the display panel 271 are implemented as two separate components to implement the input and output functions of the cell phone 200, in some embodiments the touch screen 231 and the display panel 271 may be integrated to implement the input and output functions of the cell phone 200.
Audio circuitry 280, speaker 291, microphone 292 can provide an audio interface between a user and handset 200. The audio circuit 280 may transmit the electrical signal converted from the received audio data to the speaker 291, and convert the electrical signal into an audio signal for output by the speaker 291; on the other hand, the microphone 292 converts collected sound signals into electrical signals, which are received by the audio circuitry 280 and converted into audio data, which are output to the RF circuitry 210 for transmission to, for example, another cell phone, or to the memory 220 for further processing.
The processor 250 is a control center of the mobile phone 200, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone 200 and processes data by operating or executing software programs and/or modules stored in the memory 220 and calling data stored in the memory 220, thereby performing overall monitoring of the mobile phone. Alternatively, processor 250 may include one or more processing units; optionally, the processor 250 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user interfaces, application programs, and the like, and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 250.
The handset 200 further includes a power supply 260 (e.g., a battery) for supplying power to various components, and optionally, the power supply may be logically connected to the processor 250 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
Although not shown, the handset 200 may further include an antenna, a Wireless-Fidelity (WiFi) module, a Near Field Communication (NFC) module, a bluetooth module, a speaker, an accelerometer, a gyroscope, and the like.
The method provided by the embodiment of the application can be applied to the electronic device shown in fig. 2.
Before describing the method provided by the embodiments of the present application, the following concepts related to the embodiments of the present application are described:
first, the concept of the edge of the electronic device referred to in the embodiments of the present application. The edge of the electronic device in the embodiment of the present application includes an edge of a display screen of the electronic device, a frame portion outside the display screen on a panel (generally referred to as a front panel) where the display screen of the electronic device is located, and a side of the electronic device, such as a side provided with a volume key, a mute key, and the like. Referring to fig. 3 (1), the electronic device 300 includes a display screen 301, and then the edges of the electronic device referred to in the embodiment of the present application include four edges of the display screen, namely, a gray area 3011 in fig. 3 (1). It will be appreciated that for other shapes of display screen, for example circular display screens, the edges of the display screen are the outermost regions of the circular display screen away from the centre of the circle. In addition, referring to (2) in fig. 3, the edge of the electronic device referred to in the embodiment of the present application further includes a portion of the electronic device other than the display screen 301, such as a gray area 302 shown in (2) in fig. 3. Referring to fig. 3 (3), the edge of the electronic device according to the embodiment of the present application further includes a side 303 of the electronic device, such as a side currently used for setting a volume key, a mute key, and the like.
The display screen of most electronic devices is a capacitive touch screen at present. The capacitive touch screen is formed by sticking a layer of transparent special metal conductive substance on the surface of glass. When a finger touches the metal layer, the capacitance of the contact point changes, so that the frequency of an oscillator connected with the contact point changes, and the touch position can be determined by measuring the frequency change to obtain information. Therefore, the electronic device detects the contact position and the contact area of the finger of the user on the edge of the display screen by detecting the capacitance change of the edge of the display screen, and detects the pressure of the user pressing the display screen and the like by combining the pressure sensor. Therefore, the electronic apparatus can detect whether the user has performed an operation at the edge of the display screen and the type of the performed operation. For some electronic devices, an ultrasonic technology can be adopted to detect the contact position, the contact area and the like of a user on the side edge of the electronic device, and the specific principle is as follows: after the user presses the side of the electronic device, the ultrasonic waves detected by the electronic device change. Therefore, the electronic device can detect whether the user has performed an operation on the side of the electronic device and the type of the operation. For specific implementation of detecting the operation input by the user by using technologies such as capacitance and ultrasonic wave, reference may be made to the prior art, and details thereof are not described herein.
The content referred to in the embodiment of the application is any content which can be displayed on the page, and includes character content such as characters and symbols, and also includes content such as pictures.
At present, applications installed on electronic devices such as mobile phones include applications such as word and electronic books. In the process of browsing the pages displayed by the applications, the user may need to move the cursor to position the cursor to a specific position and then perform subsequent annotation insertion.
The embodiment of the application provides a method for controlling cursor movement. Referring to fig. 4, the method includes the steps of:
401. the electronic device currently displays an interface.
The interface is any interface, can be a pure text interface, and can also contain a text interface and an image interface.
402. The electronic equipment detects a first preset operation of a user on a first edge of the electronic equipment.
The first edge of the electronic equipment is any edge of the electronic equipment. Taking the electronic device shown in fig. 3 as an example, the first edge may be any one of upper, lower, left, and right edges of a display screen of the electronic device, or may be any one of upper, lower, left, and right frames of the electronic device. The first preset operation includes any one of the following operations: click operation, press operation, and slide operation. The clicking operation comprises clicking operation such as single clicking, double clicking or continuous three clicking. The pressing operation comprises that the pressing force is larger than a preset force threshold, or the pressing time is larger than a preset time threshold. The sliding operation comprises that the sliding distance is larger than a preset distance threshold value.
The electronic device detects the first preset operation and then performs step 403.
403. And responding to the first preset operation, and the electronic equipment flickers and displays a cursor in a current interface.
In a specific implementation of this step, the electronic device flashes a display cursor in the current interface to indicate that the electronic device starts a cursor movement function. Optionally, if the cursor is not displayed on the current interface of the electronic device, after the electronic device detects a first preset operation of the user, the cursor is automatically displayed at the end of the content displayed on the current interface or at the center of the current interface, or at a position for displaying the cursor indicated by the user by clicking a certain position of the current interface. The display position of the cursor on the current interface is not limited in the embodiment of the application.
Optionally, if a cursor is already displayed on the current interface of the electronic device, after the electronic device detects a first preset operation of the user, the electronic device quickly flickers and displays the cursor at a position where the cursor is currently displayed, so as to prompt the user that a function of moving the cursor is already started, and the user can move the cursor.
404. And the electronic equipment detects a second preset operation of the user within a preset time interval after the first preset operation.
Optionally, the predetermined time interval is short, typically a few seconds to ten seconds, such as 5 seconds. The second preset operation includes: a sliding operation at a second edge of the electronic device. Wherein the second edge may be the same as or different from the first edge.
Therefore, when the second preset operation is not detected within the preset time after the electronic device starts the cursor movement function, the electronic device exits the cursor movement function.
405. And responding to the second preset operation, and the electronic equipment moves a cursor in the current interface.
Specifically, when the cursor movement function is just started, the cursor is displayed at a certain position in the current interface, when the user slides on the second edge of the electronic device, the cursor moves in the current interface, and the user sliding direction is associated with the cursor movement direction. For example: and the second edge is the right edge of the electronic equipment, when the user slides upwards along the right edge, the cursor moves word by word to the left in the current interface until the cursor moves to the beginning of the row, and then when the user continues to slide upwards, the cursor moves word by word to the end of the last row and then moves left with the upward sliding operation of the user. Similarly, when the user slides down along the right edge, the cursor moves word by word to the right in the current interface until moving to the end of the line, and then when the user continues to slide down, the cursor moves to the beginning of the next line and then moves word by word to the right along with the downward sliding operation of the user.
Illustratively, referring to fig. 4a, as shown in (1) of fig. 4a, the electronic device currently displays an interface 410, where the interface 410 displays text content. When the user performs the pressing operation 411 at the edge of the electronic device, the electronic device displays an interface as shown in (2) in which a cursor 412 is displayed at the end 4101 of the text content. Thereafter, as shown in (3), when the user performs the upward sliding operation 413 at the edge of the electronic device, the cursor 412 is moved word by word from the position 4101 to the position 4102. As shown in (4), when the user performs a downward sliding operation 414 at the edge of the electronic device, the cursor 412 is again moved rightward from the position 4102 to the position 4101.
In other implementations, after the electronic device starts the cursor movement function, the user may control the cursor to move line by sliding on one edge of the electronic device, and control the cursor to move word by sliding on the other edge of the electronic device, where the movement direction of the cursor is associated with the sliding direction of the user. For example: the user slides up the left edge of the electronic device to control the cursor to move up line by line and slides down to control the cursor to interact down line by line. And the right edge slides upwards to control the cursor to move leftwards word by word and slides downwards to control the cursor to move rightwards word by word.
Alternatively, the cursor movement distance s1 is proportional to the finger movement distance s 2. Converting the finger movement distance s2 into the cursor movement distance s1 according to the ratio between the cursor movement distance s1 and the finger movement distance s2, and setting the word pitch to d1 in advance, the number of characters moved by the cursor is
Figure BDA0003236357650000121
And when the value of a is a non-integer, rounding up according to a rounding method. Alternatively, the finger movement distance s2 is converted into the cursor movement distance s1 according to the ratio between the cursor movement distance s1 and the finger movement distance s2, and if the cursor is moved by s1 to be located at the interval between two characters, the cursor is moved by s 1. If the cursor is moved by s1 to overlap the position of a character, the cursor is moved to the character interval closest to the movement distance s 1.
Further, optionally, in an implementation, the cursor moving speed v1 is proportional to the finger sliding speed v2, and the value of the proportion is fixed to r. Thus, the faster the finger moves, the faster the cursor moves.
Optionally, in another implementation, the following relationship exists between the ratio r between the cursor movement speed v1 and the finger sliding speed v2 and the finger sliding speed:
Figure BDA0003236357650000122
wherein, r ismin、rmax、vmin、vmax、k1、k2The values of (A) are all fixed values.
That is, when the finger sliding speed v2 is less than the preset speed threshold vminAt this time, the ratio r between the cursor movement speed v1 and the finger sliding speed v2 is a fixed value rmin. When the finger sliding speed v2 is greater than the preset speed threshold value vmaxAt this time, the ratio r between the cursor movement speed v1 and the finger sliding speed v2 is a fixed value rmax. When the finger sliding speed v2 is greater than the preset speed threshold value vminLess than a predetermined speed threshold vmaxWhen r takes the value k1+k2(v2-vmin) That is, there is a linear relationship between v1 and v 2.
Optionally, in another implementation manner, the cursor moving speed v1 is independent of the finger sliding speed v2, and the cursor always moves at a constant speed according to the preset speed.
Through the method, when the electronic equipment detects the clicking, pressing or sliding operation of the user on the edge of the electronic equipment, the electronic equipment flickers the cursor to start the cursor moving function. The user may then slide on the edge of the electronic device to control cursor movement. Therefore, the method for controlling the cursor movement by sliding at the edge of the electronic device provided by the embodiment of the application can avoid the problem that the efficiency of moving the cursor by a user is low because a hand caused by moving the cursor by a finger in the content editing area can shield part of the content.
At present, applications installed on electronic devices such as mobile phones include applications such as short messages, WeChat, and word. During the process of editing short messages by using applications such as short messages or WeChat, or during the process of editing texts by using applications such as word, the user may need to position the position of the cursor to insert texts and other operations at the position of the cursor.
In the above scenario, the method for controlling cursor movement provided in the embodiment of the present application, with reference to fig. 5, includes the following steps:
501. the electronic equipment is currently provided with an interface, the interface comprises a content editing area and a virtual keyboard area, a cursor is displayed in the content editing area in a flashing mode, and a virtual keyboard is displayed in the virtual keyboard area.
Wherein, the content editing area is used for displaying the content which is being edited by the user.
Illustratively, referring to (1) in fig. 5a, the user is editing content in the application "MEMO", where the currently displayed interface of the electronic device includes a content editing box 510a and a virtual keyboard 511, and a cursor 512 is displayed at the end of the text content displayed by the content editing box 510 a. Referring to (2) in fig. 5a, the user is editing the short message in the application of "short message", at this time, the electronic device currently displays an interface including a content editing box 510b and a virtual keyboard 511, and a cursor 512 is displayed at the end of the text content displayed by the content editing box 510 b.
502. The electronic equipment detects a first preset operation of a user on a first edge of the electronic equipment.
Wherein the first preset operation comprises any one of the following operations: for the specific implementation of the step, reference may be made to the foregoing step 402, which is not described herein again.
503. And responding to the first preset operation, and displaying a cursor moving area in the virtual keyboard area by the electronic equipment.
Wherein, in one implementation, the cursor movement region may completely cover the virtual keyboard. In another implementation, the cursor movement region covers only a portion of the virtual keyboard.
Optionally, the electronic device displays a cursor movement area in a floating manner on the virtual keyboard to indicate that a cursor movement function is started, and at this time, the user cannot operate the virtual keyboard. Optionally, the cursor moving region displays preset content associated with the cursor position in the content editing region, where the preset content mainly refers to content near the cursor, for example, content with a distance between the cursor and the cursor within 5 characters with the cursor as a circle center, and is intended to facilitate a user to accurately confirm a current position of the cursor.
In order to exit the cursor movement function, in an optional implementation manner, as long as the user performs the operation of controlling the movement of the cursor and the finger leaves the electronic device, the electronic device does not detect the operation of the user within 5s, and the cursor movement function is automatically exited, and at this time, the cursor movement area displayed in the virtual keyboard area automatically disappears. In another alternative implementation, the cursor movement region automatically disappears by the user clicking a "back" button or clicking a blank in the cursor movement region to exit the cursor movement function. After the cursor moving area automatically disappears, the electronic device restores the original interface, for example: the virtual keyboard is redisplayed.
Illustratively, referring to fig. 5b (1), the currently displayed interface of the electronic device includes a content edit box 510 and a virtual keyboard 511, and a cursor 512 is displayed in a blinking manner at the end of the content 5101. When the electronic device detects a pressing operation 513a of the user at the edge of the electronic device, the electronic device displays an interface as shown in (2) in fig. 5 b. In this interface, a cursor movement area 514 is displayed on the virtual keyboard of the electronic device in a floating manner, which indicates that the electronic device starts a cursor movement function, and at this time, the user cannot operate the virtual keyboard. Since the cursor 512 is located at the end of the content 5101 in the content editing area, only the content near the cursor 512 is displayed in an enlarged manner in the cursor moving area 514, so that the user can accurately confirm the current position of the cursor.
Illustratively, as an alternative to operation 513a, referring to (1) in fig. 5c, when the electronic device detects a sliding operation 513b of the user at the edge of the electronic device, the electronic device displays an interface as shown in (2) in fig. 5 c. In this interface, a cursor movement area 514 is displayed on the virtual keyboard of the electronic device in a floating manner, which indicates that the electronic device starts a cursor movement function, and at this time, the user cannot operate the virtual keyboard. Likewise, only content near the cursor 512 is shown enlarged within the cursor movement region 514. In the implementation mode, when the sliding distance of the user on the right edge of the display screen is larger than a certain distance, the mobile phone can be triggered to start the cursor movement function. The sliding direction is not limited, and the sliding direction may be a certain distance of upward sliding, a certain distance of downward sliding, or a distance of upward sliding and a distance of downward sliding, and the total sliding distance reaches a preset distance.
504. And the electronic equipment detects a second preset operation of the user within a preset time interval after the first preset operation.
Wherein the second preset operation comprises: a sliding operation at a second edge of the electronic device. The step 404 may be referred to for specific implementation of this step, and details thereof are not repeated here.
505. And responding to the second preset operation, and the electronic equipment moves a cursor in the content editing area.
Wherein the cursor moving direction is associated with a sliding direction of the second preset operation. For the specific implementation of this step, reference may be made to step 405, which is not described herein again.
Optionally, in an implementation, the starting of the cursor movement function by the electronic device is triggered from the user performing the first preset operation on the first edge of the electronic device to the user sliding on the first edge of the electronic device to move the cursor is a consecutive process. That is, after the user performs operation 513a or 513b, the finger does not leave the first edge, and then the cursor moves by sliding from the position of the contact with the mobile phone at this time. In the process, once the finger of the user leaves the first edge of the electronic device, the cursor movement is considered to be finished, the mobile phone exits the cursor movement function, and the cursor movement area disappears.
Referring to fig. 5d, the user presses the right edge of the display to perform a slide up operation 515a, and the cursor 512 moves word by word left from location 5101 to the beginning (leftmost location) 5102 of the row. If the user still continues to slide up at the right edge, the cursor 512 jumps to the end of the previous line (rightmost position) 5103. Thereafter, the user continues to slide up at the right edge, and the cursor 512 moves word by word left from location 5103 to 5104 as the user slides up.
After the cursor is moved to a specific position by applying the above method for controlling cursor movement provided by the embodiment of the present application, the user may delete the content before the position of the cursor or insert new content into the position of the cursor. For example: referring to fig. 5d, after the user moves the cursor to the location 5104, the user may exit the cursor movement function, delete the three words "cafe" in front of the cursor, or input new content at the location of the cursor.
When the user changes the sliding direction, namely the user slides downwards along the right edge of the mobile phone, the cursor moves rightwards from the current position.
Referring to fig. 5e, the user presses the right edge of the display to perform a slide down operation 515b, and the cursor 512 moves from the location 5104 to the right to the end of the row 5103. Thereafter, the user continues to press the right edge of the display screen to slide down, and the cursor 512 is moved from the location 5103 to the beginning 5102 of the next row. Thereafter, the user continues to press the right edge of the display screen to slide down, and the cursor 512 moves from location 5102 and then to the right to location 5101.
The dotted line frames indicated by the positions 5101, 5102, and 5103 are only for indicating the position of the cursor, and these dotted line frames are not actually displayed on the interface.
Optionally, in another implementation manner, after the mobile phone starts the cursor movement function, the finger of the mobile phone may briefly leave the display screen. The user only needs to touch the second edge of the display screen again by the finger within the preset time length and perform the sliding operation of moving the cursor. Or, in the process that the user slides along the second edge of the electronic device to move the cursor, the user may leave the second edge of the electronic device for a short time after sliding for a certain distance, and as long as the finger resumes sliding along any position of the second edge of the electronic device within the preset time length, the cursor continues to move along with the sliding operation of the user. If the user does not slide along the second edge of the electronic equipment again after the preset time length is reached, the action of moving the cursor is finished, the mobile phone quits the cursor moving function, and the cursor moving area disappears.
Referring to fig. 5f, the user performs a slide up operation 515c at the right edge of the display until sliding up to the topmost portion of the display, the cursor 512 moves word by word left from location 5101 to location 5105. At this time, the user moves the finger away from the display screen, and within a preset time period (e.g., 5s), the user starts to perform the upward sliding operation again from any position on the right edge of the display screen, and the cursor 512 moves word by word from the position 5105 to the position 5106.
Alternatively, referring to fig. 5b to 5f, the local content associated with the cursor position in the content editing area 510 is displayed in the cursor moving area 514 in a magnified manner, so that the user can precisely confirm whether the moving direction and the final moving position of the cursor in the cursor moving area meet the requirement of the user.
Note that, in the above-mentioned fig. 5b to fig. 5f, a forgetting application is taken as an example for description, and in an actual application, the application may be any application capable of performing editing, such as an application of short message, QQ, wechat, word, and the like. In addition, in the above fig. 5b to fig. 5f, the function of triggering the mobile phone start cursor movement by the user performing a specific operation on the right edge of the display screen is taken as an example for explanation, and other edges of the display screen, such as the upper edge, the lower edge, and the left edge, may also be used in practical applications. And the correspondence between the sliding direction of the user on a certain edge of the display screen and the cursor moving direction is not limited to the correspondence shown in fig. 5b to 5 f. For example: it is also possible that when the user slides down at the right edge (also the left edge) of the display screen, the corresponding cursor moves to the right and jumps to the beginning of the next line when moving to the rightmost side of the line. When the user slides up at the right edge of the display screen, the corresponding cursor moves to the left and jumps to the end of the previous line when moving to the leftmost side of the line. Alternatively, when the user slides to the left at the upper edge (which may also be the lower edge) of the display screen, the corresponding cursor slides to the left and jumps to the end of the previous line when moving to the leftmost side of the line. When the user slides to the right at the upper edge (or lower edge) of the display screen, the corresponding cursor moves to the right and jumps to the beginning of the next line when moving to the rightmost side of the line.
The embodiment of the present application further provides a method for controlling cursor movement, which can still be applied in a scene where a user edits content on a currently displayed interface, as shown in fig. 6, the method includes the following steps:
601. an interface is currently displayed on the electronic equipment, the interface comprises a content editing area and a virtual keyboard area, a cursor is displayed in the content editing area, and a virtual keyboard is displayed in the virtual keyboard area.
602. The electronic equipment detects the preset operation of a user on the preset edge of the electronic equipment.
Wherein the preset operation comprises any one of the following operations: click operation, press operation, and slide operation. The step 402 can be referred to for specific implementation of this step, and details thereof are not repeated here.
603. And responding to the preset operation, and displaying a cursor moving area in the virtual keyboard area by the electronic equipment.
For the specific implementation of this step, reference may be made to step 503, which is not described herein again.
604. And the electronic equipment detects the operation of the user in the cursor moving area within a preset time interval after the preset operation.
Optionally, the operation of the user in the cursor moving region includes a sliding operation and also includes a tangential pressing operation.
605. In response to a user operation within the cursor movement region, the electronic device moves the cursor within the content editing region.
Optionally, when the user's operation in the cursor movement region is a sliding operation, the cursor movement direction is associated with a sliding direction of the user's sliding operation in the cursor movement region. Optionally, initially, the cursor is displayed at a first position in the content editing area, and after the user triggers the electronic device to start the cursor movement function through a preset operation at a preset edge of the electronic device, the electronic device displays the cursor movement area in a suspended manner on the virtual keyboard. The user can slide by taking any position in the cursor moving area as a starting point to further trigger the cursor to move, the cursor moving direction is associated with the user sliding direction, and the corresponding relation can be that the cursor moving direction is consistent with the user sliding direction, namely that the user slides leftwards from the starting point, and then the cursor moves leftwards word by word from the first position; when the user slides from the starting point to the right, the cursor moves from the first position to the right word by word; when the user slides upwards from the starting point, the cursor moves upwards line by line from the first position; when the user slides down from the starting point, the cursor moves down line by line from the first position. Further, the cursor movement speed is associated with a sliding speed of a sliding operation of a user within the cursor movement region. For example: the faster the user slides within the cursor movement area, the faster the cursor moves.
Optionally, when the operation of the user in the cursor movement region is a tangential pressing operation, the cursor movement direction is associated with a pressing direction of the tangential pressing operation of the user in the cursor movement region. For example: when the tangential pressing operation of the user in the cursor moving area is a tangential pressing operation towards the left, the cursor moves towards the left word by word. When the tangential pressing operation of the user in the cursor moving area is rightward tangential pressing operation, the cursor moves rightward word by word. Further, the cursor movement speed is associated with a pressing force degree of a tangential pressing operation of the user within the cursor movement region. For example: the greater the force of the user's tangential depression within the cursor movement region, the faster the cursor moves.
To more clearly explain the method shown in fig. 6, referring to fig. 6a, in the process of editing content by the user opening a Memo (Memo), as shown in (1) of fig. 6a, the handset displays a content editing area 610 and a virtual keyboard 611. Content editing area 610 has content currently being edited by the user displayed therein, the content being edited including a plurality of lines, and cursor 612 is displayed at the end 6101 of the content being edited. The user presses the right edge of the display screen as shown in operation 613 a. The mobile phone displays an interface as shown in (2) in which a cursor movement area 615 is displayed in a floating manner on the virtual keyboard, indicating that the mobile phone turns on the cursor movement function. At this time, the user cannot operate the virtual keyboard 611. Thereafter, as shown in (3), the user performs an operation 614a of sliding leftward within the cursor movement region 615, and the cursor is moved leftward word by word from the position 6101 to the position 6102. As shown in (4), the user performs an operation 614b of sliding upward within the cursor movement region 615, and the cursor moves upward line by line from the position 6101 to the position 6103.
According to the method, the electronic equipment displays the cursor moving area in the virtual keyboard area after detecting the operation of the user on the edge of the electronic equipment so as to start the cursor moving function, and then when detecting the operation of the user in the cursor moving area, the electronic equipment controls the cursor to move according to the operation of the user in the cursor moving area, so that the problem that when the user moves the cursor in the content editing area by using the finger, the efficiency of moving the cursor is low due to the inconvenience caused by the fact that the finger shields the cursor is avoided.
The embodiment of the present application provides another method for controlling cursor movement, which can still be applied in a scene in which a user edits content on a currently displayed interface, and with reference to fig. 7, the method includes the following steps:
701. an interface is currently displayed on the electronic equipment, the interface comprises a content editing area and a virtual keyboard area, a cursor is displayed in the content editing area, and a virtual keyboard is displayed in the virtual keyboard area.
702. The electronic device detects a first operation of a user on the virtual keyboard area.
Wherein the first operation is a pressing operation in a first direction input by a user at a first position of the virtual keyboard region. The first position is an arbitrary position of the virtual keyboard region. The first direction is any direction. That is, it can be understood that the first pressing operation is a tangential gesture in a certain direction input by the user at any position in the virtual keyboard region.
Optionally, after detecting the first pressing operation input by the user, the electronic device displays a cursor movement area in a suspended manner on the virtual keyboard to start a cursor movement function.
703. In response to the first operation of the user on the virtual keyboard area, the electronic device displays a cursor movement area in a floating manner on the virtual keyboard.
704. And the electronic equipment detects a second operation of the user in the cursor moving area within a preset time interval after the first operation.
And the second operation is a second pressing operation along a second direction input at a second position of the cursor moving area by the user, and the pressing force of the pressing operation is greater than a preset force threshold. The second position may be any position in the cursor movement region, may be the first position, or may be another position different from the first position. The second direction may be any direction, may be the same direction as the first direction, or may be another direction different from the first direction. That is, the second pressing operation is a tangential force applied by the user in the cursor moving region along a certain direction, and the strength of the tangential force is greater than a preset strength threshold.
Optionally, the second operation may also be a sliding operation of the user in the cursor movement region.
705. In response to a second operation of the user in the cursor movement region, the electronic device moves the cursor in the content editing region.
When the second operation of the user in the cursor moving area is a second pressing operation, the direction and the speed of the electronic equipment for moving the cursor are related to the second pressing operation, namely the tangential force applied by the user in the cursor moving area. Specifically, the direction of cursor movement is associated with the direction of the tangential force, and the speed of cursor movement is associated with the strength of the tangential force. Optionally, the direction of the electronic device moving the cursor is consistent with the direction of a tangential force applied by the user in the cursor moving area, and the moving speed is directly proportional to the magnitude of the tangential force, that is, the larger the tangential force is, the faster the cursor moving speed is. In a specific implementation, the electronic device moves two cursors simultaneously according to the tangential gesture. The first cursor is an invisible cursor of a user and can freely move in a two-dimensional space corresponding to the content editing area. The second cursor is a cursor visible to the user and can only move among the contents contained in the content editing area. The moving direction of the first cursor is the same as the direction of the tangential force, and the moving speed is in direct proportion to the strength of the tangential force. The position of the second cursor is determined by the first cursor. The position of the second cursor is the position with the shortest distance to the cursor in all insertable cursor positions (gaps among contents).
When the second operation of the user in the cursor moving area is a sliding operation of the user in the cursor moving area, the cursor moving direction is associated with the sliding direction of the sliding operation, and the cursor moving speed is associated with the sliding speed of the sliding operation.
To more clearly illustrate the method shown in fig. 7, for example, referring to fig. 7a, during text editing by the user opening a "memo" application, the mobile phone displays a content editing area 710 and a virtual keyboard 711. The content editing area 710 has content currently being edited by the user displayed therein and a cursor 712 is displayed at the end 7101 of the text being edited. If the user tilts and applies a force to the right (shown as a position 7111 in the figure) at an arbitrary position of the virtual keyboard 711, that is, inputs a rightward tangential gesture 713, as shown in (2) in fig. 7, the mobile phone displays a cursor moving region 714 in a floating manner on the virtual keyboard 711, which indicates that the mobile phone starts a cursor moving function, and the user cannot operate the virtual keyboard 711.
Optionally, in an implementation manner, after the mobile phone starts the cursor moving function, referring to (1) in fig. 7b, the finger of the user does not leave the position 7111 of the virtual keyboard 711, and then tilts the position 7111 to the left to apply a force, that is, inputs the left tangential gesture 715a, and when the mobile phone detects the tangential gesture and the tangential force of the tangential gesture is greater than the preset threshold, the cursor 712 moves from the position 7101 to the left to the position 7102. Similarly, referring to fig. 7b (2), if the user tilts the virtual keyboard 711 to the right with a force, that is, inputs the tangential gesture 715b to the right, the cursor moves from the position 7101 to the position 7103 in the right direction when the mobile phone detects the tangential gesture and the tangential force is greater than the preset threshold. Referring to fig. 7b (3), if the user tilts the force upward at position 7111 of virtual keyboard 711, that is, inputs upward tangential gesture 715c, the cursor moves upward from position 7101 to position 7104 when the cell phone detects the tangential gesture and the tangential force is greater than the preset threshold. Referring to fig. 7b (4), the user tilts downward to apply a force at position 7111 of virtual keyboard 711, that is, inputs downward tangential gesture 715d, and when the mobile phone detects the tangential gesture and the tangential force is greater than a preset threshold, the cursor moves downward from position 7101 to position 7105.
Optionally, in another implementation, after the mobile phone starts the cursor moving function, the finger briefly leaves the cursor moving area, and inputs the tangential force at another position in the cursor moving area within a preset time interval. Referring to fig. 7c (1), the user enters a left tangential gesture 716a at a certain position 7141 in the cursor movement region, the cursor 712 moves left from position 7101 to position 7102, then the user's finger briefly leaves, and again tilts the force to the left at another position 7142 of the virtual keyboard 714 within 5s after leaving, i.e., enters a left tangential gesture 716 b. When the mobile phone detects the tangential gesture and the tangential force of the gesture is greater than the preset threshold, the cursor 712 moves to the left from the position 7102 to the position 7103.
It should be noted that, in the foregoing implementation manner, as long as the tangential force input by the user on the virtual keyboard is greater than the preset threshold, the user does not need to move the position of the finger, and the cursor will always move according to the direction indicated by the tangential force. In addition, the above description takes the example that the user inputs the tangential gestures of up, down, left, and right, respectively, and in practical applications, the user may also input the tangential forces in the directions of up left, down left, up right, down right, and the like.
In the method, the user controls the electronic device to display the cursor movement area by inputting the tangential gesture on the virtual keyboard so as to start the cursor movement function. After turning on the cursor movement function, the user may tilt the finger in different directions at a certain position at the cursor movement region and press the cursor movement region to apply different tangential forces, the cursor moving with the tangential gesture input by the user. In the method, the user can control the cursor movement without moving the finger.
The embodiment of the application provides another method for controlling the movement of the cursor, which is still applied to a scene in which a user edits content on a currently displayed interface. Referring to fig. 8, the method includes the steps of:
801. an interface is currently displayed on the electronic equipment, the interface comprises a content editing area and a virtual keyboard area, a cursor is displayed in the content editing area, and a virtual keyboard is displayed in the virtual keyboard area.
802. The electronic equipment detects the touch operation that the contact area of a user and the virtual keyboard is larger than a preset threshold value.
The touch operation that the contact area of the user and the virtual keyboard is larger than the preset threshold value can be understood as a large-area gesture input by the user on the virtual keyboard. For example: when a user clicks the virtual keyboard by the fingertip of a finger, the contact area between the user and the virtual keyboard is small; and when the whole finger of the user is in contact with the virtual keyboard, the electronic equipment detects that the contact area of the user and the virtual keyboard is large. After detecting the touch operation input by the user, the electronic device executes the following step 803 to start the cursor movement function.
Optionally, in other implementation manners, in addition to detecting the contact area between the user and the virtual keyboard, the user also detects the pressing force and/or the touch duration when the user touches the virtual keyboard, and when the pressing force and/or the touch duration when the user touches the virtual keyboard with the large-area gesture are greater than a certain force and/or are greater than a certain duration, the electronic device executes the following step 803 to start the cursor movement function.
803. And responding to the touch operation, the electronic equipment displays a cursor moving area in the virtual keyboard area.
804. The electronic equipment detects the operation of a user in the cursor moving area.
The operation of the user in the cursor moving area can be a sliding operation, and the sliding operation comprises a sliding operation of the user sliding from a first position to a second position of the cursor moving area. The first position is any position in the cursor moving area, and may be a position in contact with the cursor moving area when the user performs the touch operation, or may be another position.
The operation of the user in the cursor moving area can also be a tangential pressing operation, and the tangential pressing operation is a tangential gesture which is input by the user at any position of the cursor moving area and is along a certain direction.
After the electronic device detects the operation of the user in the cursor moving area, the following step 805 is executed.
805. In response to a user operation within the cursor movement region, the electronic device moves the cursor within the content editing region.
When the operation of the user in the cursor moving area is sliding operation, the moving direction of the cursor is associated with the sliding direction of the user in the cursor moving area. Optionally, the moving speed of the cursor is associated with the sliding speed of the user when performing the sliding operation in the cursor moving area. That is, the electronic device determines the moving direction of the cursor according to the direction of the sliding operation in step 804, and determines the moving speed of the cursor according to the speed of the sliding operation. In a specific implementation, the electronic device moves two cursors simultaneously according to the sliding operation. The first cursor is an invisible cursor of a user and can freely move in a two-dimensional space corresponding to the content editing area. The second cursor is a cursor visible to the user and can only move among the contents contained in the content editing area. The moving direction of the first cursor is the same as the sliding direction of the sliding operation of the user in the cursor moving area, and the moving speed is in direct proportion to the sliding speed of the sliding operation. The position of the second cursor is determined by the first cursor. The position of the second cursor is the position with the shortest distance to the cursor in all insertable cursor positions (gaps among contents). In other implementations, the moving speed of the cursor is independent of the sliding speed of the user, and is fixed to a preset speed.
When the operation of the user in the cursor moving area is a tangential pressing operation, the moving direction of the cursor is associated with the direction of the tangential force of the tangential pressing operation of the user in the cursor moving area, and the moving speed of the cursor is associated with the magnitude of the tangential force of the tangential pressing operation of the user in the cursor moving area.
To more clearly illustrate the method shown in fig. 8, for example, referring to fig. 8a, as shown in fig. 1 in fig. 8a, during content editing by the user opening the application "memo", the mobile phone displays a content editing area 810 and a virtual keyboard 811. The content editing area 810 has content currently being edited by the user displayed therein, and a cursor 812 is displayed at the end of the content being edited 8101. As shown in operation 813, when the user touches the virtual keyboard 811 with the entire finger at an arbitrary position on the virtual keyboard 811, as shown in (2) in fig. 8a, the mobile phone displays a cursor moving area 814 in a floating manner on the virtual keyboard 811, which indicates that the mobile phone activates the cursor moving function, and the user cannot operate the virtual keyboard 811.
Optionally, in an implementation manner, after the mobile phone starts the cursor movement function, the finger of the user does not leave the cursor movement region, and then a sliding operation is performed in the cursor movement region with a position in contact with the cursor movement region as a starting point, where the cursor moves along with the sliding operation of the user, and a movement direction of the cursor is the same as the sliding direction.
Optionally, in another implementation manner, after the mobile phone starts the cursor movement function, the finger of the user leaves the cursor movement region for a short time, and then contacts the cursor movement region again and performs a sliding operation in the cursor movement region, where the cursor moves along with the sliding operation of the user, and a cursor movement direction is the same as a user sliding direction.
For example: when the user's finger briefly leaves the virtual keyboard (the brief leaving refers to leaving within a preset time period, such as within 5s), the user's finger slides leftwards on the virtual keyboard from any position on the virtual keyboard, and then when the mobile phone detects the sliding gesture, the cursor moves leftwards along with the sliding operation.
Referring to fig. 8b (1), if the user performs a leftward sliding operation 813a in the cursor moving region, when the mobile phone detects the sliding gesture, the cursor 812 moves leftward from position 8101 to position 8102. Similarly, referring to (2) in fig. 8b, when the user performs an upward sliding operation 813b in the cursor movement region, the cursor 812 moves upward from the position 8101 to the position 8103.
According to the method, after the electronic equipment detects a large-area gesture input by a user on the virtual keyboard, the cursor moving area is displayed in a suspending mode on the virtual keyboard so as to start the cursor moving function. After the cursor moving function is started, the electronic equipment moves the cursor according to the sliding operation of the user in the cursor moving area.
It should be noted that, in view of the fact that the embodiments of the present application provide a new method for controlling cursor movement, when the method is applied to an electronic device, the method is equivalent to a new function provided by the electronic device. To teach the user to use this new functionality, the user is prompted, either animatedly or by gestures, how to manipulate to control cursor movement when the user first uses a particular application.
At present, applications installed on electronic devices such as mobile phones include applications such as word and electronic books. During browsing the pages displayed by the applications, a user may want to select a certain text and copy and paste the text to another position of the page or another page.
In the above scenario, an embodiment of the present application provides a content selection method, and with reference to fig. 9, the method includes the following steps:
901. the electronic device currently displays an interface.
902. The electronic equipment detects a first preset operation of a user on a first edge of the electronic equipment.
Wherein the first edge is any edge of the electronic device. However, in order to distinguish the method for controlling the cursor movement shown in fig. 4, the first edge referred to herein is different from the first edge shown in fig. 4. For example: when the user inputs a first preset operation on the right edge, the electronic equipment starts a cursor movement function. When the user performs a first preset operation at other designated edges (one of the left edge, the upper edge, and the lower edge), the electronic device turns on a content selection function.
The first preset operation includes any one of the following operations: the method comprises the steps of clicking the first edge of the electronic device, pressing the first edge of the electronic device and sliding the first edge of the electronic device. For the specific implementation of the first preset operation, reference may be made to the foregoing step 402, which is not described herein again.
903. And responding to the first preset operation, and displaying a content selection control in a current interface by the electronic equipment.
The content selection control comprises a starting control and an ending control, and the content between the starting control and the ending control is selected content. Optionally, the content selection control is automatically displayed at the end or the center of the content contained in the interface, or the user designates a position for displaying the content selection control by clicking a certain position of the interface. Optionally, if the cursor is displayed on the current interface, the content selection control is automatically displayed at the position of the cursor.
9041. And the electronic equipment detects a second preset operation of the user within a preset time interval after the first preset operation.
Wherein the second preset operation comprises: a sliding operation at a second edge of the electronic device. The second edge may be the same edge as the first edge or may be a different edge.
9051. And responding to the second preset operation, and the electronic equipment moves the starting control in the current interface.
Wherein the moving direction of the start control is associated with the sliding direction of the second preset operation. For example: when the user slides upwards at the right edge of the display screen, the starting control moves leftwards word by word, and when the user slides downwards at the right edge of the display screen, the starting control moves rightwards word by word.
Optionally, the moving speed of the start control is a fixed preset speed, or the moving speed of the start control is associated with the sliding speed of the second preset operation.
9042. And the electronic equipment detects a third preset operation of the user within a preset time interval after the first preset operation.
Wherein the preset time interval is short, typically several seconds, and the third preset operation comprises a sliding operation at a third edge of the electronic device, the third edge being different from the second edge.
9052. And responding to the third preset operation, and moving the tail control in the current interface by the electronic equipment.
And the moving direction of the tail control is associated with the sliding direction of the third preset operation.
Optionally, the moving speed of the end control is a fixed preset speed, or the moving speed of the end control is associated with the sliding speed of the third preset operation.
According to the method, after a user executes a first preset operation on a first edge of the electronic equipment, the user triggers the electronic equipment to display the content selection control. Furthermore, the user can control the start control of the content selection control to move after performing the sliding operation on the second edge of the electronic device, and the user can control the end control of the content selection control to move after performing the sliding operation on the third edge of the electronic device. Therefore, the user can control the content selection control to move and further control the content to be selected by executing certain operations at the edge of the electronic equipment, and the problem that the inconvenience is brought by the fact that the sight of the user is shielded by the hand of the user when the content is selected in the interface can be avoided.
To more clearly illustrate the method shown in fig. 9, for example, referring to fig. 9a, the mobile phone currently displays an interface 910 of the application of memo. As shown in (1) in fig. 9a, when the user performs a press operation 911 on the left edge of the display screen, the cellular phone displays a content selection control 912 at an end 9101 of the content currently displayed, the content selection control 912 including a start control 9121 and an end control 9122. As shown in (3) of fig. 9a, when the user performs the operation 913a of sliding up on the left edge of the display screen, the start control 9121 moves from the position 9101 to the left to the position 9102, and the end control 9122 does not move, at which time the content between the position 9101 and the position 9102 is selected. Thereafter, as shown in (4) in fig. 9a, when the user performs the operation 913b of sliding up on the right edge of the display screen, the end widget 9122 moves from the position 9101 to the left to the position 9103, at which time the content between the position 9103 and the position 9102 is selected. The selected content is shown in grey area in figure 9 a.
The embodiment of the application also provides a method for selecting the content in the editing process, and the method can still be applied to a scene that a user edits the content on the currently displayed interface.
Referring to fig. 10, the method includes the steps of:
1001. the electronic equipment displays a content editing area and a virtual keyboard area, wherein contents to be edited and a cursor are displayed in the content editing area, and a virtual keyboard is displayed in the virtual keyboard area.
1002. The electronic equipment detects a first preset operation input by a user at a first edge of the electronic equipment.
For the specific implementation of this step, reference may be made to step 902, which is not described herein again.
When the electronic device detects a first preset operation input by the user at the first edge, the electronic device executes the following step 1003.
1003. In response to the first preset operation, the electronic device displays a content selection control at the cursor.
Wherein the content selection controls include a start control and an end control.
When the electronic device just starts the content selection function, the start control and the end control of the content selection control are both displayed at the position of the cursor in the content editing area, that is, the selected content is empty.
Optionally, after detecting the first preset operation, the electronic device displays a content display area in a suspended manner on the virtual keyboard, where the content selected between the start control and the end control is displayed in the content display area. At this time, the user cannot operate the virtual keyboard.
1004a, the electronic device detects a second preset operation of the user at a second edge of the electronic device within a preset time interval after the first preset operation.
Wherein the predetermined time interval is short, typically a few seconds. The second preset operation comprises a sliding operation at a second edge of the electronic device. The second edge may be the same as the first edge or may be different from the first edge.
1005a, responding to the second preset operation, and the electronic equipment moves the starting control in the content editing area.
And the moving direction of the starting control is associated with the sliding direction of the second preset operation. Optionally, the moving speed of the start control is a fixed preset speed, or the moving speed of the start control is associated with the sliding speed of the second preset operation.
1004b, the electronic device detects a third preset operation of the user at a third edge of the electronic device within a preset time interval after the first preset operation.
Wherein the third preset operation comprises a sliding operation at a third edge of the electronic device. The third edge is a different edge than the second edge.
1005b, responding to the third preset operation, and the electronic equipment moves the end control in the content editing area.
Wherein the moving direction of the end control is associated with the sliding direction of the user at the third edge of the display screen. Optionally, the moving speed of the end control is a fixed preset speed, or the moving speed of the end control is associated with the sliding speed of the third preset operation.
According to the method, in the process of editing the content by the user, when the user slides on the second edge or the third edge of the display screen, the tail control or the starting control of the content selection control moves in the content editing area to select the specific content, and the selected content is the content between the starting control and the tail control.
The following description will take the first edge and the second edge as the same edge, which are both the left edge of the display screen, and the third edge as the right edge of the display screen as an example.
To more clearly illustrate the method shown in fig. 10, for example, taking a mobile phone as an example, referring to fig. 1 in fig. 10a, during text editing by opening a memo application, the mobile phone displays a content editing area 1010 and a virtual keyboard 1011. The content editing area 1010 displays the content currently being edited by the user, and the cursor is displayed at the end 10101 of the text being edited. When the mobile phone detects a pressing operation 1013a performed by the user at the left edge of the mobile phone, as shown in fig. 10a (2), the mobile phone displays a content selection control 1012 at a position 10101 where a cursor is displayed, indicating that the mobile phone turns on a content selection function. The content selection control 1012 includes a start control 10121 and an end control 10122, and the currently selected content is empty. Further, the mobile phone displays the content display area 1014 in a floating manner on the virtual keyboard 1011, and at this time, the user cannot operate the virtual keyboard 1011.
As an alternative to operation 1013a, referring to fig. 1 in fig. 10b, after the user performs a slide-up operation 1013b on the left edge of the display of the mobile phone and slides a certain distance. As shown in fig. 10a (2), the mobile phone displays a content selection control 1012 at a position 10101 where a cursor is displayed, indicating that the mobile phone turns on a content selection function. Further, the mobile phone displays the content display area 1014 in a floating manner on the virtual keyboard 1011, and at this time, the user cannot operate the virtual keyboard 1011. In this implementation manner, when the sliding distance of the user on the left edge of the display screen is greater than a certain distance, the mobile phone may be triggered to start the content selection function, where the sliding direction is not limited.
After the content selection function of the mobile phone is started, the start control 10121 and the end control 10122 of the content selection control 1012 are both overlapped at the current position 10101 of the cursor, and the currently selected content is empty. Thereafter, the user may slide on a second edge of the display screen to control the start control movement of the content selection control, or the user may slide on a third edge of the display screen to control the end control movement of the content selection control.
Illustratively, the user can slide up and down the left edge of the cell phone display using a finger to adjust the position of the start control 10121. Referring to fig. 10c, as shown in (1) in fig. 10c, the user performs an operation 1015a of sliding upward on the left edge of the mobile phone, and the start control 10121 moves left word by word, and adds the selected content until moving to the start position 10102 of the row, where the selected content is "go to friend B at 5 pm". Thereafter, as shown in (2) of fig. 10c, the user continues to perform the sliding-up operation on the left edge of the mobile phone, and the start control 10121 jumps to the last position 10103 of the previous line. Thereafter, as shown in (3) in fig. 10c, the user continues to perform the operation of sliding up on the left edge of the handset, and then the start control 10121 moves to the left to the position 10104. At this time, the content "see client a to see friend B at 5 pm" is selected.
Similarly, when the user changes the sliding direction, i.e., slides down, the end control moves to the right word by word along with the sliding operation of the user. When moving to the right at the end of the line, the end control continues to move to the end of the next line with the user's swipe down operation. Thereafter, the end control continues to move word by word to the right in the row as the user's swipe down operation continues.
After the user adjusts the start control to a particular position, the user can slide on the right edge of the display to adjust the position of the end control. Likewise, when the user slides up, the end control moves to the left until it moves to the beginning of the row (leftmost position). As the user continues to slide up, the end control moves to the end of the previous row (the rightmost position) and then moves to the left as the user slides up. When the user slides down, the end control moves to the right until moving to the end of the row (rightmost position). As the user continues to slide down, the end control moves to the beginning of the next row (leftmost position) and then moves to the right as the user slides down.
Referring to fig. 10d (1), the currently selected content is "go to friend B at 5 pm", and the end control 10122 is now at position 10101. As shown in (2) in fig. 10d, the user performs an upward sliding operation 1015b on the right edge, and the end control 10122 moves word by word from the position 10101 to the left at the position 10105, where the currently selected content is "go 5 pm".
Alternatively, the finger of the electronic device may be briefly away from the display screen after the content selection function is turned on. The user only needs to touch the second edge or the third edge of the display screen again and perform the sliding operation within the preset time length. Alternatively, during the process of sliding the user along the second edge or the third edge of the electronic device to select the specific content, the user may leave the second edge or the third edge of the electronic device for a short time after sliding a distance (e.g., sliding to the top of the edge, and not sliding further), and the end control or the start control continues to move along with the sliding operation of the user as long as the finger starts sliding along any position of the second edge or the third edge of the electronic device again within the preset time period. If the user does not slide along the second edge or the third edge of the electronic equipment again after the preset time length is reached, the content selection operation is finished, the electronic equipment exits the content selection function, and the content display area disappears.
Referring to fig. 10e (1), the mobile phone displays the cursor moving area 1014 in a floating manner on the virtual keyboard, and when the user performs the upward sliding operation 1015a on the left edge of the display screen and slides to the topmost position of the left edge, the start control 10122 moves to the position 10106 word by word. At this time, the user leaves the finger from the display screen, and starts to perform the upward sliding operation 1015a within a preset time period (for example: 5s), referring to (2) in fig. 10e, from any position on the left edge of the display screen again), and the start control 10122 continues to move leftward to the leftmost position 10107 of the line.
Alternatively, referring to fig. 10c to 10e, the currently selected content is displayed in the content display area 1014 in an enlarged manner.
Optionally, the moving distance of the start control and the end control of the content selection control is associated with the sliding distance of the user between the second edge and the third edge of the electronic device, and the moving speed of the start control and the end control is associated with the sliding speed of the user between the second edge and the third edge of the electronic device.
It should be noted that, when the second preset operation is not detected within a preset time (generally, a short time is several seconds or ten seconds) after the electronic device starts the content selection function, the electronic device exits the content selection function, and the user needs to re-input the first preset operation to trigger the electronic device to restart the content selection function. And if the electronic equipment does not detect the second preset operation all the time, the content display area on the virtual keyboard disappears, and the user can operate the virtual keyboard.
According to the method, after the electronic equipment detects the first preset operation input by the user at the edge of the display screen, the content selection function is started. After the content selection function is started, after the electronic equipment detects that a second preset operation input by a user is carried out at the edge of the display screen, the tail control and the starting control of the content selection control are moved to select corresponding content in the content editing area, and the problem that the sight of the user is shielded and the user operation is inconvenient when the user selects the content in the content editing area can be avoided.
After the specific content is selected by applying the content selection method provided by the embodiment of the application, the user can press the selected content, and after the electronic device detects that the user presses the selected content, functional options such as "copy", "cut", "delete" and the like are popped up, so that the user can perform corresponding operations such as copying, cutting or deleting on the selected content.
It should be noted that, in view of the fact that the embodiment of the present application provides a new content selection method, when the method is applied to an electronic device, the method is equivalent to a new function provided by the electronic device. To teach the user to use this new functionality, the user is prompted, either animatedly or by gestures, how to manipulate to select particular content when the user first uses a particular application.
When a user browses a web page or a picture using an electronic device, the electronic device may not be able to completely display the entire web page or picture, and the user needs to continuously adjust the web page or picture to scroll and display the web page or picture. At present, a user needs to continuously slide or drag an interface to browse, and the operation efficiency is low. In addition, when the electronic device is large in size, in such a manner, sometimes it is necessary for the user to hold the electronic device with one hand and perform the sliding operation with the other hand, which is inconvenient for the one-handed operation.
Referring to fig. 11, an embodiment of the present application provides a method for controlling page scrolling, including the following steps:
1101. the electronic device displays a page.
The page can be a plain text, a plain picture, or both a text and a picture.
1102. The electronic equipment detects a first preset operation of a user.
1103. And responding to the first preset operation, and starting a page scrolling function by the electronic equipment.
1104. The electronic equipment detects a second preset operation of the user.
1105. And responding to the second preset operation, and the electronic equipment scrolls and displays the page.
Optionally, in an implementation manner, the first preset operation in step 1102 includes that a pressing force degree of the user pressing the first edge of the electronic device is greater than a preset force threshold, that a contact area between the user and the first edge of the electronic device is greater than a preset area threshold, and that a contact area between the user and the first edge of the electronic device is greater than a preset area threshold and the pressing force degree is greater than a preset force threshold. The first edge is an arbitrary edge. After detecting the first preset operation input by the user, the electronic device executes the step 1103. The second preset operation in step 1104 includes a pressing operation in a first direction input by a user at a first position on a second edge of the electronic device. The second edge may be any edge of the display screen, and may be the first edge or other edges. The first position is an arbitrary position on the second edge, and when the second edge is the same as the first edge, the first position may be a position where the user inputs the first preset operation on the first edge, for example, a position where the user presses the first edge on the first edge. The first position may also be any other position on said second edge. That is, it can be understood that the second preset operation is a tangential force by which the user presses an arbitrary edge of the display screen of the electronic device obliquely in a certain direction at a certain position on the edge. After the electronic device detects the second preset operation input by the user, the step 1105 is executed. When step 1105 is executed, the scrolling direction when the electronic device scrolls and displays the page is associated with the direction of the tangential force input by the user in step 1104, for example, the same, and the scrolling speed of the page is associated with the strength of the tangential force input by the user in step 1104, for example, a direct relationship. Alternatively, in other implementations, the page scrolling speed is proportional to the magnitude of the tilt angle of the tangential force input by the user at step 1104, with the greater the tilt angle, the faster the page scrolling speed. Alternatively, in other implementations, the page scrolls at a preset speed as long as the force with which the user presses the right edge of the display screen is greater than a certain threshold.
To more clearly illustrate the above implementation of the method shown in fig. 11, for example, referring to (1) in fig. 11a, the handset displays a page 1110. The user executes a pressing operation 1111a on the right edge of the display screen, when the pressing operation 1111a is executed, the contact area between the user and the right edge of the display screen is larger than a preset area threshold, the pressing force is also larger than a preset force threshold, and then the mobile phone starts a page scrolling function. Next, referring to FIG. 11a (2), the user presses the right edge of the display screen upward at the right edge of the display screen to apply an upward tangential gesture 1112a, and the page 1110 moves upward with it. To illustrate, in one implementation, when the user applies the tangential gesture 1112a, the user's finger does not leave the right edge of the display after the mobile phone starts the page scrolling function, and then the upward tangential gesture 1112a is applied by the position where the pressing operation 1111a is performed. In another implementation, the user's finger briefly leaves after the phone turns on the page scrolling function (the time of the leaving is within a preset time period, which is typically several seconds, such as 5s), and then presses the right edge of the display screen obliquely upward at any position on the right edge of the display screen to apply the upward tangential gesture 1112 a. The handset scrolls up page 1110 according to the tangential gesture.
According to the method, after the electronic equipment detects that the user triggers the operation on a certain edge of the display screen, the function of scrolling the page is started. After detecting a tangential gesture input by a user at a certain edge, the electronic device scrolls the page according to the force of the tangential gesture and the direction indicated by the tangential gesture at a certain speed. Thus, the user need only press a certain position on the edge of the display screen to trigger page scrolling.
Optionally, in another implementation manner, the first preset operation in step 1102 includes that the user presses the page, and the pressing force is greater than a preset force threshold, or includes that a contact area between the user and the page is greater than a preset area threshold, or includes that the force for the user to press the page is greater than a preset force threshold and the contact area between the user and the page is greater than a preset area threshold. After detecting the first preset operation, the electronic device executes the step 1103 to start the page scrolling function. The second preset operation in the step 1104 includes a pressing operation in a first direction input by the user at a first position of the page. The first position is an arbitrary position on the page, and the first position may be a position when the user inputs the first preset operation on the page, for example, a position where the user presses the page on the page. The first position may also be any other position on the page. That is, it can be understood that the second preset operation is a tangential force that the user presses a page in a certain direction in a certain position on the currently displayed page of the electronic device. After the electronic device detects the second preset operation input by the user, the step 1105 is executed. When step 1105 is executed, the scrolling direction when the electronic device scrolls and displays the page is the same as the direction of the tangential force input by the user in step 1104, and the scrolling speed is proportional to the force of the tangential force input by the user in step 1104. Alternatively, in other implementations, the page scrolling speed is proportional to the magnitude of the tilt angle of the tangential force input by the user at step 1104, with the greater the tilt angle, the faster the page scrolling speed. Alternatively, in other implementations, the page scrolls at a preset speed as long as the force with which the user presses the right edge of the display screen is greater than a certain threshold.
To more clearly illustrate the above implementation of the method shown in fig. 11, for example, referring to (1) in fig. 11b, the handset displays a page 1110. The user executes a pressing operation 1111b in the page, and when the pressing operation is executed, the contact area between the user and the page is larger than a preset area threshold, and the pressing force is also larger than a preset force threshold, so that the mobile phone starts a page rolling function. Next, referring to FIG. 11b (2), the user presses the page up on the left edge of the display screen to apply the upward tangential gesture 1112b, and the page 1110 moves upward with it. It should be noted that, in one implementation, when the user applies the tangential gesture 1112b, the user's finger does not leave the page after the mobile phone turns on the page scrolling function, and then the upward tangential gesture 1112b is applied by the position where the pressing operation 1111b is performed. In another implementation, the user's finger briefly leaves the page after the cell phone turns on the page scrolling function (the time of the leaving is within a preset time period, which is typically several seconds, such as 5s), and then presses the right edge of the display screen obliquely upward at any position on the page to apply the upward tangential gesture 1112 b. The handset scrolls up page 1110 according to the tangential gesture.
It should be noted that, in the two implementation manners, after the page scrolling function is started by the electronic device, when the electronic device does not detect the second preset operation input by the user within a preset time period, the electronic device exits the page scrolling function.
Optionally, in other implementations, the user may trigger the electronic device to start the page scrolling function by sliding on the edge of the electronic device. No matter what way is adopted to trigger the electronic equipment to start the page scrolling function, the user can slide on the edge of the electronic equipment to trigger the page scrolling. Wherein the page scrolling direction is associated with the sliding direction of the user. The page scrolling speed is a fixed preset speed or is associated with the user's swipe speed. Illustratively, the user slides a certain distance on the right edge of the display screen to trigger the electronic device to start the page scrolling function. And then, the user slides upwards at the right edge of the display screen, so that the page scrolls upwards, and slides downwards at the right edge of the display screen, so that the page scrolls downwards. In addition, during page scrolling, the faster the user slides, the faster the page scrolls.
It is understood that the electronic device comprises corresponding functional modules for performing the respective functions in order to implement the above-mentioned functions. Those of skill in the art will readily appreciate that the present application is capable of being implemented as hardware or a combination of hardware and computer software for performing the various illustrative electronic devices and algorithm steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The embodiments of the present application provide an electronic device to implement the foregoing method embodiments, specifically, the electronic device may be divided according to the foregoing method examples, for example, each module or unit may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module may be implemented in the form of hardware, or may be implemented in the form of a software module or unit. The division of the modules or units in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Fig. 12 shows a schematic diagram of a possible structure of the electronic device involved in the above embodiment. As shown in fig. 12, the electronic device 1200 may include: a display unit 1201, a detection unit 1202, and a control unit 1203. Wherein the display unit 1201 is used to support steps 401, 403, 501, 503, 601, 603, 701, 703, 801, 803, 901, 903, 9041, 9042, 1001, 1003, 1004a, 1004b, 1101 in method embodiments, and/or other processes for the techniques described herein. Detection unit 1202 is used to support steps 402, 404, 502, 504, 602, 604, 702, 704, 802, 804, 902, 1002, 1102, 1104 in method embodiments, and/or other processes for the techniques described herein. The control clout 1203 is used to support electronic device 1200 supporting steps 405, 505, 605, 705, 805, 9051, 9052, 1005a, 1005b, 1102, 1105 in method embodiments, and/or other processes for the techniques described herein.
Of course, the functions that can be specifically realized by the units in the electronic device 1200 also include, but are not limited to, the functions corresponding to the method steps described in the above examples. For detailed description of each unit of the electronic device 1200, reference may be made to detailed descriptions of corresponding method steps thereof, which are not described herein again in this embodiment of the application.
The display unit 1201 may be a display. For example, the display unit 1201 may be a touch screen of an electronic device. The detection unit 1202 may be an input-output device, for example still a touch screen of the electronic device. The control unit 1203 may be a Processor or controller, such as a CPU, general purpose Processor, Digital Signal Processor (DSP), Application-Specific Integrated Circuit (ASIC), Field Programmable Gate Array (FPGA), or other Programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or execute the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The control unit 1203 may also be a combination of computing functions, e.g. comprising one or more microprocessors, DSPs and microprocessors, etc. Therefore, the electronic device according to the embodiment of the present application may be the electronic device 1300 shown in fig. 13. As shown in fig. 13, the electronic device 1300 includes: a processor 1301, a memory 1302, a display 1303, and an input-output device 1304. Among them, the processor 1301, the memory 1302, the display 1303, and the input-output device 1304 are connected to each other by a bus 1306.
Wherein the memory 1302 is configured to store computer program code, which includes instructions, when executed by the processor 1301 of the electronic device 1300, the electronic device 1300 performs the method for controlling cursor movement in the above-described embodiment according to the relevant method steps in any of fig. 4, fig. 5, fig. 6, fig. 7, and fig. 8.
Alternatively, the memory 1302 is configured to store computer program code comprising instructions which, when executed by the processor 1301 of the electronic device 1300, the electronic device 1300 performs the relevant method steps as in any of the fig. 9 and 10 to implement the content selection method in the above-described embodiment.
Alternatively, the memory 1302 is configured to store computer program code comprising instructions which, when executed by the processor 1301 of the electronic device 1300, the electronic device 1300 performs the relevant method steps as in fig. 11 to implement the page scrolling method in the above-described embodiments.
The bus 1306 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus 1306 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 13, but this is not intended to represent only one bus or type of bus.
Further, as shown in fig. 13, the electronic device 1300 may further include a communication interface 1305, where the communication interface 1305 is used for communicating with other communication devices. For example, the communication interface 1305 may be an RF circuit of an electronic device.
The present application further provides a computer storage medium, in which computer program codes are stored, and when a processor of an electronic device executes the computer program codes, the electronic device executes related method steps in the above method embodiments as shown in fig. 4, fig. 5, fig. 6, fig. 7, and fig. 8 to implement the method for controlling cursor movement in the above method embodiments.
The present application further provides a computer storage medium, in which computer program codes are stored, and when a processor of an electronic device executes the computer program codes, the electronic device executes related method steps in the above method embodiments as shown in fig. 9 and 10 to implement the content selection method in the above method embodiments.
The present application further provides a computer storage medium, in which computer program codes are stored, and when a processor of an electronic device executes the computer program codes, the electronic device executes the relevant method steps in the method embodiment as shown in the drawing shown in fig. 11 to implement the page scrolling method in the method embodiment.
The present application further provides a computer program product, when the computer program product runs on a computer, causing the computer to execute the relevant method steps of the above method embodiments to implement the relevant method steps in the above method embodiments as shown in fig. 4, fig. 5, fig. 6, fig. 7, and fig. 8 to implement the method for controlling cursor movement in the above method embodiments.
The embodiment of the present application further provides a computer program product, which when run on a computer, causes the computer to execute the relevant method steps in the above method embodiments as shown in fig. 9 and fig. 10 to implement the content selection method in the above method embodiments.
Embodiments of the present application further provide a computer program product, which when run on a computer, causes the computer to execute the relevant method steps of the above method embodiments to implement the relevant method steps in the above method embodiments as shown in the drawing shown in fig. 11 to implement the page scrolling method in the above method embodiments.
In addition, the electronic device, the computer storage medium, or the computer program product provided in the embodiments of the present application are all configured to execute the corresponding method provided above, and therefore, the beneficial effects achieved by the electronic device, the computer storage medium, or the computer program product may refer to the beneficial effects in the corresponding method provided above, and are not described herein again.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: flash memory, removable hard drive, read only memory, random access memory, magnetic or optical disk, and the like.
The above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (12)

1. A method for controlling cursor movement is applied to an electronic device and comprises the following steps:
displaying a content editing area and a virtual keyboard area on a current interface, wherein a cursor is displayed in the content editing area, and a virtual keyboard is displayed in the virtual keyboard area;
detecting a first operation, wherein the first operation is a pressing operation input at a first position of the virtual keyboard area, or the first operation is a pressing operation at a preset edge of the electronic equipment;
in response to the first operation, displaying a cursor movement region on the virtual keyboard, the cursor movement region completely covering the virtual keyboard;
detecting a second operation after the first operation, the second operation being a sliding operation within the cursor movement region;
and controlling the cursor to move in the content editing area in response to the second operation.
2. The method of claim 1, wherein the direction of movement of the cursor is associated with a direction of sliding of the sliding operation.
3. The method according to claim 1 or 2, wherein the moving speed of the cursor is associated with a sliding speed of the sliding operation.
4. The method according to any one of claims 1 to 3, further comprising: in response to the first operation, a display form of the cursor changes.
5. The method according to any one of claims 1 to 4, wherein the sliding operation includes a sliding operation of sliding from the first position of the cursor movement region to a second position, the first position being a position in contact with the cursor movement region when the first operation is performed.
6. The method of claim 1, wherein the cursor movement region completely covering the virtual keyboard comprises: the keys of the virtual keyboard are not displayed.
7. The method of claim 1 or 6, wherein the cursor movement region completely covering the virtual keyboard comprises: all character keys of the virtual keyboard are not displayed.
8. The method of claim 7, further comprising: displaying at least one first control on a current interface, wherein the first control does not belong to the control of the virtual keyboard.
9. The method according to any one of claims 1 to 8, further comprising: in response to detecting that the user's finger leaves the electronic device, the cursor movement region disappears, and the virtual keyboard is redisplayed on the current interface.
10. The method of claim 1, further comprising:
detecting a first preset operation of a user;
responding to the first preset operation, displaying a content selection control in a current interface, wherein the content selection control comprises a starting control and an ending control, and the content between the starting control and the ending control is selected content;
detecting a second preset operation of the user after the first preset operation;
responding to the second preset operation, and moving the starting control in the current interface;
detecting a third preset operation of the user after the first preset operation;
and responding to the third preset operation, and moving the tail control in the current interface.
11. An electronic device, comprising: one or more processors, a display, an input device, and a memory; wherein the memory stores one or more programs therein, the one or more programs comprising instructions, which when executed by the electronic device, cause the electronic device to perform the method of any of claims 1 to 10.
12. A computer-readable storage medium having instructions stored therein, which when run on an electronic device, cause the electronic device to perform the method of any of claims 1-10.
CN202111003376.4A 2017-09-05 2017-09-05 Method for controlling cursor movement, content selection method, method for controlling page scrolling and electronic equipment Withdrawn CN113821133A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111003376.4A CN113821133A (en) 2017-09-05 2017-09-05 Method for controlling cursor movement, content selection method, method for controlling page scrolling and electronic equipment

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710792260.0A CN109426410B (en) 2017-09-05 2017-09-05 Method for controlling cursor movement, content selection method, method for controlling page scrolling and electronic equipment
CN202111003376.4A CN113821133A (en) 2017-09-05 2017-09-05 Method for controlling cursor movement, content selection method, method for controlling page scrolling and electronic equipment

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201710792260.0A Division CN109426410B (en) 2017-09-05 2017-09-05 Method for controlling cursor movement, content selection method, method for controlling page scrolling and electronic equipment

Publications (1)

Publication Number Publication Date
CN113821133A true CN113821133A (en) 2021-12-21

Family

ID=65514156

Family Applications (5)

Application Number Title Priority Date Filing Date
CN202111003889.5A Active CN113821134B (en) 2017-09-05 2017-09-05 Method for controlling cursor movement, content selection method, method for controlling page scrolling and electronic equipment
CN202111004284.8A Pending CN113821135A (en) 2017-09-05 2017-09-05 Method for controlling cursor movement, content selection method, method for controlling page scrolling and electronic equipment
CN202111005202.1A Withdrawn CN113791710A (en) 2017-09-05 2017-09-05 Method for controlling cursor movement, content selection method, method for controlling page scrolling and electronic equipment
CN201710792260.0A Active CN109426410B (en) 2017-09-05 2017-09-05 Method for controlling cursor movement, content selection method, method for controlling page scrolling and electronic equipment
CN202111003376.4A Withdrawn CN113821133A (en) 2017-09-05 2017-09-05 Method for controlling cursor movement, content selection method, method for controlling page scrolling and electronic equipment

Family Applications Before (4)

Application Number Title Priority Date Filing Date
CN202111003889.5A Active CN113821134B (en) 2017-09-05 2017-09-05 Method for controlling cursor movement, content selection method, method for controlling page scrolling and electronic equipment
CN202111004284.8A Pending CN113821135A (en) 2017-09-05 2017-09-05 Method for controlling cursor movement, content selection method, method for controlling page scrolling and electronic equipment
CN202111005202.1A Withdrawn CN113791710A (en) 2017-09-05 2017-09-05 Method for controlling cursor movement, content selection method, method for controlling page scrolling and electronic equipment
CN201710792260.0A Active CN109426410B (en) 2017-09-05 2017-09-05 Method for controlling cursor movement, content selection method, method for controlling page scrolling and electronic equipment

Country Status (1)

Country Link
CN (5) CN113821134B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114546240A (en) * 2022-02-25 2022-05-27 网易(杭州)网络有限公司 Interactive implementation method, device, equipment and storage medium of game
CN116088997A (en) * 2023-04-07 2023-05-09 深圳市微克科技有限公司 Page scrolling display method and device, storage medium and electronic equipment

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11379113B2 (en) * 2019-06-01 2022-07-05 Apple Inc. Techniques for selecting text
CN110389698A (en) * 2019-08-21 2019-10-29 北京奇点跳跃科技有限公司 Page control method, device, input equipment and server
CN110516222A (en) * 2019-08-30 2019-11-29 北京字节跳动网络技术有限公司 Method for editing text, device, equipment, storage medium
CN111399744A (en) * 2020-03-25 2020-07-10 北京小米移动软件有限公司 Method, device and storage medium for controlling cursor movement
CN111610916B (en) * 2020-05-15 2022-08-02 维沃移动通信有限公司 Display method and electronic device
CN113961115A (en) * 2020-07-16 2022-01-21 荣耀终端有限公司 Object editing method, electronic device, medium, and program product
CN114296616A (en) * 2020-09-23 2022-04-08 华为终端有限公司 Interface scrolling method and electronic equipment
CN112650437B (en) * 2020-12-23 2022-06-03 北京小米移动软件有限公司 Cursor control method and device, electronic equipment and storage medium
CN113485590A (en) * 2021-04-16 2021-10-08 维沃移动通信有限公司 Touch operation method and device
CN114860149A (en) * 2022-05-23 2022-08-05 Oppo广东移动通信有限公司 Content editing control method and device, electronic equipment and storage medium

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090002324A1 (en) * 2007-06-27 2009-01-01 Nokia Corporation Method, Apparatus and Computer Program Product for Providing a Scrolling Mechanism for Touch Screen Devices
CN102902454B (en) * 2012-08-10 2016-02-03 广州市动景计算机科技有限公司 Content at edge of webpage system of selection and device and mobile terminal
CN102890580B (en) * 2012-09-06 2016-06-15 百度在线网络技术(北京)有限公司 The method that in mobile terminal and mobile terminal, cursor position is selected
CN102902467B (en) * 2012-09-13 2015-03-18 广东欧珀移动通信有限公司 Text cursor positioning method of terminal equipment and terminal equipment
US20140109016A1 (en) * 2012-10-16 2014-04-17 Yu Ouyang Gesture-based cursor control
CN103229132B (en) * 2012-11-23 2016-01-27 华为技术有限公司 Realize method and the device of remote browse
CN103970460A (en) * 2013-01-30 2014-08-06 三星电子(中国)研发中心 Touch screen-based operation method and terminal equipment using same
CN103645851B (en) * 2013-10-28 2018-04-13 北京三星通信技术研究有限公司 The method and system of input content on the electronic equipment with touch-screen
CN103777866B (en) * 2014-02-24 2019-11-08 苏州浩辰软件股份有限公司 Data editing method and device for magnifying glass
CN105094671A (en) * 2015-07-17 2015-11-25 百度在线网络技术(北京)有限公司 Method and device used for editing content of input region
CN105094643B (en) * 2015-07-30 2018-12-21 努比亚技术有限公司 page display control method and device
CN105373309B (en) * 2015-11-26 2019-10-08 努比亚技术有限公司 Text selection method and mobile terminal
CN105867814A (en) * 2016-03-25 2016-08-17 乐视控股(北京)有限公司 Terminal unlocking method and terminal
CN106155557B (en) * 2016-07-11 2019-06-18 Oppo广东移动通信有限公司 A kind of virtual key display methods and mobile terminal
CN106980438B (en) * 2017-03-20 2020-04-24 联想(北京)有限公司 Cursor control method, device and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114546240A (en) * 2022-02-25 2022-05-27 网易(杭州)网络有限公司 Interactive implementation method, device, equipment and storage medium of game
CN114546240B (en) * 2022-02-25 2023-08-22 网易(杭州)网络有限公司 Interactive implementation method, device and equipment for game and storage medium
CN116088997A (en) * 2023-04-07 2023-05-09 深圳市微克科技有限公司 Page scrolling display method and device, storage medium and electronic equipment
CN116088997B (en) * 2023-04-07 2023-07-21 深圳市微克科技有限公司 Page scrolling display method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN113821135A (en) 2021-12-21
CN113821134B (en) 2022-07-26
CN109426410B (en) 2021-08-31
CN113791710A (en) 2021-12-14
CN113821134A (en) 2021-12-21
CN109426410A (en) 2019-03-05

Similar Documents

Publication Publication Date Title
CN109426410B (en) Method for controlling cursor movement, content selection method, method for controlling page scrolling and electronic equipment
US11074117B2 (en) Copying and pasting method, data processing apparatus, and user equipment
KR102141099B1 (en) Rapid screen segmentation method and apparatus, electronic device, display interface, and storage medium
CN108701001B (en) Method for displaying graphical user interface and electronic equipment
CN106775313B (en) Split screen operation control method and mobile terminal
US20200183574A1 (en) Multi-Task Operation Method and Electronic Device
US20100107116A1 (en) Input on touch user interfaces
CN107124508B (en) Position adjusting method and device of suspension control, terminal and readable storage medium
US20150089418A1 (en) Method for managing icon on user interface, and touch-control device
WO2018082269A1 (en) Menu display method and terminal
CN115220838A (en) Widget processing method and related device
EP3287883A1 (en) Screen activation method, device and electronic equipment
CN109309752B (en) Mobile terminal and method and device for operating screen with one hand
CN108920069B (en) Touch operation method and device, mobile terminal and storage medium
CN107728910B (en) Electronic device, display screen control system and method
CN110383244B (en) Calculator operation method and terminal
CN108475161A (en) Display methods and terminal
US20210109699A1 (en) Data Processing Method and Mobile Device
CN105511597B (en) A kind of page control method and device based on browser
CN114296626B (en) Display method and terminal of input interface
CN107003759B (en) Method for selecting text
EP3457269B1 (en) Electronic device and method for one-handed operation
EP3674867B1 (en) Human-computer interaction method and electronic device
CN107924261B (en) Method for selecting text

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20211221

WW01 Invention patent application withdrawn after publication