Object editing method, electronic device, medium and program product

Select objects through finger movement controls and pop up an editing menu near the finger, which solves the problem of high complexity of object editing operations, enables efficient and precise cursor movement and object selection in mouse-less devices, and improves user experience.

CN113961115BActive Publication Date: 2024-09-20HONOR DEVICE CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202010688554.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-16
Publication Date
2024-09-20
Estimated Expiration
2040-07-16

AI Technical Summary

Technical Problem

In the existing technology, object editing operations are complex and difficult. Especially in mouse-less devices, cursor movement and object selection operations are inaccurate, affecting user experience.

Method used

Use your finger to move controls to select screen objects, and after completing the object selection, the editing menu will pop up near your finger. Use your finger to leave the screen or stay for a long time to judge the completion of the selection, determine the menu area, provide options such as copy and paste, and support multiple operation modes. Such as precise selection and quick selection.

Benefits of technology

It simplifies object editing operations, improves user experience and efficiency, reduces misoperations, and enables highly precise cursor movement and object selection in mouse-less devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113961115B
    Figure CN113961115B
Patent Text Reader

Abstract

The present disclosure relates to an object editing method, an electronic device, a computer-readable storage medium, and a computer program product. According to the object editing method described herein, after selecting an object displayed on a screen according to the movement of a finger to a control, it is determined whether the object selection is completed according to a preset condition. If the object selection is completed, the menu area for editing the selected object is determined according to the position touched by the finger, and then an edit menu is displayed in the determined menu area, wherein the edit menu includes one or more options that can be used to edit the selected object. The embodiment of the present disclosure selects an object in an object area by moving a control by a finger, and pops up an edit menu of the object near the finger after the object selection is completed, so that the user can efficiently complete the object editing operation. Therefore, the embodiment of the present disclosure can reduce the complexity and difficulty of object editing, thereby improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure generally relates to the field of information technology, and more particularly to an object editing method, an electronic device, a computer-readable storage medium, and a computer program product. Background Art

[0002] A cursor is a symbol or graphic that indicates the current location of a user interaction on the screen. In devices with a mouse connected, the cursor is usually in the form of an arrow, which can indicate the current operating position of the mouse. When the cursor moves into an editable object (such as text, images, etc.), the cursor will become a flashing form, which can flash periodically to prompt the user of the current input location. In devices without a mouse connected, there is usually no arrow cursor, but a flashing cursor may be accompanied when editing an object.

[0003] In an electronic device with a touch screen, a user can change the position of the cursor by clicking on the screen, thereby modifying the current input position of the object. In addition, the user can also select the displayed object by pressing and sliding, for example, the user can slide to determine the starting position and the end position of the object selection. After selecting the object, the selected object can be edited through the object's edit menu, such as copying, cutting, pasting, deleting, etc. Summary of the invention

[0004] According to some embodiments of the present disclosure, an object editing method, a text editing method, an electronic device, a medium, and a program product are provided, which can reduce the complexity and operational difficulty of object editing, thereby improving user experience.

[0005] In a first aspect of the present disclosure, an object editing method applied to an electronic device is provided. According to the object editing method of the first aspect, an object displayed on a screen is selected by moving a finger to a control, and after the object selection is completed (for example, it is detected that the finger leaves the screen or the finger stays for a long time, etc.), a menu area is determined according to the position touched by the finger, and an edit menu is displayed in the determined menu area, wherein the edit menu includes one or more options for editing the selected object.

[0006] Therefore, according to the object editing method of the first aspect of the present disclosure, an object in the object area can be selected by moving the finger control, and after the object selection is completed, an editing menu of the object pops up near the finger, so that the user can efficiently complete the object editing operation. Therefore, the object editing method of the first aspect of the present disclosure can reduce the complexity and difficulty of object editing, thereby improving the user experience.

[0007] In some implementations, whether the object selection is completed can be determined by whether the finger leaves the screen. For example, if the screen of the electronic device detects a lift event, it means that the finger has left the screen. It can detect whether the finger has left the screen, and if it is detected that the finger has left the screen, it can be determined that the object selection is completed, and then the menu area is determined based on the position where the finger leaves the screen. In this way, when the user intends to edit the object after completing the object selection, the edit menu can be popped up nearby in a timely manner, thereby improving the efficiency of object editing.

[0008] In some implementations, whether the object selection is completed can be determined by whether the finger stays for a long time. For example, if the finger's reporting position does not change for a long time, it means that the finger stays for a long time. If it is detected that the finger stays on the screen for a predetermined time, it is determined that the object selection is completed, and then the menu area is determined based on the position where the finger stays on the screen. In this way, the user's editing intention can be known when the user stops selecting text, so that the editing menu is automatically popped up at the right time to improve the user experience.

[0009] In some implementations, one or more options in the edit menu include a copy option, and the method further includes: receiving a finger selection of the copy option, determining another menu area based on the position of the finger selection, and then displaying another edit menu in the determined another menu area, wherein the other edit menu includes a paste option for pasting the selected object. The electronic device detects that there is data in the clipboard, thereby determining the user's pasting intention, so that the user can paste the object immediately after copying the object, thereby improving the efficiency of object pasting.

[0010] In some implementations, the controls of the electronic device may involve two modes: cursor movement and object selection, and may enter an object selection mode after receiving a trigger operation from the user. The user's trigger mode may be related to touch duration, touch area, touch pressure, or touch action, etc.

[0011] In some implementations, if the duration of static pressing of a finger in a predetermined area of ​​the screen is greater than a threshold duration, an object selection mode may be entered, and then one or more objects may be selected in the object selection mode according to the movement of the finger on the control. By long pressing a predetermined area to enter the object selection mode, the control can support multiple operation modes, which not only improves the user's experience of moving the cursor, but also improves the user's experience of selecting objects.

[0012] In some implementations, if the contact area of ​​the finger in the predetermined area of ​​the screen is greater than the threshold area, the object selection mode may be entered, and then in the object selection mode, one or more objects may be selected according to the movement of the finger on the control. By pressing a predetermined area over a large area to enter the object selection mode, the control can support multiple operation modes, which not only improves the user's experience of moving the cursor, but also improves the user's experience of selecting objects.

[0013] In some implementations, when the screen is a pressure-sensitive screen, if the pressure of the finger in a predetermined area of ​​the screen is greater than a threshold pressure, an object selection mode may be entered, and then one or more objects may be selected in the object selection mode according to the movement of the finger on the control. By properly using the light press and heavy press operations of the pressure-sensitive screen, the control can support multiple operation modes, which not only improves the user's experience of moving the cursor, but also improves the user's experience of selecting objects.

[0014] In some implementations, the distance between the control and the predetermined position can be determined, and one or more objects are selected when the distance is greater than a first threshold. In this way, small movements of the control caused by the user's mistaken touch can be avoided, reducing misoperation. For example, the center distance between the center of the control and the center of the reference graphic displayed on the screen (as the predetermined position) can be determined, and one or more objects are selected when the center distance is greater than a first threshold, thereby better implementing object selection through the reference graphic as an auxiliary boundary.

[0015] In some implementations, the object selection mode may include a precise selection state in which one object or a row of objects is selected at a time and a fast selection state in which any number of objects are selected at a time. If the distance is greater than a first threshold and less than or equal to a larger second threshold, the precise selection state is entered; and if the distance is greater than the second threshold, the fast selection state is entered. By setting a fine precise selection state and a non-fine fast selection state, the user can perform precise or fast object selection according to his needs.

[0016] In some implementations, if the distance is greater than a first threshold and less than or equal to a larger second threshold, the precise selection state is entered; if the distance is greater than the second threshold and less than or equal to a larger third threshold, the paused selection state of pausing the selection of the object is entered; and if the distance is greater than the third threshold, the quick selection state is entered. By setting the third threshold, a pause period can be added between the precise selection state and the quick selection state, so that the user can better understand the switching between different states, further improving the user experience.

[0017] In some implementations, the method further includes determining a speed at which the finger leaves the screen when the finger is detected to leave the screen; determining a direction of movement of the finger if the speed at which the finger leaves the screen is greater than a threshold speed (i.e., a flick event); and moving the cursor in the direction of movement by one object or one line, such as moving the cursor position by one character or one line. In this way, the cursor can be moved more accurately when the user flicks.

[0018] In some implementations, the object editing method of the first aspect can also be applied to scenarios where there is no cursor. For example, when a touch is received on a control, it is first determined whether there is a cursor on the screen. If it is determined that there is no cursor on the screen, an auxiliary cursor is displayed on the screen. Then, the position of the auxiliary cursor is changed by moving the finger on the control, thereby determining the starting position of the object selection. Therefore, in a scenario where there is no cursor, the implementation of the present disclosure can determine the starting position of the object selection by providing an auxiliary cursor, thereby improving the efficiency of object selection.

[0019] In a second aspect of the present disclosure, a text editing method applied to an electronic device is provided. According to the text editing method of the second aspect, a text display area (i.e., a text area) and an on-screen keyboard area (i.e., a keyboard area) are simultaneously displayed on the screen of the electronic device, wherein the text display area displays text input through the on-screen keyboard. After a start operation for selecting text is detected, a text selection area is displayed, wherein the start operation can act on the on-screen keyboard area. After an end operation for ending the selection is detected, an edit menu is displayed in the on-screen keyboard area, wherein the end operation acts on the on-screen keyboard area, and the edit menu includes one or more options for editing the text selected in the text selection area.

[0020] Therefore, according to the text editing method of the second aspect of the present disclosure, it is possible to operate on the screen keyboard area to select text, and after the selection is completed, an edit menu for editing the selected text is displayed in the screen keyboard area. In this way, the text selection operation can be completed in the screen keyboard area without moving the finger to the text display area for operation, which reduces the back and forth movement of the finger and improves the user experience.

[0021] In some implementations, the screen keyboard area includes a control, and the control is used to select text in the text selection area. By arranging the control in the screen keyboard area, text selection in the text display area can be completed more conveniently.

