技术领域technical field
本发明涉及电子设备控制技术领域,尤其涉及一种输入界面的切换方法以及装置。The invention relates to the technical field of electronic equipment control, in particular to a method and device for switching an input interface.
背景技术Background technique
随着触摸屏技术的不断发展与完善,触摸屏技术在电子设备中的应用越来越广泛,例如,触摸屏手机、触摸屏电子阅读器等。触摸屏技术在电子设备中的应用,提高并完善了电子设备的功能,因此,触摸屏设备逐渐成为电子设备发展的趋势。With the continuous development and improvement of touch screen technology, the touch screen technology is more and more widely used in electronic devices, for example, touch screen mobile phones, touch screen e-readers, and the like. The application of touch screen technology in electronic equipment improves and improves the functions of electronic equipment. Therefore, touch screen equipment has gradually become a development trend of electronic equipment.
触摸屏技术在电子设备中的应用,逐渐与电子设备的各种功能相融合,例如,电子设备通过触摸屏获取外界对电子设备的操作信息,并根据获取的操作信息对电子设备进行控制,其中,较为普遍的应用是通过触摸屏向用户提供用于输入信息的输入界面,以代替传统的物理键盘输入界面。通过触摸屏提供的输入界面主要包括虚拟键盘界面以及手写输入界面,虚拟键盘界面,主要是在电子设备的触摸屏上虚拟出包括各种按键的虚拟键盘界面,虚拟键盘中各按键的布局方式大多继承了传统物理键盘的布局方式,用户可以通过点击虚拟键盘界面上的相应按键以实现信息的输入;手写输入界面,相对于虚拟键盘界面,减少了按键对用户输入的限制,用户可以在手写输入界面上直接以手写的方式输入信息。The application of touch screen technology in electronic equipment is gradually integrated with various functions of electronic equipment. For example, electronic equipment obtains external operation information on electronic equipment through the touch screen, and controls electronic equipment according to the acquired operation information. A common application is to provide a user with an input interface for inputting information through a touch screen, instead of a traditional physical keyboard input interface. The input interface provided through the touch screen mainly includes a virtual keyboard interface and a handwriting input interface. The virtual keyboard interface mainly virtualizes a virtual keyboard interface including various keys on the touch screen of an electronic device. With the layout of the traditional physical keyboard, users can click the corresponding buttons on the virtual keyboard interface to realize information input; the handwriting input interface, compared with the virtual keyboard interface, reduces the restrictions on user input by the buttons, and the user can click on the handwriting input interface. Enter information directly by handwriting.
目前,触摸屏设备一般可以同时支持虚拟键盘界面以及手写输入界面,以提高触摸屏设备的适用性,满足不同用户的输入习惯。在同时支持虚拟键盘界面以及手写输入界面的触摸屏设备中,一般设置其中一种输入界面作为触摸屏设备的默认输入界面,即用户需要向触摸屏设备输入信息时,通常会先显示设置的默认输入界面,如果用户希望采用另一种输入界面进行信息输入,可以通过手动方式进行输入界面切换,其中,用户通过手动方式进行输入界面切换,主要通过快捷按键的方式实现,即定义触摸屏上的特定按键作为切换的快捷按键,一般情况下,如果是虚拟键盘界面切换至手写输入界面,该快捷按键通常设置为虚拟键盘上的特定按键,如果是手写输入界面切换至虚拟键盘界面,该快捷按键通常设置为手写输入区域以外的触摸屏上的特定按键。用户可以通过点击触摸屏上提供的快捷按键以切换触摸屏显示的输入界面。这种通过快捷按键实现的切换方式,减少了用户进行输入界面切换的复杂度,但在实际应用中,存在如下方面的问题:At present, a touch screen device can generally support a virtual keyboard interface and a handwriting input interface at the same time, so as to improve the applicability of the touch screen device and satisfy input habits of different users. In a touch screen device that supports both a virtual keyboard interface and a handwriting input interface, one of the input interfaces is generally set as the default input interface of the touch screen device, that is, when the user needs to input information to the touch screen device, the set default input interface is usually displayed first. If the user wants to use another input interface for information input, the input interface can be switched manually. Among them, the user can manually switch the input interface, mainly through shortcut keys, that is, define a specific key on the touch screen as a switch In general, if the virtual keyboard interface is switched to the handwriting input interface, the shortcut key is usually set to a specific key on the virtual keyboard; if the handwriting input interface is switched to the virtual keyboard interface, the shortcut key is usually set to handwriting Specific keys on the touch screen outside the input area. The user can switch the input interface displayed on the touch screen by clicking the shortcut key provided on the touch screen. This switching method realized by shortcut keys reduces the complexity of the user switching the input interface, but in practical applications, there are the following problems:
一方面,上述切换方式需要用户记忆触摸屏设备提供的进行输入界面切换的快捷按键,尤其在触摸屏设备种类不断增多的情况下,不同触摸屏设备可能由于设备型号或生产厂家的差异,所提供的快捷按键也有所不同,如果用户忘记了进行切换的快捷按键或记错了进行切换的快捷按键,都有可能导致切换失败;On the one hand, the above switching method requires the user to memorize the shortcut keys provided by the touch screen device to switch the input interface, especially in the case of increasing types of touch screen devices, different touch screen devices may be different due to differences in device models or manufacturers. It is also different. If the user forgets or misremembers the shortcut key for switching, the switching may fail;
另一方面,触摸屏设备的触摸屏大小有限,虚拟键盘的每个按键通常所占的面积比较小,并且各按键位置安排比较紧凑,在这种情况下,用户点击快捷按键时,所点击的区域与快捷按键的区域可能存在偏差,从而导致触摸屏无法准确感应到用户对快捷按键的点击操作,尤其在存在的偏差较大的情况下,用户对快捷按键的操作很可能被触摸屏感应为用户对其他按键的操作,从而导致切换失败。On the other hand, the size of the touch screen of a touch screen device is limited, each key of the virtual keyboard usually occupies a relatively small area, and the position of each key is relatively compact. In this case, when the user clicks a shortcut key, the clicked area and There may be deviations in the area of the shortcut keys, which may cause the touch screen to fail to accurately sense the user's click operation on the shortcut keys. operation, resulting in switching failure.
综上所述,根据现有技术提供的方法进行触摸屏输入界面的切换,存在由于用户忘记或记错快捷按键或误操作等原因导致的切换失败的问题,切换的成功率低。To sum up, according to the method provided by the prior art, the switching of the touch screen input interface has the problem of switching failure due to the user forgetting or misremembering the shortcut key or misoperation, and the switching success rate is low.
发明内容Contents of the invention
有鉴于此,本发明实施例提供一种输入界面的切换方法以及装置,采用该技术方案,能够提高触摸屏设备中输入界面切换的成功率。In view of this, an embodiment of the present invention provides a method and device for switching an input interface. By adopting the technical solution, the success rate of switching an input interface in a touch screen device can be improved.
本发明实施例通过如下技术方案实现:Embodiments of the present invention are realized through the following technical solutions:
根据本发明实施例的一个方面,提供了一种输入界面的切换方法,包括:According to an aspect of an embodiment of the present invention, a method for switching an input interface is provided, including:
获取触摸屏的第一触摸事件,所述第一触摸事件用于表征所述触摸屏被执行的第一操作;Acquiring a first touch event of the touch screen, where the first touch event is used to represent a first operation performed on the touch screen;
在所述第一触摸事件表征的所述触摸屏被执行的第一操作为点击操作时,继续获取所述触摸屏的后续触摸事件,所述后续触摸事件用于表征所述触摸屏在被执行所述第一操作后被执行的后续操作,直到获取到的后续触摸事件表征的所述触摸屏被执行的后续操作满足所述触摸屏由当前显示的第一输入界面切换至第二输入界面的切换条件;When the first operation performed on the touch screen represented by the first touch event is a click operation, continue to acquire a subsequent touch event of the touch screen, and the subsequent touch event is used to represent that the touch screen is being executed on the first operation. Subsequent operations performed after an operation, until the subsequent operations performed on the touch screen represented by the acquired subsequent touch event meet the switching condition for the touch screen to switch from the currently displayed first input interface to the second input interface;
将所述触摸屏显示的第一输入界面切换为所述第二输入界面。switching the first input interface displayed on the touch screen to the second input interface.
根据本发明实施例的另一个方面,还提供了一种输入界面的切换装置,包括:According to another aspect of the embodiments of the present invention, there is also provided an input interface switching device, including:
触摸事件获取单元,用于获取触摸屏的第一触摸事件,所述第一触摸事件用于表征所述触摸屏被执行的第一操作;以及在所述第一触摸事件表征的所述触摸屏被执行的第一操作为点击操作时,继续获取所述触摸屏的后续触摸事件,直到获取到的后续触摸事件表征的所述触摸屏被执行的后续操作满足所述触摸屏由当前显示的第一输入界面切换至第二输入界面的切换条件;其中,所述后续触摸事件用于表征所述触摸屏在被执行所述第一操作后被执行的后续操作;A touch event acquiring unit, configured to acquire a first touch event of the touch screen, the first touch event being used to represent a first operation performed on the touch screen; When the first operation is a click operation, continue to acquire subsequent touch events on the touch screen until the subsequent operations performed on the touch screen represented by the acquired subsequent touch events satisfy the need for the touch screen to switch from the currently displayed first input interface to the second input interface. Two input interface switching conditions; wherein, the subsequent touch event is used to characterize the subsequent operation performed on the touch screen after the first operation is performed;
切换控制单元,用于在所述触摸事件获取单元获取的后续触摸事件表征的所述触摸屏被执行的后续操作满足所述触摸屏由当前显示的第一输入界面切换至第二输入界面的切换条件时,将所述触摸屏显示的第一输入界面切换为所述第二输入界面。A switching control unit, configured to perform subsequent operations on the touch screen represented by the subsequent touch event acquired by the touch event acquisition unit when the switching condition for the touch screen to be switched from the currently displayed first input interface to the second input interface is satisfied , switching the first input interface displayed on the touch screen to the second input interface.
根据本发明实施例的另一个方面,还提供了一种电子设备,包括上述的输入界面的切换装置。According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including the above-mentioned device for switching an input interface.
通过本发明实施例提供的上述至少一个技术方案,获取触摸屏的第一触摸事件,在第一触摸事件表征的触摸屏被执行的第一操作为点击操作时,获取触摸屏的后续触摸事件,该后续触摸事件用于表征触摸屏在被执行第一操作后被执行的后续操作,直到获取到的后续触摸事件表征的触摸屏被执行的后续操作满足触摸屏由当前显示的第一输入界面切换至第二输入界面的切换条件时,将触摸屏显示的第一输入界面切换为第二输入界面。根据该技术方案实现的触摸屏输入界面的切换方式,与现有技术相比,一方面,避免了由于用户忘记或记错进行输入界面切换的快捷按键而导致的切换失败问题,另一方面,本发明实施例提供的切换方式将触摸屏的触摸事件作为确定触摸屏切换的依据,相对于现有技术减少了快捷按键区域对用户操作的限制,从而减少了触摸屏感应到的用户操作与用户实际操作不匹配而导致的切换失败问题,从而提高了触摸屏设备输入界面切换的成功率。Through at least one of the above technical solutions provided by the embodiments of the present invention, the first touch event of the touch screen is obtained, and when the first operation performed on the touch screen represented by the first touch event is a click operation, the subsequent touch event of the touch screen is obtained, and the subsequent touch The event is used to represent the subsequent operation performed on the touch screen after the first operation is performed, until the obtained subsequent touch event represents the subsequent operation performed on the touch screen to meet the requirement that the touch screen switch from the currently displayed first input interface to the second input interface When switching the conditions, the first input interface displayed on the touch screen is switched to the second input interface. Compared with the prior art, the switching method of the touch screen input interface realized according to this technical solution, on the one hand, avoids the problem of switching failure caused by the user forgetting or misremembering the shortcut key for switching the input interface; on the other hand, this The switching method provided by the embodiment of the invention uses the touch event of the touch screen as the basis for determining the switching of the touch screen, which reduces the restrictions on user operations in the shortcut key area compared with the prior art, thereby reducing the mismatch between the user operations sensed by the touch screen and the actual user operations As a result, the switching failure problem is caused, thereby improving the success rate of switching the input interface of the touch screen device.
本发明的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过在所写的说明书、权利要求书、以及附图中所特别指出的结构来实现和获得。Additional features and advantages of the invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
附图说明Description of drawings
附图用来提供对本发明的进一步理解,并且构成说明书的一部分,与本发明实施例一起用于解释本发明,并不构成对本发明的限制。在附图中:The accompanying drawings are used to provide a further understanding of the present invention, and constitute a part of the description, and are used together with the embodiments of the present invention to explain the present invention, and do not constitute a limitation to the present invention. In the attached picture:
图1为本发明实施例一提供的输入界面的切换方法的流程示意图;FIG. 1 is a schematic flowchart of an input interface switching method provided by Embodiment 1 of the present invention;
图2为本发明实施例一中具体实施方式二提供的控制触摸屏切换的流程示意图;FIG. 2 is a schematic flow chart of controlling touch screen switching provided by Embodiment 2 in Embodiment 1 of the present invention;
图3为本发明实施例一中具体实施方式二提供的确定被输入到触摸屏的信息的流程示意图;FIG. 3 is a schematic flow diagram of determining information input to the touch screen provided by Embodiment 2 of Embodiment 1 of the present invention;
图4为本发明实施例一中具体实施方式二提供的实现汉字输入的流程示意图;FIG. 4 is a schematic flow diagram for realizing Chinese character input provided by Embodiment 2 in Embodiment 1 of the present invention;
图5为本发明实施例一中具体实施方式三提供的控制触摸屏切换的流程示意图;FIG. 5 is a schematic flow chart of controlling touch screen switching provided by Embodiment 3 in Embodiment 1 of the present invention;
图6为本发明实施例二提供的一个输入界面的切换装置的结构示意图;FIG. 6 is a schematic structural diagram of an input interface switching device provided in Embodiment 2 of the present invention;
图7为本发明实施例二提供的又一个输入界面的切换装置的结构示意图;FIG. 7 is a schematic structural diagram of another input interface switching device provided by Embodiment 2 of the present invention;
图8为本发明实施例二提供的包括输入界面的切换装置的电子设备的结构示意图。FIG. 8 is a schematic structural diagram of an electronic device including an input interface switching device provided by Embodiment 2 of the present invention.
具体实施方式Detailed ways
为了给出提高触摸屏设备中输入界面切换的成功率的实现方案,本发明实施例提供了一种输入界面的切换方法以及装置,以下结合说明书附图对本发明的优选实施例进行说明,应当理解,此处所描述的优选实施例仅用于说明和解释本发明,并不用于限定本发明。并且在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。In order to provide an implementation plan for improving the success rate of input interface switching in touch screen devices, embodiments of the present invention provide a method and device for switching input interfaces. The preferred embodiments of the present invention will be described below in conjunction with the accompanying drawings. It should be understood that, The preferred embodiments described here are only used to illustrate and explain the present invention, not to limit the present invention. And in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.
实施例一Embodiment one
本发明实施例一提供了一种输入界面的切换方法,该方法可以适用于触摸屏电子设备,如触摸屏手机、触摸屏电子阅读器等。该方法能够根据用户对触摸屏的操作方式以及预先设置的切换条件,自动实现触摸屏不同输入状态的切换,其中,触摸屏不同输入状态的切换,主要包括:由手写输入界面切换至虚拟键盘界面,以及由虚拟键盘界面切换至手写输入界面。Embodiment 1 of the present invention provides a method for switching an input interface, which can be applied to touch-screen electronic devices, such as touch-screen mobile phones, touch-screen electronic readers, and the like. The method can automatically realize the switching of different input states of the touch screen according to the user's operation mode of the touch screen and preset switching conditions, wherein the switching of different input states of the touch screen mainly includes: switching from the handwriting input interface to the virtual keyboard interface, and by The virtual keyboard interface is switched to the handwriting input interface.
图1示出了本发明实施例一提供的输入界面的切换方法的流程示意图,如图1所示,该输入界面的切换方法,主要包括如下步骤:Fig. 1 shows a schematic flow chart of the input interface switching method provided by Embodiment 1 of the present invention. As shown in Fig. 1, the input interface switching method mainly includes the following steps:
步骤101、电子设备检测到触摸屏被执行操作后,获取触摸屏当前被执行的操作的触摸事件。Step 101 , after the electronic device detects that an operation is performed on the touch screen, it acquires a touch event of an operation currently performed on the touch screen.
该步骤101中,触摸屏的触摸事件用于表征触摸屏被执行的操作,即触摸屏感应外界(通常指手指或触摸笔)对触摸屏的操作,例如,外界对触摸屏的点击操作、滑动操作等。In this step 101, the touch event of the touch screen is used to represent the operation performed on the touch screen, that is, the touch screen senses the operation of the touch screen from the outside world (usually refers to a finger or a touch pen), for example, a click operation or a slide operation on the touch screen from the outside world.
步骤102、确定当前获取到的触摸事件所表征的该触摸屏被执行的操作。Step 102, determine the operation performed on the touch screen represented by the currently acquired touch event.
该步骤102中,触摸事件所表征的该触摸屏被执行的操作主要包括点击操作以及滑动操作。In step 102, the operations performed on the touch screen represented by the touch event mainly include click operations and slide operations.
步骤103、根据确定出的该触摸屏被执行的操作以及该触摸屏当前显示的输入界面,控制触摸屏输入界面的切换。Step 103 , according to the determined operation performed on the touch screen and the input interface currently displayed on the touch screen, control switching of the input interface of the touch screen.
至此,输入界面的切换流程结束。So far, the switching process of the input interface ends.
图1对应的流程包括的步骤103中,根据获取的触摸事件表征的触摸屏被执行的操作的不同,以及触摸屏当前显示的输入界面的不同,控制触摸屏输入界面的切换方式也不同,例如,在步骤101获取的触摸事件表征的触摸屏被执行的操作为点击操作时,继续获取该触摸屏的后续触摸事件,该后续触摸事件用于表征触摸屏在被执行点击操作后进一步被执行的后续操作,直到获取到的后续触摸事件表征的该触摸屏被执行的后续操作满足相应的切换条件后,控制输入界面切换。以下分别结合具体实施方式,对各控制方式进行说明。In step 103 included in the process corresponding to FIG. 1 , according to the difference in the operation performed on the touch screen represented by the acquired touch event, and the difference in the input interface currently displayed on the touch screen, the switching mode of controlling the touch screen input interface is also different. For example, in step 101 When the operation performed on the touch screen represented by the acquired touch event is a click operation, continue to acquire the subsequent touch event of the touch screen, and the subsequent touch event is used to represent the subsequent operation performed on the touch screen after the click operation is performed, until the After the subsequent operation performed on the touch screen represented by the subsequent touch event satisfies a corresponding switching condition, the control input interface is switched. In the following, each control mode will be described in conjunction with specific implementations.
具体实施方式一Specific implementation mode one
该具体实施方式一给出了上述步骤102确定出的触摸屏被执行的操作为滑动操作时,上述步骤103的具体控制方式。This specific embodiment 1 provides a specific control method of the above step 103 when the operation performed on the touch screen determined in the above step 102 is a sliding operation.
根据该具体实施方式一,若触摸屏被执行了滑动操作,则需要进一步根据触摸屏当前显示的输入界面确定后续的控制方式,具体地:According to the first specific embodiment, if the touch screen is subjected to a sliding operation, it is necessary to further determine the subsequent control method according to the input interface currently displayed on the touch screen, specifically:
如果触摸屏当前显示的输入界面为手写输入界面,则按照现有技术处理,即将该操作确定为外界对触摸屏的输入信息,不进行输入界面的切换流程;If the input interface currently displayed on the touch screen is a handwriting input interface, then process it according to the prior art, that is, determine the operation as external input information to the touch screen, and do not perform the switching process of the input interface;
如果触摸屏当前显示的输入界面为虚拟键盘界面,则需要进行输入界面的切换流程,即将触摸屏由虚拟键盘界面切换为手写输入界面,其中,将触摸屏由虚拟键盘界面切换为手写输入界面的方式为触摸屏设备的现有功能,此处不再赘述。If the input interface currently displayed on the touch screen is a virtual keyboard interface, the switching process of the input interface is required, that is, the touch screen is switched from the virtual keyboard interface to the handwriting input interface, wherein the method of switching the touch screen from the virtual keyboard interface to the handwriting input interface is the touch screen The existing functions of the device will not be repeated here.
根据该具体实施方式一,当触摸屏显示虚拟键盘界面时,若检测到外界对触摸屏执行了滑动操作,则将触摸屏由虚拟键盘界面切换为手写输入界面。According to the first embodiment, when the touch screen displays the virtual keyboard interface, if it is detected that the outside world performs a sliding operation on the touch screen, the touch screen is switched from the virtual keyboard interface to the handwriting input interface.
进一步地,该具体实施方式一还给出了一种优选实施方式,该优选实施方式通过设置连续检测到触摸屏被执行了滑动操作的次数,当连续获取到的表征该触摸屏被执行了滑动操作的触摸事件的次数达到设定阈值时,将触摸屏由虚拟键盘界面切换为手写输入界面,否则不切换。通过该优选实施方式,在多次检测到触摸屏被执行了滑动操作时,才执行触摸屏输入界面的切换,避免了由于用户误操作而引起的不必要切换。Furthermore, this specific embodiment 1 also provides a preferred implementation mode. In this preferred implementation mode, by setting the number of times that the touch screen is continuously detected that the sliding operation is performed, when the continuously acquired When the number of touch events reaches the set threshold, the touch screen is switched from the virtual keyboard interface to the handwriting input interface, otherwise it is not switched. Through this preferred implementation manner, the switching of the input interface of the touch screen is performed only when the sliding operation of the touch screen is detected multiple times, thereby avoiding unnecessary switching caused by misoperation by the user.
具体实施方式二Specific implementation mode two
该具体实施方式二给出了上述步骤102确定出的触摸屏被执行的操作为点击操作、且触摸屏当前显示的输入界面为虚拟键盘界面时,上述步骤103的控制方式。The second embodiment provides the control method of the above step 103 when the operation performed on the touch screen determined in the above step 102 is a click operation, and the input interface currently displayed on the touch screen is a virtual keyboard interface.
根据控制需要,需要预先设置触摸屏由虚拟键盘界面切换至手写输入界面时应该满足的切换条件(为描述方便,后续称为第一切换条件),该第一切换条件具体为:该触摸屏被执行的操作为滑动操作,即当获取的触摸事件表征触摸屏被执行了滑动操作时,确定满足该第一切换条件。According to the control needs, it is necessary to pre-set the switching conditions that should be satisfied when the touch screen is switched from the virtual keyboard interface to the handwriting input interface (for the convenience of description, it will be referred to as the first switching condition later), and the first switching condition is specifically: the touch screen is executed The operation is a sliding operation, that is, when the acquired touch event indicates that a sliding operation is performed on the touch screen, it is determined that the first switching condition is met.
图2示出了该具体实施方式二提供的在满足步骤102确定出的触摸屏被执行的操作为点击操作、且触摸屏当前显示的输入界面为虚拟键盘界面时,控制触摸屏切换的流程示意图,如图2所示,主要包括如下步骤:Fig. 2 shows a schematic flow diagram of controlling touch screen switching provided by the second embodiment when the operation performed on the touch screen determined in step 102 is a click operation, and the input interface currently displayed on the touch screen is a virtual keyboard interface, as shown in Fig. 2, mainly includes the following steps:
步骤201、再次获取该触摸屏的触摸事件。Step 201, acquire the touch event of the touch screen again.
该步骤201中,再次获取的触摸屏的触摸事件表征的触摸屏被执行的操作,为上次获取的触摸事件表征的触摸屏被执行的操作之后被执行的操作。并且,再次获取触摸事件的时间与上一次获取触摸事件的时间之间的间隔应该小于第一设定阈值,该第一设定阈值用于标识用户输入一个字符完毕的时间(或称为字符识别时间),即若再次获取触摸事件的时间与上一次获取触摸事件的时间之间的间隔小于该第一设定阈值,则确定用户输入还未完毕,否则,确定用户输入信息完毕。In this step 201 , the operation performed on the touch screen represented by the touch event of the touch screen obtained again is the operation performed after the operation performed on the touch screen represented by the touch event obtained last time. And, the interval between the time when the touch event is acquired again and the time when the touch event was acquired last time should be smaller than the first set threshold, which is used to identify the time when the user has finished inputting a character (or called character recognition). Time), that is, if the interval between the time when the touch event is acquired again and the time when the last touch event is acquired is less than the first set threshold, it is determined that the user input has not been completed; otherwise, it is determined that the user input information has been completed.
步骤202、确定再次获取的触摸事件表征的触摸屏被执行的操作是否满足第一切换条件,若是,执行步骤203,若否,执行步骤204。Step 202 , determine whether the operation performed on the touch screen represented by the acquired touch event satisfies the first switching condition, if yes, perform step 203 , if not, perform step 204 .
该步骤202中,确定再次获取的触摸事件表征的触摸屏被执行的操作是否满足第一切换条件,即确定再次获取的触摸事件表征的触摸屏被执行的操作是否为滑动操作,若是滑动操作,则确定满足第一切换条件,否则不满足。其中,第一切换条件即指触摸屏由虚拟键盘界面切换为手写输入界面需要满足的条件,该条件的设置如上所述,此处不再赘述。In this step 202, determine whether the operation performed on the touch screen represented by the touch event acquired again meets the first switching condition, that is, determine whether the operation performed on the touch screen represented by the touch event acquired again is a sliding operation, and if it is a sliding operation, determine Satisfy the first switching condition, otherwise not. Wherein, the first switching condition refers to the condition that needs to be satisfied for the touch screen to switch from the virtual keyboard interface to the handwriting input interface.
步骤203、将触摸屏显示的虚拟键盘界面切换为手写输入界面。Step 203, switching the virtual keyboard interface displayed on the touch screen to a handwriting input interface.
该步骤203中,将触摸屏由虚拟键盘界面切换为手写输入界面的方式为触摸屏设备的现有功能,此处不再赘述。In this step 203, the manner of switching the touch screen from the virtual keyboard interface to the handwriting input interface is an existing function of the touch screen device, and will not be repeated here.
步骤204、确定再次获取的触摸事件表征的触摸屏被执行的操作为点击操作,并根据该触摸事件,确定该点击操作在触摸屏上的点击位置并保存,然后返回步骤201。Step 204 : Determine that the operation performed on the touch screen represented by the acquired touch event is a click operation, and according to the touch event, determine and save the click position of the click operation on the touch screen, and then return to step 201 .
至此,控制触摸屏切换的流程结束。So far, the process of controlling touch screen switching ends.
图2对应流程包括的步骤204中,保存点击操作在触摸屏上的点击位置,主要目的在于辅助确定用户手写输入的信息,根据保存的该信息,在将触摸屏显示的虚拟键盘界面切换为手写输入界面之后,还进一步执行确定被输入到触摸屏的信息的流程,如图3所示,该确定被输入到触摸屏的信息的过程,主要包括如下步骤:In step 204 included in the corresponding process in Figure 2, the click position on the touch screen of the click operation is saved, the main purpose is to assist in determining the information of the user's handwriting input, and according to the saved information, the virtual keyboard interface displayed on the touch screen is switched to the handwriting input interface After that, the process of determining the information input to the touch screen is further performed, as shown in Figure 3, the process of determining the information input to the touch screen mainly includes the following steps:
步骤301、获取用于表征触摸屏显示的手写输入界面被执行操作的触摸事件。Step 301 , acquiring a touch event used to represent an operation performed on a handwriting input interface displayed on the touch screen.
该步骤301中,获取的该触摸事件即表示触摸屏由虚拟键盘界面切换至手写输入界面后,用户通过该手写输入界面输入信息的操作对应的触摸事件。In the step 301, the acquired touch event represents the touch event corresponding to the user's operation of inputting information through the handwriting input interface after the touch screen is switched from the virtual keyboard interface to the handwriting input interface.
步骤302、确定用户是否输入完毕,若是,执行步骤303,否则返回步骤301。Step 302 , determine whether the user has finished inputting, if yes, execute step 303 , otherwise return to step 301 .
该步骤302中,确定用户是否输入完毕,即判断在获取本次触摸事件后,在设定的时间长度内是否再次获取到触摸事件,若否,则确定用户输入完毕,其中,该设定的时间长度标识用户输入一个字符完毕的时间(或称为字符识别时间),可以与上述的第一设定阈值相等。In this step 302, it is determined whether the user input is completed, that is, it is judged whether the touch event is acquired again within the set time length after acquiring this touch event, if not, then it is determined that the user input is completed, wherein the set The time length identifies the time when the user completes inputting a character (or called character recognition time), and may be equal to the above-mentioned first set threshold.
步骤303、根据获取到的触摸事件表征的触摸屏显示的手写输入界面被执行的操作以及保存的点击位置信息,确定被输入到触摸屏的信息。Step 303 : Determine the information input to the touch screen according to the operation performed on the handwriting input interface displayed on the touch screen represented by the acquired touch event and the saved click position information.
至此,确定被输入到触摸屏的信息的流程结束。So far, the process of determining the information input to the touch screen ends.
图3对应流程包括的步骤301中,第一次通过手写输入界面获取到触摸事件的时间与上一次获取用于表征触摸屏被执行滑动操作的滑动事件的时间之间的间隔小于第二设定阈值;并除第一次通过手写输入界面获取到的触摸事件之外,每次通过手写输入界面获取到触摸事件的时间与上一次通过所述手写输入界面获取到触摸事件的时间之间的间隔小于所述第二设定阈值。此处,第二设定阈值与上述第一设定阈值的含义基本相同,即用于标识用户输入一个字符完毕的时间(或称为字符识别时间),该第二设定阈值可以与第一设定阈值相同,也可以根据不同输入界面的要求对应不同值。In step 301 included in the process corresponding to FIG. 3 , the interval between the time when the touch event is acquired through the handwriting input interface for the first time and the last time when the sliding event used to represent the sliding operation performed on the touch screen is less than the second set threshold ; and except for the touch event obtained by the handwriting input interface for the first time, the interval between the time when the touch event is obtained by the handwriting input interface and the time when the touch event was obtained by the handwriting input interface last time is less than The second set threshold. Here, the meaning of the second set threshold is basically the same as that of the first set threshold above, that is, it is used to identify the time when the user finishes inputting a character (or called character recognition time), and the second set threshold can be the same as the first set threshold. The setting thresholds are the same, and can also correspond to different values according to the requirements of different input interfaces.
根据图3对应的流程,通过保存触摸屏由虚拟键盘界面切换至手写输入界面之前点击操作的点的位置信息,能够提供触摸屏确定用户输入的信息的准确性,为了更好地理解该确定被输入到触摸屏的信息的过程,以下给出一个具体例子:According to the flow corresponding to FIG. 3 , by saving the position information of the clicked point before the touch screen is switched from the virtual keyboard interface to the handwriting input interface, the accuracy of the information input by the user can be determined by the touch screen. In order to better understand the determination, it is input to The process of touching the information on the screen, a specific example is given below:
用户输入信息“河”时,首先输入的笔画为点,该笔画可被触摸屏感应为点击操作,由于在检测到滑动操作后才将虚拟键盘界面切换至手写输入界面,此时,若不保存点击操作的位置信息,则通过手写输入界面感应到的用户输入的信息为“可”,即在输入界面切换至手写输入界面之前用户输入的“氵”将无法被手写输入界面感知,可能出现触摸屏感应到的信息与用户实际输入的信息不匹配的问题。因此,为了避免触摸屏切换后感应到的信息与用户实际输入的信息不符的问题,需要在切换前预先保存点击操作的点击位置,也即记录输入信息包含的点的位置,在触摸屏由虚拟键盘界面切换到手写输入界面后,用户可以继续手写输入,这样,在用户通过手写输入界面输入完成后,可以将切换前记录的“氵”信息与切换后获取的“可”信息结合作为文字选择框中文字生成的依据,即可以确定用户输入的信息为“河”。当用户选择一个文字后,系统自动清除记录的点击位置信息。When the user enters the information "river", the first input stroke is a dot, which can be sensed by the touch screen as a click operation. Since the virtual keyboard interface is switched to the handwriting input interface after the sliding operation is detected, at this time, if the click is not saved For the position information of the operation, the information input by the user sensed through the handwriting input interface is "possible", that is, the "氵" input by the user before the input interface switches to the handwriting input interface will not be sensed by the handwriting input interface, and the touch screen may appear. The information received does not match the information actually entered by the user. Therefore, in order to avoid the inconsistency between the information sensed after the touch screen is switched and the information actually input by the user, it is necessary to pre-save the click position of the click operation before switching, that is, record the position of the point included in the input information. After switching to the handwriting input interface, the user can continue handwriting input. In this way, after the user completes the input through the handwriting input interface, the "氵" information recorded before switching can be combined with the "可" information obtained after switching as the text selection box Chinese The basis for word generation, that is, it can be determined that the information entered by the user is "river". When the user selects a text, the system automatically clears the recorded click location information.
根据本申请具体实施方式二提供的上述处理方式,当用户在使用虚拟键盘界面输入时,如果希望使用手写输入界面输入,则不用通过触摸快捷按键或进入输入界面设置窗口更改输入界面为手写输入界面,而是直接在触摸屏上进行手写输入,系统会自动根据上述方法识别出用户在进行手写输入,从而自动切换至手写输入界面。According to the above-mentioned processing method provided in Embodiment 2 of the present application, when the user is using the virtual keyboard interface for input, if he wishes to use the handwriting input interface for input, he does not need to change the input interface to the handwriting input interface by touching the shortcut keys or entering the input interface setting window. , but directly perform handwriting input on the touch screen, the system will automatically recognize that the user is performing handwriting input according to the above method, thereby automatically switching to the handwriting input interface.
本发明具体实施方式二提供的技术方案在实际应用中,识别用户是否在进行手写输入的具体方法如下:In the practical application of the technical solution provided by Embodiment 2 of the present invention, the specific method for identifying whether the user is performing handwriting input is as follows:
当用户在触摸屏操作时,触摸屏设备会感应到相应的触摸事件。例如点击(down->up)、滑动(down->move->up)、长按等。一般情况下,笔画输入是一个滑动操作,因此可以通过等待是否有用于表征滑动操作的触摸事件来确定是否是有笔画输入,如果有滑动操作,则认定用户在进行手写输入,自动取消虚拟键盘界面,打开手写输入界面。在触摸屏设备感应到用户的操作后,自动判断用户的操作是点击、滑动还是长按操作。如果是某一个操作,触摸屏设备会在已经定义的回调函数中进行响应,即一旦发生了滑动操作,则会触发相应的回调函数,并在该函数中进行操作(即将虚拟键盘界面切换至手写输入界面),具体的回调函数如下:When the user operates on the touch screen, the touch screen device will sense a corresponding touch event. For example, click (down->up), slide (down->move->up), long press, etc. In general, stroke input is a sliding operation, so it can be determined whether there is a stroke input by waiting for a touch event to represent the sliding operation. If there is a sliding operation, it is determined that the user is performing handwriting input, and the virtual keyboard interface is automatically canceled to open the handwriting input interface. After the touch screen device senses the user's operation, it automatically determines whether the user's operation is a click, slide or long press operation. If it is a certain operation, the touch screen device will respond in the defined callback function, that is, once the sliding operation occurs, the corresponding callback function will be triggered, and the operation will be performed in this function (that is, the virtual keyboard interface will be switched to handwriting input Interface), the specific callback function is as follows:
Private void onMoveEvent(){Private void onMoveEvent(){
switchTomanuscript();switchTomanuscript();
}}
该回调函数表示将虚拟键盘界面切换至手写输入界面。在手写输入界面打开过程中,用户可以继续进行手写输入,不用中断操作。当用户停止手写操作达到设定的文字识别时间(如0.5秒)时,认定用户完成该文字的输入,弹出文字选择框,供用户选择文字。This callback function indicates to switch the virtual keyboard interface to the handwriting input interface. During the opening process of the handwriting input interface, the user can continue to perform handwriting input without interrupting the operation. When the user stops the handwriting operation and reaches the set character recognition time (such as 0.5 seconds), it is determined that the user has completed the input of the character, and a character selection box pops up for the user to select characters.
上述的具体实施方式一以及具体实施方式二均实现了触摸屏由虚拟键盘界面切换为手写输入界面的控制,该具体实施方式二相对于上述的具体实施方式一,由于在切换之前会保存点击操作所点击的位置信息,从而能够准确地显示起始笔画为点的汉字。Above-mentioned specific embodiment 1 and specific embodiment 2 all realize the control that the touch screen is switched from the virtual keyboard interface to the handwriting input interface. The location information of the click can accurately display Chinese characters whose starting strokes are dots.
图4示出了基于上述具体实施方式二提供的输入界面的切换方法,实现汉字输入的流程示意图,如图4所示,该实现汉字输入的过程,主要包括如下步骤:Fig. 4 has shown the switching method based on the input interface that the above-mentioned specific embodiment 2 provides, realizes the schematic flow chart of Chinese character input, as shown in Fig. 4, this process of realizing Chinese character input mainly includes the following steps:
步骤401、电子设备检测到触摸屏被执行操作后,获取触摸屏当前被执行的操作的触摸事件;Step 401, after the electronic device detects that the touch screen is operated, it acquires a touch event of the currently performed operation on the touch screen;
步骤402、确定获取的触摸事件表征的触摸屏被执行的操作是否为点击操作,若是,执行步骤403,若否,执行步骤404;Step 402, determine whether the operation performed on the touch screen represented by the acquired touch event is a click operation, if so, perform step 403, if not, perform step 404;
步骤403、根据获取的触摸事件,记录该点击操作所点击的点在触摸屏上的位置信息后,返回步骤401;Step 403: According to the acquired touch event, after recording the position information of the point clicked by the click operation on the touch screen, return to Step 401;
步骤404、确定获取的触摸事件表征的触摸屏被执行的操作是否为滑动操作,若是,执行步骤405,若否,返回步骤401;Step 404, determine whether the operation performed on the touch screen represented by the acquired touch event is a sliding operation, if so, perform step 405, if not, return to step 401;
步骤405、将触摸屏由虚拟键盘界面切换至手写输入界面。Step 405, switch the touch screen from the virtual keyboard interface to the handwriting input interface.
步骤406、在确定用户停止输入后,获取保存的点击位置信息,显示用户输入的信息供用户选择。Step 406, after it is determined that the user stops inputting, acquire the saved click position information, and display the information input by the user for the user to select.
至此,该实现汉字输入的流程结束。So far, the process of realizing Chinese character input ends.
具体实施方式三Specific implementation mode three
该具体实施方式三给出了上述步骤102确定出的触摸屏被执行的操作为点击操作、且触摸屏当前显示的输入界面为手写输入界面时,上述步骤103的控制方式。The third embodiment provides the control method of the above step 103 when the operation performed on the touch screen determined in the above step 102 is a click operation, and the input interface currently displayed on the touch screen is a handwriting input interface.
根据控制需要,需要预先设置触摸屏由手写输入界面切换至虚拟键盘界面时应该满足的切换条件(为描述方便,后续称为第二切换条件),该第二切换条件可以为:触摸屏预显示的虚拟键盘界面上的设定按键被点击设定次数,即当获取的触摸事件表征触摸屏预显示的虚拟键盘界面上的设定按键被点击设定次数时,确定满足该第二切换条件。According to the control needs, it is necessary to pre-set the switching conditions that should be satisfied when the touch screen is switched from the handwriting input interface to the virtual keyboard interface (for the convenience of description, the subsequent is called the second switching condition). The set button on the keyboard interface is clicked for a set number of times, that is, when the acquired touch event indicates that the set button on the virtual keyboard interface pre-displayed on the touch screen is clicked for a set number of times, it is determined that the second switching condition is met.
图5示出了该具体实施方式三提供的在满足步骤102确定出的触摸屏被执行的操作为点击操作、且触摸屏当前显示的输入界面为手写输入界面时,控制触摸屏切换的流程示意图,如图5所示,主要包括如下步骤:FIG. 5 shows a schematic flow diagram of controlling touch screen switching provided by the third embodiment when the operation performed on the touch screen determined in step 102 is a click operation, and the input interface currently displayed on the touch screen is a handwriting input interface, as shown in FIG. 5, mainly includes the following steps:
步骤501、将触摸屏显示的手写输入界面预切换为以大于设定值的透明度显示的虚拟键盘界面。Step 501 , pre-switching the handwriting input interface displayed on the touch screen to a virtual keyboard interface displayed with a transparency greater than a set value.
该步骤501中,将触摸屏显示的手写输入界面预切换为以大于设定值的透明度显示的虚拟键盘界面,即在触摸屏上预显示虚拟键盘的区域以半透明状态显示该虚拟键盘界面,根据后续用户的输入确定完全显示该虚拟键盘界面还是撤销该半透明状态显示的虚拟键盘界面。其中,透明度越大,则预显示的虚拟键盘越透明,此处以半透明状态显示该虚拟键盘界面,主要是为了在用户不希望由手写输入界面切换至虚拟键盘界面时,减少对用户的干扰。In this step 501, the handwriting input interface displayed on the touch screen is pre-switched to a virtual keyboard interface displayed with a transparency greater than the set value, that is, the area where the virtual keyboard is pre-displayed on the touch screen displays the virtual keyboard interface in a semi-transparent state. The user's input determines whether to fully display the virtual keyboard interface or cancel the virtual keyboard interface displayed in the translucent state. Wherein, the greater the transparency, the more transparent the pre-displayed virtual keyboard is. Here, the virtual keyboard interface is displayed in a translucent state, mainly to reduce interference to the user when the user does not wish to switch from the handwriting input interface to the virtual keyboard interface.
步骤502、再次获取该预显示了虚拟键盘界面的触摸屏的触摸事件。Step 502, acquire again the touch event of the touch screen on which the virtual keyboard interface is pre-displayed.
该步骤502中,再次获取的预显示了虚拟键盘界面的触摸屏的触摸事件表征的触摸屏被执行的操作,为上次获取的触摸事件表征的触摸屏被执行的操作之后被执行的操作。In this step 502 , the operation performed on the touch screen represented by the touch event of the touch screen that pre-displays the virtual keyboard interface acquired again is the operation performed after the operation performed on the touch screen represented by the touch event obtained last time.
步骤503、确定再次获取的触摸事件表征的触摸屏被执行的操作是否满足第二切换条件,若是,执行步骤504,若否,执行步骤505。Step 503 : Determine whether the operation performed on the touch screen represented by the acquired touch event satisfies the second switching condition, if yes, perform step 504 , if not, perform step 505 .
步骤504、将以大于设定值的透明度显示的虚拟键盘界面切换为非透明显示的虚拟键盘界面。Step 504: Switch the virtual keyboard interface displayed with a transparency greater than the set value to a non-transparent virtual keyboard interface.
该步骤504中,将触摸屏显示的手写输入界面切换为虚拟键盘界面的方式为触摸屏设备的现有功能,此处不再赘述。In step 504, the manner of switching the handwriting input interface displayed on the touch screen to the virtual keyboard interface is an existing function of the touch screen device, and will not be repeated here.
步骤505、将触摸屏还原为手写输入界面。Step 505, restore the touch screen to the handwriting input interface.
至此,控制触摸屏切换的流程结束。So far, the process of controlling touch screen switching ends.
上述步骤503中,第二切换条件即指触摸屏由手写输入界面切换为虚拟键盘界面需要满足的条件,该该第二切换条件如上所述可以为:触摸屏预显示的虚拟键盘界面上的设定按键被点击设定次数,其中,设定按键可以为1个按键,被点击的设定次数可以为多次,例如:In the above-mentioned step 503, the second switching condition refers to the condition that the touch screen needs to be satisfied when switching from the handwriting input interface to the virtual keyboard interface. The set number of clicks, where the set button can be 1 button, and the set number of clicks can be multiple times, for example:
当半透明虚拟键盘上的案件被连续点击5次,选择5个字母后,自动切换至虚拟键盘界面。此处,点击的字母不用预先设置,用户可以根据想要输入的汉字拼音进行连续输入,可以通过设置连续点击的次数。When the case on the translucent virtual keyboard is clicked 5 times continuously and 5 letters are selected, it will automatically switch to the virtual keyboard interface. Here, the clicked letters do not need to be pre-set, and the user can input continuously according to the pinyin of the Chinese characters they want to input, and can set the number of consecutive clicks.
当按照设置好的一定顺序连续点击虚拟键盘上固定字母时(例如:ABCD),则自动切换至虚拟键盘界面;固定字母可以设定,选择的字母数量可以灵活设置,例如,选择4~8个字母。When the fixed letters on the virtual keyboard (for example: ABCD) are clicked continuously according to the set order, it will automatically switch to the virtual keyboard interface; the fixed letters can be set, and the number of selected letters can be flexibly set, for example, choose 4 to 8 letter.
具体方式可以灵活设置,此处不再一一列举。The specific manner can be flexibly set, and will not be listed here.
根据本发明上述具体实施方式三,当用户在使用手写输入界面输入信息时,如果用户希望使用虚拟键盘界面输入信息,则不用通过触摸快捷按键或进入输入界面设置窗口更改输入界面为虚拟键盘界面,而是直接在触摸屏上进行点击操作。当系统发现用户在进行点击操作时,会将虚拟键盘以半透明的方式呈现,用户可以根据该半透明的键盘点击上面的指定按键。一旦点击的规律满足设定切换条件要求,则自动将输入界面切换至虚拟键盘界面,将虚拟键盘完全呈现出来,并且保留用户已经输入的字符。According to the third specific embodiment of the present invention, when the user is using the handwriting input interface to input information, if the user wants to use the virtual keyboard interface to input information, then there is no need to change the input interface to the virtual keyboard interface by touching the shortcut keys or entering the input interface setting window. Instead, tap operations are performed directly on the touch screen. When the system finds that the user is performing a click operation, the virtual keyboard will be presented in a semi-transparent manner, and the user can click a designated button on the translucent keyboard. Once the click pattern meets the set switching conditions, the input interface is automatically switched to the virtual keyboard interface, the virtual keyboard is fully presented, and the characters already input by the user are retained.
实施例二Embodiment two
与上述方法流程一对应,本发明实施例二提供了一种输入界面的切换装置,如图6所示,该输入界面的切换装置,主要包括:Corresponding to the above-mentioned method flow 1, Embodiment 2 of the present invention provides an input interface switching device, as shown in FIG. 6 , the input interface switching device mainly includes:
触摸事件获取单元601以及切换控制单元602;A touch event acquisition unit 601 and a switching control unit 602;
其中:in:
触摸事件获取单元601,用于获取触摸屏的第一触摸事件,所述第一触摸事件用于表征所述触摸屏被执行的第一操作;以及在所述第一触摸事件表征的所述触摸屏被执行的第一操作为点击操作时,继续获取所述触摸屏的后续触摸事件,直到获取到的后续触摸事件表征的所述触摸屏被执行的后续操作满足所述触摸屏由当前显示的第一输入界面切换至第二输入界面的切换条件;其中,所述后续触摸事件用于表征所述触摸屏在被执行所述第一操作后被执行的后续操作;The touch event acquisition unit 601 is configured to acquire a first touch event of the touch screen, the first touch event is used to represent a first operation performed on the touch screen; and the touch screen represented by the first touch event is performed When the first operation is a click operation, continue to acquire subsequent touch events on the touch screen until the subsequent operations performed on the touch screen represented by the acquired subsequent touch events meet the requirement that the touch screen switch from the currently displayed first input interface to A switching condition of the second input interface; wherein, the subsequent touch event is used to represent a subsequent operation performed on the touch screen after the first operation is performed;
切换控制单元602,用于确定当触摸事件获取单元601获取的后续触摸事件表征的触摸屏被执行的后续操作满足触摸屏由当前显示的第一输入界面切换至第二输入界面的切换条件时,将触摸屏显示的第一输入界面切换为第二输入界面。The switch control unit 602 is configured to determine that when the subsequent operation performed on the touch screen represented by the subsequent touch event acquired by the touch event acquisition unit 601 satisfies the switching condition for the touch screen to switch from the currently displayed first input interface to the second input interface, switch the touch screen to the second input interface. The displayed first input interface is switched to the second input interface.
本发明实施例二提供的优选实施方式中,图6所示装置包括的切换控制单元602,具体用于在该触摸屏显示的第一输入界面为手写输入界面时,将该触摸屏显示的手写输入界面切换为虚拟键盘界面;在触摸屏显示的第一输入界面为虚拟键盘界面时,将触摸屏显示的虚拟键盘界面切换为手写输入界面。In the preferred implementation mode provided by Embodiment 2 of the present invention, the switching control unit 602 included in the device shown in FIG. 6 is specifically used to select the handwriting input interface displayed on the touch screen when the first input interface displayed on the touch screen Switching to a virtual keyboard interface; when the first input interface displayed on the touch screen is a virtual keyboard interface, switching the virtual keyboard interface displayed on the touch screen to a handwriting input interface.
本发明实施例二提供的优选实施方式中,图6所示装置包括的切换控制单元602,还用于在触摸事件获取单元601获取的第一触摸事件表征的触摸屏被执行的第一操作为滑动操作、且触摸屏当前显示虚拟键盘界面时,将触摸屏显示的虚拟键盘界面切换为手写输入界面。In the preferred implementation mode provided by Embodiment 2 of the present invention, the switch control unit 602 included in the device shown in FIG. When operating and the touch screen is currently displaying a virtual keyboard interface, switch the virtual keyboard interface displayed on the touch screen to a handwriting input interface.
本发明实施例二提供的优选实施方式中,图6所示装置包括的触摸事件获取单元601,具体用于控制每次获取后续触摸事件的时间与上一次获取触摸事件的时间之间的间隔小于第一设定阈值。In the preferred implementation mode provided by Embodiment 2 of the present invention, the touch event acquiring unit 601 included in the device shown in FIG. The first sets the threshold.
本发明实施例二提供的优选实施方式中,图6所示装置包括的换控制单元602,具体用于在触摸屏被执行的操作为滑动操作时,确定满足触摸屏由当前显示的虚拟键盘界面切换至手写输入界面的切换条件。In the preferred implementation mode provided by Embodiment 2 of the present invention, the switching control unit 602 included in the device shown in FIG. 6 is specifically configured to determine that the touch screen is switched from the currently displayed virtual keyboard interface to The switching condition of the handwriting input interface.
图7示出了本发明实施例二提供的又一个输入界面的切换装置的结构示意图,如图7所示,该装置在图6所述装置的基础上,进一步包括:Fig. 7 shows a schematic structural diagram of another input interface switching device provided by Embodiment 2 of the present invention. As shown in Fig. 7, the device further includes:
位置信息存储单元603以及输入信息确定单元604;a location information storage unit 603 and an input information determination unit 604;
其中:in:
位置信息存储单元603,用于在触摸屏当前显示虚拟键盘界面、且在触摸事件获取单元601获取的后续触摸事件表征的触摸屏被执行的操作为滑动操作之前,根据触摸事件获取单元601获取的表征触摸屏被执行的操作为点击操作的触摸事件,确定点击操作在触摸屏上的点击位置并保存;The position information storage unit 603 is used to display the virtual keyboard interface on the touch screen and before the operation performed on the touch screen represented by the subsequent touch event acquired by the touch event acquisition unit 601 is a sliding operation, according to the characteristic touch screen acquired by the touch event acquisition unit 601 The executed operation is the touch event of the click operation, and the click position on the touch screen of the click operation is determined and saved;
输入信息确定单元604,用于在切换控制单元602将触摸屏显示的虚拟键盘界面切换为手写输入界面之后,指示触摸事件获取单元601获取用于表征触摸屏显示的手写输入界面被执行操作的触摸事件,并根据触摸事件获取单元601获取到的触摸事件表征的触摸屏显示的手写输入界面被执行的操作以及位置信息存储单元603保存的点击位置信息,确定被输入到触摸屏的信息;The input information determination unit 604 is configured to instruct the touch event acquisition unit 601 to obtain a touch event representing an operation performed on the handwriting input interface displayed on the touch screen after the switching control unit 602 switches the virtual keyboard interface displayed on the touch screen to the handwriting input interface, And according to the operation performed on the handwriting input interface displayed on the touch screen represented by the touch event acquired by the touch event acquisition unit 601 and the click position information saved by the position information storage unit 603, determine the information input to the touch screen;
相应地,触摸事件获取单元601,还用于根据输入信息确定单元604的指示,获取用于表征触摸屏显示的手写输入界面被执行操作的触摸事件。Correspondingly, the touch event obtaining unit 601 is further configured to obtain a touch event representing an operation performed on the handwriting input interface displayed on the touch screen according to the instruction of the input information determining unit 604 .
本发明实施例二提供的优选实施方式中,图7所示装置包括的触摸事件获取单元601,具体用于在第一次获取到用于表征触摸屏显示的手写输入界面被执行操作的触摸事件的时间,与切换前最后一次获取用于表征触摸屏被执行滑动操作的滑动事件的时间之间的间隔小于第二设定阈值;并除第一次获取到用于表征触摸屏显示的手写输入界面被执行操作的触摸事件之外,每次获取用于表征触摸屏显示的手写输入界面被执行操作的触摸事件的时间,与上一次获取用于表征触摸屏显示的手写输入界面被执行操作的触摸事件的时间之间的间隔小于第二设定阈值。In the preferred implementation mode provided by Embodiment 2 of the present invention, the touch event acquiring unit 601 included in the device shown in FIG. Time, the interval between the time before the last acquisition of the sliding event used to characterize the sliding operation of the touch screen before switching is less than the second set threshold; In addition to the touch event of the operation, each time the touch event used to represent the handwriting input interface displayed on the touch screen is obtained, and the last time the touch event used to represent the handwriting input interface displayed on the touch screen is operated. The interval between is smaller than the second set threshold.
本发明实施例二提供的优选实施方式中,图6所示装置包括的切换控制单元602,还用于在触摸屏当前显示手写输入界面,在触摸事件获取单元601获取的第一触摸事件表征的触摸屏被执行的第一操作为点击操作、以及获取触摸屏的后续触摸事件之前,将触摸屏显示的手写输入界面预切换为以大于设定值的透明度显示的虚拟键盘界面;In the preferred implementation mode provided by Embodiment 2 of the present invention, the switching control unit 602 included in the device shown in FIG. The first operation to be performed is a click operation, and before obtaining a subsequent touch event on the touch screen, pre-switching the handwriting input interface displayed on the touch screen to a virtual keyboard interface displayed with a transparency greater than the set value;
相应地,触摸事件获取单元601,具体用于获取切换控制单元控制预显示了虚拟键盘界面的触摸屏的后续触摸事件。Correspondingly, the touch event acquiring unit 601 is specifically configured to acquire a subsequent touch event that the switching control unit controls the touch screen that pre-displays the virtual keyboard interface.
本发明实施例二提供的优选实施方式中,图6所示装置包括的切换控制单元602,具体用于在触摸屏被执行的操作为:触摸屏预显示的虚拟键盘界面上的设定按键被点击设定次数时,确定满足触摸屏由当前显示的手写输入界面切换至虚拟键盘界面的切换条件。In the preferred implementation mode provided by Embodiment 2 of the present invention, the switching control unit 602 included in the device shown in FIG. When the number of times is fixed, it is determined that the switching condition for the touch screen to switch from the currently displayed handwriting input interface to the virtual keyboard interface is met.
本发明实施例二提供的优选实施方式中,图6所示装置包括的切换控制单元602,具体用于在触摸事件获取单元获取到的触摸事件表征的触摸屏被执行的操作满足触摸屏由当前显示的手写输入界面切换至虚拟键盘界面的切换条件时,将以大于设定值的透明度显示的虚拟键盘界面切换为非透明显示的虚拟键盘界面。In the preferred implementation mode provided by Embodiment 2 of the present invention, the switching control unit 602 included in the device shown in FIG. When the handwriting input interface is switched to the switching condition of the virtual keyboard interface, the virtual keyboard interface displayed with a transparency greater than the set value is switched to a non-transparent virtual keyboard interface.
应当理解,以上输入界面的切换装置包括的单元仅为根据该装置实现的功能进行的逻辑划分,实际应用中,可以进行上述单元的叠加或拆分。并且该实施例提供的输入界面的切换装置所实现的功能与上述实施例一提供的输入界面的切换方法流程一一对应,对于该装置所实现的更为详细的处理流程,在上述方法实施例一中已做详细描述,此处不再详细描述。It should be understood that the units included in the above input interface switching device are only logically divided according to the functions realized by the device, and in practical applications, the above units can be superimposed or split. And the functions realized by the input interface switching device provided in this embodiment correspond to the flow of the input interface switching method provided in the first embodiment above. For the more detailed processing flow realized by the device, in the above method embodiment 1 has been described in detail, and will not be described in detail here.
并且,本实施例二中的输入界面的切换装置还具有能够实现实施例一方案的功能模块,此处不再赘述。Moreover, the input interface switching device in the second embodiment also has a functional module capable of implementing the solution in the first embodiment, which will not be repeated here.
本发明实施例二提供的上述输入界面的切换装置可以位于触摸屏电子设备中,图8示出了,该输入界面的切换装置应用于手机中的结构示意图,如图8所示,该自动切换装置可以直接和手机的中间层连接,该中间层和手机的AP(应用处理器)连接、AP与CP(基带芯片加协处理器)连接。The above-mentioned input interface switching device provided by Embodiment 2 of the present invention may be located in a touch screen electronic device. FIG. 8 shows a schematic structural diagram of the input interface switching device applied to a mobile phone. As shown in FIG. 8, the automatic switching device It can be directly connected to the middle layer of the mobile phone, the middle layer is connected to the AP (application processor) of the mobile phone, and the AP is connected to the CP (baseband chip plus coprocessor).
通过本发明实施例提供的上述至少一个技术方案,获取触摸屏的第一触摸事件,在第一触摸事件表征的触摸屏被执行的第一操作为点击操作时,获取触摸屏的后续触摸事件,该后续触摸事件用于表征触摸屏在被执行第一操作后被执行的后续操作,直到获取到的后续触摸事件表征的触摸屏被执行的后续操作满足触摸屏由当前显示的第一输入界面切换至第二输入界面的切换条件时,将触摸屏显示的第一输入界面切换为第二输入界面。根据该技术方案实现的触摸屏输入界面的切换方式,与现有技术相比,一方面,避免了由于用户忘记或记错进行输入界面切换的快捷按键而导致的切换失败问题,另一方面,本发明实施例提供的切换方式将触摸屏的触摸事件作为确定触摸屏切换的依据,相对于现有技术减少了快捷按键区域对用户操作的限制,从而减少了触摸屏感应到的用户操作与用户实际操作不匹配而导致的切换失败问题,从而提高了触摸屏设备输入界面切换的成功率。Through at least one of the above technical solutions provided by the embodiments of the present invention, the first touch event of the touch screen is obtained, and when the first operation performed on the touch screen represented by the first touch event is a click operation, the subsequent touch event of the touch screen is obtained, and the subsequent touch The event is used to represent the subsequent operation performed on the touch screen after the first operation is performed, until the obtained subsequent touch event represents the subsequent operation performed on the touch screen to meet the requirement that the touch screen switch from the currently displayed first input interface to the second input interface When switching the conditions, the first input interface displayed on the touch screen is switched to the second input interface. Compared with the prior art, the switching method of the touch screen input interface realized according to this technical solution, on the one hand, avoids the problem of switching failure caused by the user forgetting or misremembering the shortcut key for switching the input interface; on the other hand, this The switching method provided by the embodiment of the invention uses the touch event of the touch screen as the basis for determining the switching of the touch screen, which reduces the restrictions on user operations in the shortcut key area compared with the prior art, thereby reducing the mismatch between the user operations sensed by the touch screen and the actual user operations As a result, the switching failure problem is caused, thereby improving the success rate of switching the input interface of the touch screen device.
尽管已描述了本申请的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请范围的所有变更和修改。While preferred embodiments of the present application have been described, additional changes and modifications to these embodiments can be made by those skilled in the art once the basic inventive concept is appreciated. Therefore, the appended claims are intended to be construed to cover the preferred embodiment and all changes and modifications which fall within the scope of the application.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201110216377.7ACN102902471B (en) | 2011-07-29 | 2011-07-29 | Input interface switching method and input interface switching device |
| PCT/CN2012/079241WO2013017039A1 (en) | 2011-07-29 | 2012-07-27 | Method and device for switching input interface |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201110216377.7ACN102902471B (en) | 2011-07-29 | 2011-07-29 | Input interface switching method and input interface switching device |
| Publication Number | Publication Date |
|---|---|
| CN102902471A CN102902471A (en) | 2013-01-30 |
| CN102902471Btrue CN102902471B (en) | 2015-07-01 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201110216377.7AActiveCN102902471B (en) | 2011-07-29 | 2011-07-29 | Input interface switching method and input interface switching device |
| Country | Link |
|---|---|
| CN (1) | CN102902471B (en) |
| WO (1) | WO2013017039A1 (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104182163B (en)* | 2013-05-27 | 2018-07-13 | 华为技术有限公司 | A kind of method and device of display dummy keyboard |
| CN104461272A (en)* | 2013-09-18 | 2015-03-25 | 华为技术有限公司 | Virtual keyboard processing method and device |
| CN103793132A (en)* | 2013-11-05 | 2014-05-14 | 刘雪英 | Desktop switching method and system for touch screen mobile terminals |
| CN105446629A (en)* | 2014-05-30 | 2016-03-30 | 阿里巴巴集团控股有限公司 | Content pane switching method, device and terminal |
| CN105991956A (en)* | 2015-01-27 | 2016-10-05 | 阿里巴巴集团控股有限公司 | Method and device for controlling video call interface, and display equipment |
| CN105183302B (en)* | 2015-08-27 | 2019-05-14 | 深圳市金立通信设备有限公司 | A kind of method and terminal of control application |
| JP2017174293A (en)* | 2016-03-25 | 2017-09-28 | 三菱自動車工業株式会社 | Touch panel device |
| CN105892915B (en)* | 2016-03-30 | 2020-02-21 | 联想(北京)有限公司 | Information processing method and electronic equipment |
| CN109173238B (en)* | 2018-07-27 | 2023-12-29 | 深圳闪电鸟网络科技有限公司 | Method for simultaneously executing double-input events and computer storage medium |
| CN109151583B (en)* | 2018-08-27 | 2021-03-23 | Tcl移动通信科技(宁波)有限公司 | Video interface control method, mobile terminal and storage medium |
| CN112214154B (en)* | 2019-07-12 | 2022-10-28 | 北京搜狗科技发展有限公司 | Interface processing method and device and interface processing device |
| CN111475079A (en)* | 2020-03-30 | 2020-07-31 | 维沃移动通信有限公司 | Object management method and electronic device |
| CN114201030A (en)* | 2020-09-16 | 2022-03-18 | 华为技术有限公司 | Device interaction method, electronic device and interaction system |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1991717A (en)* | 2005-12-28 | 2007-07-04 | 中兴通讯股份有限公司 | Virtual keyboard and hand-write synergic input system and realization method thereof |
| CN101118472A (en)* | 2006-07-31 | 2008-02-06 | 联想移动通信科技有限公司 | Device and method supporting hand-written input and keyboard input |
| CN102109954A (en)* | 2011-03-01 | 2011-06-29 | 华南理工大学 | Handwriting and soft keyboard hybrid input method for electronic equipment |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101699381B (en)* | 2003-04-14 | 2012-05-09 | 义隆电子股份有限公司 | Capacitive touchpad that combines buttons and handwriting |
| JP2005085242A (en)* | 2003-09-11 | 2005-03-31 | Ricoh Co Ltd | Display control method for display device with touch panel, program for causing computer to execute the method, and display device with touch panel |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1991717A (en)* | 2005-12-28 | 2007-07-04 | 中兴通讯股份有限公司 | Virtual keyboard and hand-write synergic input system and realization method thereof |
| CN101118472A (en)* | 2006-07-31 | 2008-02-06 | 联想移动通信科技有限公司 | Device and method supporting hand-written input and keyboard input |
| CN102109954A (en)* | 2011-03-01 | 2011-06-29 | 华南理工大学 | Handwriting and soft keyboard hybrid input method for electronic equipment |
| Publication number | Publication date |
|---|---|
| CN102902471A (en) | 2013-01-30 |
| WO2013017039A1 (en) | 2013-02-07 |
| Publication | Publication Date | Title |
|---|---|---|
| CN102902471B (en) | Input interface switching method and input interface switching device | |
| US10444989B2 (en) | Information processing apparatus, and input control method and program of information processing apparatus | |
| CN103353828B (en) | The method and device of function is write and is wiped in a kind of switching on the touchscreen | |
| US20140123049A1 (en) | Keyboard with gesture-redundant keys removed | |
| US20110296333A1 (en) | User interaction gestures with virtual keyboard | |
| CN103309596B (en) | The method of adjustment of a kind of entering method keyboard and mobile terminal thereof | |
| CN108121457A (en) | The method and apparatus that character input interface is provided | |
| CN101315593A (en) | Touch control type mobile operation device and touch control method applied to same | |
| US8081170B2 (en) | Object-selecting method using a touchpad of an electronic apparatus | |
| CN102566905B (en) | Portable device and method of operating the portable device | |
| CN114690887B (en) | A feedback method and related device | |
| CN114690889A (en) | Processing method of virtual keyboard and related equipment | |
| WO2022143198A1 (en) | Processing method for application interface, and related device | |
| CN104375756A (en) | Touch operation method and touch operation device | |
| US20150370473A1 (en) | Using a symbol recognition engine | |
| KR101447886B1 (en) | Method and apparatus for selecting contents through a touch-screen display | |
| CN102902470A (en) | Input interface switching method and input interface switching device | |
| CN106775192A (en) | Mobile terminal and its one-handed performance method | |
| CN104714739B (en) | Information processing method and electronic equipment | |
| WO2022143607A1 (en) | Application interface processing method and related device | |
| JP2015127953A (en) | Portable terminal, and control method and program therefor | |
| TWI488104B (en) | Electronic apparatus and method for controlling the same | |
| US9261973B2 (en) | Method and system for previewing characters based on finger position on keyboard | |
| CN104182160B (en) | Electronic device and method for controlling electronic device | |
| EP2811371B1 (en) | Method and system for previewing characters based on finger position on keyboard |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant |