Detailed Description
The present invention will be described in detail below with reference to the accompanying drawings and embodiments.
Referring to fig. 1, fig. 1 is a schematic flow chart of an embodiment of a text editing method according to the present invention, including the following steps:
s101: the mobile terminal receives a first touch instruction for selecting first text content in a text area, and selects a first area where the first text content is located.
The text area in the present invention refers to an area having text content, and may be a chat area of short messages or WeChat, etc., or may be a text area in a web page or a picture area containing text content.
The first touch command may be a single-finger or double-finger slide command, a single-finger or double-finger double-click command, or a combination command, but is not limited thereto.
S102: and the mobile terminal receives a second touch instruction in a second area outside the first area where the first text content is located, continues to select the first area where the first text content is located, and performs corresponding operation according to the second touch instruction.
It is understood that the second touch command in the present invention may be the same as the first touch command or different from the first touch command.
In this embodiment, after the user selects the first text content, the user may keep the first area where the selected first text content is located, and perform other operations, so as to provide a technical basis for performing multiple text edits.
Referring to fig. 2, fig. 2 is a flowchart illustrating a text editing method according to another embodiment of the present invention. In this embodiment, the method includes the steps of:
s201: the mobile terminal receives a first touch instruction for selecting first text content in a text area, performs amplification operation on the first text content according to the first touch instruction, and selects a first area where the first text content is located.
When the first text content needs to be selected, the text area may display a group of text selection icons, where the text selection icons may include a front selection icon and a rear selection icon, where the front selection icon is used to select a start position of the text content that needs to be edited, and the rear selection icon is used to select an end position of the text content that needs to be edited. For example, when the front selection icon and/or the rear selection icon are dragged, a magnifying glass appears on the front selection icon and/or the rear selection icon, and the magnifying glass displays text contents of the area where the front selection icon and/or the rear selection icon pass through, so that the first text contents are magnified, and a user can accurately select the first area where the first text contents are located.
S202: and the mobile terminal receives a second touch instruction in a second area outside the first area where the first text content is located, continues to select the first area where the first text content is located, and selects at least one second area where the second text content is located again according to the second touch instruction at least once.
As one implementable manner, the first area and the second area are not in the same mobile terminal interface page. The mobile terminal interface page may be a WeChat interface page, a short message interface page, a web interface page, and the like.
For example, the first area and the second area are both in the wechat interface page, but the interval between the two areas exceeds the screen interface of the mobile terminal, at this time, after the first area is selected, the sliding mobile phone screen can be selected to be turned to the wechat interface page where the second area is located, at this time, the mobile terminal can keep the state of selecting the first area, and continue to select the second area. It will be appreciated that text editing may also be performed in this way when the text in a certain area is too long.
For another example, the first area is in the wechat interface page, and the second area is in the web interface page, at this time, after the first area is selected in the wechat interface page, the wechat interface page is selected to exit and enter the web interface page where the second area is located, and at this time, the mobile terminal may keep selecting the first area, and continue to select the second area.
S203: the mobile terminal receives a successive cancellation touch instruction, and further cancels the previously selected texts in sequence according to the reverse order; or the mobile terminal receives the touch canceling instruction or all touch canceling instructions, and further cancels the selected text or cancels all selected texts.
For example, after selecting a plurality of text contents, the user finds that it is necessary to deselect a certain text or to deselect all selected text contents, at this time, the user may press the return touch key of the mobile phone one by one to sequentially deselect the previously selected text in the reverse order, or may press the screen for a long time to select "cancel" from "select" in "the screen, and then select whether to deselect this time or to deselect all text contents.
Referring to fig. 3, fig. 3 is a flowchart illustrating an application scenario of a text editing method according to the present invention. When a user wants to edit a certain text, the user does not touch the screen in the selected text area, the screen has options of copying, cutting, sharing, selecting a tool, canceling and the like, and when the user selects the option of selecting the tool, a group of selection icons including a front selection icon and a rear selection icon appear in the text area; when the front selection icon and/or the rear selection icon are/is pulled, a magnifying glass appears on the front selection icon and/or the rear selection icon, the magnifying glass displays the text in the path area of the front selection icon and/or the rear selection icon, the text content is magnified, and the text content needing to be edited can be accurately selected; when the user needs to edit a plurality of texts, after the first text is selected, the user can touch the screen for a long time to display another group of selection icons to select the second text. After the selection of the multiple sections of texts is completed, the screen can be touched for a long time or the screen can be quickly and doubly clicked again, and the selected texts can be edited by selecting options of copying, cutting, selecting, canceling and the like. When the user clicks the blank area carelessly when selecting or editing the text, the selected content is not cancelled. If the user needs to cancel the selected text, the user can press the touch keys of the mobile phone one by one to cancel the previously selected text in reverse order, or can select whether to cancel the text at the time of copying, cutting, selecting and canceling, and then select whether to cancel the text at this time or cancel all the texts. By the method, the text editing at multiple positions can be performed at one time, and the failure of text editing caused by misoperation of a user can be avoided, so that the text editing process is easier.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an embodiment of a mobile terminal according to the present invention, where the mobile terminal in this embodiment includes: the processor 43, the communication circuit 42 and the display 41, wherein the processor 43 is coupled to the communication circuit 42 and the display 41 respectively; the processor 43 is configured to control the display 41 to display the first text content of the text region.
The processor 43 is further configured to control the communication circuit 42 to receive a first touch instruction for selecting the first text content in the text area, and select the first area where the first text content is located; and controlling the communication circuit 42 to receive a second touch instruction in a second area, which is different from the first area where the first text content is located, continuously selecting the first area where the first text content is located, and performing corresponding operation according to the second touch instruction.
It can be understood that the mobile terminal in the invention can be a smart phone, a tablet computer, and the like.
In this embodiment, the processor 43 controls the communication circuit 42 to receive a first touch instruction for selecting the first text content in the text area and select the first area where the first text content is located, and while the first area where the first text content is located is continuously selected, the processor 43 may control the communication circuit 42 to receive a second touch instruction to perform corresponding operations, so as to provide a technical basis for performing multiple text editing.
As an implementation manner, the processor 43 is further configured to control the communication circuit 42 to receive a first touch instruction for selecting the first text content in the text area, perform an enlarging operation on the first text content according to the first touch instruction, and select the first area where the first text content is located, so that the user can select the text content more easily and accurately.
As an implementable manner, the processor 43 is further configured to control the communication circuit 42 to receive the second touch instruction in a second area outside the first area where the first text content is located, continue to keep selecting the first area where the first text content is located, and select the second area where the at least one second text content is located again according to the at least one second touch instruction, so that text editing failure due to misoperation is avoided, and text editing at multiple places can be performed, so that the text editing process is easier.
As an implementable manner, the first area and the second area are not in the same interface page; the processor 43 is further configured to control the communication circuit 42 to receive a successive cancellation touch instruction, and further cancel the previously selected texts in the reverse order; or, the processor 43 is further configured to control the communication circuit 42 to receive the touch cancel instruction or all touch cancel instructions, and further cancel the text selected this time or all selected texts, so that text editing failure due to misoperation is avoided, and the text editing process is easier due to multiple selection modes.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an embodiment of an apparatus with a storage function according to the present invention, the storage device 50 stores program data 500, and the program data 500 can be executed to implement the method described above.
The storage device 50 may be a portable storage medium such as a usb disk, an optical disk, or a mobile terminal.
The method for editing the text, the mobile terminal and the device with the storage function keep the first area where the selected first text content is located after the first text content is selected, then select the text content at other places, and perform corresponding text editing operation. By the method, the user can avoid text editing failure caused by misoperation of the user, and can edit the text at multiple positions at one time, so that the text editing process is easier, and the use experience of the user is enhanced.
In the embodiments provided in the present invention, it should be understood that the disclosed text editing method, mobile terminal and device with storage function may be implemented in other ways. For example, the above-described mobile terminal embodiment is only illustrative, and the division of each functional portion is only one logical division, and there may be another division in actual implementation, for example, multiple functional portions may be combined or integrated into several modules, or each functional portion may exist alone physically, and so on.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.