CN112764623A - Content editing method and device - Google Patents

Content editing method and device Download PDF

Info

Publication number
CN112764623A
CN112764623A CN202110105418.9A CN202110105418A CN112764623A CN 112764623 A CN112764623 A CN 112764623A CN 202110105418 A CN202110105418 A CN 202110105418A CN 112764623 A CN112764623 A CN 112764623A
Authority
CN
China
Prior art keywords
cursor
screen
moving
target
input
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.)
Granted
Application number
CN202110105418.9A
Other languages
Chinese (zh)
Other versions
CN112764623B (en
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202110105418.9A priority Critical patent/CN112764623B/en
Publication of CN112764623A publication Critical patent/CN112764623A/en
Application granted granted Critical
Publication of CN112764623B publication Critical patent/CN112764623B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/04845Interaction 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 for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • 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

Abstract

The application discloses a content editing method and device, belongs to the technical field of communication, and can solve the problems of complex operation and low efficiency when a user adjusts the position of a cursor. The method comprises the following steps: receiving a first input for adjusting a screen gesture; responding to the first input, and moving a cursor on the first interface according to the target direction; wherein the target direction is determined according to the gravity direction and the target information; the target information includes at least one of: folding direction information of the screen, and tilting direction information of the screen. The method and the device are applied to the scene of content editing of the user.

Description

Content editing method and device
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to a content editing method and device.
Background
With the increase of the frequency of using social software, users need to input a large amount of text content by using an input method every day.
In the related art, when a user wants to adjust the input content, the electronic device may be triggered to move a cursor to a proper position by a finger. For example, if the user wants to insert new content into the edited content, the user can trigger the electronic device to move the cursor to a position where the new content needs to be inserted by using the finger.
However, when the user triggers the electronic device to adjust the position of the cursor by using the finger, since the contact area between the finger and the screen is much larger than the distance between the finger and the screen, the operation precision is low, and the user may need to repeatedly trigger the adjustment to adjust the cursor to a proper position, so that the operation of the electronic device for adjusting the position of the cursor is complicated, and the efficiency is low.
Disclosure of Invention
The embodiment of the application aims to provide a content editing method and device, and the problems that when a user adjusts the position of a cursor, the operation is complicated and the efficiency is low can be solved.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a content editing method, where the method includes: receiving a first input for adjusting a screen gesture; in response to the first input, moving a cursor on a first interface in a target direction; wherein the target direction is determined according to the gravity direction and target information; the target information includes at least one of: folding direction information of the screen, and tilting direction information of the screen.
In a second aspect, an embodiment of the present application further provides a content editing apparatus, where the apparatus includes a receiving module and a moving module; the receiving module is used for receiving a first input for adjusting the screen posture; the moving module is used for responding to the first input received by the receiving module and moving a cursor on a first interface according to a target direction; wherein the target direction is determined according to the gravity direction and target information; the target information includes at least one of: folding direction information of the screen, and tilting direction information of the screen.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the steps of the content editing method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, after receiving a first input used by a user to adjust the screen posture, the electronic device combines the folding direction information of the screen and/or the tilting direction information of the screen with the gravity direction to determine the target direction of the cursor to move. When a user wants to move the cursor on the first interface, the cursor can move from a higher position to a lower position on the screen by adjusting the posture of the screen, so that the operation precision and the operation efficiency of the user on the cursor are improved.
Drawings
Fig. 1 is an operation diagram of a content editing method in the related art provided by an embodiment of the present application;
fig. 2 is a schematic flowchart of a content editing method provided in an embodiment of the present application;
fig. 3 is an operation diagram of a content editing method according to an embodiment of the present application;
fig. 4 is a second schematic operational diagram of a content editing method according to an embodiment of the present application;
fig. 5 is a third schematic operational diagram of a content editing method according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a content editing apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The content editing method provided by the embodiment of the application can be applied to a scene in which a user edits content.
For example, in a scenario where a user edits content, as shown in fig. 1, when the user is editing characters, if the user wants to insert a new character into the middle of the edited content, the user needs to click the position where the character is to be inserted with a finger and move a cursor to the position. However, since the contact area between the finger of the user and the screen is much larger than the distance between the fingers and the text, the operation precision of the user is low, and the cursor usually needs to be moved to the correct position by multiple operations, which results in low operation efficiency.
Aiming at the problem, in the technical scheme provided by the embodiment of the application, the user does not need to click the screen to adjust the position of the cursor, and when the user wants to move the cursor, the user only needs to adjust the posture of the screen, so that the cursor can move from the position with higher screen to the position with lower screen, and the operation precision and the operation efficiency of the user in moving the cursor are greatly improved.
The following describes in detail a content editing method provided in the embodiments of the present application with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
As shown in fig. 2, a content editing method provided in an embodiment of the present application may include the following steps 201 and 202:
step 201, the content editing apparatus receives a first input for adjusting the screen gesture.
Illustratively, the screen gestures described above include: a folded state of the screen, for example, folding or unfolding of the screen; the tilt of the screen is, for example, horizontal or at an angle to the horizontal.
Illustratively, the first input is an input for adjusting the screen posture, for example, the first input may be an input for folding the screen, an input for unfolding the screen, or an input for turning the screen in any direction by any angle in a three-dimensional space. The screen may be a foldable screen or a flexible screen.
Step 202, the content editing apparatus moves a cursor on the first interface according to the target direction in response to the first input.
Wherein, the target direction is determined according to the gravity direction and the target information; the target information includes at least one of: folding direction information of the screen, and tilting direction information of the screen.
For example, the first interface may be a content editing interface or a content browsing interface, and the content may be text content or other content including pictures. For example, the user uses an input method to input characters, and the interface includes the characters that the user has input; or, the user browses the interface of news or a webpage, and when the user wants to copy the content in the interface, a cursor for displaying the content of the user copying interface in the interface can be triggered by long-press input.
Illustratively, when the content editing apparatus receives a first input from the user, the cursor in the first interface moves according to the target direction, specifically, the cursor moves from a higher position to a lower position on the screen. That is, when the user wants to move the cursor, the position of the screen in the area where the cursor is located needs to be higher than the target position by folding, bending, or turning the screen. The target position is the final position where the user wants to move the cursor.
For example, as shown in fig. 3 (a), in a text editing interface of an electronic device, when a user wants to move a cursor in the interface from right to left, the position of the screen in the area where the cursor is located may be higher than a target position by bending or folding the right screen to left according to the method shown in fig. 3 (B), and then the cursor may move from right to left. Similarly, referring to fig. 3, as shown in fig. 4 (a), if the user wants to move the cursor downward, the upper half of the screen may be higher than the lower half of the screen by turning the screen, so that the cursor moves from top to bottom. As shown in fig. 4 (B), the user can also move the cursor in the direction of the lower left corner by raising the upper right corner of the screen. Taking the screen as an example, at this time, the included angle between the moving direction of the cursor and the vertical direction is approximately the same as the inclination angle of the screen.
For example, the content editing apparatus may turn on the cursor movement function after receiving a specific input of the user, which may be an input of the user to fold or bend the screen into a specific form. Further, the screen may not be on an absolutely horizontal plane, and therefore, the function of moving the cursor may be triggered in the case where the inclination angle of the screen exceeds a predetermined angle.
For example, in order to facilitate the user to operate the editing region, after the content editing apparatus triggers the function of moving the cursor, the content in the preset region range of the position of the cursor may be enlarged, so as to facilitate possible gesture operation of the user.
In the content editing method provided in the embodiment of the present application, a user may move a cursor by adjusting the form of the screen itself or the posture of the screen in the three-dimensional space. The cursor moves in the direction of gravity along the direction of the inclination of the screen. It will be appreciated that the first input described above is used to determine a direction of movement of the cursor, including: the direction of gravity, combined with the left or right or up or down relative to the screen, determines whether the movement is specifically to the left or right, up or down.
Therefore, after the electronic equipment receives the first input used for adjusting the screen posture of the user, the electronic equipment is combined with the gravity direction according to the folding direction information of the screen and/or the inclination direction information of the screen, and then the target direction in which the cursor needs to move is determined. When a user wants to move the cursor on the first interface, the cursor can move from a higher position to a lower position on the screen by adjusting the posture of the screen, so that the operation precision and the operation efficiency of the user on the cursor are improved.
Optionally, in this embodiment of the application, the content editing apparatus may determine the target direction according to the gravity direction and the target information, so that when the user adjusts the posture of the screen, the cursor can move from an area with a higher screen position to an area with a lower screen position along the screen.
For example, before moving the cursor on the first interface in the step 202 according to the target direction, the content editing method provided in the embodiment of the present application may further include the following steps 203a1 and 203a 2:
step 203a1, the content editing device determines the moving trend of the cursor according to the target information.
Wherein, the moving trend is used for indicating the moving direction of the cursor capable of moving on the screen. The movement trend may include moving on a target curve, which is a straight line on a plane on which the screen is located.
Illustratively, the target curve is approximately parallel to the tilt angle of the screen. In the case that the screen is a folding screen or a flexible screen, the inclination angle of the screen may be an inclination angle of the screen in the area where the cursor is located. It should be noted that, if the screen is a flexible screen, the inclination angle of the screen can be regarded as an angle of a tangential direction of the screen in the area where the cursor is located.
It will be appreciated that the target curve may be any straight line in the three-dimensional space where the screen is located, and the straight line may be represented by any two points in the coordinate system of the three-dimensional space. The moving direction of the cursor is not a straight line but a curve approximate to the straight line, limited to the screen size.
Step 203a2, the content editing device determines the target direction according to the moving trend and the gravity direction.
Wherein the target direction is a direction along a gravity direction in the moving direction.
Illustratively, the moving direction includes a direction along the screen tilt, and two directions, i.e., upward and downward. In combination with the direction of gravity, the direction of movement of the cursor, i.e. the above-mentioned target direction, may be determined. The target direction is a direction downward along the screen inclination direction. That is, the direction of movement of the cursor on the screen always moves from a region with a higher screen position to a region with a lower screen position.
For example, the content editing apparatus may acquire the current posture of the screen in accordance with a gyroscope provided in the electronic device. Including the tilt direction of the screen, and tilt angle, etc.
Therefore, the electronic equipment can determine the moving direction of the cursor by combining the gravity factor according to the inclination condition of the screen, and then move the cursor according to the direction.
Optionally, in this embodiment of the application, the user may enable the content editing apparatus to start moving the cursor by adjusting the input of the screen gesture, and after the cursor is moved to the position that the user wants to move, the user may also enable the content editing apparatus to stop moving the cursor by further adjusting the screen gesture.
After the step 202, the content editing method provided in the embodiment of the present application may further include the following steps 204a1 and 204a 2:
step 204a1, the content editing apparatus receives a second input for adjusting the screen pose.
Illustratively, the second input is also an input for adjusting the posture of the screen, similar to the first input, except that the first input is folding, bending or tilting the screen to form an angle with the horizontal plane; the second input is to restore the screen to the unfolded and horizontally placed state, so that the included angle between the screen and the horizontal plane approaches zero. Especially the screen in which the light is located, the angle with the horizontal plane is close to zero, i.e. smaller than the predetermined angle.
In step 204a2, the content editing apparatus responds to the second input, and stops moving the cursor if the tilt angle of the screen of the area where the cursor is located in the horizontal direction is smaller than the preset angle.
Illustratively, after the content editing apparatus receives the second input of the user, only the tilt angle of the screen in the horizontal direction of the area where the cursor is located is considered regardless of the posture of the screen. If the second input adjusts the inclination angle of the screen of the area where the cursor is located in the horizontal direction to be smaller than the preset angle, the content editing device stops the movement of the cursor.
For example, as shown in fig. 3 (B), after the user bends and raises the screen, the content editing apparatus moves the cursor to the left. If the user wants to stop moving the cursor, the right screen can be restored to the horizontal state, or the left screen can be bent, so that the included angle between the screen of the area where the cursor is located and the horizontal plane is smaller than the preset angle, and the content editing device stops moving the cursor.
In this way, the user can cause the content editing apparatus to stop moving the cursor by adjusting the screen gesture.
Alternatively, in this embodiment of the present application, after the content editing apparatus starts moving the cursor, if an input that the user stops moving the cursor is not received, the movement of the cursor may be automatically stopped when a certain condition is satisfied.
After the step 202, the content editing method provided in the embodiment of the present application may further include the following step 205 a:
step 205a, if the cursor moves to the lowest point of the screen along the gravity direction, or the inclination angle of the screen in the horizontal direction of the area where the cursor is located is smaller than a preset angle, stopping moving the cursor.
Illustratively, the lowest point of the screen in the gravity direction may be the lowest point of the screen in the gravity direction within a movable range of the cursor on the screen.
Illustratively, the content editing apparatus stops moving the cursor similarly to when receiving the second input of the user, except that the cursor moves to the boundary of the movable range, resulting in no movement, when the cursor moves to a screen area having an angle smaller than a preset angle with the horizontal plane, the content editing apparatus also stops moving the cursor.
For example, as shown in fig. 3 (B), when the cursor moves to the position as shown in fig. 30a, the tilt angle of the screen of the area where the cursor is currently located in the horizontal direction is smaller than the preset angle, and at this time, even if the cursor has not moved to the boundary of the movable range, the cursor still stops moving.
In this way, after the content editing apparatus starts moving the cursor, if the input of the user stopping moving the cursor is not received, the content editing apparatus stops moving the cursor if a certain condition is satisfied.
Optionally, in this embodiment of the present application, the content editing apparatus moves the position of the cursor, and may be used to select content in addition to inserting new content at the cursor position.
Illustratively, the step 202 may include the following steps 202 a:
step 202a, the content editing apparatus moves the cursor according to the target direction in response to the first input, and selects the content between the initial position of the cursor and the current position of the cursor along with the movement of the cursor.
For example, after the cursor starts to move, the content editing device will select the content between the starting position of the cursor and the current position of the cursor each time the cursor moves, in a manner similar to the content selected by the existing moving cursor.
For example, the starting position when the cursor starts to move is located at row 3, column 4, the content editing apparatus moves the cursor downward by one row, and after the 4 th row and column 4 are reached, the content editing apparatus will select the content between the 4 th row and column 4 of row 3 and column 4. I.e. the content editing device will select all content after row 3, column 4 and before row 4, column 4.
Illustratively, after the content editing apparatus selects the content in the above manner, the user may edit the selected content by a specific input, including: copy, paste, cut, etc. The specific inputs may include: the input such as long pressing, short pressing, dragging and the like can start different functions through the combination of different input modes.
For example, when the content editing apparatus completes the selection, the selected content may be locked, and then moved to a new position by moving the selected content in the same manner as the above-described cursor movement.
Therefore, the content editing device can select the content between the initial position of the cursor and the current position of the cursor when the cursor is moved, and a user can conveniently further operate the selected content.
Optionally, in the embodiment of the present application, in addition to providing the above manner for selecting content, when there are many selected contents, another manner for selecting content is provided, so that more contents can be selected quickly.
Illustratively, the cursor includes a first cursor and a second cursor, and the step 202 may further include the following step 202 b:
step 202b, the content editing apparatus, in response to the first input, moves the first cursor in a first direction, moves the second cursor in a second direction, and selects the content between the current position of the first cursor and the current position of the second cursor along with the movement of the first cursor and the second cursor.
Wherein the first direction and the second direction are determined according to the gravity direction and the target information.
Illustratively, the selection mode of the two cursors is generally applicable to a foldable screen or a flexible screen. And, the position of the first input folding or bending screen is located between the first cursor and the second cursor. After the content editing device receives a first input of a user for folding or bending the screen, because the folding or bending position of the screen is positioned between the first cursor and the second cursor and the folding or bending directions of the two sides of the screen are downward towards the gravity direction, according to the gravity direction and the target information, the moving direction of the first cursor and the moving direction of the second cursor can be determined to be different, and the first cursor and the second cursor respectively move from a higher area to a lower area of the two sides of the screen, so that the content can be selected more quickly.
For example, as shown in fig. 5 (a), two cursors are displayed on the content editing interface, and the position where the user bends the screen is located between the two cursors, the two cursors will move to two sides of the screen respectively. As shown in fig. 5 (B), if the position where the user bends the screen is located on the left side of the two cursors, both cursors move to the right side of the screen. Therefore, the position of the user's bent screen must be located between two cursors for quick selection.
For example, in this embodiment of the application, the content editing apparatus may further adjust the moving speed of the cursor according to the size of the inclination angle of the screen of the area where the cursor is located in the horizontal direction, where the larger the inclination angle of the screen of the area where the cursor is located in the horizontal direction, the faster the moving speed of the cursor is, and conversely, the smaller the inclination angle of the screen of the area where the cursor is located in the horizontal direction, the smaller the moving speed of the cursor is.
For example, if the user wants to make the content editing apparatus stop moving the cursor, the content editing apparatus may be made to stop moving the cursor by the second input according to the method of step 204a2 described above.
In this way, the content editing device can select the content more quickly by moving the two cursors simultaneously.
According to the content editing method provided by the embodiment of the application, after the electronic equipment receives the first input of the user for adjusting the screen posture, the electronic equipment is combined with the gravity direction according to the folding direction of the screen and/or the inclination direction of the screen, and then the target direction of the cursor to be moved is determined. Specifically, the electronic device may determine a movement tendency indicating a movement direction of the cursor on the screen according to the target information, and then, the electronic device determines a direction along the gravity direction in the movement direction according to the movement tendency and the gravity direction. When a user wants to move the cursor on the first interface, the cursor can move from a higher position to a lower position on the screen by adjusting the posture of the screen, so that the operation precision and the operation efficiency of the user on the cursor are improved.
In the content editing method provided in the embodiment of the present application, the execution main body may be a content editing apparatus, or a control module in the content editing apparatus for executing the content editing method. In the embodiment of the present application, a content editing apparatus is used as an example to execute a content editing method, and the content editing apparatus provided in the embodiment of the present application is described.
In the embodiments of the present application, the above-described methods are illustrated in the drawings. The content editing method is exemplarily described with reference to one of the drawings in the embodiments of the present application. In specific implementation, the content editing method shown in each method drawing can also be implemented by combining any other drawing which can be combined and is illustrated in the above embodiments, and details are not described here.
Fig. 6 is a schematic structural diagram of a content editing apparatus for implementing the content editing apparatus provided in the embodiment of the present application, and as shown in fig. 6, the content editing apparatus 600 includes: a receiving module 601 and a moving module 602; the receiving module 601 is configured to receive a first input for adjusting a screen gesture; a moving module 602, configured to move a cursor on the first interface according to a target direction in response to the first input received by the receiving module 601; wherein the target direction is determined according to the gravity direction and the target information; the target information includes at least one of: folding direction information of the screen, and tilting direction information of the screen.
Optionally, the content editing apparatus 600 further includes: a determining module 603, configured to determine a moving trend of the cursor according to the target information, where the moving trend is used to indicate a moving direction in which the cursor can move on the screen; the determining module 603 is further configured to determine a target direction according to the moving trend and the gravity direction, where the target direction is a direction along the gravity direction in the moving direction.
Optionally, the receiving module 601 is further configured to receive a second input for adjusting the screen gesture; the moving module 602 is further configured to, in response to the second input received by the receiving module 601, stop moving the cursor if an inclination angle of the screen of the area where the cursor is located in the horizontal direction is smaller than a preset angle.
Optionally, the moving module 602 is further configured to stop moving the cursor if the cursor moves to the lowest point of the screen along the gravity direction, or an inclination angle of the screen in the area where the cursor is located in the horizontal direction is smaller than a preset angle.
Optionally, the moving module 602 is specifically configured to, in response to the first input received by the receiving module 601, move the cursor according to the target direction, and select, along with the movement of the cursor, content between the starting position of the cursor and the current position of the cursor.
Optionally, the cursor comprises a first cursor and a second cursor; a moving module 602, specifically configured to, in response to the first input received by the receiving module 601, move a first cursor in a first direction, move a second cursor in a second direction, and select, along with the movement of the first cursor and the second cursor, content between a current position of the first cursor and a current position of the second cursor; wherein the first direction and the second direction are determined according to the gravity direction and the target information.
The content editing apparatus in the embodiment of the present application may be an apparatus, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. Illustratively, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The content editing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The content editing apparatus provided in the embodiment of the present application can implement each process implemented by the content editing apparatus in the method embodiments of fig. 2 to fig. 5, and is not described here again to avoid repetition.
According to the content editing device provided by the embodiment of the application, after the electronic equipment receives the first input of the user for adjusting the screen posture, the electronic equipment is combined with the gravity direction according to the folding direction of the screen and/or the inclination direction of the screen, and then the target direction of the cursor to be moved is determined. Specifically, the electronic device may determine a movement tendency indicating a movement direction of the cursor on the screen according to the target information, and then, the electronic device determines a direction along the gravity direction in the movement direction according to the movement tendency and the gravity direction. When a user wants to move the cursor on the first interface, the cursor can move from a higher position to a lower position on the screen by adjusting the posture of the screen, so that the operation precision and the operation efficiency of the user on the cursor are improved.
Optionally, an electronic device is further provided in this embodiment of the present application, and includes a processor 110, a memory 109, and a program or an instruction stored in the memory 109 and capable of being executed on the processor 110, where the program or the instruction is executed by the processor 110 to implement each process of the foregoing content editing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present application.
The electronic device 100 includes, but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
Those skilled in the art will appreciate that the electronic device 100 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
Wherein, the user input unit 107 is used for receiving a first input for adjusting the screen gesture; a display unit 106 for moving a cursor on the first interface in a target direction in response to the first input received by the user input unit 107; wherein the target direction is determined according to the gravity direction and the target information; the target information includes at least one of: folding direction information of the screen, and tilting direction information of the screen.
Therefore, after the electronic equipment receives the first input of the user for adjusting the screen posture, the electronic equipment is combined with the gravity direction according to the folding direction of the screen and/or the inclination direction of the screen, and then the target direction of the cursor to be moved is determined. When a user wants to move the cursor on the first interface, the cursor can move from a higher position to a lower position on the screen by adjusting the posture of the screen, so that the operation precision and the operation efficiency of the user on the cursor are improved.
Optionally, the processor 110 is configured to determine a moving trend of the cursor according to the target information, where the moving trend is used to indicate a moving direction in which the cursor can move on the screen; the processor 110 is further configured to determine a target direction according to the moving trend and the gravity direction, where the target direction is a direction along the gravity direction in the moving direction.
Therefore, the electronic equipment can determine the moving direction of the cursor by combining the gravity factor according to the inclination condition of the screen, and then move the cursor according to the direction.
Optionally, the user input unit 107 is further configured to receive a second input for adjusting the screen gesture; the display unit 106 is further configured to, in response to a second input received by the user input unit 107, stop moving the cursor if an inclination angle of the screen of the area where the cursor is located in the horizontal direction is smaller than a preset angle.
In this way, the user can cause the content editing apparatus to stop moving the cursor by adjusting the screen gesture.
Optionally, the display unit 106 is further configured to stop moving the cursor if the cursor moves to the lowest point of the screen in the gravity direction, or an inclination angle of the screen in the horizontal direction of the area where the cursor is located is smaller than a preset angle.
In this way, after the content editing apparatus starts moving the cursor, if the input of the user stopping moving the cursor is not received, the content editing apparatus stops moving the cursor if a certain condition is satisfied.
Optionally, the display unit 106 is specifically configured to, in response to the first input received by the user input unit 107, move the cursor in the target direction, and select content between the starting position of the cursor and the current position of the cursor as the cursor moves.
Therefore, the content editing device can select the content between the initial position of the cursor and the current position of the cursor when the cursor is moved, and a user can conveniently further operate the selected content.
In this way, the content editing device can select the content more quickly by moving the two cursors simultaneously.
Optionally, the cursor comprises a first cursor and a second cursor; a moving module 602, specifically configured to, in response to a first input received by the user input unit 107, move a first cursor in a first direction, move a second cursor in a second direction, and select, along with the movement of the first cursor and the second cursor, content between a current position of the first cursor and a current position of the second cursor; wherein the first direction and the second direction are determined according to the gravity direction and the target information.
According to the electronic equipment provided by the embodiment of the application, after the first input of the screen gesture adjusted by the user is received, the electronic equipment is combined with the gravity direction according to the folding direction of the screen and/or the inclination direction of the screen, and then the target direction of the cursor to be moved is determined. Specifically, the electronic device may determine a movement tendency indicating a movement direction of the cursor on the screen according to the target information, and then, the electronic device determines a direction along the gravity direction in the movement direction according to the movement tendency and the gravity direction. When a user wants to move the cursor on the first interface, the cursor can move from a higher position to a lower position on the screen by adjusting the posture of the screen, so that the operation precision and the operation efficiency of the user on the cursor are improved.
It should be understood that, in the embodiment of the present application, the input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics Processing Unit 1041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 110 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above content editing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the above content editing method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling an electronic device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (12)

1. A method for content editing, the method comprising:
receiving a first input for adjusting a screen gesture;
in response to the first input, moving a cursor on a first interface in a target direction;
wherein the target direction is determined according to the gravity direction and target information; the target information includes at least one of: folding direction information of the screen, and tilting direction information of the screen.
2. The method of claim 1, wherein prior to moving the cursor on the first interface in the target direction, the method further comprises:
determining a movement trend of the cursor according to the target information, wherein the movement trend is used for indicating a movement direction in which the cursor can move on the screen;
and determining the target direction according to the moving trend and the gravity direction, wherein the target direction is the direction along the gravity direction in the moving direction.
3. The method of claim 1, wherein after moving the cursor in the target direction, the method further comprises:
receiving a second input for adjusting the screen gesture;
and responding to the second input, and if the inclination angle of the screen of the area where the cursor is located in the horizontal direction is smaller than a preset angle, stopping moving the cursor.
4. The method of claim 1, wherein after moving the cursor in the target direction, the method further comprises:
and if the cursor moves to the lowest point of the screen along the gravity direction, or the inclination angle of the screen in the area where the cursor is located in the horizontal direction is smaller than a preset angle, stopping moving the cursor.
5. The method of any of claims 1-4, wherein moving the cursor in a target direction in response to the first input comprises:
and responding to the first input, moving the cursor according to the target direction, and selecting the content between the starting position of the cursor and the current position of the cursor along with the movement of the cursor.
6. The method of any one of claims 1 to 4, wherein the cursors comprise a first cursor and a second cursor;
said moving the cursor in a target direction in response to the first input comprises:
in response to the first input, moving the first cursor in a first direction, moving the second cursor in a second direction, and selecting content between a current position of the first cursor and a current position of the second cursor along with the movement of the first cursor and the second cursor;
wherein the first direction and the second direction are determined according to the gravity direction and the target information.
7. A content editing apparatus, characterized in that the apparatus comprises: a receiving module and a moving module;
the receiving module is used for receiving a first input for adjusting the screen posture;
the moving module is used for responding to the first input received by the receiving module and moving a cursor on a first interface according to a target direction;
wherein the target direction is determined according to the gravity direction and target information; the target information includes at least one of: folding direction information of the screen, and tilting direction information of the screen.
8. The apparatus of claim 7, further comprising: a determination module;
the determining module is used for determining a moving trend of the cursor according to the target information, wherein the moving trend is used for indicating a moving direction in which the cursor can move on the screen;
the determining module is further configured to determine the target direction according to the moving trend and the gravity direction, where the target direction is a direction along the gravity direction in the moving direction.
9. The apparatus of claim 7,
the receiving module is further used for receiving a second input for adjusting the screen posture;
the moving module is further configured to respond to a second input received by the receiving module, and stop moving the cursor if an inclination angle of a screen of an area where the cursor is located in a horizontal direction is smaller than a preset angle.
10. The apparatus of claim 7,
the moving module is further configured to stop moving the cursor if the cursor moves to the lowest point of the screen along the gravity direction, or an inclination angle of the screen in the area where the cursor is located in the horizontal direction is smaller than a preset angle.
11. The apparatus according to any one of claims 7 to 10,
the moving module is specifically configured to move the cursor according to a target direction in response to the first input received by the receiving module, and select content between an initial position of the cursor and a current position of the cursor along with the movement of the cursor.
12. The apparatus of any one of claims 7 to 10, wherein the cursor comprises a first cursor and a second cursor;
the moving module is specifically configured to, in response to the first input received by the receiving module, move the first cursor in a first direction, move the second cursor in a second direction, and select, along with the movement of the first cursor and the second cursor, content between a current position where the first cursor is located and a current position where the second cursor is located;
wherein the first direction and the second direction are determined according to the gravity direction and the target information.
CN202110105418.9A 2021-01-26 2021-01-26 Content editing method and device Active CN112764623B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110105418.9A CN112764623B (en) 2021-01-26 2021-01-26 Content editing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110105418.9A CN112764623B (en) 2021-01-26 2021-01-26 Content editing method and device

Publications (2)

Publication Number Publication Date
CN112764623A true CN112764623A (en) 2021-05-07
CN112764623B CN112764623B (en) 2022-09-09

Family

ID=75705850

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110105418.9A Active CN112764623B (en) 2021-01-26 2021-01-26 Content editing method and device

Country Status (1)

Country Link
CN (1) CN112764623B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1484785A (en) * 2001-01-10 2004-03-24 索尼公司 Information processing terminal
CN102662556A (en) * 2012-03-07 2012-09-12 中兴通讯股份有限公司 Control method, apparatus and system for computer terminal
CN102681765A (en) * 2011-03-09 2012-09-19 Lg电子株式会社 Mobile terminal and text cursor operating method thereof
CN103677550A (en) * 2012-09-11 2014-03-26 联想(北京)有限公司 Information processing method and electronic equipment
CN104156140A (en) * 2014-08-15 2014-11-19 广东欧珀移动通信有限公司 Method and device for editing characters quickly with gravity sensor
CN104777959A (en) * 2015-03-23 2015-07-15 努比亚技术有限公司 Cursor positioning method and cursor positioning device for mobile terminal
CN106095243A (en) * 2016-06-15 2016-11-09 维沃移动通信有限公司 A kind of method replicating stickup and mobile terminal
CN106557258A (en) * 2016-11-21 2017-04-05 珠海市魅族科技有限公司 It is a kind of to replicate method of attaching and terminal
CN110806831A (en) * 2019-09-30 2020-02-18 华为技术有限公司 Touch screen response method and electronic equipment
CN110888569A (en) * 2019-10-21 2020-03-17 维沃移动通信有限公司 Content selection control method and electronic equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1484785A (en) * 2001-01-10 2004-03-24 索尼公司 Information processing terminal
CN102681765A (en) * 2011-03-09 2012-09-19 Lg电子株式会社 Mobile terminal and text cursor operating method thereof
CN102662556A (en) * 2012-03-07 2012-09-12 中兴通讯股份有限公司 Control method, apparatus and system for computer terminal
CN103677550A (en) * 2012-09-11 2014-03-26 联想(北京)有限公司 Information processing method and electronic equipment
CN104156140A (en) * 2014-08-15 2014-11-19 广东欧珀移动通信有限公司 Method and device for editing characters quickly with gravity sensor
CN104777959A (en) * 2015-03-23 2015-07-15 努比亚技术有限公司 Cursor positioning method and cursor positioning device for mobile terminal
CN106095243A (en) * 2016-06-15 2016-11-09 维沃移动通信有限公司 A kind of method replicating stickup and mobile terminal
CN106557258A (en) * 2016-11-21 2017-04-05 珠海市魅族科技有限公司 It is a kind of to replicate method of attaching and terminal
CN110806831A (en) * 2019-09-30 2020-02-18 华为技术有限公司 Touch screen response method and electronic equipment
CN110888569A (en) * 2019-10-21 2020-03-17 维沃移动通信有限公司 Content selection control method and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陌上青影: "《手机怎么复制粘贴文字》", 《HTTPS://JINGYAN.BAIDU.COM/ARTICLE/647F01158879D03E2048A853.HTML》, 28 May 2020 (2020-05-28), pages 1 - 2 *

Also Published As

Publication number Publication date
CN112764623B (en) 2022-09-09

Similar Documents

Publication Publication Date Title
JP5987054B2 (en) Device, method and graphical user interface for document manipulation
US20160062407A1 (en) Information processing apparatus, information processing method and program
KR102052424B1 (en) Method for display application excution window on a terminal and therminal
EP3002664A1 (en) Text processing method and touchscreen device
EP2889740A1 (en) Method, apparatus and computer program product for zooming and operating screen frame
US10474344B2 (en) Method, apparatus and recording medium for a scrolling screen
CN112433693B (en) Split screen display method and device and electronic equipment
WO2022166893A1 (en) Information display method and apparatus, electronic device, and storage medium
CN113918260A (en) Application program display method and device and electronic equipment
CN112558831A (en) Desktop sorting method and device and electronic equipment
CN114518820A (en) Icon sorting method and device and electronic equipment
CN112558851B (en) Object processing method, device, equipment and readable storage medium
CN113407280A (en) Display method and device and electronic equipment
CN113342232A (en) Icon generation method and device, electronic equipment and readable storage medium
CN111638828A (en) Interface display method and device
CN112764623B (en) Content editing method and device
CN113407144B (en) Display control method and device
CN116107531A (en) Interface display method and device
CN115357172A (en) Content display method and device
CN114327726A (en) Display control method, display control device, electronic equipment and storage medium
EP3521987A1 (en) Method and device for displaying page, graphical user interface, and mobile terminal
CN114779977A (en) Interface display method and device, electronic equipment and storage medium
CN113238694A (en) Interface comparison method and device and mobile terminal
CN112765500A (en) Information searching method and device
CN113835578A (en) Display method and device and electronic equipment

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
GR01 Patent grant
GR01 Patent grant