CN103645829A - Character deletion method and portable terminal utilizing same - Google Patents
Character deletion method and portable terminal utilizing same Download PDFInfo
- Publication number
- CN103645829A CN103645829A CN201310695347.8A CN201310695347A CN103645829A CN 103645829 A CN103645829 A CN 103645829A CN 201310695347 A CN201310695347 A CN 201310695347A CN 103645829 A CN103645829 A CN 103645829A
- Authority
- CN
- China
- Prior art keywords
- character
- deletion
- pattern
- user
- character deletion
- 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
Links
Images
Landscapes
- User Interface Of Digital Computer (AREA)
- Telephone Function (AREA)
Abstract
Description
技术领域technical field
本发明涉及字符删除方法,尤其涉及无论光标处于字符中的哪一侧均可以方便地进行删除操作的字符删除方法及应用此的便携式终端。The invention relates to a character deletion method, in particular to a character deletion method which can conveniently perform a deletion operation no matter which side of the character the cursor is on, and a portable terminal using the same.
背景技术Background technique
随着便携式终端的智能化系统的飞速发展,便携式终端在人们平常的社交活动中占据着越来越重要的作用。目前的智能化便携式终端不仅提供了方便的语音交流平台,其文字交流平台也比传统的便携式终端更加便捷,且提供了更多的功能。With the rapid development of intelligent systems for portable terminals, portable terminals play an increasingly important role in people's daily social activities. The current intelligent portable terminal not only provides a convenient voice communication platform, but its text communication platform is also more convenient than traditional portable terminals, and provides more functions.
因此,伴随着智能化系统的发展,各种的文字输入系统也从以往的计算机被移植到了便携式终端中。Therefore, along with the development of intelligent systems, various character input systems have been transplanted from conventional computers to portable terminals.
但是,与以往的计算机等大型终端相比,例如手机等便携式终端最大的特点在于不具备具有辅助输入功能的鼠标。However, compared with conventional large-scale terminals such as computers, the biggest feature of portable terminals such as mobile phones is that they do not have a mouse with an auxiliary input function.
从而,在便携式终端使用输入法时,需要使用用户的手或触控笔等进行输入文字的删改。但是,这种方式却存在用户的手或触控笔的光标定位准确度不高的问题,这对于针对已输入的文字的编辑造成了不小的麻烦和困扰。Therefore, when the portable terminal uses an input method, it is necessary to use the user's hand or a stylus to delete and correct the input characters. However, this method has the problem that the accuracy of cursor positioning by the user's hand or stylus is not high, which causes a lot of trouble and trouble for editing the text that has been input.
图1为现有的便携式终端的输入画面的示意图。符号10表示现有的虚拟删除键。由图可知,目前的便携式终端的虚拟删除键10仅提供沿一侧方向的删除功能。这样的单方向删除功能勉强能够支持单字的输入模式,而目前的各种输入法均支持模糊输入和智能联想输入,因此一次可输入大量的字符。FIG. 1 is a schematic diagram of an input screen of a conventional portable terminal.
因此,在对具有大量的字符的文字内容进行编辑,尤其进行删改作业时,光标定位不准确和单方向删除功能极大地降低了文字输入系统的效率,用户常常需要执行多次的光标定位操作和页面放大操作。Therefore, when editing text content with a large number of characters, especially when performing deletion operations, the inaccurate cursor positioning and the one-way deletion function greatly reduce the efficiency of the text input system, and users often need to perform multiple cursor positioning operations and Page zoom operation.
发明内容Contents of the invention
本发明是为了解决上述问题而提出的,其目的在于提供一种根据光标所处的位置而提供各种字符删除方式的字符删除方法及应用此的便携式终端。The present invention is proposed to solve the above problems, and its purpose is to provide a character deletion method that provides various character deletion methods according to the position of the cursor and a portable terminal using the method.
为了达到此目的,本发明的一方面,提供一种便携式终端的字符删除方法,包括:字符检测步骤,在输入法状态下,检测光标的两侧是否存在字符;字符删除模式设置步骤,基于所述检测步骤的检测结果,设置虚拟删除键的字符删除模式;字符删除步骤,基于所述设置步骤中所设置的字符删除模式,识别用户的操作而执行删除操作。In order to achieve this purpose, one aspect of the present invention provides a character deletion method for a portable terminal, including: a character detection step, in the input method state, detecting whether there are characters on both sides of the cursor; a character deletion mode setting step, based on the The detection result of the detection step is to set the character deletion mode of the virtual delete key; the character deletion step is to identify the user's operation and execute the deletion operation based on the character deletion mode set in the setting step.
优选地,在所述字符删除模式设置步骤中,若光标的两侧均存在字符,则可将虚拟删除键的字符删除模式设置为待删除模式;若光标的仅一侧存在字符,则可将虚拟删除键的字符删除模式设置为单向删除模式,将删除方向调整为朝字符所在的方向。Preferably, in the character deletion mode setting step, if there are characters on both sides of the cursor, the character deletion mode of the virtual delete key can be set as the mode to be deleted; if there are only characters on one side of the cursor, then the The character deletion mode of the virtual delete key is set to one-way deletion mode, and the deletion direction is adjusted to the direction where the character is located.
优选地,所述字符删除模式设置步骤还可以包括如下步骤:在待删除模式下,所述虚拟删除键接收用户的滑动操作;判断所述滑动操作的滑动方向;根据所述滑动方向,将所述虚拟删除键的删除方向调整为沿着该滑动方向。Preferably, the step of setting the character deletion mode may also include the following steps: in the pending deletion mode, the virtual delete key receives a user's sliding operation; judges the sliding direction of the sliding operation; according to the sliding direction, the The deletion direction of the virtual delete key is adjusted to be along the sliding direction.
优选地,在判断所述滑动操作的滑动方向的步骤中,可检测针对虚拟删除键的沿一侧方向的滑动距离是否大于阈值,当大于该阈值时,将滑动方向判断为该一侧方向。Preferably, in the step of judging the sliding direction of the sliding operation, it may be detected whether the sliding distance of the virtual delete key along a side direction is greater than a threshold, and if it is greater than the threshold, the sliding direction is judged as the side direction.
优选地,所述阈值可以为一个字符位的一半。Preferably, the threshold may be half of a character bit.
优选地,所述字符删除模式设置步骤还可以包括如下步骤:在待删除模式下,将字符的删除方向设置为默认方向;所述虚拟删除键接收用户的操作;判断用户的操作是点击操作还是滑动操作;若用户的操作是点击操作,则将字符的删除方向确定为该默认方向,而若用户的操作是滑动操作,则将字符的删除方向变换为与该默认方向相反的方向。Preferably, the character deletion mode setting step may also include the following steps: in the mode to be deleted, setting the deletion direction of the character as the default direction; the virtual delete key receives the user's operation; judging whether the user's operation is a click operation or Sliding operation; if the user's operation is a click operation, then the character deletion direction is determined as the default direction, and if the user's operation is a sliding operation, then the character deletion direction is changed to a direction opposite to the default direction.
优选地,在所述字符删除模式设置步骤中,若光标的两侧均存在字符,则将虚拟删除键的字符删除模式设置为双向删除模式。Preferably, in the character deletion mode setting step, if there are characters on both sides of the cursor, the character deletion mode of the virtual delete key is set to a two-way deletion mode.
优选地,在所述双向删除模式中,响应于用户的每一次点击操作,在两侧方向同时删除字符。Preferably, in the two-way deletion mode, characters are simultaneously deleted in both directions in response to each click operation of the user.
为了达到目的,根据本发明的另一方面,提供一种便携式终端,包括:字符检测单元,在输入法状态下,检测光标的两侧是否存在字符;字符删除模式设置单元,基于所述字符检测单元的检测结果,设置虚拟删除键的字符删除模式;字符删除单元,基于所述字符删除模式设置单元所设置的字符删除模式,根据用户的操作而执行删除操作。In order to achieve the purpose, according to another aspect of the present invention, a portable terminal is provided, including: a character detection unit, which detects whether there are characters on both sides of the cursor in the input method state; a character deletion mode setting unit, based on the character detection The detection result of the unit is to set the character deletion mode of the virtual delete key; the character deletion unit is based on the character deletion mode set by the character deletion mode setting unit, and performs the deletion operation according to the user's operation.
优选地,若光标的两侧均存在字符,则所述字符删除模式设置单元可将虚拟删除键的字符删除模式设置为待删除模式;若光标的仅一侧存在字符,则所述字符删除模式设置单元可将虚拟删除键的字符删除模式设置为单向删除模式,并将删除方向调整为朝字符所在的方向。Preferably, if there are characters on both sides of the cursor, the character deletion mode setting unit can set the character deletion mode of the virtual delete key to the mode to be deleted; if there are characters on only one side of the cursor, the character deletion mode The setting unit can set the character deletion mode of the virtual delete key to a one-way deletion mode, and adjust the deletion direction to the direction where the character is located.
优选地,还可以包括在待删除模式下,用于检测用户针对所述虚拟删除键的触摸操作的触摸检测单元,所述触摸检测单元还可以包括用于检测用户针对虚拟删除键的滑动操作及滑动方向的触摸坐标检测单元,所述字符删除模式设置单元根据所述触摸检测单元所检测出的滑动方向,将所述虚拟删除键的删除方向调整为沿着该滑动方向。Preferably, it may also include a touch detection unit for detecting the user's touch operation on the virtual delete key in the mode to be deleted, and the touch detection unit may also include a touch detection unit for detecting the user's sliding operation on the virtual delete key and The touch coordinate detection unit of the sliding direction, the character deletion mode setting unit adjusts the deletion direction of the virtual delete key to be along the sliding direction according to the sliding direction detected by the touch detection unit.
优选地,所述触摸检测单元判断所述滑动操作的滑动方向时,检测针对虚拟删除键的沿一侧方向的滑动距离是否大于阈值,当大于该阈值时,将滑动方向判断为该一侧方向。Preferably, when the touch detection unit judges the sliding direction of the sliding operation, it detects whether the sliding distance of the virtual delete key along a side direction is greater than a threshold, and when it is greater than the threshold, judges the sliding direction as the side direction .
优选地,所述阈值可以为一个字符位的一半。Preferably, the threshold may be half of a character bit.
优选地,还包括在待删除模式下,用于检测用户针对所述虚拟删除键的触摸操作的触摸检测单元,所述触摸检测单元包括用于检测用户针对虚拟删除键的滑动操作及滑动方向的触摸坐标检测单元,其中,所述字符删除模式设置单元在待删除模式下,先将字符的删除方向设置为默认方向,并在通过所述触摸检测单元检测出的用户的操作为点击操作的情况下,将字符的删除方向确定为该默认方向,而在通过所述触摸检测单元检测出的用户的操作为滑动操作的情况下,将字符的删除方向变换为与该默认方向相反的方向。Preferably, it also includes a touch detection unit for detecting the user's touch operation on the virtual delete key in the mode to be deleted, and the touch detection unit includes a touch detection unit for detecting the user's sliding operation and sliding direction on the virtual delete key The touch coordinate detection unit, wherein the character deletion mode setting unit first sets the deletion direction of the character as the default direction in the mode to be deleted, and when the user’s operation detected by the touch detection unit is a click operation Next, the character deletion direction is determined as the default direction, and when the user's operation detected by the touch detection unit is a sliding operation, the character deletion direction is changed to a direction opposite to the default direction.
优选地,若光标的两侧均存在字符,则字符删除模式设置单元可以将虚拟删除键的字符删除模式设置为双向删除模式。Preferably, if there are characters on both sides of the cursor, the character deletion mode setting unit can set the character deletion mode of the virtual delete key to a two-way deletion mode.
优选地,在所述双向删除模式中,响应于用户的每一次点击操作,在两侧方向同时删除字符。Preferably, in the two-way deletion mode, characters are simultaneously deleted in both directions in response to each click operation of the user.
根据本发明,相比于以往的仅能够提供自右向左的字符删除方式,还能够提供自左向右的字符删除方式,能够降低光标定位错误所带来的不利影响。According to the present invention, compared with the conventional way of deleting characters from right to left, it can also provide a way of deleting characters from left to right, and can reduce the adverse effects caused by cursor positioning errors.
而且,根据本发明,可以根据光标在多个字符列中所处的位置任意地选择字符的删除方向,据此能够提高文字输入系统的效率。Moreover, according to the present invention, the direction of character deletion can be arbitrarily selected according to the position of the cursor in a plurality of character strings, thereby improving the efficiency of the character input system.
并且,根据本发明,在光标的两侧方向同时删除字符,据此能够提高文字输入系统的效率。Furthermore, according to the present invention, characters are simultaneously deleted in both directions of the cursor, thereby improving the efficiency of the character input system.
附图说明Description of drawings
图1为现有的便携式终端的输入画面的示意图。FIG. 1 is a schematic diagram of an input screen of a conventional portable terminal.
图2为示出根据本发明的便携式终端的构成的框图。FIG. 2 is a block diagram showing the configuration of a portable terminal according to the present invention.
图3为根据本发明的字符删除方法的流程图。FIG. 3 is a flow chart of a character deletion method according to the present invention.
图4为根据本发明的字符删除模式设置步骤的第一实施例的流程图。Fig. 4 is a flow chart of the first embodiment of the character deletion mode setting steps according to the present invention.
图5为根据本发明的字符删除模式设置步骤的第二实施例的流程图。FIG. 5 is a flow chart of a second embodiment of the character deletion mode setting steps according to the present invention.
具体实施方式Detailed ways
以下,参照附图对于本发明的实施例进行详细的说明。在以下的说明中,触摸式便携式终端以智能手机为例,但本发明并不局限于此,还包括其他如平板电脑、智能相机等各种触摸型便携式终端。Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. In the following description, the touch-type portable terminal is taken as an example of a smart phone, but the present invention is not limited thereto, and also includes other touch-type portable terminals such as a tablet computer and a smart camera.
图2为示出根据本发明的便携式终端的构成的框图。FIG. 2 is a block diagram showing the configuration of a portable terminal according to the present invention.
由图可知,根据本发明的便携式终端可包括触摸检测单元100、字符检测单元102、字符删除模式设置单元104、字符删除单元106、控制单元108。As can be seen from the figure, the portable terminal according to the present invention may include a
控制单元108用于控制便携式终端执行各种操作。The
而且,本发明的便携式终端还包括存储单元,用于存储各种字符及控制指令等。Moreover, the portable terminal of the present invention further includes a storage unit for storing various characters and control instructions.
在文字的显示模式或编辑模式下,所述触摸检测单元100用于识别用户针对便携式终端的显示屏的触摸而将光标定位于相应的位置。In the text display mode or editing mode, the
在文字输入模式下,所述字符检测单元102用来检测光标的两侧是否存在字符。即,当用户通过手指或触控笔将光标定位到文字列中的某一位置时,该字符检测单元102检测光标的两侧是否存在字符。对于检测光标的两侧是否存在字符的方法可采用现有技术中的各种方法,在此不再赘述。In the text input mode, the
此时,所谓光标的两侧,在文字的水平显示模式下,是指左右两侧,而在文字的竖直显示模式下,是指上下两侧。而且,所谓字符是能够通过便携式终端的输入系统输入的各种文字、符号、空格、图形等。At this time, the so-called two sides of the cursor refer to the left and right sides in the horizontal display mode of characters, and refer to the upper and lower sides in the vertical display mode of characters. Moreover, the so-called characters are various characters, symbols, spaces, graphics, etc. that can be input through the input system of the mobile terminal.
字符删除模式设置单元104可基于字符检测单元102的检测结果,设置虚拟删除键的字符删除模式。The character deletion
例如,所述字符检测单元102的检测结果,若光标的两侧均存在字符,则字符删除模式设置单元104将虚拟删除键的字符删除模式设置为待删除模式;若光标的仅一侧存在字符,则字符删除模式设置单元104将虚拟删除键的字符删除模式设置为单向删除模式,并将删除方向调整为朝字符所在的方向。For example, in the detection result of the
在待删除模式下,当用户按压虚拟删除键时,虚拟删除键不会立即执行删除操作而是等待来自用户的进一步的指令,只有在确定字符的删除方向之后才可以执行删除操作。。例如,在一实施例中,在待删除模式下,若用户继续点击虚拟删除键,则不会进行任何的删除操作,所述虚拟删除键首先仅接收来自用户的滑动操作,并通过判断滑动操作的方向而确定字符删除方向,然后才接收用户的删除指令。In the mode to be deleted, when the user presses the virtual delete key, the virtual delete key will not immediately execute the delete operation but wait for further instructions from the user, and the delete operation can only be performed after the direction of character deletion is determined. . For example, in one embodiment, in the mode to be deleted, if the user continues to click on the virtual delete key, no delete operation will be performed. The virtual delete key first only receives a sliding operation from the user, and by judging the sliding operation The direction to determine the character deletion direction, and then receive the user's deletion instruction.
为了提高用户的方便性,在另一实施例中,在待删除模式下,虚拟删除键的字符删除模式可以默认为向前的删除模式。此时,若用户的字符删除方向与默认方向一致,则可以通过按压一次虚拟删除键而将字符删除方向确定为默认方向,而若用户的字符删除方向与默认方向相反,则可以通过相反方向的滑动操作而将字符删除方向变换为与默认方向相反的方向。此时,当字符的删除方向通过滑动操作发生变化时,可通过虚拟删除单元接收点击操作而对变换后的方向进行确定,然后才接收用户的删除指令。In order to improve the user's convenience, in another embodiment, in the pending deletion mode, the character deletion mode of the virtual delete key may default to the forward deletion mode. At this time, if the user's character deletion direction is consistent with the default direction, the character deletion direction can be determined as the default direction by pressing the virtual delete key once, and if the user's character deletion direction is opposite to the default direction, you can press the virtual delete key once. Swipe to change the character deletion direction to the opposite direction from the default direction. At this time, when the deletion direction of the character changes through the sliding operation, the virtual deletion unit may receive the click operation to determine the transformed direction, and then receive the user's deletion instruction.
另外,字符删除模式的默认方向除了上述的向前的删除方向,还可以是向后的删除方向,这可以根据用户的需要任意地设置。In addition, the default direction of the character deletion mode may be a backward deletion direction in addition to the above-mentioned forward deletion direction, which can be set arbitrarily according to the needs of the user.
而且,默认方向中的向前或向后方向是指字符沿横向排列时的情形,而在字符沿竖向排列时,向前或向后方向可变成向上或向下方向。Also, the forward or backward direction in the default direction refers to the case when characters are arranged in the horizontal direction, and the forward or backward direction can be changed to the upward or downward direction when the characters are arranged in the vertical direction.
即,在待删除模式下,通过所述触摸检测单元100检测用户针对虚拟删除键的触摸操作,即检测用户针对虚拟删除键做出的点击操作和滑动操作。优选地,触摸检测单元100还包括触摸坐标检测单元,用以检测用户是否针对虚拟删除键做出了滑动操作并检测滑动方向。That is, in the mode to be deleted, the
具体而言,该触摸坐标检测单元通过计算预定时间内用户触摸屏幕的坐标的变化来判断用户做出的操作是点击操作还是滑动操作。例如,当预定时间内的触摸点坐标几乎没有发生变化,且触摸持续时间短时,可判断为用户做出了点击操作,而当预定时间内触摸点的坐标发生了较大的变化,且触摸持续的时间相对较长时,可判断为用户做出的滑动操作。Specifically, the touch coordinate detection unit judges whether the operation performed by the user is a click operation or a slide operation by calculating changes in the coordinates of the user's touch screen within a predetermined time period. For example, when the coordinates of the touch point hardly change within the predetermined time, and the touch duration is short, it can be determined that the user has made a click operation; When the duration is relatively long, it can be judged as a sliding operation made by the user.
在本实施例中,考虑到一般的虚拟删除键的宽度较小,可设置一阈值来判断用户是否做出了滑动操作以及滑动操作的方向。此时,可通过计算预定时间内的用户触摸点坐标的变化判断出用户是否做出滑动操作以及滑动操作的方向。例如,当滑动距离大于阈值时,可判断为用户做出了滑动操作。优选地,所述阈值为一个字符位的一半。In this embodiment, considering that the width of a general virtual delete key is small, a threshold may be set to determine whether the user has made a sliding operation and the direction of the sliding operation. At this time, whether the user performs a sliding operation and the direction of the sliding operation can be determined by calculating the change of the coordinates of the user's touch point within a predetermined time. For example, when the sliding distance is greater than a threshold, it may be determined that the user has performed a sliding operation. Preferably, the threshold is half of a character bit.
当在待删除模式中确定了字符的删除方向时,可使虚拟删除键的形状或图形相应地发生变化,以便用户能够在视觉上确认字符的删除模式及删除方向。When the deletion direction of the character is determined in the mode to be deleted, the shape or graphic of the virtual delete key can be changed accordingly, so that the user can visually confirm the deletion mode and direction of the character.
而且,在单向删除模式下,将删除方向调整为朝字符所在的方向。即,若字符存在于光标的左侧,则虚拟删除键提供自右向左的字符删除功能,据此用户可通过继续点击虚拟删除键而删除光标左侧的字符;若字符存在于光标的右侧,则虚拟删除键提供类似于一般计算机的delete按键的自左向右的字符删除功能,据此用户可通过继续点击虚拟删除键而删除光标右侧的字符。此时,若用户持续按压虚拟删除键,则虚拟删除键将以预定时间间隔(例如,100ms)连续删除字符。Also, in one-way delete mode, adjust the delete direction to the direction where the characters are. That is, if the character exists on the left side of the cursor, the virtual delete key provides a character deletion function from right to left, so that the user can delete the character on the left side of the cursor by continuing to click on the virtual delete key; if the character exists on the right side of the cursor On the side, the virtual delete key provides a character deletion function from left to right similar to the delete key of a general computer, so that the user can delete the character on the right side of the cursor by continuing to click the virtual delete key. At this time, if the user continues to press the virtual delete key, the virtual delete key will continuously delete characters at predetermined time intervals (for example, 100 ms).
而且,所述字符检测单元102的检测结果,若光标的两侧均存在字符,则字符删除模式设置单元104还可以将虚拟删除键的字符删除模式设置为双向删除模式。在该双向删除模式中,响应于用户的每一次点击操作,在两侧方向同时删除字符。据此,当用户错误地将光标定位到需要删除的两个字符的中间时,用户仅点击一次虚拟删除键就可以同时删除这两个字符,从而提高文字编辑的效率。Moreover, as a result of the detection by the
字符删除单元106可基于字符删除模式设置单元104所设置的字符删除模式,根据用户的操作而执行字符的删除操作。例如,在单向删除模式下,根据用户的点击类型(单点或长按)沿一侧方向依次删除各个字符,而在双向删除模式下,根据用户的点击类型沿两个方向同时删除字符,据此可极大地提高文字的编辑效率。The
图3为根据本发明的字符删除方法的流程图。图4为根据本发明的字符删除模式设置步骤的第一实施例的流程图。图5为根据本发明的字符删除模式设置步骤的第二实施例的流程图。FIG. 3 is a flow chart of a character deletion method according to the present invention. Fig. 4 is a flow chart of the first embodiment of the character deletion mode setting steps according to the present invention. FIG. 5 is a flow chart of a second embodiment of the character deletion mode setting steps according to the present invention.
根据本发明的字符删除方法可包括如下步骤:字符检测步骤S100、字符删除模式设置步骤S200、字符删除步骤S300。The character deletion method according to the present invention may include the following steps: a character detection step S100, a character deletion mode setting step S200, and a character deletion step S300.
在步骤S100中,输入法状态下,检测光标的两侧是否存在字符。所述字符包括能够通过便携式终端的输入系统输入的各种文字、符号、空格、图形等。In step S100, in the input method state, it is detected whether there are characters on both sides of the cursor. The characters include various characters, symbols, spaces, graphics, etc. that can be input through the input system of the portable terminal.
接着,在步骤S200中,基于所述字符检测步骤S100的检测结果,设置虚拟删除键的字符删除模式。Next, in step S200, based on the detection result of the character detection step S100, the character deletion mode of the virtual delete key is set.
具体而言,在步骤S200中,若光标的两侧均存在字符,则将虚拟删除键的字符删除模式设置为待删除模式(S210);若光标的仅一侧存在字符,则将虚拟删除键的字符删除模式设置为单向删除模式(S220),将删除方向调整为朝字符所在的方向。Specifically, in step S200, if there are characters on both sides of the cursor, the character deletion mode of the virtual delete key is set to the mode to be deleted (S210); if only one side of the cursor has characters, then the virtual delete key The character deletion mode is set to a one-way deletion mode (S220), and the deletion direction is adjusted to the direction toward the character.
根据一实施例,在待删除模式下,虚拟删除键并不能立即执行字符删除功能,只有在确定字符的删除方向之后才可以执行删除功能。据此,虚拟删除键等待来自用户的进一步的指令,以确定字符的删除方向。根据第一实施例,在待删除模式下,所述虚拟删除键首先仅接收来自用户的滑动操作,并通过判断滑动操作的方向而确定字符删除方向,然后才接收用户的删除指令。根据第二实施例,在待删除模式下,所述虚拟删除键的字符删除模式可以默认为向前的删除模式。此时,若用户的字符删除方向与默认方向一致,则可以通过按压一次虚拟删除键而将字符删除方向确定为默认方向,而若用户的字符删除方向与默认方向相反,则可以通过相反方向的滑动操作而将字符删除方向变换为与默认方向相反的方向。此时,当字符的删除方向通过滑动操作发生变化时,可通过虚拟删除键接收点击操作而对变换后的方向进行确定,然后才接收用户的删除指令。According to an embodiment, in the waiting-to-delete mode, the virtual delete key cannot perform the character deletion function immediately, and can perform the deletion function only after the character deletion direction is determined. Accordingly, the virtual delete key waits for further instructions from the user to determine the direction of character deletion. According to the first embodiment, in the waiting-to-delete mode, the virtual delete key first only receives a sliding operation from the user, and determines the character deletion direction by judging the direction of the sliding operation, and then receives the user's deletion instruction. According to the second embodiment, in the pending deletion mode, the character deletion mode of the virtual delete key may default to a forward deletion mode. At this time, if the user's character deletion direction is consistent with the default direction, the character deletion direction can be determined as the default direction by pressing the virtual delete key once, and if the user's character deletion direction is opposite to the default direction, you can press the virtual delete key once. Swipe to change the character deletion direction to the opposite direction from the default direction. At this time, when the deletion direction of the character changes through the sliding operation, the virtual delete key may receive a click operation to confirm the transformed direction, and then receive the user's deletion instruction.
根据第一实施例,所述字符删除模式设置步骤S200还可以包括如下步骤:在待删除模式下,虚拟删除键接收用户的滑动操作(S211);判断所述滑动操作的滑动方向(S212);根据所述滑动方向,将虚拟删除键的字符删除方向调整为沿着该滑动方向(S213)。According to the first embodiment, the character deletion mode setting step S200 may also include the following steps: in the pending deletion mode, the virtual delete key receives the user's sliding operation (S211); judging the sliding direction of the sliding operation (S212); According to the sliding direction, the character deletion direction of the virtual delete key is adjusted to be along the sliding direction (S213).
根据第二实施例,所述字符删除模式设置步骤S200还可以包括如下步骤:在待删除模式下,将字符的删除方向设置为默认方向(S214);虚拟删除键接收用户的操作(S215);判断用户的操作是点击操作还是滑动操作(S216);若用户的操作是点击操作,则将字符的删除方向确定为该默认方向(向前或向后)(S217),而若用户的操作是滑动操作,则基于该滑动操作将字符的删除方向变换为与该默认方向相反的方向(S218)。此时,在步骤S218之后还可以包括接收用户的点击操作而将字符的删除方向确认为经变换后的方向的步骤。此时,步骤S215中,若用户做出了滑动操作,则显然该滑动操作的方向必定是与所述默认方向相反的方向。According to the second embodiment, the character deletion mode setting step S200 may also include the following steps: in the mode to be deleted, setting the deletion direction of the character as the default direction (S214); the virtual delete key receives the user's operation (S215); Judging whether the user's operation is a click operation or a sliding operation (S216); if the user's operation is a click operation, then the deletion direction of the character is determined as the default direction (forward or backward) (S217), and if the user's operation is slide operation, based on the slide operation, the character deletion direction is changed to a direction opposite to the default direction (S218). In this case, after step S218, a step of receiving a user's click operation to confirm the direction of character deletion as the transformed direction may also be included. At this time, in step S215, if the user makes a sliding operation, it is obvious that the direction of the sliding operation must be opposite to the default direction.
此时,例如可通过计算预定时间内用户触摸屏幕的坐标的变化来判断用户做出的操作是点击操作还是滑动操作。例如,当预定时间内的触摸点的坐标几乎没有发生变化,且触摸持续时间短时,可判断为用户做出了点击操作,而当预定时间内触摸点的坐标发生了较大的变化,且触摸持续的时间相对较长时,可判断为用户做出的滑动操作。At this time, for example, it may be determined whether the operation performed by the user is a click operation or a slide operation by calculating the change of the coordinates of the user touching the screen within a predetermined time. For example, when the coordinates of the touch point within the predetermined time hardly change, and the touch duration is short, it can be determined that the user has made a click operation, and when the coordinates of the touch point within the predetermined time change greatly, and When the touch lasts for a relatively long time, it can be judged as a sliding operation by the user.
在本实施例中,考虑到一般的虚拟删除键的宽度较小,可设置一阈值来判断用户是否做出了滑动操作以及滑动操作的方向。此时,可通过计算预定时间内的用户触摸点坐标的变化判断出用户是否做出滑动操作以及滑动操作的方向。例如,当滑动距离大于阈值时,可判断为用户做出了滑动操作。优选地,所述阈值为一个字符位的一半。In this embodiment, considering that the width of a general virtual delete key is small, a threshold may be set to determine whether the user has made a sliding operation and the direction of the sliding operation. At this time, whether the user performs a sliding operation and the direction of the sliding operation can be determined by calculating the change of the coordinates of the user's touch point within a predetermined time. For example, when the sliding distance is greater than a threshold, it may be determined that the user has performed a sliding operation. Preferably, the threshold is half of a character bit.
当在待删除模式中确定了字符的删除方向时,可使虚拟删除键的形状或图形相应地发生变化,以便用户能够在视觉上确认字符的删除模式及删除方向。When the deletion direction of the character is determined in the mode to be deleted, the shape or graphic of the virtual delete key can be changed accordingly, so that the user can visually confirm the deletion mode and direction of the character.
其中,所述步骤S212可构成为,判断针对虚拟删除键的沿一侧方向的滑动距离是否大于阈值,当大于该阈值时,将滑动方向判断为该一侧方向。优选地,所述阈值为一个字符位的一半。Wherein, the step S212 may be configured as: judging whether the sliding distance of the virtual delete key along a side direction is greater than a threshold, and if it is greater than the threshold, judging the sliding direction as the side direction. Preferably, the threshold is half of a character bit.
另外,步骤S200中,若光标的两侧均存在字符,则还可以将虚拟删除键的字符删除模式设置为双向删除模式(S230)。In addition, in step S200, if there are characters on both sides of the cursor, the character deletion mode of the virtual delete key may also be set to a two-way deletion mode (S230).
然后,在步骤S300,基于通过所述步骤S200所设置的字符删除模式,识别用户的操作而执行删除操作。例如,在单向删除模式下,根据用户的点击类型(单点或长按)沿一侧方向依次删除各个字符,而在双向删除模式下,根据用户的点击类型沿两个方向同时删除字符,据此可极大地提高文字的编辑效率。此时,若用户持续按压虚拟删除键,则虚拟删除键将以预定时间间隔(例如,100ms)连续删除字符。Then, in step S300, based on the character deletion mode set in step S200, the user's operation is recognized to perform a deletion operation. For example, in the one-way delete mode, each character is deleted sequentially along one side according to the user's click type (single-click or long press), while in the two-way delete mode, characters are simultaneously deleted along two directions according to the user's click type, Accordingly, the editing efficiency of text can be greatly improved. At this time, if the user continues to press the virtual delete key, the virtual delete key will continuously delete characters at predetermined time intervals (for example, 100 ms).
据此,相比于以往的仅能够提供自右向左的简单的字符删除方式,本发明可以根据光标的实际位置自由地选择字符的删除方向,因此能够降低光标定位错误所带来的不利影响,提高文字编辑的效率。Accordingly, compared with the previous simple method of deleting characters from right to left, the present invention can freely select the direction of character deletion according to the actual position of the cursor, thus reducing the adverse effects caused by cursor positioning errors , improve the efficiency of text editing.
本发明不限于上述实施例,在不脱离本发明范围的情况下,可以进行各种变形和修改。The present invention is not limited to the above-described embodiments, and various variations and modifications can be made without departing from the scope of the present invention.
Claims (16)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310695347.8A CN103645829A (en) | 2013-12-18 | 2013-12-18 | Character deletion method and portable terminal utilizing same |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310695347.8A CN103645829A (en) | 2013-12-18 | 2013-12-18 | Character deletion method and portable terminal utilizing same |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN103645829A true CN103645829A (en) | 2014-03-19 |
Family
ID=50251056
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201310695347.8A Pending CN103645829A (en) | 2013-12-18 | 2013-12-18 | Character deletion method and portable terminal utilizing same |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN103645829A (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104571585A (en) * | 2014-12-30 | 2015-04-29 | 北京奇虎科技有限公司 | Cursor operation method and device for input method |
| CN105808081A (en) * | 2014-12-29 | 2016-07-27 | 鸿合科技有限公司 | Method and apparatus for rapidly deleting multiple objects by utilizing gesture |
| 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 |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5982351A (en) * | 1997-09-30 | 1999-11-09 | Motorola, Inc. | Method and apparatus for supplementing a keyboard and for helping a user operate an electronic device |
| US20090044139A1 (en) * | 2007-08-08 | 2009-02-12 | Samsung Electronics Co., Ltd. | Apparatus and method for providing character deletion function |
| US20110018812A1 (en) * | 2009-07-21 | 2011-01-27 | Cisco Technology, Inc. | Fast Typographical Error Correction for Touchscreen Keyboards |
| CN102331907A (en) * | 2011-09-13 | 2012-01-25 | 中兴通讯股份有限公司 | Character deleting method and device for terminal having touch screen, and terminal |
| CN102750088A (en) * | 2012-06-04 | 2012-10-24 | 华为终端有限公司 | Method and electronic device for prompting character input |
| CN102890615A (en) * | 2012-09-21 | 2013-01-23 | 百度在线网络技术(北京)有限公司 | Pinyin input method and device based on touch screen |
| CN103218156A (en) * | 2013-02-28 | 2013-07-24 | 广东欧珀移动通信有限公司 | Method for realizing multi-Tab page switching and touch type mobile terminal thereof |
| CN103324271A (en) * | 2012-03-19 | 2013-09-25 | 联想(北京)有限公司 | Input method and electronic equipment based on gesture |
-
2013
- 2013-12-18 CN CN201310695347.8A patent/CN103645829A/en active Pending
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5982351A (en) * | 1997-09-30 | 1999-11-09 | Motorola, Inc. | Method and apparatus for supplementing a keyboard and for helping a user operate an electronic device |
| US20090044139A1 (en) * | 2007-08-08 | 2009-02-12 | Samsung Electronics Co., Ltd. | Apparatus and method for providing character deletion function |
| US20110018812A1 (en) * | 2009-07-21 | 2011-01-27 | Cisco Technology, Inc. | Fast Typographical Error Correction for Touchscreen Keyboards |
| CN102331907A (en) * | 2011-09-13 | 2012-01-25 | 中兴通讯股份有限公司 | Character deleting method and device for terminal having touch screen, and terminal |
| CN103324271A (en) * | 2012-03-19 | 2013-09-25 | 联想(北京)有限公司 | Input method and electronic equipment based on gesture |
| CN102750088A (en) * | 2012-06-04 | 2012-10-24 | 华为终端有限公司 | Method and electronic device for prompting character input |
| CN102890615A (en) * | 2012-09-21 | 2013-01-23 | 百度在线网络技术(北京)有限公司 | Pinyin input method and device based on touch screen |
| CN103218156A (en) * | 2013-02-28 | 2013-07-24 | 广东欧珀移动通信有限公司 | Method for realizing multi-Tab page switching and touch type mobile terminal thereof |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105808081A (en) * | 2014-12-29 | 2016-07-27 | 鸿合科技有限公司 | Method and apparatus for rapidly deleting multiple objects by utilizing gesture |
| CN104571585A (en) * | 2014-12-30 | 2015-04-29 | 北京奇虎科技有限公司 | Cursor operation method and device for input method |
| CN104571585B (en) * | 2014-12-30 | 2017-07-28 | 北京奇虎科技有限公司 | Input method cursor operating 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 |
| WO2022111406A1 (en) * | 2020-11-27 | 2022-06-02 | 维沃移动通信有限公司 | Control displaying method and apparatus, and electronic device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP4636559A2 (en) | Handwriting entry on an electronic device | |
| US8786559B2 (en) | Device, method, and graphical user interface for manipulating tables using multi-contact gestures | |
| CN102937864B (en) | A kind of method and apparatus for determining selected text on touch terminal | |
| US9134833B2 (en) | Electronic apparatus, method, and non-transitory computer-readable storage medium | |
| CN102331907A (en) | Character deleting method and device for terminal having touch screen, and terminal | |
| CN104020948B (en) | Method and device for determining cursor position in touch screen | |
| CN102033682B (en) | Input method and input equipment | |
| CN102117165A (en) | Touch input processing method and mobile terminal | |
| CN102455869B (en) | Method and device for editing characters by using gestures | |
| CN104205033A (en) | Method of controlling touch-based input | |
| CN103324674B (en) | Web page contents choosing method and device | |
| US11409432B2 (en) | Pen command for ink editing | |
| CN103677637A (en) | Method for deleting words displayed on touch screen and electronic device | |
| US9025878B2 (en) | Electronic apparatus and handwritten document processing method | |
| CN105117159B (en) | A kind of character processing method and terminal | |
| CN104657077A (en) | Cursor positioning method | |
| CN103425392A (en) | Method and system for creating a new folder on a touch screen terminal | |
| CN107272881A (en) | A kind of data inputting method and device, entering method keyboard and electronic equipment | |
| CN106933481B (en) | A screen scrolling method and device | |
| CN103645829A (en) | Character deletion method and portable terminal utilizing same | |
| CN102750035B (en) | The determination method and apparatus of display position of cursor | |
| CN103279276B (en) | The method of locating information and device | |
| CN104951234B (en) | A kind of data processing method and system based on touch screen terminal | |
| EP2818998A1 (en) | Method and apparatus for creating an electronic document in a mobile terminal | |
| CN106502536A (en) | A kind of page info choosing method and device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20140319 |
|
| RJ01 | Rejection of invention patent application after publication |