[go: up one dir, main page]

CN109298790A - Character deleting method and device - Google Patents

Character deleting method and device Download PDF

Info

Publication number
CN109298790A
CN109298790A CN201811184503.3A CN201811184503A CN109298790A CN 109298790 A CN109298790 A CN 109298790A CN 201811184503 A CN201811184503 A CN 201811184503A CN 109298790 A CN109298790 A CN 109298790A
Authority
CN
China
Prior art keywords
character
deleting
deleted
characters
input
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811184503.3A
Other languages
Chinese (zh)
Inventor
吴作鹏
余飞
程坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
iFlytek Co Ltd
Original Assignee
iFlytek Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by iFlytek Co Ltd filed Critical iFlytek Co Ltd
Priority to CN201811184503.3A priority Critical patent/CN109298790A/en
Publication of CN109298790A publication Critical patent/CN109298790A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/017Gesture based interaction, e.g. based on a set of recognized hand gestures

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Input From Keyboards Or The Like (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The embodiment of the present invention provides a kind of character deleting method and device, belongs to computer application technology.This method comprises: if showing character to be deleted in default display area and sliding trace meets preset condition, then delete character to be deleted, sliding trace is the slide determination based on user, and preset condition includes that the starting drop point of sliding trace is located in the delete button in input panel.Method provided in an embodiment of the present invention deletes character to be deleted after meeting preset condition in the sliding trace detected.Since only character deletion need to can be realized by finger slide in user, and do not have to delete one by one manually, so that deletion efficiency can be improved, promotes user experience.

Description

Character deleting method and device
Technical Field
The embodiment of the invention relates to the technical field of computer application, in particular to a character deleting method and device.
Background
Currently, when a user inputs information through a mobile terminal, the user usually inputs information by using an on-screen soft keyboard. And a delete key is usually provided on the input interface of the current input method. In the related art, when a user deletes a character in an input content, the user generally needs to move a cursor to a last character to be deleted, and then click a deletion key provided on an input interface to delete one character again one time until all characters to be deleted before the cursor is input are deleted. Because the character is deleted back by clicking the deletion key one by one, the deletion process is time-consuming and the deletion efficiency is low.
Disclosure of Invention
To solve the above problems, embodiments of the present invention provide a character deletion method and apparatus that overcome the above problems or at least partially solve the above problems.
According to a first aspect of the embodiments of the present invention, there is provided a character deleting method, including:
and if the characters to be deleted are displayed in the preset display area and the sliding track meets a preset condition, deleting the characters to be deleted, wherein the sliding track is determined based on the sliding operation of a user, and the preset condition comprises that the initial falling point of the sliding track is positioned on a deletion key in the input panel.
According to the method provided by the embodiment of the invention, the character to be deleted is deleted after the detected sliding track meets the preset condition. Because the user only needs to slide the finger to delete the characters, the characters can be deleted without manually deleting the characters one by one, and therefore deleting efficiency can be improved, and user experience is improved.
According to a second aspect of the embodiments of the present invention, there is provided a character deleting apparatus including:
and the deleting module is used for deleting the character to be deleted when the character to be deleted is displayed in the preset display area and the sliding track meets a preset condition, wherein the sliding track is determined based on the sliding operation of a user, and the preset condition comprises that the initial falling point of the sliding track is positioned on a deleting key in the input panel.
According to a third aspect of embodiments of the present invention, there is provided an electronic apparatus, including:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein:
the memory stores program instructions executable by the processor, the processor calling the program instructions to perform the character deletion method as provided in any of the various possible implementations of the first aspect.
According to a fourth aspect of the present invention, there is provided a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the character deletion method provided in any one of the various possible implementations of the first aspect.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory and are not restrictive of embodiments of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a character deleting method according to an embodiment of the present invention;
fig. 2 is a schematic diagram illustrating a first region division according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a division of a second area according to an embodiment of the present invention;
fig. 4 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Currently, when a user inputs information through a mobile terminal, the user usually inputs information by using an on-screen soft keyboard. And a delete key is usually provided on the input interface of the current input method. In the related art, when a user deletes a character in an input content, the user generally needs to move a cursor to a last character to be deleted, and then click a deletion key provided on an input interface to delete one character again one time until all characters to be deleted before the cursor is input are deleted. Because the character is deleted back by clicking the deletion key one by one, the deletion process is time-consuming and the deletion efficiency is low.
In view of the above situation, an embodiment of the present invention provides a character deletion method. It should be noted that the execution subject of the method may be any device that supports a touch screen and supports an input panel function, and this is not particularly limited in the embodiment of the present invention, including but not limited to a mobile phone or a tablet computer. Specifically, the method comprises the following steps:
101. and detecting the sliding operation of the user in real time, and determining a sliding track corresponding to the sliding operation.
In the embodiment of the invention, the user can delete the characters by sliding on the display screen. Correspondingly, in the character input state, the device can detect the sliding operation of the user on the display screen in real time and determine the sliding track corresponding to the sliding operation.
102. And if the characters to be deleted are displayed in the preset display area and the sliding track meets the preset conditions, deleting the characters to be deleted, wherein the preset conditions comprise that the initial falling point of the sliding track is positioned on a deleting key in the input panel.
The preset display area may be used to display characters to be displayed on a screen or characters already displayed on the screen, which is not specifically limited in the embodiment of the present invention. The position of the preset display area may be above the input panel, which is not particularly limited in the embodiment of the present invention. The characters to be deleted may be all characters before the cursor is input in the preset display area, may also be all characters after the cursor is input in the preset display area, and may also be all characters displayed in the preset display area, which is not specifically limited in the embodiment of the present invention. The input panel refers to a virtual keyboard panel provided by an input method, and the deletion key is positioned on the virtual keyboard panel.
The sliding track meeting the preset condition means that the initial falling point of the sliding track is positioned on the deletion key in the input panel, namely when the user slides on the display screen, the initial contact point of the finger is the deletion key in the input panel. Based on this, the initial falling point of the sliding track corresponding to the sliding operation is located on the delete key in the input panel.
In combination with the actual application scenario, for convenience of understanding, taking the character to be deleted as the character before the input cursor as an example, if the sliding track meets the preset condition, it can be determined that the sliding track is formed by the user clicking the delete key in advance and then dragging the sliding track to other places. At this time, the character to be deleted may be deleted, that is, the character before the input cursor is deleted. It should be noted that the sliding direction of the sliding track may be any direction, and the final drop point of the sliding track may also be any position on the display screen, which is not specifically limited in this embodiment of the present invention.
According to the method provided by the embodiment of the invention, the character to be deleted is deleted after the detected sliding track meets the preset condition. Because the user only needs to slide the finger to delete the characters, the characters can be deleted without manually deleting the characters one by one, and therefore deleting efficiency can be improved, and user experience is improved.
In the actual text editing process, the user may need to delete the characters before the input cursor and may also need to delete the characters after the input cursor. In order to meet different deletion requirements of users, the sliding operation and the deletion instruction can be correlated. Accordingly, the corresponding meanings of the different sliding tracks can be predefined, so that the corresponding deleting instructions can be executed subsequently. Based on the above principle and the content of the foregoing embodiment, as an optional embodiment, the preset condition may further include that the final drop point of the sliding trajectory is located in a first area with the initial drop point as a vertex; accordingly, the embodiment of the present invention does not specifically limit the manner of deleting the character to be deleted, including but not limited to: and deleting the characters displayed before the input cursor in the preset display area.
It should be noted that, since the initial falling point of the sliding track is determined, that is, located on the delete key in the input panel, the initial falling point serves as one of the vertices of the first area no matter how the first area is defined. The deleting instruction associated with the first area is the character displayed before the input cursor in the preset display area is deleted. Accordingly, when the final drop point of the sliding track is located in the first area, the deletion instruction associated with the first area can be executed.
In addition, the shape of the first region may be a square or a circle, which is not particularly limited in the embodiment of the present invention. The relative position of the first area and the initial drop point may be set in combination with a gesture operation habit of the user, for example, the first area is located on the left side or the upper side of the initial drop point, which is not specifically limited in the embodiment of the present invention.
According to the method provided by the embodiment of the invention, the final drop point position of the sliding track is determined, and when the final drop point is in the first area, the character displayed before the cursor is input in the preset display area is deleted. Due to the fact that the user can delete the characters by controlling the position of the falling point of the sliding operation, deleting efficiency can be improved, and user experience is improved.
When the user slides on the display screen, the sliding direction is usually a straight line. Therefore, the shape and the boundary of the first region may be determined according to the sliding habit of the user. Based on the above principle and the content of the above embodiment, as an alternative embodiment, the first area may be a sector area with a preset angular arc, and the first area is located on the left side of the initial falling point.
In combination with an actual application scene, when a user slides on a display screen by taking a certain point as an initial falling point, the sliding track is a straight line by taking the initial falling point as a starting point, so that the first area is set to be a fan-shaped area with a preset angular radian, and the sliding tracks of different final falling points can be better contained. In addition, if there is another divided area in addition to the first area and the other divided area corresponds to another deletion instruction, the first area and the other divided area are set in a fan shape to facilitate the division from each other and to conform to the sliding operation habit of the user. The predetermined angle may be set according to a requirement, for example, 90 degrees, and this is not specifically limited in the embodiment of the present invention.
Taking the device as a mobile phone as an example, the position and shape of the first area can be referred to fig. 2. As shown in fig. 2, the first area is a sector area, and the vertex (i.e., the initial landing point) of the sector area is located on the delete key. In addition, the first area is located to the left of the initial landing point. For ease of understanding, the procedure of the deletion operation will be described by taking the slide trajectory as a straight line as an example. Specifically, the user may first put a finger on the delete key, and if it is detected that the user presses the delete key (i.e., it is detected that the initial falling point is located on the delete key) and slides to the left, and the final falling point of the sliding track is located in the first area, the character displayed before the input cursor in the preset display area may be deleted.
It should be noted that, in the above process, when it is determined that the final drop point of the sliding track is located in the first area, the character displayed before the input cursor in the preset display area is deleted. In addition to this situation, when it is determined that the entire sliding track is located in the first area, the character displayed before the cursor is input in the preset display area may be deleted, which is not specifically limited in the embodiment of the present invention. At this time, the preset condition further includes that the sliding track is located in the first area. It should be further noted that, since the character displayed before the input cursor in the preset display area is deleted, the first area is located on the left side of the initial drop point, and the operation habit of the user is relatively met. Of course, in an actual implementation process, the first area may also be located on an upper side, a lower side, a right side, or other positions of the initial landing point, which is not specifically limited in the embodiment of the present invention.
As can be seen from the above, deleting the character displayed before the cursor is input in the preset display area (i.e. deleting the command) may correspond to a left-sliding operation with the initial drop point as the starting point and the final drop point located in the first area. In order to avoid that the user mistakenly triggers the left-sliding operation, after the initial falling point of the sliding track is detected to be located on the deletion key in the input panel (namely, the user presses the deletion key), whether the user moves the gesture into the first area within the specified time length can be further judged. If the user moves the gesture to the first area within the specified duration, whether the final drop point of the movement track is located in the first area can be further judged. The specified time period may be 800 milliseconds, which is not specifically limited in this embodiment of the present invention.
According to the method provided by the embodiment of the invention, the first area is set to be the sector area of the preset radian angle and is positioned on the left side of the initial falling point, so that a user can delete the characters displayed before inputting the cursor in the preset display area in a leftward sliding mode. The mode of deleting characters by leftward sliding operation is more in line with the operation habit of the user, so that the user experience can be improved.
As can be seen from the above description of the embodiments, in the actual text editing process, the user may need to delete the character before the input cursor or delete the character after the input cursor. In addition to deleting the process of displaying characters before the input cursor, the user may also delete characters displayed after the input cursor within the preset display area. For this situation, based on the content of the foregoing embodiment, as an optional embodiment, the preset condition further includes that the final drop point of the sliding track is located in a second area with the initial drop point as a vertex; accordingly, deleting the character to be deleted includes: and deleting the characters displayed after the cursor is input in the preset display area.
It should be noted that the second region is different from the first region in the above-described embodiment, and there is no overlapping region in the division between the first region and the second region. In addition, since the initial falling point of the sliding track is determined, namely, is located on the delete key in the input panel, the initial falling point is used as one vertex of the second area no matter how the second area is defined. The deleting instruction associated with the second area is the character displayed after the input cursor in the preset display area is deleted. Accordingly, when the final drop point of the sliding track is located in the second area, the deletion instruction associated with the second area can be executed.
In addition, the shape of the second region may be a square or a circle, which is not particularly limited in the embodiment of the present invention. The relative position of the second area and the initial drop point may be set according to a gesture operation habit of the user, for example, the second area is located on the lower side or the right side of the initial drop point, which is not specifically limited in the embodiment of the present invention. It should be further noted that, when deleting a character displayed after the input cursor, all characters after the input cursor may be directly deleted, or a user may trigger a character deleting operation every time the user performs a sliding operation, which is not specifically limited in this embodiment of the present invention. It should be noted that the sliding operation herein needs to satisfy the preset condition specified by the embodiment of the present invention, that is, the initial falling point of the sliding track is located on the delete key in the input panel, and the final falling point of the sliding track is located in the second area.
According to the method provided by the embodiment of the invention, the final drop point position of the sliding track is determined, and when the final drop point is in the second area, the characters displayed after the cursor is input in the preset display area are deleted. Due to the fact that the user can delete the characters by controlling the position of the falling point of the sliding operation, deleting efficiency can be improved, and user experience is improved.
In addition, since the characters after the input cursor can be deleted one by the sliding operation, all the characters after the input cursor can be directly deleted, and the deletion efficiency can be further improved.
When the user slides on the display screen, the sliding direction is usually a straight line. Therefore, the shape and the boundary of the second region may be determined according to the sliding habit of the user. Based on the above principle and the content of the above embodiment, as an alternative embodiment, the second area may be a sector area with a preset angle radian, and the second area is located below the initial landing point.
Like the first area, when the user slides on the display screen with a certain point as the initial falling point, the sliding track is usually a straight line with the initial falling point as the starting point, so that the second area can be also set as a fan-shaped area with a preset angle radian, and the sliding tracks with different final falling points can be better included. The first area and the second area correspond to different deleting instructions, the first area corresponds to the deleted character displayed before the input cursor, and the second area corresponds to the deleted character displayed after the input cursor. The first area and the second area are both arranged in a fan shape, so that the first area and the second area are favorably distinguished from each other and accord with the sliding operation habit of a user. The predetermined angle may be set to 90 degrees, which is not limited in this embodiment of the present invention.
Taking the device as a mobile phone as an example, the position and shape of the second area can be referred to fig. 3. As shown in fig. 3, the second area is a sector area, and the vertex (i.e., the initial landing point) of the sector area is located on the delete key. In addition, the second area is located below the initial landing point. For ease of understanding, the procedure of the deletion operation will be described by taking the slide trajectory as a straight line as an example. Specifically, the user may first put a finger on the delete key, and if it is detected that the user presses the delete key (i.e., it is detected that the initial falling point is located on the delete key) and slides down, and the final falling point of the sliding track is located in the second area, the character displayed after the cursor is input in the preset display area may be deleted.
It should be noted that, in the above process, when it is determined that the final drop point of the sliding track is located in the second area, the character displayed after the cursor is input in the preset display area is deleted. In addition to this situation, when it is determined that the entire sliding track is located in the second area, the character displayed after the cursor is input in the preset display area may be deleted, which is not specifically limited in the embodiment of the present invention. At this time, the preset condition further includes that the sliding track is located in the second area. It should be noted that, since the characters displayed after the input cursor in the preset display area is deleted, the second area is located below the initial drop point, and the operation habit of the user is relatively met. Of course, in an actual implementation process, the second area may also be located at the right side of the initial landing point or at other positions, which is not specifically limited in this embodiment of the present invention.
As can be seen from the above, deleting the character displayed after the cursor is input in the preset display area (i.e. deleting the command) may correspond to the sliding-down operation with the initial falling point as the starting point and the final falling point located in the second area. In order to avoid that the user triggers the sliding operation by mistake, after detecting that the initial falling point of the sliding track is positioned on the deletion key in the input panel (namely, the user presses the deletion key), the user can further judge whether the user moves the gesture into the second area within the specified time length. If the user moves the gesture to the second area within the specified duration, whether the final drop point of the movement track is located in the second area can be further judged. The specified time period may be 800 milliseconds, which is not specifically limited in this embodiment of the present invention.
According to the method provided by the embodiment of the invention, the second area is set to be the sector area of the preset angular radian, and the second area is positioned at the lower side of the initial falling point, so that a user can delete the characters displayed after the cursor is input in the preset display area in a downward sliding mode. The mode of deleting the characters by downward sliding operation is more in line with the operation habit of the user, so that the user experience can be improved.
Considering that some users are used to delete the character before the input cursor by pressing the delete key for a long time, the method provided by the embodiment of the invention also supports the deletion of the character by pressing the delete key for a long time. When the user deletes the character by pressing the delete key for a long time, the character is deleted one by one. At present, when a user deletes characters back by long-time pressing operation, the characters are usually deleted one by one according to a fixed character deletion interval time. For example, if the character deletion interval time is 1 second, the user may delete one character every 1 second when pressing the deletion key for a long time until the characters before the input cursor are deleted. Because of the fixed character deletion time interval, when the character deletion time interval is short, if the user deletes fewer characters, the user may delete the characters too quickly, which may result in the user's false deletion. When the character deletion time interval is long, if the user deletes more characters, the deletion efficiency may be reduced because the character deletion is slow.
In view of the above situation, based on the content of the foregoing embodiment, as an alternative embodiment, an embodiment of the present invention further provides a method for deleting a character by pressing a delete key for a long time, including but not limited to: if the characters to be deleted are displayed in the preset display area and the long-press operation on the delete key is detected, adjusting the character delete interval time according to the long-press operation, and deleting the characters to be deleted one by one according to the character delete interval time.
When the character deletion interval time is adjusted according to the long-press operation, the character deletion interval time can be adjusted according to the duration of the long-press operation. Or, the character deletion interval time may also be adjusted according to the application strength of the long press operation, which is not specifically limited in this embodiment of the present invention.
According to the method provided by the embodiment of the invention, the character deletion interval time can be adjusted according to long-time pressing operation, and the character is not required to be deleted back according to fixed interval time, so that the character deletion back speed can be uniformly adjusted, and the user experience is improved.
Based on the content of the foregoing embodiment, as an alternative embodiment, the embodiment of the present invention does not specifically limit the manner of adjusting the character deletion interval time according to the long press operation, and includes but is not limited to: adjusting the character deletion interval time in real time according to the duration of the long press operation; wherein, the longer the duration of the long press operation, the shorter the character deletion interval time.
Specifically, the character deletion interval time may be adjusted according to the following formula:
the delay represents a time interval from the completion of the deletion of the previous character to the deletion of the next character, that is, a character deletion interval time. t represents the time from when the character is deleted for the first time, that is, the time from when the sliding track is detected to satisfy the preset condition to when the deletion of the first character is started. As can be seen from the above formula, the longer the long pressing operation duration is, the shorter the character deletion interval time is, the faster the character deletion is. It should be noted that, when the long pressing operation duration is longer, it indicates that the characters that the user may need to delete back are more, so as to shorten the character deletion interval time, and enable the user to delete the unnecessary characters more quickly.
According to the method provided by the embodiment of the invention, the character deletion interval time is adjusted in real time according to the duration of the long-press operation, so that the character deletion interval time can be automatically adjusted based on the possible deletion requirements of a user, and further the user experience can be improved.
Based on the content of the foregoing embodiment, as an optional embodiment, before deleting the character displayed in the preset display area, the method further includes: and if the characters to be deleted are displayed in the preset display area and the detected sliding track meets the preset condition, displaying a deletion prompt.
The deletion prompt may be presented in a manner of a text bubble or a text box, which is not specifically limited in this embodiment of the present invention. For example, a "clear" two-word text bubble may be displayed near the delete key to prompt the user that a delete operation is to be performed. After the deletion prompt is displayed, if the slide operation is continued, the slide trajectory continues to extend. And if the sliding track continuously meets the preset condition in the extending process, continuously displaying a deletion prompt. If the sliding track suddenly does not meet the preset condition in the extending process, the display of the deletion prompt can be stopped until the sliding track meets the preset condition.
According to the method provided by the embodiment of the invention, the deletion prompt is displayed before the characters displayed in the preset display area are deleted. The user can be reminded that the deleting operation is about to be carried out, so that the user experience can be improved.
Based on the content of the above embodiment, as an optional embodiment, the preset display area is an input box in the current information input interface, or an area to be screened in the input panel, or an associated character display area in the input panel.
For the convenience of understanding, the character input process in the above three cases will now be described with reference to the practical application scenario. Taking the pinyin input method adopted by a user as an example, when the user inputs characters, the user usually needs to input pinyin characters first, and the input method can display the input pinyin characters and corresponding Chinese characters in a region to be displayed on a screen in an input panel. After the user confirms the Chinese character to be input in the screen-on-standby area, the Chinese character confirmed by the user is displayed in the input box, and the associated Chinese character which is possibly accepted after the Chinese character is displayed in the associated character display area. If the user finds that the associated character display area displays the Chinese character which the user wants to input next, the user can directly confirm in the associated character display area without inputting the Chinese character again, and the associated Chinese character confirmed by the user is also displayed in the input box and is displayed behind the Chinese character input by the user before.
If the current user does not prepare to input Chinese characters, only the Chinese characters input by the user are displayed in the input box, and the current state can be defined as an idle state. If the user inputs pinyin to prepare for inputting Chinese characters, the region to be displayed on the screen displays the pinyin input by the user and corresponding optional Chinese characters, and the current state at the moment can be defined as an input state. If the user confirms the Chinese character to be input in the screen waiting area, the Chinese character confirmed by the user is displayed in the input box, the associated Chinese character is displayed in the associated character display area, and the current state can be defined as the associated state.
Based on the above definitions and the contents of the above embodiments, as an optional embodiment, the delete key is used to delete the character displayed in the input box; in the input state, the deleting key is used for deleting characters displayed in the screen area to be displayed; in the associated state, the delete key is used to delete the character displayed in the associated character display area.
Specifically, in the idle state, the user can delete the input Chinese characters in the input box through sliding operation. With the above embodiment, the user may delete the chinese character before the input cursor in the input box by the left-sliding operation, and delete the chinese character after the input cursor in the input box by the down-sliding operation. Similarly, in the input state, the user may delete the pinyin character before the cursor is input in the region to be displayed on the screen through the left-sliding operation, and delete the pinyin character after the cursor is input in the region to be displayed on the screen through the down-sliding operation. In the association state, the user can delete the associated Chinese character before the input cursor in the association character display area through the left-sliding operation, and delete the associated Chinese character after the input cursor in the association character display area through the down-sliding operation.
It should be noted that there is no input cursor in the on-screen area and the associated character display area of some input methods, that is, the user cannot edit characters in both areas, but only confirms them. In this case, if the current state is the input state, the user may delete the pinyin character displayed in the region to be displayed on the screen by a left-handed swipe operation. Because the pinyin characters input by the user are deleted by the user, the optional Chinese characters corresponding to the pinyin characters in the screen waiting area can be deleted. At the same time, the current state will jump from the input state to the idle state. It should be noted that the left-sliding operation in the process of deleting the pinyin character may also be replaced by a down-sliding operation, a right-sliding operation, or an up-sliding operation, and the like, and the user may set the left-sliding operation, the right-sliding operation, or the up-sliding operation according to the habit of the user, which is not specifically limited in this embodiment of the present invention.
If the current state is the association state, the user can delete the associated Chinese characters displayed in the association character display area through left-sliding operation. At the same time, the current state will jump from the association state to the idle state. It should be noted that the left-sliding operation in the process of deleting the associated chinese character may also be replaced by a down-sliding operation, a right-sliding operation, or an up-sliding operation, and the user may set the left-sliding operation, the right-sliding operation, or the up-sliding operation according to the habit of the user, which is not particularly limited in the embodiment of the present invention.
According to the method provided by the embodiment of the invention, because a plurality of areas in the input panel can support a character deleting mode of sliding operation, the character deleting efficiency can be improved.
Based on the content of the foregoing embodiments, an embodiment of the present invention provides a character deleting device, where the device is configured to execute a character deleting method in the foregoing method embodiments, and the device includes a deleting module; wherein,
and the deleting module is used for deleting the character to be deleted when the character to be deleted is displayed in the preset display area and the sliding track meets a preset condition, wherein the sliding track is determined based on the sliding operation of a user, and the preset condition comprises that the initial falling point of the sliding track is positioned on a deleting key in the input panel.
Based on the content of the foregoing embodiment, as an optional embodiment, the preset condition further includes that the final drop point of the sliding trajectory is located in a first area with the initial drop point as a vertex; correspondingly, the deleting module is used for deleting the characters displayed before the input cursor in the preset display area.
Based on the content of the foregoing embodiment, as an alternative embodiment, the first area is a sector area with a preset angular arc, and the first area is located on the left side of the initial falling point.
Based on the content of the foregoing embodiment, as an optional embodiment, the preset condition further includes that the final drop point of the sliding trajectory is located in a second area with the initial drop point as a vertex; correspondingly, the deleting module is used for deleting the characters displayed after the cursor is input in the preset display area.
Based on the content of the above embodiment, as an alternative embodiment, the second area is a sector area with a preset angular arc, and the second area is located at the lower side of the initial falling point.
Based on the content of the foregoing embodiment, as an alternative embodiment, the apparatus further includes:
the adjusting module is used for adjusting the character deleting interval time according to the long-press operation when the characters to be deleted are displayed in the preset display area and the long-press operation on the deleting key is detected;
and the interval deleting module is used for deleting the characters to be deleted one by one according to the character deleting interval time.
Based on the content of the above embodiment, as an optional embodiment, the adjusting module is configured to adjust the character deletion interval time in real time according to the duration of the long pressing operation; wherein, the longer the duration of the long press operation, the shorter the character deletion interval time.
Based on the content of the foregoing embodiment, as an alternative embodiment, the apparatus further includes:
and the display module is used for displaying a deletion prompt when the characters to be deleted are displayed in the preset display area and the detected sliding track meets the preset condition.
Based on the content of the above embodiment, as an optional embodiment, the preset display area is an input box in the current information input interface, or an area to be screened in the input panel, or an associated character display area in the input panel.
Based on the content of the above embodiment, as an alternative embodiment, in the idle state, the delete key is used to delete the character displayed in the input box; in the input state, the deleting key is used for deleting characters displayed in the screen area to be displayed; in the associated state, the delete key is used to delete the character displayed in the associated character display area.
According to the device provided by the embodiment of the invention, the character to be deleted is deleted after the detected sliding track meets the preset condition. Because the user only needs to slide the finger to delete the characters, the characters can be deleted without manually deleting the characters one by one, and therefore deleting efficiency can be improved, and user experience is improved.
And secondly, deleting the characters displayed before the cursor is input in the preset display area by determining the final drop point position of the sliding track and when the final drop point is in the first area. Due to the fact that the user can delete the characters by controlling the position of the falling point of the sliding operation, deleting efficiency can be improved, and user experience is improved.
And thirdly, deleting the characters displayed after the cursor is input in the preset display area by determining the final drop point position of the sliding track and when the final drop point is in the second area. Due to the fact that the user can delete the characters by controlling the position of the falling point of the sliding operation, deleting efficiency can be improved, and user experience is improved.
And then, the character deleting interval time can be adjusted according to the long press operation, and the character is not required to be deleted back according to the fixed interval time, so that the character deleting speed can be uniformly adjusted, and the user experience is improved.
In addition, by displaying a deletion prompt before deleting a character displayed in the preset display area. The user can be reminded that the deleting operation is about to be carried out, so that the user experience can be improved.
Finally, because a plurality of areas in the input panel can support a character deleting mode of sliding operation, the character deleting efficiency can be improved.
Fig. 4 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 4: a processor (processor)410, a communication Interface 420, a memory (memory)430 and a communication bus 440, wherein the processor 410, the communication Interface 420 and the memory 430 are communicated with each other via the communication bus 440. The processor 410 may call logic instructions in the memory 430 to perform the following method: and if the characters to be deleted are displayed in the preset display area and the sliding track meets the preset conditions, deleting the characters to be deleted, wherein the preset conditions comprise that the initial falling point of the sliding track is positioned on a deleting key in the input panel.
In addition, the logic instructions in the memory 430 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, an electronic device, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Embodiments of the present invention further provide a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is implemented to perform the method provided in the foregoing embodiments when executed by a processor, and the method includes: and if the characters to be deleted are displayed in the preset display area and the sliding track meets the preset conditions, deleting the characters to be deleted, wherein the preset conditions comprise that the initial falling point of the sliding track is positioned on a deleting key in the input panel.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (13)

1. A method for deleting a character, comprising:
and if the characters to be deleted are displayed in a preset display area and the sliding track meets a preset condition, deleting the characters to be deleted, wherein the sliding track is determined based on the sliding operation of a user, and the preset condition comprises that the initial falling point of the sliding track is positioned on a deletion key in an input panel.
2. The method according to claim 1, wherein the preset conditions further include that a final drop point of the sliding trajectory is located in a first region with the initial drop point as a vertex; correspondingly, the deleting the character to be deleted includes:
and deleting the characters displayed before the input cursor in the preset display area.
3. The method of claim 2, wherein the first area is a sector of a predetermined angular arc, the first area being located to the left of the initial landing point.
4. The method according to claim 1, wherein the preset condition further comprises that a final drop point of the sliding trajectory is located in a second region with the initial drop point as a vertex; correspondingly, the deleting the character to be deleted includes:
and deleting the characters displayed after the cursor is input in the preset display area.
5. The method of claim 4, wherein the second region is a sector of a predetermined angular arc, the second region being located below the initial landing point.
6. The method of claim 1, further comprising:
and if the characters to be deleted are displayed in the preset display area and the long-press operation on the deleting key is detected, adjusting the character deleting interval time according to the long-press operation, and deleting the characters to be deleted one by one according to the character deleting interval time.
7. The method of claim 6, wherein adjusting the character deletion interval time according to the long press operation comprises:
adjusting the character deletion interval time in real time according to the duration of the long press operation; wherein, the longer the duration of the long press operation, the shorter the character deletion interval time.
8. The method according to claim 1, wherein before deleting the characters displayed in the preset display area, the method further comprises:
and if the characters to be deleted are displayed in the preset display area and the detected sliding track meets the preset condition, displaying a deletion prompt.
9. The method according to any one of claims 1 to 8, wherein the preset display area is an input box in a current information input interface, or a screen waiting area in the input panel, or an associated character display area in the input panel.
10. The method according to claim 9, wherein in an idle state, the delete key is used to delete a character displayed within the input box; in an input state, the deleting key is used for deleting the characters displayed in the screen waiting area; and in the associated state, the deleting key is used for deleting the characters displayed in the associated character display area.
11. A character deletion apparatus, comprising:
the deleting module is used for deleting the character to be deleted when the character to be deleted is displayed in a preset display area and a sliding track meets a preset condition, wherein the sliding track is determined based on sliding operation of a user, and the preset condition comprises that an initial falling point of the sliding track is located on a deleting key in an input panel.
12. An electronic device, comprising:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein:
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any of claims 1 to 10.
13. A non-transitory computer-readable storage medium storing computer instructions that cause a computer to perform the method of any one of claims 1 to 10.
CN201811184503.3A 2018-10-11 2018-10-11 Character deleting method and device Pending CN109298790A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811184503.3A CN109298790A (en) 2018-10-11 2018-10-11 Character deleting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811184503.3A CN109298790A (en) 2018-10-11 2018-10-11 Character deleting method and device

Publications (1)

Publication Number Publication Date
CN109298790A true CN109298790A (en) 2019-02-01

Family

ID=65162226

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811184503.3A Pending CN109298790A (en) 2018-10-11 2018-10-11 Character deleting method and device

Country Status (1)

Country Link
CN (1) CN109298790A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111427587A (en) * 2019-05-30 2020-07-17 杭州海康威视数字技术股份有限公司 Target deleting method and device
CN112100988A (en) * 2020-08-05 2020-12-18 联想(北京)有限公司 Information editing method, electronic equipment and storage medium
CN112486366A (en) * 2020-11-27 2021-03-12 维沃移动通信有限公司 Control display method and device and electronic equipment
CN115097951A (en) * 2022-08-18 2022-09-23 荣耀终端有限公司 Character deletion method, electronic device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103941957A (en) * 2013-01-22 2014-07-23 华为技术有限公司 Method and device for deleting content of user equipment and user equipment
US20170192657A1 (en) * 2014-05-05 2017-07-06 Zte Corporation Element deleting method and apparatus based on touch screen
CN107479786A (en) * 2017-07-28 2017-12-15 珠海市魅族科技有限公司 A kind of method, apparatus, computer installation and computer-readable recording medium for deleting text
CN107943388A (en) * 2017-11-14 2018-04-20 口碑(上海)信息技术有限公司 Information deletion method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103941957A (en) * 2013-01-22 2014-07-23 华为技术有限公司 Method and device for deleting content of user equipment and user equipment
US20170192657A1 (en) * 2014-05-05 2017-07-06 Zte Corporation Element deleting method and apparatus based on touch screen
CN107479786A (en) * 2017-07-28 2017-12-15 珠海市魅族科技有限公司 A kind of method, apparatus, computer installation and computer-readable recording medium for deleting text
CN107943388A (en) * 2017-11-14 2018-04-20 口碑(上海)信息技术有限公司 Information deletion method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
佚名: "《http://blog.csdn.net/lideguo1979/article/details/7720211》", 31 July 2012 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111427587A (en) * 2019-05-30 2020-07-17 杭州海康威视数字技术股份有限公司 Target deleting method and device
CN111427587B (en) * 2019-05-30 2023-08-29 杭州海康威视数字技术股份有限公司 Target deleting method and device
CN112100988A (en) * 2020-08-05 2020-12-18 联想(北京)有限公司 Information editing method, electronic equipment and storage medium
CN112100988B (en) * 2020-08-05 2024-11-26 联想(北京)有限公司 Information editing method, electronic device and storage medium
CN112486366A (en) * 2020-11-27 2021-03-12 维沃移动通信有限公司 Control display method and device and electronic equipment
CN115097951A (en) * 2022-08-18 2022-09-23 荣耀终端有限公司 Character deletion method, electronic device and storage medium
CN115097951B (en) * 2022-08-18 2023-06-20 荣耀终端有限公司 Character deleting method, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US11487426B2 (en) Apparatus and method for cursor control and text selection and editing based on gesture-based touch inputs received in a virtual keyboard display area
KR101720849B1 (en) Touch screen hover input handling
US9990109B2 (en) Information display terminal
EP4195063A1 (en) File sharing method and apparatus, and terminal and storage medium
EP4016273A1 (en) Side toolbar display method and device, terminal, and storage medium
EP4002075A1 (en) Interface display method and apparatus, terminal, and storage medium
CN105302784B (en) Method and system for copying/cutting and pasting data
CN109976655B (en) Long screen capturing method, device, terminal and storage medium
CN109298790A (en) Character deleting method and device
US20130263013A1 (en) Touch-Based Method and Apparatus for Sending Information
CN105159562A (en) User interface based operation trigger method and apparatus and terminal device
CN112817676B (en) Information processing method and electronic device
HK1206834A1 (en) Method for controlling page element and device thereof
CN104331233A (en) Portable terminal and content previewing method thereof
CN111061409A (en) Function triggering method and device, electronic equipment and storage medium
CN105843535B (en) A kind of control method and terminal of control panel
CN108710457A (en) Interaction method and terminal equipment
CN114860149B (en) Content editing control method and device, electronic equipment and storage medium
CN110568990B (en) Screen splitting method and device, electronic equipment and storage medium
US20170168686A1 (en) Method and electronic device for processing list item operation
KR20140131070A (en) Apparatus and method for generating a message in a portable terminal
WO2025061189A1 (en) Interface display method and apparatus, and electronic device and readable storage medium
US20240019977A1 (en) Method, terminal, and storage medium for displaying application interfaces
CN112764862A (en) Application program control method and device and electronic equipment
CN110515523B (en) A method, device, electronic device and storage medium for turning pages of an electronic book

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190201

RJ01 Rejection of invention patent application after publication