[0022] In some implementations, the text selection mode may be entered when any of the following conditions is satisfied: the user's finger is stationary pressed in a predetermined area of ​​the screen for a time period greater than a threshold time period, the contact area of ​​the finger in the predetermined area is greater than a threshold area, or the pressing pressure of the finger in the predetermined area is greater than a threshold pressure. In the text selection mode, the start operation is detected by detecting whether the control is moved to a predetermined distance. In this way, small movements of the control caused by the user's accidental touch can be avoided, reducing erroneous operations.

[0023] In some implementations, the end operation is detected by detecting whether the user's finger leaves the screen, or by detecting whether the finger stays on the screen for a predetermined time. In this way, when the user intends to edit the text after completing the text selection, the editing menu can be popped up in time, thereby improving the efficiency of text editing.

[0024] In some implementations, the menu area is determined based on the position where the finger leaves the screen or the position where the finger stays on the screen, and the editing menu is displayed in the determined menu area. In this way, the editing menu of the text can pop up near the finger after the text selection is completed, so that the user can conveniently complete the text editing operation.

[0025] In some implementations, the text selection area may include a first endpoint located at a first position in the text display area and a second endpoint located at a second position in the text display area, so that a user can change the position of the first endpoint and / or the second endpoint by moving the control, thereby achieving convenient text selection.

[0026] In some implementations, the distance between the control and the predetermined position may be determined, such as the center distance between the center of the control and the center of a reference graphic displayed on the screen. If the distance is greater than a first threshold and less than or equal to a larger second threshold, the text is precisely selected by precisely moving the second endpoint; and if the distance is greater than the second threshold, the text is quickly selected by quickly moving the second endpoint. Distinguishing between precisely selected text and quickly selected text by distance enables users to perform precise or quick object selection according to their needs.

[0027] In some implementations, in the cursor movement mode, the movement mode of the cursor displayed on the screen is controlled based on the distance between the control and the predetermined position, wherein the movement mode includes precise movement and fast movement. In this way, not only can the text be selected accurately or quickly, but the cursor can also be moved accurately or quickly, thereby improving the efficiency of cursor movement and user experience.

[0028] In a third aspect of the present disclosure, an electronic device is provided, comprising a processor and a memory storing instructions, wherein when the instructions are executed by the processor, the electronic device executes any method according to the first aspect and / or the second aspect and implementations thereof.

[0029] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores instructions, wherein when the instructions are executed by a processor, an electronic device executes any method according to the first aspect and / or the second aspect and implementations thereof.

[0030] In a fifth aspect of the present disclosure, a computer program product is provided, wherein the computer program product includes instructions, wherein when the instructions are executed by a processor, an electronic device executes any method according to the first aspect and / or the second aspect and implementations thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] The features, advantages and other aspects of various implementations of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Several implementations of the present disclosure are shown here in an exemplary and non-limiting manner. In the accompanying drawings:

[0032] Figures 1A to 1B A schematic diagram showing a hardware structure and a software structure of an electronic device that can implement an embodiment of the present disclosure;

[0033] Figure 2 A block diagram showing another electronic device in which embodiments of the present disclosure may be implemented;

[0034] Figures 3A to 3H A schematic diagram showing a graphical user interface (GUI) for text editing according to an embodiment of the present disclosure;

[0035] Figure 4 A flowchart of an object editing method according to an embodiment of the present disclosure is shown;

[0036] Figures 5A to 5T A schematic diagram showing a GUI for cursor movement, text selection and editing according to an embodiment of the present disclosure;

[0037] Figures 6A to 6B A flowchart of a method for moving a cursor and selecting an object according to a circle center distance according to an embodiment of the present disclosure is shown;

[0038] Figures 7A to 7B A schematic diagram of a GUI for performing a slide on a screen according to an embodiment of the present disclosure is shown;

[0039] Figures 8A to 8B A schematic diagram of a GUI for selecting and editing text in a web page according to an embodiment of the present disclosure is shown;

[0040] Figures 8C to 8D A schematic diagram showing a GUI for photo editing according to an embodiment of the present disclosure; and

[0041] Fig. 9 A flow chart of a method for displaying an auxiliary cursor according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0042] Some example implementations of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although some example implementations of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the example implementations set forth herein. On the contrary, these implementations are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.

[0043] As used herein, the term "including" and its variations represent open inclusion, i.e., "including but not limited to". Unless otherwise stated, the term "or" means "and / or". The term "based on" means "based at least in part on". The terms "embodiment" and "some embodiments" mean "at least some embodiments". The terms "first", "second", etc. are used to distinguish different objects, etc., and do not represent a sequence, nor do they limit the "first" and "second" to different types.

[0044] In some processes described in the embodiments of the present disclosure, multiple operations or steps that appear in a specific order are included, but it should be understood that these operations or steps may not be executed in the order in which they appear in the embodiments of the present disclosure or executed in parallel, and the sequence number of the operation is only used to distinguish between different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed in sequence or in parallel, and these operations or steps may be combined.

[0045] Typically, a user can use a finger to interact with the touch screen. The user can move the cursor position by clicking the screen in the object area, and select the content of the object by sliding the finger. Due to the large contact area between the finger and the screen, using the finger to directly operate the cursor to select an object will cause inaccurate operation. In addition, when the finger moves the cursor or selects an object, it will block a part of the object displayed on the screen, affecting the visibility of the object selection. An improved method is to set one or more keys in the keyboard area to be used to move the cursor. For example, long pressing the space bar can move the cursor position and combine additional operations to achieve object selection. However, after selecting the object, this method still presents the object's edit menu near the selected object in the object area. Therefore, the user needs to move the finger from the keyboard area to the object area to complete the entire object editing operation, which increases the difficulty and complexity of the operation and affects the user experience.

[0046] To this end, an embodiment of the present disclosure proposes a new solution for object editing. The embodiment of the present disclosure sets a control for selecting an object, and selects an object in an object area by moving the control, so that the object selection operation is very accurate and will not block the object displayed on the screen. According to the embodiment of the present disclosure, after the object selection is completed, an edit menu for the object pops up near the user's finger, so that the finger can easily touch the edit menu, thereby allowing the user to efficiently complete the object editing operation without moving the finger to a farther object area. Therefore, the embodiment of the present disclosure can conveniently complete the object editing operation, reduce the complexity and difficulty of object editing, and improve the user experience of the object editing operation. The following will refer to Figures 1 to 3. Fig. 9 Some example embodiments of the present disclosure are described.

[0047] Figure 1AA schematic diagram of the hardware structure of an electronic device 100 that can implement an embodiment of the present disclosure is shown. As shown in FIG1 , the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.

[0048] It should be understood that the structure shown in the embodiments of the present disclosure does not constitute a specific limitation on the electronic device 100. In other embodiments of the present disclosure, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0049] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors. The controller may generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions.

[0050] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0051] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0052] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 can be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example, the processor 110 can be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface to realize the touch function of the electronic device 100.

[0053] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.

[0054] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0055] The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.

[0056] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to realize the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate via the DSI interface to realize the display function of the electronic device 100.

[0057] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0058] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.

[0059] It is understandable that the interface connection relationship between the modules illustrated in the embodiments of the present disclosure is only for illustrative purposes and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present disclosure, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0060] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device 100 through the power management module 141.

[0061] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

[0062] The wireless communication function of the electronic device 100 can be implemented by antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modulation and demodulation processor and baseband processor. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antenna. For example, antenna 1 can be reused as a diversity antenna of a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0063] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0064] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0065] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and filters it, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0066] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. Among them, GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS) and / or satellite based augmentation system (SBAS).

[0067] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.

[0068] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0069] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor. ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.

[0070] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0071] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0072] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0073] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.

[0074] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing files such as music and videos in the external memory card.

[0075] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor.

[0076] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0077] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.

[0078] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.

[0079] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.

[0080] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to microphone 170C to input the sound signal into microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.

[0081] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0082] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example, when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.

[0083] The gyro sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.

[0084] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.

[0085] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover can be automatically unlocked.

[0086] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.

[0087] The distance sensor 180F is used to measure the distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.

[0088] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.

[0089] The ambient light sensor 180L is used to sense the ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.

[0090] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.

[0091] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of a processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 performs a boost on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.

[0092] The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.

[0093] The bone conduction sensor 180M can obtain a vibration signal. In some embodiments, the bone conduction sensor 180M can obtain a vibration signal of a vibrating bone block of the vocal part of the human body. The bone conduction sensor 180M can also contact the human pulse to receive a blood pressure beat signal. In some embodiments, the bone conduction sensor 180M can also be set in an earphone and combined into a bone conduction earphone. The audio module 170 can parse out a voice signal based on the vibration signal of the vibrating bone block of the vocal part obtained by the bone conduction sensor 180M to realize a voice function. The application processor can parse the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M to realize a heart rate detection function.

[0094] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.

[0095] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example, time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0096] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power changes, messages, missed calls, notifications, etc.

[0097] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.

[0098] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiments of the present disclosure take a mobile operating system with a layered architecture as an example to illustrate the software structure of the electronic device 100.

[0099] Figure 1B 1 is a schematic diagram of the software structure of the electronic device 100 of an embodiment of the present disclosure. The layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the operating system can be divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the operating system runtime (runtime) and system library, and the kernel layer.

[0100] The application layer can include a series of application packages. Figure 1B As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.

[0101] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0102] like Figure 1BAs shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like. The window manager is used to manage window programs. The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, and the like. The content provider is used to store and obtain data and make the data accessible to the application. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, and the like. The view system includes visual controls, such as controls for displaying text, controls for displaying images, and the like. The view system can be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text notification icon may include a view for displaying text and a view for displaying images. The phone manager is used to provide communication functions for the electronic device 100. For example, the management of call status (including connecting, hanging up, and the like). The resource manager provides various resources for the application, such as localized strings, icons, images, layout files, video files, and the like. The notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of an icon or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.

[0103] Continue to refer Figure 1B , the operating system runtime includes a core library and a virtual machine. The operating system runtime is responsible for the scheduling and management of the operating system. The core library consists of two parts, one is the function functions that the Java language needs to call, and the other is the core library of the operating system. The application layer and the application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection. The system library can include multiple functional modules. For example, a surface manager, a media library, a three-dimensional graphics processing library (such as OpenGL ES), a 2D graphics engine (such as SGL), etc.

[0104] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications. The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc. The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing. The 2D graphics engine is a drawing engine for 2D drawing.

[0105] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.

[0106] The following is an example of the workflow of the electronic device 100 software and hardware in conjunction with the capture and photography scene. When the touch sensor 180K receives a touch operation, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into an original input event (including information such as touch coordinates and timestamp of the touch operation). The original input event is stored in the kernel layer. The application framework layer obtains the original input event from the kernel layer and identifies the control corresponding to the input event. Taking the touch operation as a touch single-click operation, and the control corresponding to the single-click operation is the control of the camera application icon as an example, the camera application calls the interface of the application framework layer, starts the camera application, and then starts the camera driver by calling the kernel layer, and captures a static image or video through the camera 193.

[0107] Figure 2 FIG. 2 is a block diagram of another electronic device 200 that can implement an embodiment of the present disclosure. Figure 2 As shown, the electronic device 200 may be in the form of a general-purpose computing device. The components of the electronic device 200 may include, but are not limited to, one or more processors or processing units 210, a memory 220, a storage device 230, one or more communication units 240, one or more input devices 250, and one or more output devices 260. The processing unit 210 may be an actual or virtual processor and is capable of performing various processes according to a program stored in the memory 220. In a multi-processor system, multiple processing units execute computer executable instructions in parallel to improve the parallel processing capability of the electronic device 200.

[0108] The electronic device 200 typically includes a plurality of computer storage media. Such media may be any available media accessible to the electronic device 200, including but not limited to volatile and non-volatile media, removable and non-removable media. The memory 220 may be a volatile memory (e.g., a register, a cache, a random access memory (RAM)), a non-volatile memory (e.g., a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. The storage device 230 may be a removable or non-removable medium, and may include a machine-readable medium, such as a flash drive, a disk, or any other medium, which may be capable of being used to store information and / or data (e.g., training data for training) and may be accessed within the electronic device 200.

[0109] The electronic device 200 may further include additional removable / non-removable, volatile / non-volatile storage media. Figure 2 As shown in , a disk drive for reading or writing from a removable, non-volatile disk (e.g., a "floppy disk") and an optical drive for reading or writing from a removable, non-volatile optical disk may be provided. In these cases, each drive may be connected to a bus (not shown) by one or more data media interfaces. Memory 220 may include a computer program product 225 having one or more program modules that are configured to perform the object editing method or process of an embodiment of the present disclosure.

[0110] The communication unit 240 implements communication with other computing devices through a communication medium. Additionally, the functions of the components of the electronic device 200 can be implemented in a single computing cluster or multiple computing machines that can communicate through a communication connection. Therefore, the electronic device 200 can operate in a networked environment using a logical connection with one or more other servers, a network personal computer (PC), or another network node.

[0111] The input device 250 may be one or more input devices, such as a mouse, a keyboard, a tracking ball, etc. The output device 260 may be one or more output devices, such as a display, a speaker, a printer, etc. In an embodiment of the present disclosure, the output device 260 may include a touch screen with a touch sensor, which can receive a user's touch input. The electronic device 200 may also communicate with one or more external devices (not shown) through the communication unit 240 as needed, such as a storage device, a display device, etc., communicate with one or more devices that enable the user to interact with the electronic device 200, or communicate with any device (e.g., a network card, a modem, etc.) that enables the electronic device 200 to communicate with one or more other computing devices. Such communication can be performed via an input / output (I / O) interface (not shown).

[0112] It should be understood that the electronic device 100 and Figure 2 The electronic device 200 shown is merely two exemplary electronic devices capable of implementing one or more embodiments of the present disclosure, and should not constitute any limitation on the functionality and scope of the embodiments described herein.

[0113] Figures 3A to 3H A schematic diagram of a GUI for text editing according to some embodiments of the present disclosure is shown. It should be understood that, although text editing is used as an example of object editing in some embodiments of the present disclosure, the object editing scheme according to the embodiments of the present disclosure can be applied to other objects besides text, such as images, videos, emoticons, etc. Figures 3A to 3H , which shows an interface diagram of screen 310, wherein screen 310 may be display screen 194 described with reference to FIG. 1 or reference to FIG. Figure 2 The output device 260 is described. Figures 3A to 3H In the scenario, the user is editing an object in a memo application (APP). The user can enter text and special symbols in various languages ​​in the memo, and can insert tables, images, emoticons, etc. In some embodiments, the content in the memo can be automatically or manually uploaded to the cloud space, thereby enabling the memo content to be viewed and edited on various authorized devices, and the changes made will be kept synchronized and updated on all devices. It should be understood that in addition to the scenario of editing objects in the memo, the embodiments of the present disclosure can also be used in other object editing scenarios, such as instant messaging applications, emails, search engines, document editing, web browsing, image editing, and the like.

[0114] refer to Figure 3A The screen 310 includes a text area 311 and a keyboard area 315, wherein the text area 311 includes text displayed on the screen, and the keyboard area 315 can be a virtual keyboard. Figure 3AAn example of an example keyboard area 315 is shown in the figure, however, the embodiments of the present disclosure are also applicable to virtual keyboards of other layouts. The keyboard area 315 can be part of an input method program, which can automatically pop up after the input method is triggered or called. The keyboard area 315 includes a plurality of virtual keys, and text input or some other functions, such as text deletion, line break input, etc., can be achieved by clicking the keys with fingers. In some embodiments, the keyboard area 315 may include an emoticon menu, through which various pre-set emoticons can be input, thereby enriching the input content. In addition, the user can switch the input method or input language by clicking the language bar in the lower left corner of the keyboard area 315, and can implement voice input by clicking the voice input bar in the lower right corner of the keyboard area 315.

[0115] The text area 311 refers to the area where the editable text is currently displayed on the screen 310, which presents the text or part of it that has been entered in the memo. The completed text in the memo may be more than the text currently displayed in the text area 311, because some of the text below may be covered by the virtual keyboard in the keyboard area 315. The cursor 312 is displayed in the text area 311, which may be in a flashing form to indicate the current text input position. By changing the position of the cursor 312, the current input position of the memo can be changed.

[0116] According to an embodiment of the present disclosure, a control 301 may be set in a certain position or area on the screen 310 to move the position of the cursor 312 and select text according to the movement of the control 301. Figure 3A As shown, control 301 may be hidden or not highlighted in the initial state, and may be set in an area of ​​keyboard area 315 where no virtual keyboard exists, or may be set in other areas of the screen. In some embodiments, when a user touches control 301 or an area thereof with a finger, control 301 may be displayed, and control 301 may move as the finger slides. Optionally, control 301 may be kept displayed during the movement. Alternatively, control 301 may not be displayed during the movement, but may be displayed again after the movement stops. In some embodiments, control 301 may not be displayed when a finger touches control 301 or an area thereof, in which case the user may still move the cursor or select an object by sliding the finger.

[0117] Alternatively, Figure 3B As shown, the control 301 may also be displayed before being touched, so as to clearly indicate to the user the location of the control 301. In some embodiments, the control 301 may be in a suspended form, that is, a suspended control. When the suspended control 301 moves with the sliding of the finger, the suspended control 301 always remains at the top layer of the screen 310. Figure 3B The control 301 is shown as a circle, however, the control 301 can be set to various shapes, such as a square, a capsule shape, a triangle, a rounded rectangle, etc. According to an embodiment of the present disclosure, by setting the control 301, the user can conveniently and accurately select and edit the text in the text area 311 without moving the finger into the text area 311 for operation.

[0118] refer to Figure 3C , which shows a schematic diagram of touching the control 301 with the user's finger 319. It should be understood that, although the index finger of the user is used for the illustration effect, the user can use various fingers to touch the control 301, such as the thumb. In some embodiments, different operation modes can be entered through different touch operations of the finger 319 on the control 301. For example, if the finger 319 directly touches and slides the control 301, the cursor movement mode can be entered; and if the finger 319 touches and slides the control 301 when or after the predetermined condition is met, the object selection mode can be entered. In the cursor movement mode, the position of the cursor changes as the finger moves the control. In the object selection mode, one or more objects are selected as the finger moves the control. For example, all texts between the starting position and the end position of the cursor can be selected, and in the case of images and / or emoticons, the images and / or emoticons, etc., can also be selected. In some embodiments, the display of the cursor 312 can be hidden during the object selection process.

[0119] In some embodiments, the predetermined conditions for entering the object selection mode may include but are not limited to: finger 319 pressing the specified hot zone for a long time, finger 319 pressing the specified hot zone over a large area, or finger 319 quickly clicking the specified hot zone, etc. In addition, when the screen 310 is a pressure-sensitive screen, finger 319 lightly pressing the control 301 can enter the cursor movement mode, and the predetermined condition for entering the object selection mode can also be finger 319 pressing the control 301 hard. In some embodiments, if the object selection mode is entered, feedback can be provided to the user to prompt the user that the object selection mode has been entered to move the cursor and select an object (such as text). Alternatively, the control 301 can also only set the object selection mode. In such an embodiment, the mobile control 301 can only be used to select text, but not just move the cursor 312. In addition, those skilled in the art can also set more operation modes of the control 301 as needed.

[0120] Reference now Figure 3D, which shows an example that the control 301 is already in the object selection mode. As the finger 319 slides the control 301 to the right, as shown in the sliding track 322, the text is selected in the text area 311 accordingly, and the selected text is shown as 321. The area of ​​the selected text 321 is also referred to as the "text selection area". In some embodiments, the control 301 can slide along with the finger 319, that is, when the finger 319 slides to a certain position, the control 301 also moves to the corresponding position. Alternatively, the control 301 may not completely slide along with the finger 319. On the contrary, the control 301 may have some damping effects, for example, the finger 319 moves 50 pixels, while the control 301 only moves 30 pixels, etc. In some embodiments, as the control 301 moves, the text in the text area 311 can be selected one by one information unit, where one information unit can refer to a letter, a Chinese character, a symbol, an expression, an image, etc. Alternatively, the text in the text area 311 can also be selected quickly, that is, multiple information units can be selected continuously at one time. In addition, you can first select information units one by one and then make a quick selection.

[0121] Continue to refer Figure 3D , after determining that the text selection is completed, an edit menu 323 of the object can be popped up nearby, which may include one or more options that can edit the selected text 321, such as copy, cut, find, etc. The options in the edit menu 323 can be customized or changed according to the specific scene and content. In some embodiments, if the finger 319 leaves the screen 310, it can be determined that the text selection has been completed, so the edit menu 323 can be displayed in the keyboard area 315. The display position of the edit menu can be preset. In some embodiments, if the finger 319 leaves the screen 310, it can be determined that the text selection has been completed, so the edit menu 323 can be popped up near the finger 319. In the above manner, when the user intends to edit the text after completing the text selection, the edit menu can be popped up nearby, which improves the efficiency of text editing. In some embodiments, although the finger 319 is still touching the control 301, if it is detected that the finger 319 has stopped sliding for a threshold time, it can also be determined that the text selection has been completed, so the edit menu 323 can be popped up near the finger 319. If the user's finger stops sliding, but still stays on the screen, it can be determined that the user intends to edit the selected text. Therefore, when the user stops sliding his finger for a predetermined time, the editing menu pops up nearby, which can better meet the user's intention and thus improve the user experience.

[0122] According to an embodiment of the present disclosure, after it is determined that the text selection is completed, the edit menu 323 can be displayed nearby so that the finger 319 can easily touch the edit menu 323, thereby enabling the user to efficiently complete the text editing operation without having to move the finger to a farther text area 311 to perform the text editing operation. In some embodiments, the edit menu 323 can be popped up near the position where the finger 319 leaves the screen 310, or the edit menu 323 can be edited near the position where the finger 319 stops sliding, and the position where the finger leaves or the position where the finger stops sliding can be obtained by reporting point collection. Reporting points refer to the points where the touch screen used for human-computer interaction collects the speed and position information of the sliding of the finger or stylus. During the sliding of the finger, the touch position points of the finger on the screen can be collected at a preset sampling rate to determine the position of the finger and the speed and direction of the finger sliding.

[0123] The movable range of the control 301 can be set, and the control 301 can be freely moved within the movable range to change the position of the cursor and / or select text. In some embodiments, the movable range of the control 301 can be set to a portion of the keyboard area 315. Alternatively, the movable range of the control 301 can be set to the entire keyboard area 315. For example, after entering the text editing mode, the keyboard area 315 can be grayed out as a whole to indicate that the virtual keyboard is currently inoperable and the control 301 can be moved throughout the keyboard area 315, thereby expanding the movable range of the control 301. In addition, the movable range of the control 301 can also be the entire screen 310.

[0124] refer to Figure 3E , the user can touch the "Copy" option in the edit menu 323 with finger 319 to copy the selected text 321 to the clipboard. After the finger leaves the control 301, the control 301 can return to the original position, the control 301 can be displayed, or it can be hidden. If the finger 319 touches the "Cut" option in the edit menu 323, the selected text is cut to the clipboard and disappears accordingly in the text area 311. In addition, if the finger 319 touches the "Find" option in the edit menu 323, it can jump to the preset application or website to query the selected text 321.

[0125] In some embodiments, the electronic device can determine whether the user's intention is to paste based on whether there is data in the clipboard. Figure 3FAfter the selected text 321 is copied, there is data in the clipboard, so it is determined that the user's intention is to paste. In this case, a menu 343 including a "Paste" option can be directly displayed near the position where the finger 319 clicks "Copy", so that the user can directly select the "Paste" option in the menu 343 without leaving the screen, or select the "Paste" option after leaving the screen. Alternatively, when the finger 319 touches the control 301 again, the menu 343 can pop up near the finger 319, and at this time, the cursor 312 in the text area 311 can be flashing.

[0126] Alternatively, the electronic device may not judge the user's intention. In this case, when the finger 319 touches the control 301 again, the edit menu will pop up only when the predetermined condition is met (for example, the finger leaves or stops sliding for a predetermined time, etc.), and the pop-up edit menu may include a "paste" option in addition to the "copy" and "cut" options.

[0127] refer to Figure 3G When the user intends to copy the selected text 321 to the end of the next paragraph of the cursor 312, the user can slide the control 301 to the lower left by finger 319 to move the cursor 312. In some embodiments, during the sliding of the finger 319 and the control 301, the menu 343 can move with the finger 319, so that the user can select the option in the menu 343 nearby by finger 319, thereby improving the efficiency of text editing.

[0128] refer to Figure 3H , the user's finger 319 selects the "Paste" option in the menu 343, and the selected text 321 is pasted to the corresponding position in the text area 311, and the position of the cursor 312 also changes accordingly. After the finger leaves the control 301, the control 301 returns to the original position, and the control 301 can be displayed or hidden. Therefore, Figures 3A to 3H It is shown that the text editing operation is completed conveniently and accurately using the control 301, which reduces the complexity and difficulty of text editing and improves the user experience of text editing operations. According to the embodiments of the present disclosure, the user can complete the entire process of text editing without even operating in the text area 311, thereby improving the efficiency of text editing.

[0129] Figure 4 FIG. 4 is a flowchart of an object editing method 400 according to an embodiment of the present disclosure. It should be understood that the method 400 can be implemented by the electronic device 100 described above with reference to FIG. 1 or by the electronic device 100 described above with reference to FIG. Figure 2 The electronic device 200 described herein is implemented. Figures 3A to 3HThe interface diagram of method 400 is used to describe the method 400. However, it should be understood that the types of objects that can be edited by method 400 are not limited to texts, and may also include images, emoticons, tables, etc.

[0130] In block 402, one or more objects displayed on the screen are selected based on the movement of the finger on the control. Figure 3D As shown, after the control 301 on the screen 310 moves the track 322, the text 321 in the text area 311 is selected. Generally, all contents between the starting position and the end position of the control 301 can be selected (which can include various objects, such as text, images, etc.). If the starting position and the end position are in the same line, all contents between the starting position and the end position in the same line can be selected; and if the starting position and the end position are not in the same line, the contents in multiple lines can be selected according to the order in which the text is read.

[0131] In some embodiments, the movement of the control may involve multiple modes, so it is necessary to determine whether the current mode is an object selection mode (e.g., a text selection mode). If the mode is an object selection mode, the object selection on the screen in block 402 is performed, and if the mode is not an object selection mode, another operation may be performed, such as moving the cursor position. For example, referring to the above Figure 3C As described, the object selection mode may be entered when a predetermined condition is met.

[0132] At block 404, a determination is made as to whether the object selection is complete. Figure 3D As shown, whether the object selection is completed can be determined by detecting whether the finger is lifted from the screen, or by detecting whether the finger remains stationary on the screen for a period of time. In addition, whether the object selection is completed can also be determined by other methods. For example, if the user presses the control again, it can also be considered that the text selection has been completed.

[0133] If it is determined in block 404 that the object selection has been completed, then in block 406, a menu area for editing the selected object is determined based on the position of the finger. Figure 3DAs shown, after the text 321 is selected, the display area of ​​the edit menu 323 can be determined according to the touch leaving position of the finger 319 or the touch staying position of the finger 319, so that the edit menu 323 can be displayed close to the position of the finger 319, so as to facilitate the finger 319 to select the options in the edit menu 323 nearby. In some embodiments, the menu area of ​​the edit menu 323 can be located at a predetermined distance above the control 301, and the vertical center line of the edit menu 323 can pass through the touch position of the control 301 (if the display of the edit menu 323 does not exceed the boundary of the screen 310). If displaying the edit menu 323 according to the predetermined strategy will cause the edit menu 323 to exceed the boundary of the screen 310, the position of the edit menu 323 can be adjusted horizontally accordingly so that the edit menu 323 can be fully displayed. Optionally, if it is determined in box 404 that the object selection has not been completed, it can return to 402 and continue to select the object according to the movement of the finger to the control.

[0134] At block 408, an edit menu is displayed in the determined menu area. Figure 3D As shown, after determining the menu area where the edit menu 323 is to be displayed, for example, in an area directly above the control 301, the edit menu 323 can be displayed in the area. The edit menu can include one or more options for editing text, such as copy, cut, find, etc.

[0135] Therefore, according to the object editing method 400 of the embodiment of the present disclosure, after selecting the object displayed on the screen according to the movement of the finger to the control, it is determined whether the object selection is completed according to a predetermined condition. If the object selection is completed, the menu area for editing the selected object is determined according to the position of the finger, and then the editing menu is displayed in the determined menu area. In this way, the user can complete the object editing operation near the finger after selecting the object without moving the finger to a farther object area. Therefore, the embodiment of the present disclosure can complete the object editing operation conveniently and accurately, reduce the complexity and difficulty of object editing, and improve the user experience of the object editing operation.

[0136] Figures 5A to 5T Schematic diagram of a GUI for cursor movement, text selection and editing according to some embodiments of the present disclosure is shown. Figure 5A As shown, different from Figures 3A to 3H An embodiment of Figure 5AThe embodiment further displays a graphic 302 as an auxiliary boundary, also called a reference graphic. During the finger sliding process, the control 301 can follow the finger movement at a certain ratio, while the graphic 302 remains stationary. Through the relative position relationship between the control 301 and the graphic 302, it is possible to distinguish between the precise movement of the cursor and the rapid movement of the cursor, and to distinguish between the precise selection of objects and the rapid selection of objects. Figure 5A As shown, in some embodiments, control 301 may be circular, referred to as the inner circle, and graphic 302 may be circular, referred to as the outer circle, and the center of control 301 and the center of graphic 302 may overlap in the absence of human interaction. The radius of control 301 and the radius of graphic 302 may be set or adjusted according to specific scenarios. For example, they may be dynamically changed according to the size of the screen and / or the size of the free area in keyboard area 315. Alternatively, control 301 and graphic 302 may be in the shape of a square, a triangle, a capsule, a rounded rectangle, or the like, and the centers of the two graphics may overlap. In addition, control 301 and graphic 302 may also be in different shapes. For example, control 301 may be a square, and graphic 302 may be a circle. In addition, although in Figure 5A In the example of , the control 301 and the graphic 302 are displayed at the bottom of the screen 310, however, the position of the control 301 and the graphic 302 can be displayed at any position in the non-text area according to the user's settings or habits. In some embodiments, the user can customize the default position of the control 301 and the graphic 302 to better suit their own usage habits. By setting the internal movable control 301 and the external fixed graphic 302, the user can distinguish different cursor movement states (such as precise movement state, fast movement state) and different object selection states (such as precise selection state, fast selection state).

[0137] Figure 5B A schematic diagram showing various relative position relationships between the control 301 and the graphic 302 in the cursor movement mode is shown, which mainly involves four stages 521 to 524 .

[0138] In stage 521 , the user's finger 319 touches the control 301 . At this time, since the finger 319 does not slide, the control 301 does not move and the cursor 312 also remains stationary.

[0139] In stage 522, finger 319 slides control 301 to move a certain distance. At this time, since the distance 503 between the center of the control 301 and the circle of the graphic 302 is less than the preset first threshold, the cursor 312 is still kept stationary. In some embodiments, the first threshold can be set to a value less than the radius of the graphic 302. In this way, small movements of the control 301 caused by the user's accidental touch can be avoided, reducing erroneous operations. In some embodiments, stage 522 can also be omitted, so that whenever the control 301 starts to move, the cursor 312 moves accordingly.

[0140] In stage 523, when the distance 503 between the center of the control 301 and the center of the graphic 302 reaches a first threshold, the precise movement state is entered. At this time, the control 301 and the graphic 302 can be integrated together, and some feedback can be provided to prompt the user that the precise movement state has been entered. Such feedback includes but is not limited to changes in the color of the graphic, changes in the size of the graphic, vibration of the electronic device, etc., for example Figure 5B It is shown that the two graphics are merged by entering the precise movement state and the fusion area 529 is displayed to prompt the user that the cursor can be accurately moved in the area. In the precise movement state, the user can slide in the fusion area 529 to move the cursor 312, and the cursor 312 moves one information unit at a time in the corresponding direction according to the sliding direction of the user's finger 319. For example, the cursor 312 can move one information unit to the right each time according to the finger sliding direction, or move one information unit downward each time according to the finger sliding direction, and so on. Alternatively or additionally, if the user's finger 319 is stationary in the fusion area 529, the cursor 312 can also be moved one information unit at a time in the corresponding direction every predetermined time. That is, as long as the user's finger 319 touches the fusion area 529, the cursor 312 will continue to move. When the finger 319 is lifted from the screen 310, the movement of the cursor ends and stays at the current position in the text area. In addition, after entering the precise movement state, unless the finger 319 is lifted from the screen 310, the control 301 will not return to the inside of the graphic 302 again. Therefore, the setting of the precise movement state achieves the purpose of the user moving the cursor accurately. In addition, by displaying the graphic fusion to the user, the user can be more aware of the time to enter the precise movement state, thereby improving the user experience.

[0141] In stage 524, finger 319 continues to slide outward for a distance, so that the distance 503 between the center of the control 301 and the center of the graphic 302 reaches the second threshold. In addition, the fusion state disappears, and the control 301 moves to the outside of the graphic 302 with the finger 319, and enters the fast moving state. In some embodiments, the second threshold can be set to a value greater than the radius of the graphic 302. Alternatively, when the sliding speed of finger 319 reaches a certain speed threshold, the fast moving state can also be directly entered without considering the current position of the control 301. In some embodiments, when entering the fast moving state, in addition to the control 301 separating from the fusion state, it can also be accompanied by certain feedback to prompt the user that the fast moving state has been entered. This feedback includes but is not limited to changes in graphic color, changes in graphic size, vibration of electronic devices, etc. In the fast moving state, the user can quickly move the cursor 312 by sliding the control 301 with finger 319, and the cursor 312 will move freely and quickly according to the sliding direction of the finger 319. When the finger 319 stops sliding, the cursor 312 also stops moving accordingly. When the finger 319 is lifted from the screen 310, the cursor 312 stays at the corresponding position, and the control 301 returns to the original position. After entering the fast moving state, the control 301 will not return to the fused state. Therefore, the setting of the fast moving state achieves the purpose of the user moving the cursor quickly.

[0142] In the fast moving state, the cursor 312 can be set to follow the movement strategy of the finger 319, and the cursor 312 can move horizontally and vertically at the same time, wherein the horizontal movement of the cursor 312 is related to the horizontal sliding of the finger 319, and the vertical movement of the cursor 312 is related to the vertical sliding of the finger 319. In some embodiments, the movement distance of the cursor 312 and the movement distance of the finger 319 can be a linear relationship, for example, when the finger 319 moves 1 pixel horizontally, the cursor 312 also moves 1 pixel horizontally, or when the finger 319 moves 1 pixel vertically, the cursor 312 moves 2 pixels vertically, etc. Alternatively, the movement distance of the cursor 312 and the movement distance of the finger 319 can also be other functional relationships (such as exponential functions, power functions, etc.), when the finger 319 moves 1 pixel, the cursor 312 moves 10 pixels, or when the finger 319 moves a predetermined number of pixels, the cursor 312 moves 1 information unit. In addition, the horizontal and vertical movements of the cursor 312 can be either associated or independent. It should be understood that although several example movement strategies of the cursor 312 following the finger 319 are shown, different proportional relationships or functional relationships may be set according to specific usage scenarios.

[0143] In some embodiments, a pause stage can be set between stage 523 and stage 524, so that after the precise movement state ends, it does not immediately enter the fast movement state, but enters an idle period, during which the cursor 312 pauses moving. In this way, the user can be informed of the end of the precise movement state in a timely manner. In some embodiments, if the user wants to return to the precise movement state, he can move the finger 319 back (in Figure 5B In the example shown in FIG. 3 , move the finger 319 to the left to enter the precise movement state again.

[0144] Figure 5C Schematic diagram showing various relative position relationships between the control 301 and the graphic 302 in the object selection mode. Figure 5B The difference is that Figure 5C The object selection mode is shown, in which the control 301 can present a different state from that in the cursor movement mode (such as a ring display, etc.). Figure 5C As shown, the object selection mode also involves four stages 531 to 534.

[0145] In stage 531, after having entered the object selection mode, the user's finger 319 touches the control 301, at which point the control 301 and the cursor 312 remain stationary because the finger 319 is not sliding.

[0146] In stage 532, finger 319 slides control 301 for a distance. At this time, since the distance 503 between the center of the circle of control 301 and the center of the circle of graphic 302 is less than the preset first threshold, the cursor remains stationary. In this way, small selections of control 301 caused by the user's accidental touch can be avoided, reducing erroneous operations. In some embodiments, stage 532 can also be omitted, so that the text is immediately selected whenever the control 301 starts to move.

[0147] In stage 533, when the distance 503 between the center of the control 301 and the center of the graphic 302 reaches a first threshold, the precise selection state is entered. At this time, the control 301 can be integrated with the graphic 302, and some feedback can be provided to prompt the user that the precise selection state has been entered. Such feedback includes but is not limited to changes in the color of the graphic, changes in the size of the graphic, vibration of the electronic device, etc., for example Figure 5CIt is shown that the two graphics are merged and the fusion area 529 is displayed when entering the precise selection state, so as to prompt the user that the text can be accurately selected in the area. In the precise selection state, the user can select the text by sliding on the fusion area 529, and select one information unit in the corresponding direction at a time according to the movement direction of the user's finger 319. Alternatively or additionally, if the user's finger 319 is stationary in the fusion area 529, an information unit can also be selected in the corresponding direction at a predetermined time interval. In other words, as long as the user's finger 319 touches the fusion area 529, the text will continue to be selected. When the finger 319 is lifted from the screen 310, the text selection ends, and an edit menu pops up near the position of the finger 319. In addition, after entering the precise selection state, unless the finger 319 is lifted from the screen 310, the control 301 will not return to the inside of the graphic 302 again. Therefore, the setting of the precise selection state achieves the purpose of the user's precise selection of objects. In addition, by displaying the graphic fusion to the user, the user can be more aware of the time of entering the precise selection state, which improves the user experience.

[0148] In stage 534, finger 319 continues to slide outward for a distance, so that the distance 503 between the center of the circle of control 301 and the center of the circle of graphic 302 reaches the second threshold, at which time the fusion state disappears, and control 301 moves to the outside of graphic 302 with finger 319, and enters the quick selection state. In some embodiments, the second threshold can be set to a value greater than the radius of graphic 302. Alternatively, when the sliding speed of finger 319 reaches a certain speed threshold, the quick selection state can also be directly entered without considering the current position of control 301. In some embodiments, when entering the quick selection state, in addition to the separation of control 301 from the fusion state, certain feedback can also be accompanied to prompt the user that the quick selection state has been entered, and this feedback includes but is not limited to the change of graphic color, the change of graphic size, the vibration of the electronic device, etc. In the quick selection state, the user can slide control 301 with finger 319 to select text. When finger 319 stops sliding, the text selection stops accordingly. When finger 319 is lifted from screen 310, the text selection ends, and an edit menu pops up near the finger position, and control 301 returns to the original position. After entering the fast selection state, the control 301 will not return to the fused state. In the fast selection state, the speed or strategy of text selection can be set. For example, each time the finger moves a predetermined number of pixels, one information unit can be selected. Therefore, the setting of the fast selection state achieves the purpose of the user quickly selecting an object.

[0149] In some embodiments, a pause stage can be set between stages 533 and 534, so that after the precise selection state ends, the state does not immediately enter the fast selection state, but enters a gap period, during which the text selection is paused. In this way, the user can be notified of the end of the precise selection state in a timely manner. In some embodiments, if the user wants to return to the precise selection state, he can move finger 319 back (in Figure 5C In the example shown in FIG. 3 , move the finger 319 to the left to enter the precise selection state again.

[0150] Next, refer to Figures 5D to 5H Describes the interface diagram for moving the cursor accurately and quickly based on the positional relationship between two graphics. Figure 5D , finger 319 touches and slides control 301 to the right. Since the sliding distance does not reach the preset first threshold, cursor 312 remains stationary, thereby preventing the user from accidentally touching control 301. Finger 319 continues to slide control 301 to the right. When the distance between the center of control 301 and the center of graphic 302 reaches the first threshold, as shown in FIG. Figure 5E As shown, the control 301 begins to merge with the graphic 302. In some embodiments, when the distance between the center of the control 301 and the center of the graphic 302 is between a first threshold and a second threshold, the control 301 and the graphic 302 are in a merged state, and the first threshold and the second threshold may be related to the radius R of the graphic 302. For example, in one embodiment, the first threshold may be set to three quarters of R, and the second threshold may be set to five quarters of R. In another embodiment, the first threshold may be set to three quarters of R, and the second threshold may be set to six quarters of R, that is, 1.5R.

[0151] refer to Fig. 5F, the control 301 is integrated with the graphic 302, and the appearance of the graphic 302 changes to prompt the user that the precise movement state has been entered. At this time, the cursor 312 moves one character to the right each time according to the sliding direction of the finger 319. The precise movement state is suitable for the scene where the user moves left or right or up and down in a small range. Alternatively, in addition to or instead of the appearance change of the graphic 302, other feedback methods can also be used to prompt the user that the precise movement state has been entered. In the precise movement state, the cursor 312 moves one information unit each time according to the sliding direction of the finger 319. For example, every time the finger 319 moves a predetermined number of pixels, the cursor 312 moves one information unit, such as an English letter, a Chinese character, a symbol, an emoticon, or an image. Alternatively or additionally, if the finger 319 is stationary in the precise movement state for a predetermined time (for example, 500ms, etc.), it can also move one information unit in the corresponding direction. That is, as long as the finger 319 does not leave the screen 310, the cursor 312 can continue to move until the finger 319 leaves the screen 310, the movement of the cursor 312 ends, and the control 301 returns to its original position. After entering the precise movement state, unless the finger 319 leaves the screen 310, the control 301 will not return to the inside of the graphic 302.

[0152] According to the reported points collected by the sliding of the finger 319, the sliding direction of the finger 319 can be calculated. In some embodiments, the sliding direction can be divided into four directions: up, down, left, and right. For example, sliding in the direction within 45 degrees vertically upward, left, and right can be determined as sliding upward. Alternatively, the sliding direction can also be divided into eight directions, for example, upper left, upper right, upper right, lower right, lower right, lower left, and left, and an angle range can be set for each direction. Therefore, in the precise movement state, the cursor can move in multiple preset directions.

[0153] As finger 319 continues to slide, cursor 312 continues to move in the corresponding direction. When the distance between the center of control 301 and graphic 302 reaches the second threshold or the moving speed of finger 319 reaches the speed threshold, the fusion state is released and the fast moving state is entered. Control 301 moves to the outside of graphic 302, such as Figure 5G The fast moving state is suitable for the scenario where the user moves freely and quickly over a large range, and the cursor 312 moves quickly and freely following the movement of the finger 319 or the control 301. Figure 5HAs shown, after finger 319 slides control 301 to move a certain distance to the lower right corner, the position of cursor 312 also moves several information units toward the lower right corner. In some embodiments, finger 319 can slide control 301 to move throughout the screen 310, thereby expanding the range of movement. Alternatively, finger 319 can be set to move only above keyboard area 315, thereby not blocking the text in text area 311, thereby improving the accuracy of text selection. In the fast moving state, if it is detected that finger 319 stops sliding, cursor 312 also stops moving. In addition, control 301 will not return to the fused state after leaving graphic 302, even if control 301 may move into graphic 302 again. After completing the position movement of cursor 312, the user's finger 319 can leave screen 310, and control 301 returns to its original position, as shown in FIG. Figure 5A shown.

[0154] Figures 5I to 5L 319 touches the control 301. Therefore, some additional operations can be set to switch from the cursor movement mode to the object selection mode. It should be understood that if the object currently edited on the screen is not text but an image, etc., it can also be switched to the object selection mode by Figures 5I to 5L Enter the corresponding object selection mode.

[0155] refer to Fig.5I , which shows an example of entering the object selection mode by long pressing a specified hot zone. A hot zone can be set to detect whether to enter the object selection mode, where the hot zone refers to an effective area that can trigger certain functions or operations, and the range of the hot zone can be associated with certain display elements, but it does not have to be exactly the same as the area of ​​the display element. For example, the area of ​​the graphic 302, or an area slightly larger or smaller than the graphic 302, can be set as a hot zone for detecting whether to enter the object selection mode.

[0156] If the user intends to select text, the user can press and hold his finger 319 in the hot zone (e.g., the area of ​​the graphic 302) for a certain period of time to enter the object selection mode (which may be accompanied by feedback, such as adding a ring to the control 301, enlarging the display, or changing the background, etc.), wherein the long press refers to the time interval between the finger 319 touching the screen 310 and the finger 319 leaving the screen 310 exceeding a certain threshold time, such as 500ms. After the user completes the long press in the hot zone, the finger can be removed from the screen. Alternatively, after the user completes the long press in the hot zone, the finger can also be kept touching the screen. In some embodiments, if the user wants to cancel the object selection mode, he can click anywhere in the graphic 302 to restore to the cursor movement mode, or automatically restore to the cursor movement mode after a certain period of no user interaction. It should be understood that if the user presses the screen 310 for a long time but the finger 319 is sliding at the same time, it can be determined that the user intends to move the cursor 312, rather than enter the object selection mode. On the contrary, only when the user's finger 319 presses the screen 310 for a long time and the finger 319 remains relatively still, it is considered to be intended to enter the object selection mode. By long pressing the hot zone to enter the object selection mode, the control 301 can support multiple operation modes, which not only improves the user's experience of moving the cursor, but also improves the user's experience of selecting text.

[0157] refer to Figure 5J , which shows an example of entering the object selection mode by pressing a specified hot zone over a large area. Figure 5J As shown, if the user intends to select text, the user can press the hot zone with a large area of ​​the fingertip or use multiple fingers to press the hot zone together, so that the contact area between the finger and the screen 310 is greater than the predetermined threshold area, thereby entering the object selection mode. Alternatively, the object selection mode can be entered after the large-area pressing continues for a certain period of time (which may be accompanied by feedback, such as the control 301 adding a ring, enlarging the display, or changing the background, etc.). In some embodiments, if the user wants to cancel the object selection mode, it can click anywhere in the graphic 302 to restore to the cursor movement mode, or automatically restore to the cursor movement mode after a certain period of time without user interaction after lifting the finger 319. Large-area pressing can provide information that is different from ordinary pressing, and can therefore be used as a unique input signal to trigger functions different from ordinary pressing. Entering the object selection mode by pressing the hot zone over a large area can enable the control 301 to support multiple operation modes, which not only improves the user's experience of moving the cursor, but also improves the user's experience of selecting text.

[0158] refer to Figure 5K , which shows an example of entering the object selection mode by continuously clicking and pressing a specified hot zone. Figure 5KAs shown, if the user intends to select text, the user's finger 319 touches the hot zone to enter the cursor movement mode, and then the finger 319 leaves the screen, and then within a predetermined time (e.g., 80ms, etc.), the finger 319 clicks the hot zone again, and then the object selection mode can be entered (which may be accompanied by feedback, such as the control 301 is ringed or enlarged, etc.). In some embodiments, if the user wants to cancel the object selection mode, he can click anywhere in the graphic 302 to restore to the cursor movement mode, or automatically restore to the cursor movement mode after a certain period of time without user interaction after lifting the finger 319. Generally speaking, continuous click pressing requires at least two clicks.

[0159] FIG. 5I to FIG. 5K The embodiments are applicable to various touch screens, including not only pressure-sensitive screens but also non-pressure-sensitive screens. The pressure-sensitive screen is a pressure-sensitive touch screen, which is a set of new touch technologies integrating capacitive touch and infrared sensing. This technology allows users to accurately convey pressure on a touch surface without relying on complex physical hardware, and to achieve operations of different forces such as heavy pressing and light pressing, thereby achieving a new dimension of user interface navigation and interaction.

[0160] If the screen 310 is a pressure-sensitive screen, the cursor movement mode and the object selection mode can be better distinguished by the pressure of the pressing. Figure 5L , which shows an example of entering the object selection mode by re-pressing the specified hot zone. If the pressure of the finger 319 pressing the screen 310 is less than a certain threshold pressure, the cursor movement mode can be entered; and if the pressure of the finger 319 pressing the screen 310 is greater than the pressure threshold, the object selection mode can be directly entered (which may be accompanied by feedback, such as the control 301 adding a ring or an enlarged display, etc.). In some embodiments, if the user wants to cancel the object selection mode, he can click anywhere in the graphic 302 to restore to the cursor movement mode, or automatically restore to the cursor movement mode after a certain period of time without user interaction after lifting the finger 319. By reasonably using the light and heavy press operations of the pressure-sensitive screen, the control 301 can support multiple operation modes, which not only improves the user's experience of moving the cursor, but also improves the user's experience of selecting text.

[0161] Next, refer to Figures 5M to 5T Describes the interface diagram for accurate and quick text selection based on the positional relationship between two graphics. Figure 5M , finger 319 is touching control 301, and is now in object selection mode, for example, FIG. 5I to FIG. 5L Next, finger 319 slides control 301 to the right, such as Figure 5NAs shown in FIG. 3 , since the sliding distance does not reach the preset first threshold, the cursor 312 remains stationary and does not select any text, thereby preventing the user from accidentally touching the control 301. The finger 319 continues to slide the control 301 to the right. When the distance between the center of the control 301 and the center of the graphic 302 reaches the first threshold, as shown in FIG. Fig.5O As shown, the control 301 begins to merge with the graphic 302. In some embodiments, when the distance between the center of the control 301 and the center of the graphic 302 is between the first threshold and the second threshold, the control 301 and the graphic 302 are in a merged state, and the settings of the first threshold and the second threshold may be related to the radius R of the graphic 302. For example, in one embodiment, the first threshold may be set to three quarters of R, and the second threshold may be set to five quarters of R. In another embodiment, the first threshold may be set to three quarters of R, and the second threshold may be set to six quarters of R, that is, 1.5R.

[0162] refer to Figure 5P , the control 301 and the graphic 302 are integrated, and the appearance of the graphic 302 changes to prompt the user that the precise selection state has been entered. At this time, one character is selected to the right as the finger 319 slides in the direction and then the text 321 is selected. The precise selection state is suitable for the scenario where the user moves the cursor left or right or up and down in a small range and selects text. Alternatively, in addition to or instead of the appearance change of the graphic 302, other feedback methods can be used to prompt the user that the precise selection state has been entered. In the precise selection state, when the finger 319 moves horizontally, the cursor 312 selects an information unit each time according to the sliding direction of the finger 319. For example, each time the finger 319 moves a predetermined number of pixels, the cursor 312 selects an information unit, such as an English letter, a Chinese character, a symbol, an emoticon, or an image. When the finger 319 moves vertically, text or other content in different lines between the starting position and the end position can be selected. In some embodiments, in the precise selection state, as long as the finger 319 does not leave the screen 310, the text will continue to be selected in the corresponding direction until the finger 319 leaves the screen 310, then the text selection stops and the control 301 returns to the original position. After entering the precise selection state, unless the finger 319 leaves the screen 310, the control 301 will not return to the inside of the graphic 302. It should be understood that Fig.5O The trigger fusion Figure 5P The completion of fusion can be an instantaneous change. The phenomenon observed by human eyes is that after the control 301 slides to a certain position, it becomes Figure 5P fusion state.

[0163] refer to Figure 5Q, as the finger 319 continues to slide, the text 321 continues to be selected. Optionally, if the user lifts the finger from the screen 310, an edit menu 323 may pop up near the finger 319 for the user to edit the selected text 321. In some embodiments, in the precise selection state, only the movement of the finger 319 may be used as a trigger condition for selecting text, and the stay of the finger 319 will not select the text. In this case, if the finger 319 stays still on the screen for a predetermined time, the edit menu 323 may also pop up.

[0164] refer to Figure 5R As the finger 319 continues to slide, when the distance between the center of the control 301 and the graphic 302 reaches the second threshold or the sliding speed of the finger 319 reaches the speed threshold, the fusion state is released and the fast selection state is entered. The control 301 moves outside the graphic 302, and the text 321 can be quickly selected at this time. The fast selection state is suitable for the scenario where the user quickly and freely selects a large range of texts. As the finger 319 or the control 301 moves, the text passed by is quickly selected.

[0165] refer to Figure 5S , after finger 319 slides control 301 to move a certain distance to the lower left corner, it also moves in the direction of the lower left corner and selects several texts. In some embodiments, finger 319 can slide control 301 to move throughout screen 310, thereby expanding the range of movement. Alternatively, finger 319 can only slide control 301 on keyboard area 315, thereby not blocking the text in text area 311, thereby improving the accuracy of text selection. In the quick selection state, if it is detected that finger 319 leaves screen 310 or remains stationary for a predetermined period of time, text selection is stopped, and an edit menu 323 pops up near finger 319. In addition, after leaving graphic 302, control 301 will not return to the fused state, even if control 301 may move into graphic 302 again.

[0166] refer to Figure 5T , the user can select the "Cut" option in the edit menu 323 by finger 319, and the selected text 321 in the text area 311 is cut to the clipboard. At this time, since the user's finger 319 has left the control 301, the control 301 is restored to the original position and restored to the cursor movement mode, and the cursor 312 appears again.

[0167] Fig. 6A A flow chart of a method 600 for moving a cursor and selecting an object according to a circle center distance according to an embodiment of the present disclosure is shown. In block 602, a touch input for a control is received on a screen of an electronic device, and then in block 604, it is determined whether the electronic device is currently in a cursor moving mode or an object selecting mode.

[0168] If it is determined at 604 that the electronic device is currently in a cursor movement mode rather than an object selection mode, then at block 606, it is further determined whether the center distance (e.g., the center distance) between the control (e.g., the inner circle control 301) and the auxiliary boundary (e.g., the outer circle graphic 302) is greater than a first threshold. If it is determined at block 606 that the center distance is less than or equal to the first threshold, then at block 608, the cursor is kept stationary, such as Figure 5D If it is determined in box 606 that the center distance is greater than the first threshold, then in box 610 it is further determined whether the center distance is greater than a second threshold, where the second threshold is greater than the first threshold. If it is determined in box 610 that the center distance is less than or equal to the second threshold, then in box 612 the precise movement state is entered, and the cursor is precisely moved according to the movement of the finger on the control (for example, one information unit is moved each time), as shown. Fig. 5F Otherwise, in box 614, the fast moving state is entered, and the cursor is quickly moved according to the movement of the finger on the control (for example, one or more information units can be moved each time), such as Figure 5H After entering the fast movement state, the screen will not return to the precise movement state unless the finger leaves the screen.

[0169] If it is determined at 604 that the electronic device is currently in the object selection mode rather than the cursor movement mode, then it is further determined at block 616 whether the center distance between the inner circle and the outer circle is greater than a first threshold. If it is determined at block 616 that the center distance is less than or equal to the first threshold, then at block 618 the cursor is kept stationary, i.e., no object is selected. Figure 5N If it is determined in box 616 that the center distance is greater than the first threshold, then in box 620 it is further determined whether the center distance is greater than the second threshold. If it is determined in box 620 that the center distance is less than or equal to the second threshold, then in box 622, the precise selection state is entered, such as Figure 5P As shown, the object is accurately selected according to the movement of the finger on the control (for example, one object is selected each time); otherwise, in box 624, the fast selection state is entered, and the object is quickly selected according to the movement of the finger on the control (for example, one or more objects can be selected each time), as shown in FIG. Figure 5S After entering the quick selection state, you will not return to the precise selection state unless your finger leaves the screen.

[0170] Figure 6B FIG. 6 is a flowchart of another method 650 for moving a cursor and selecting an object according to a circle center distance according to an embodiment of the present disclosure. Fig. 6A Method 600, Figure 6BMethod 650 adds a pause interval between the precise movement state and the fast movement state through the third threshold, and also adds a pause interval between the precise selection state and the fast selection state, so that the user can better understand the switching between different states, and further improve the user experience. In box 652, a touch input for a control is received on the screen of the electronic device, and then in box 654, it is determined whether the electronic device is currently in a cursor movement mode or an object selection mode.

[0171] If it is determined in 654 that the electronic device is currently in the cursor movement mode rather than the object selection mode, then in box 656, it is further determined whether the center distance between the inner circle and the outer circle is greater than the first threshold. If it is determined in box 656 that the center distance is less than or equal to the first threshold, then in box 658, the cursor is kept stationary. If it is determined in box 656 that the center distance is greater than the first threshold, then in box 660, it is further determined whether the center distance is greater than the second threshold, wherein the second threshold is greater than the first threshold. If it is determined in box 660 that the center distance is less than or equal to the second threshold, then in box 662, the precise movement state is entered, and the cursor is precisely moved according to the movement of the finger to the control (for example, one information unit is moved each time); otherwise, in box 664, it is further determined whether the center distance is greater than the third threshold, wherein the third threshold is greater than the second threshold. If it is determined in box 664 that the center distance is less than or equal to the third threshold, then in box 666, the pause movement state is entered, in which the movement of the cursor is paused to prompt the user that the precise movement state has ended; otherwise, in box 668, the fast movement state is entered, and the cursor is quickly moved according to the movement of the finger to the control (for example, one or more information units can be moved each time). After entering the fast movement state, it will not return to the precise movement state unless your finger leaves the screen.

[0172] If it is determined in 654 that the electronic device is currently in the object selection mode rather than the cursor movement mode, then in box 670, it is further determined whether the center distance between the inner circle and the outer circle is greater than the first threshold. If it is determined in box 670 that the center distance is less than or equal to the first threshold, then in box 672, the cursor is kept stationary, that is, no object is selected. If it is determined in box 670 that the center distance is greater than the first threshold, then in box 674, it is further determined whether the center distance is greater than the second threshold. If it is determined in box 674 that the center distance is less than or equal to the second threshold, then in box 676, the precise selection state is entered, and objects are precisely selected according to the movement of the finger to the control (for example, one information unit is selected each time); otherwise, in box 678, it is further determined whether the center distance is greater than a third threshold, wherein the third threshold is greater than the second threshold. If it is determined in box 678 that the center distance is less than or equal to the third threshold, then in box 680, the pause selection state is entered, in which the selection of objects is paused to prompt the user that the precise selection state has ended; otherwise, in box 682, the fast selection state is entered, and objects are quickly selected according to the movement of the finger to the control (for example, one or more objects can be selected each time). After entering the fast selection state, it will not return to the precise movement state unless the finger leaves the screen. After entering the fast selection state, it will not return to the precise selection state unless the finger leaves the screen.

[0173] Figures 7A to 7B A schematic diagram of a GUI that slides on the screen according to an embodiment of the present disclosure is shown. A slide refers to a sliding event in which the speed of the finger leaving the screen reaches a predetermined threshold (e.g., 1200 pixels / second, etc.). In some embodiments, once it is detected that the finger has left the screen, it can be determined whether it is a slide event. Slides are suitable for scenarios in which the user intends to move only one unit of information to the left or right or one line up or down. Based on the lateral and longitudinal speeds of the last position reported when the finger leaves the screen, the user's slide angle can be determined, and then different slide directions can be determined. Fig. 7A As shown, the user's finger 319 touches the control 301. Then, the finger 319 quickly moves to the right and leaves, generating a throw event, and the cursor 312 moves one information unit to the right accordingly, as shown in FIG. Figure 7B As shown. In some embodiments, in a throw-and-slide event, the control 301 may have some damping, so that the control 301 does not completely follow the movement of the finger 319, and the movement distance of the control 301 may be less than the distance that triggers fusion. The setting of the damping effect can better prompt the user that the current state is in a throw-and-slide state. Similarly, the finger 319 can throw and slide to the left, and the cursor 312 moves one information unit to the left; the finger 319 can throw and slide upward, and the cursor 312 moves one line upward; the finger 319 can throw and slide downward, and the cursor 312 moves one line downward. The throw-and-slide movement is an extremely precise movement state, which is suitable for scenarios where only one information unit is moved horizontally or only one line is moved vertically at a time.

[0174] Figures 8A to 8B FIG. 1 is a schematic diagram of a GUI for selecting and editing web page content in a web page according to an embodiment of the present disclosure. Fig. 8A As shown, screen 310 includes a URL bar 810, web page content 820, and a web page menu 830. In some embodiments, control 301 and graphic 302 may be displayed at web page menu 830. In some embodiments, a user may determine the starting position of an object (e.g., text) to be selected in a web page by touching a certain position in 820 with a finger. Alternatively, a user may touch control 301 to display an auxiliary cursor, and then slide control 301 with a finger to determine the starting position of the auxiliary cursor, thereby serving as the starting point for selecting an object in a web page.

[0175] After determining the starting point for object selection in the web page, you can use FIG. 5I to FIG. 5L Then, Figure 8B As shown, finger 319 slides control 301 to the right, thereby selecting object 721. After the object selection is completed (for example, the finger leaves or the finger remains stationary for a certain period of time), a menu 833 for editing the selected object 721 can be displayed near the position of finger 319. For example, menu 833 can include menus such as copy, search, read aloud, and share that are suitable for web page scenarios.

[0176] In some embodiments, after the auxiliary cursor is displayed by touching the control 301, the auxiliary cursor can be moved across regions. For example, the auxiliary cursor can be moved not only in the web page content 820, but also in the URL bar 810 at the top, thereby expanding the range of movement of the auxiliary cursor. In some embodiments, objects in a web page can also be selected across regions. For example, the control 301 can be moved by finger 319, so that both the URL in the URL bar 810 and the specific content in the web page content 820 can be selected at the same time, and then the URL and the specific web page content can be shared together through the "Share" option in the menu 833, which not only improves the selection efficiency of the shared content, but also enriches the shared content.

[0177] Figures 8C to 8D FIG. 2 shows a schematic diagram of a GUI for editing a photo (ie, an image) according to an embodiment of the present disclosure. Figure 8C As shown, screen 310 includes a title bar 850, photo thumbnails 860, and an edit bar 870. Figure 8C In the example, the user has selected a photo (e.g., by directly clicking the photo with a finger, or by using an auxiliary cursor, etc.), and the menu bar 870 includes options for editing the photo, such as sharing the photo, deleting the photo, etc. According to an embodiment of the present disclosure, the control 301 and the graphic 302 may be displayed at the menu bar 870.

[0178] refer to Fig.8D In the object selection mode, using finger 319 to slide control 301 can realize convenient photo selection. If finger 319 leaves screen 310 or detects that finger 319 is stationary for a predetermined period of time, menu 873 can be displayed near finger 319, so that the menu in menu bar 870 is moved to the position of user's finger 319 for presentation, so that editing options such as deleting photos can be selected by moving the finger slightly. In this way, menu 873 is directly displayed near finger 319 after the photo selection is completed, without the user having to move the finger over a long distance to complete the specific menu selection, thereby improving the efficiency of photo editing.

[0179] Fig. 9 900 according to an embodiment of the present disclosure is a flowchart of a method for displaying an auxiliary cursor. In some scenarios, there may be no cursor on the screen, such as Figures 8A to 8B Web scene and Figures 8C to 8D In a photo scene. In box 902, the touch screen of the electronic device receives a touch input for a control. Next, in box 904, it is determined whether a cursor currently exists on the screen. If it is determined in box 904 that there is currently no cursor on the screen, an auxiliary cursor is displayed on the screen in box 906, and then the position of the auxiliary cursor can be moved to determine the starting point of the object selection. In 908, the auxiliary cursor is moved or the object is selected according to the movement of the finger to the control. If it is determined in box 904 that there is currently a cursor on the screen, in box 908, the cursor is moved or the object is selected directly according to the movement of the finger to the control, for example, the cursor is moved or the object is selected according to the above-mentioned embodiment. By setting an auxiliary cursor, the cursor movement and object selection of the embodiments of the present disclosure can be implemented in a scene where there is no cursor.

[0180] According to the object editing method of an embodiment of the present disclosure, object selection can be completed by sliding a finger control, and an editing menu can be displayed near the finger, so that the user can complete the entire object editing operation by moving the finger within a smaller range, without having to move the finger over a long distance to edit the object, making it convenient for the user to complete the entire object editing operation even with one hand.

[0181] The object editing method of the embodiment of the present disclosure can be applied to a variety of electronic devices. Exemplarily, the electronic device can be, for example, a mobile phone, a tablet computer (Tablet Personal Computer), a digital camera, a personal digital assistant (PDA), a navigation device, a mobile Internet device (Mobile Internet Device, MID), a wearable device (Wearable Device), and other devices capable of object editing. In addition, the object editing scheme of the embodiment of the present disclosure can be implemented not only as a function of the input method, but also as a function of the operating system of the electronic device.

[0182] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using a software program, it can appear in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present disclosure is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD) or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.

[0183] The various examples and processes described above can be used independently of each other, or can be combined in various ways. Different combinations and sub-combinations are intended to fall within the scope of the present disclosure, and certain steps or processes may be omitted in some implementations. The above is only a specific implementation of the embodiment of the present disclosure, but the protection scope of the embodiment of the present disclosure is not limited to this, and any changes or substitutions within the technical scope disclosed in the embodiment of the present disclosure should be included in the protection scope of the embodiment of the present disclosure. Therefore, the protection scope of the embodiment of the present disclosure shall be based on the protection scope of the claims.

Claims

1. An object editing method, applied to electronic equipment, It is characterized in that The method comprises: A text area and a keyboard area are displayed on the screen of the electronic device; the text area displays text inputted through a virtual keyboard; the keyboard area includes the virtual keyboard, and a control and a reference graphic arranged in an idle area below the virtual keyboard, wherein the center of the control and the center of the reference graphic overlap at a target position in the idle area; in an object selection mode, the text area includes: a first endpoint located at a first position and a second endpoint located at a second position; In response to an operation of moving the control by a finger in the idle area, selecting text from the text area; In response to detecting that the finger leaves the control, the following actions are performed in sequence: determining that the text selection is completed; determining the position of a menu area for editing the selected text based on the touch position when the finger leaves the control, the menu area being located near the touch position; automatically popping up an edit menu at the determined position of the menu area, and controlling the control to return to the target position, the edit menu including a copy option for editing the selected text; In response to a user's operation on the copy option, the selected text is copied to a clipboard, and a paste option is displayed near the copy option; In response to an operation of moving the control by a finger in the idle area, controlling the paste option and the cursor in the text area to follow the movement of the control, and the paste option is always located near the control; In response to the user's operation on the paste option, displaying the selected text at the position where the cursor is moved, and controlling the control to return to the target position; Wherein, in response to the operation of the finger moving the control in the idle area, selecting text from the text area includes: if the distance between the center of the control and the center of the reference figure is less than or equal to a first threshold, keeping the first endpoint and the second endpoint stationary, and the first threshold is less than the radius of the reference figure; if the distance is greater than the first threshold and less than or equal to a second threshold, displaying the fusion area of ​​the control and the reference figure, controlling the second endpoint to move one information unit each time in the direction of movement of the finger, and after the finger is still, controlling the second endpoint to move one information unit each time in the direction of movement at predetermined intervals, and the second threshold is greater than the radius of the reference figure; if the distance is greater than the second threshold and less than or equal to a third threshold, the fusion state is released, and the movement of the second endpoint is suspended, and the third threshold is greater than the second threshold; if the distance is greater than the third threshold, controlling the second endpoint to move multiple information units each time in the direction of movement of the finger.

2. The method according to claim 1, It is characterized in that In response to the operation of the finger moving the control in the idle area, before selecting text from the text area, the method further includes: In response to a static pressing time length of a finger within the reference pattern being greater than a threshold time length, entering the object selection mode.

3. The method according to claim 1, It is characterized in that In response to the operation of the finger moving the control in the idle area, before selecting text from the text area, the method further includes: In response to the contact area of ​​the finger within the reference pattern being greater than a threshold area, entering the object selection mode.

4. The method according to claim 1, It is characterized in that The screen is a pressure-sensitive screen; In response to the operation of the finger moving the control in the idle area, before selecting text from the text area, the method further includes: In response to the finger pressing pressure within the reference pattern being greater than a threshold pressure, entering the object selection mode.

5. The method according to claim 1, It is characterized in that In response to the operation of the finger moving the control in the idle area, before selecting text from the text area, the method further includes: In response to a distance between the center of the control and the center of the reference graphic being greater than a first threshold, entering the object selection mode.

6. The method according to any one of claims 1 to 4, It is characterized in that The method further comprises: Detecting whether the finger moving the control leaves the screen; If it is detected that the finger leaves the screen, determining the speed at which the finger leaves the screen; If the speed at which the finger leaves the screen is greater than a threshold speed, determining the moving direction of the finger; and, Move the cursor one text or one line of text in the moving direction.

7. The method according to any one of claims 1 to 4, It is characterized in that The method further comprises: receiving a touch on the control; determining whether a cursor exists on the screen; If it is determined that the cursor does not exist on the screen, displaying an auxiliary cursor on the screen; and, The position of the auxiliary cursor is changed according to the movement of the finger on the control.

8. An electronic device, It is characterized in that include: A processor, and a memory storing instructions, wherein when the instructions are executed by the processor, the electronic device executes the method according to any one of claims 1 to 7.

9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores instructions, which, when executed by an electronic device, cause the electronic device to perform the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Touch screen response method and apparatus

    CN105045520A

  • Method for controlling cursor movement, content selection method, page scrolling control method and electronic device

    CN109426410A

  • Gesture-based cursor control

    US20140109016A1