WO2022194207A1 - Input method and apparatus, electronic device and readable storage medium - Google Patents

Input method and apparatus, electronic device and readable storage medium Download PDF

Info

Publication number
WO2022194207A1
WO2022194207A1 PCT/CN2022/081204 CN2022081204W WO2022194207A1 WO 2022194207 A1 WO2022194207 A1 WO 2022194207A1 CN 2022081204 W CN2022081204 W CN 2022081204W WO 2022194207 A1 WO2022194207 A1 WO 2022194207A1
Authority
WO
WIPO (PCT)
Prior art keywords
input
keyboard
content
user
preset
Prior art date
Application number
PCT/CN2022/081204
Other languages
French (fr)
Chinese (zh)
Inventor
侯宇涛
Original Assignee
维沃移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2022194207A1 publication Critical patent/WO2022194207A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Input From Keyboards Or The Like (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present application discloses an input method and apparatus, an electronic device and a readable storage medium, belonging to the technical field of communications. The method comprises: receiving a first input of a user on a first keyboard; insofar as the first input meets a first preset condition, determining a second keyboard matching first input content of the first input; and updating and displaying the first keyboard as the second keyboard.

Description

输入方法、装置、电子设备及可读存储介质Input method, apparatus, electronic device, and readable storage medium
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请主张在2021年03月18日在中国提交的中国专利申请号202110293079.1的优先权,其全部内容通过引用包含于此。This application claims priority to Chinese Patent Application No. 202110293079.1 filed in China on March 18, 2021, the entire contents of which are hereby incorporated by reference.
技术领域technical field
本申请实施例涉及通信技术领域,尤其涉及一种输入方法、装置、电子设备及可读存储介质。The embodiments of the present application relate to the field of communication technologies, and in particular, to an input method, an apparatus, an electronic device, and a readable storage medium.
背景技术Background technique
随着电子设备技术的发展,用户输入法进行输入的场景越来越频繁。With the development of electronic device technology, user input method input scenarios are more and more frequent.
在相关技术中,为了方便用户的输入,输入法应用提供了多种类型输入键盘,例如,数字输入键盘、符号输入键盘、拼音输入键盘或者手写输入键盘。当用户输入汉字时,可以切换到拼音输入键盘输入;当用户输入数字时,可以切换到数字输入键盘输入;当用户不知道想要输入的文字的拼音时,可以切换到手写输入键盘输入。In the related art, in order to facilitate user input, input method applications provide various types of input keyboards, for example, a numeric input keyboard, a symbol input keyboard, a pinyin input keyboard, or a handwriting input keyboard. When the user inputs Chinese characters, they can switch to the pinyin input keyboard for input; when the user inputs numbers, they can switch to the numeric input keyboard for input; when the user does not know the pinyin of the text they want to input, they can switch to the handwriting input keyboard for input.
然而,用户输入时通常需要频繁的在多种不同的输入键盘之间切换,输入过程较为繁琐。However, the user usually needs to frequently switch between a variety of different input keyboards when inputting, and the input process is cumbersome.
发明内容SUMMARY OF THE INVENTION
本申请实施例的目的是提供一种输入方法、装置、电子设备及可读存储介质,能够解决用户输入时,由于需要在多种输入键盘之间切换,导致输入过程繁琐的问题。The purpose of the embodiments of the present application is to provide an input method, apparatus, electronic device, and readable storage medium, which can solve the problem of cumbersome input process due to the need to switch between various input keyboards when a user inputs.
第一方面,本申请实施例提供一种输入方法,该方法包括:接收用户在第一键盘上的第一输入;在第一输入满足第一预设条件的情况下,确定与第一输入的第一输入内容匹配的第二键盘;将第一键盘更新显示为第二键盘。In a first aspect, an embodiment of the present application provides an input method, the method includes: receiving a first input from a user on a first keyboard; and in the case that the first input satisfies a first preset condition, determining the difference between the first input and the first input. The second keyboard that matches the first input content; the first keyboard is updated and displayed as the second keyboard.
第二方面,本申请实施例还提供了一种输入装置,该装置包括:接收模块、确定模块和更新模块;接收模块,用于接收用户在第一键盘上的第一输入;确定模块,用于在接收模块接收的第一输入满足第一预设条件的情况下,确定与第一输入的第一输入内容匹配的第二键盘;更新模块,用于将第一键盘更新显示为第二键盘。In a second aspect, an embodiment of the present application further provides an input device, the device includes: a receiving module, a determining module, and an updating module; a receiving module for receiving a first input from a user on a first keyboard; a determining module for using In the case that the first input received by the receiving module satisfies the first preset condition, determine the second keyboard that matches the first input content of the first input; the updating module is used to update the display of the first keyboard as the second keyboard .
第三方面,本申请实施例提供了一种电子设备,包括处理器、存储器及存储在该存储器上并可在该处理器上运行的程序或指令,该程序或指令被该处理器执行时实现如第一方面所述的输入方法的步骤。In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, and a program or instruction stored on the memory and executable on the processor, and the program or instruction is implemented when executed by the processor The steps of the input method as described in the first aspect.
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method according to the first aspect are implemented .
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In a fifth aspect, an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, and implement the first aspect the method described.
第六方面,本申请实施例提供了一种计算机程序产品,所述计算机程序产品被至少一个处理器执行以实现如第一方面所述的方法。In a sixth aspect, an embodiment of the present application provides a computer program product, where the computer program product is executed by at least one processor to implement the method according to the first aspect.
在本申请实施例中,通过接收用户在第一键盘上的第一输入,并在第一输入满足第一预设条件的情况下,确定与该第一输入的第一内容匹配的第二键盘,之后,将第一键盘更新显示为第二键盘,可以在判断出用户需要切换键盘时,帮助用户切换键盘,避免用户在输入过程中频繁切换键盘,减少了输入过程的操作步骤。In the embodiment of the present application, the second keyboard that matches the first content of the first input is determined by receiving the first input of the user on the first keyboard, and when the first input satisfies the first preset condition Then, the first keyboard is updated and displayed as the second keyboard, which can help the user to switch the keyboard when it is determined that the user needs to switch the keyboard, avoid the user switching the keyboard frequently during the input process, and reduce the operation steps of the input process.
附图说明Description of drawings
图1是本申请实施例提供的一种输入方法所应用的界面示意图之一;1 is one of schematic diagrams of interfaces to which an input method provided by an embodiment of the present application is applied;
图2是本申请实施例提供的一种输入方法流程示意图;2 is a schematic flowchart of an input method provided by an embodiment of the present application;
图3是本申请实施例提供的一种输入方法所应用的界面示意图之二;3 is a second schematic diagram of an interface to which an input method provided by an embodiment of the present application is applied;
图4是本申请实施例提供的一种输入装置结构示意图;4 is a schematic structural diagram of an input device provided by an embodiment of the present application;
图5是本申请实施例提供的一种电子设备的结构示意图。FIG. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换, 以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be implemented in sequences other than those illustrated or described herein, and that "first", "second" etc. The objects are usually of one type, and the number of objects is not limited. For example, the first object may be one or more than one. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the associated objects are in an "or" relationship.
本申请实施例提供的输入方法可以应用于用户使用输入法进行输入的场景中。The input method provided by the embodiments of the present application can be applied to a scenario where a user uses an input method to input.
示例性的,针对用户使用输入法进行输入的场景,在相关技术中,如图1所示,用户可以在聊天界面20中使用输入法与他人进行沟通交流,当用户输入的内容的类型较多时,用户需要在多个键盘之间频繁切换。例如,以用户输入的内容“我的邮箱地址是yz6008@xxx.com;联系电话是1770000****”为例,用户需要在拼音输入键盘、英文输入键盘和数字输入键盘之间来回切换,操作过程较为繁琐,非常影响用户的输入速度。Exemplarily, for the scenario where the user uses the input method to input, in the related art, as shown in FIG. 1 , the user can use the input method to communicate with others in the chat interface 20, when there are many types of content input by the user. , users need to frequently switch between multiple keyboards. For example, taking the content entered by the user "My email address is yz6008@xxx.com; the contact number is 1770000****" as an example, the user needs to switch back and forth between the Pinyin input keyboard, the English input keyboard and the numeric input keyboard, The operation process is cumbersome, which greatly affects the user's input speed.
针对这一问题,在本申请实施例提供的技术方案中,电子设备通过监听用户的输入行为,获取用户的输入内容和输入类型等信息,之后,根据上述信息预测用户将要输入的内容,并将当前键盘切换为与用户将要输入的内容对应的键盘,达到自动切换键盘的目的,避免用户频繁的切换键盘,减少用户的操作步骤。In response to this problem, in the technical solutions provided by the embodiments of the present application, the electronic device obtains information such as the user's input content and input type by monitoring the user's input behavior, and then predicts the content to be input by the user according to the above information, and calculates the input content of the user. The current keyboard is switched to the keyboard corresponding to the content to be input by the user, so as to achieve the purpose of automatically switching the keyboard, avoid frequent switching of the keyboard by the user, and reduce the operation steps of the user.
第一实施例:First embodiment:
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的输入方法进行详细地说明。The input method provided by the embodiments of the present application will be described in detail below through specific embodiments and application scenarios with reference to the accompanying drawings.
如图2所示,本申请实施例提供的一种输入方法,该方法可以包括下述步骤201至步骤203:As shown in FIG. 2, an input method provided by an embodiment of the present application may include the following steps 201 to 203:
步骤201、输入装置接收用户在第一键盘上的第一输入。Step 201: The input device receives a first input from a user on a first keyboard.
示例性地,上述第一输入可以为输入装置在监听用户在输入键盘上的输入行为时接收到的,该监听行为可以是周期性的,也可以是实时的。Exemplarily, the above-mentioned first input may be received by the input device when monitoring the user's input behavior on the input keyboard, and the monitoring behavior may be periodic or real-time.
示例性地,上述第一键盘可以为拼音输入键盘、英文输入键盘、符号输入键盘、数字输入键盘和手写输入键盘中的任一种。Exemplarily, the above-mentioned first keyboard may be any one of a pinyin input keyboard, an English input keyboard, a symbol input keyboard, a number input keyboard, and a handwriting input keyboard.
示例性地,上述第一输入可以包括以下至少一种:用户的输入内容、用户输入内容的类型、用户在上述第一键盘上的其他操作。具体地,上述其他操作可以包括:用户对第一键盘上功能按键的输入,或者,用户在上述第一键盘上进行输入后,暂停输入的行为等。Exemplarily, the above-mentioned first input may include at least one of the following: user's input content, the type of user's input content, and other operations performed by the user on the above-mentioned first keyboard. Specifically, the above-mentioned other operations may include: the user's input of the function keys on the first keyboard, or the user's behavior of suspending the input after the user's input on the above-mentioned first keyboard, and the like.
示例性地,上述第一输入可以为语音输入或者触控输入等,本申请实施例对此不做限定,均属于本申请实施例的保护范围。Exemplarily, the above-mentioned first input may be voice input or touch input, etc., which is not limited in this embodiment of the present application, and all belong to the protection scope of the embodiment of the present application.
步骤202、输入装置在上述第一输入满足第一预设条件的情况下,确定与该第一输入的第一输入内容匹配的第二键盘。Step 202: The input device determines a second keyboard that matches the first input content of the first input when the first input satisfies the first preset condition.
示例性地,上述第一预设条件可以包括以下至少一项:上述第一输入的输入内容与预设内容相匹配,上述输入内容中连续输入相同类型的输入内容的输入次数达到预设输入次数,所述第一输入的最后一次输入后的预设时间内未接收到新的输入。Exemplarily, the first preset condition may include at least one of the following: the input content of the first input matches the preset content, and the number of consecutive inputs of the same type of input content in the input content reaches the preset number of times of input. , no new input is received within a preset time after the last input of the first input.
需要说明的是,上述第一预设条件包括但不限于上述条件,本申请实施例中,输入装置根据用户的输入行为,判断出用户想要切换的键盘,本领域技术人员可以根据实际情况制定任意条件或切换规则。It should be noted that the above-mentioned first preset conditions include but are not limited to the above-mentioned conditions. In the embodiment of the present application, the input device determines the keyboard that the user wants to switch according to the user's input behavior, and those skilled in the art can formulate the keyboard according to the actual situation. Any condition or toggle rule.
示例性地,输入装置在检测到用户的第一输入满足第一预设条件后,判断出用户想要切换键盘,并确定与该第一输入的第一输入内容对应的第二键盘,一种第一输入对应一种第二键盘。即用户的第一输入,满足输入装置切换键盘的条件。Exemplarily, after detecting that the user's first input satisfies the first preset condition, the input device determines that the user wants to switch keyboards, and determines a second keyboard corresponding to the first input content of the first input. The first input corresponds to a second keyboard. That is, the user's first input satisfies the condition for the input device to switch the keyboard.
示例性地,与第一键盘相似,上述第二键盘也可为拼音输入键盘、英文输入键盘、符号输入键盘、数字输入键盘和手写输入键盘中的任一种:Exemplarily, similar to the first keyboard, the above-mentioned second keyboard can also be any one of a pinyin input keyboard, an English input keyboard, a symbol input keyboard, a numeric input keyboard and a handwriting input keyboard:
步骤203、输入装置将上述第一键盘更新显示为第二键盘。Step 203: The input device updates and displays the first keyboard as the second keyboard.
示例性地,当输入装置根据用户的第一输入,确定出与该第一输入对应的第二键盘后,输入装置将上述第一键盘更新显示为第二键盘。Exemplarily, after the input device determines the second keyboard corresponding to the first input according to the first input of the user, the input device updates and displays the first keyboard as the second keyboard.
需要说明的是,输入装置在将第一键盘更新显示为第二键盘时,并不限定第一键盘的类型,但为了避免输入装置更新键盘可能引起的用户输入中断的情况发生,上述第一键盘和第二键盘可以为不同的键盘。It should be noted that when the input device updates and displays the first keyboard as the second keyboard, the type of the first keyboard is not limited. and the second keyboard can be different keyboards.
举例说明,结合图2,如图3中(A)所示,当用户的输入内容为“联系电话是1770000****”且用户通过第一键盘22a输入完“联系电话是”之后,输入装置判断出用户将要输入电话号码,且电话号码为数字格式,此时,如图3中(B)所示,输入装置将第一键盘22a更新显示为数字输入键盘22b,方便用户输入电话号码。For example, with reference to FIG. 2, as shown in (A) of FIG. 3, when the user's input content is "the contact number is 1770000****" and the user completes the input of "the contact number is" through the first keyboard 22a, input The device determines that the user is going to input a phone number, and the phone number is in numeric format, and at this time, as shown in FIG.
如此,通过接收用户在第一键盘上的第一输入,并在用户的第一输入满足第一预设条件的情况下,确定与该第一输入的第一内容匹配的第二键盘,之后,将第一键盘更新显示 为第二键盘,可以在判断出用户需要切换键盘时,帮助用户切换键盘,避免用户在输入过程中频繁切换键盘,减少了输入过程的操作步骤。In this way, by receiving the user's first input on the first keyboard, and when the user's first input satisfies the first preset condition, the second keyboard that matches the first content of the first input is determined, and then, The first keyboard is updated and displayed as the second keyboard, when it is determined that the user needs to switch the keyboard, the user can switch the keyboard, avoid the user frequently switching the keyboard during the input process, and reduce the operation steps of the input process.
可选地,在本申请实施例中,当上述第一预测条件为上述第一输入的输入内容与预设内容相匹配时,输入装置可以通过用户输入的内容,预测用户将要输入的内容,进而将该预测输入内容对应的键盘确定为第二键盘。Optionally, in the embodiment of the present application, when the above-mentioned first prediction condition is that the input content of the above-mentioned first input matches the preset content, the input device can predict the content to be input by the user through the content input by the user, and then The keyboard corresponding to the predicted input content is determined as the second keyboard.
示例性地,上述步骤202,可以包括以下步骤202a1和步骤202a2:Exemplarily, the above step 202 may include the following steps 202a1 and 202a2:
步骤202a1、输入装置基于预设方法,预测用户在第一输入后的第二输入内容。Step 202a1, the input device predicts the second input content of the user after the first input based on a preset method.
其中,上述预设方法包括以下至少一项:第一输入内容与正则表达式是否匹配,第一输入内容与用户输入的高频词汇是否匹配。The above preset method includes at least one of the following: whether the first input content matches a regular expression, and whether the first input content matches a high-frequency vocabulary input by the user.
示例性地,输入装置可以在第一输入内容与正则表达式相匹配的情况下,基于与第一输入内容相匹配的表达式,预测用户的第二输入内容,并确定第二键盘。或者,输入装置也可以将第一输入内容与用户在日常使用输入法时的输入内容进行比较,根据比较结果预测用户将要输入的内容,进而确定第二键盘。Exemplarily, when the first input content matches the regular expression, the input device may predict the user's second input content based on the expression matching the first input content, and determine the second keyboard. Alternatively, the input device may also compare the first input content with the input content when the user uses the input method in daily life, predict the content to be input by the user according to the comparison result, and then determine the second keyboard.
步骤202a2、输入装置将与上述第二输入内容对应的键盘确定为第二键盘。Step 202a2: The input device determines the keyboard corresponding to the second input content as the second keyboard.
示例性地,上述第二输入内容可以根据用户的输入习惯确定,也可以根据其他用户输入内容的大数据分析结果确定。例如,当用户的输入内容为“我的联系电话是”时(即上述第一输入内容),输入装置根据该输入内容,预测用户想要输入数字格式的内容(即上述第二输入内容),之后,输入装置将第一键盘更新显示为数字键盘,以方便用户输入。Exemplarily, the above-mentioned second input content may be determined according to the user's input habit, or may be determined according to the big data analysis result of the input content of other users. For example, when the user's input content is "my contact number is" (that is, the above-mentioned first input content), the input device predicts the content that the user wants to input in digital format according to the input content (that is, the above-mentioned second input content), After that, the input device updates and displays the first keyboard as a numeric keyboard to facilitate user input.
示例性地,输入装置可以优先在本地通过正则表达式对用户输入的内容进行匹配,若匹配失败,则可以将用户输入的内容与服务器上的数据进行匹配。匹配成功后,将上述第一键盘更新显示为与上述第二输入内容对应的第二键盘。Exemplarily, the input device may preferentially match the content input by the user locally through a regular expression, and if the matching fails, the content input by the user may be matched with the data on the server. After successful matching, the first keyboard is updated and displayed as a second keyboard corresponding to the second input content.
如此,输入装置可以根据用户当前输入的内容,对用户将要输入的内容机进行预测,之后,根据预测内容确定第二键盘。In this way, the input device can predict the content to be input by the user according to the content currently input by the user, and then determine the second keyboard according to the predicted content.
可选地,在本申请实施例中,在用户输入的内容中包括连续输入相同类型的输入内容的输入次数达到预设输入次数的情况下,也可以触发输入装置切换键盘。Optionally, in this embodiment of the present application, in the case that the input times of the user inputting the same type of input content continuously reaches the preset input times, the input device may also be triggered to switch the keyboard.
示例性地,上述第一输入可以包括至少一次连续的触控输入;上述第一输入内容可以包括:该至少一次连续的触控输入所输入的预设次数的目标输入内容。Exemplarily, the above-mentioned first input may include at least one continuous touch input; the above-mentioned first input content may include: a preset number of target input contents input by the at least one continuous touch input.
示例性地,上述步骤202,可以包括以下步骤202b:Exemplarily, the above step 202 may include the following step 202b:
步骤202b、输入装置将与上述目标输入内容对应的键盘确定为第二键盘。Step 202b, the input device determines the keyboard corresponding to the above target input content as the second keyboard.
示例性地,上述目标内容可以包括连续点击预设次数的退格键(backspace),或者,还可以包括连续点击预设次数的数字按键。Exemplarily, the above-mentioned target content may include continuously clicking a backspace key for a preset number of times, or may further include clicking a number key continuously for a preset number of times.
示例性地,在上述目标内容包括连续点击预设次数的退格键的情况下,上述步骤202可以包括以下步骤202c1:Exemplarily, in the case that the above-mentioned target content includes consecutively clicking the backspace key for a preset number of times, the above-mentioned step 202 may include the following step 202c1:
步骤202c1、在上述第一输入包括连续点击预设次数的退格键的情况下,将手写输入键盘确定为第二键盘。Step 202c1: In the case that the above-mentioned first input includes continuously clicking the backspace key for a preset number of times, determine the handwriting input keyboard as the second keyboard.
在一种示例中,当用户使用第一键盘进行输入时,若用户连续进行了输入操作但并未选择任何候选项、且用户在上述输入操作后出现连续点击多次退格键的情况,则表示用户可能不清楚所要输入文字的拼音,采用第一输入键盘无法成功输入该文字,此时,输入装置可以将上述第一键盘切换为手写输入键盘。具体地,上述第一输入键盘可以为拼音输入键盘、五笔输入键盘或者其他语言的输入键盘。In an example, when the user uses the first keyboard to input, if the user continuously performs input operations but does not select any candidate, and the user continuously clicks the backspace key for multiple times after the above input operation, then It means that the user may not know the pinyin of the text to be input, and the text cannot be successfully input by using the first input keyboard. In this case, the input device can switch the above-mentioned first keyboard to a handwriting input keyboard. Specifically, the above-mentioned first input keyboard may be a Pinyin input keyboard, a Wubi input keyboard, or an input keyboard in other languages.
示例性地,在上述目标内容包括连续点击预设次数的数字按键的情况下,上述步骤202可以包括以下步骤202c2:Exemplarily, in the case that the above-mentioned target content includes consecutively clicking a number button for a preset number of times, the above-mentioned step 202 may include the following step 202c2:
步骤202c2、在上述第一键盘为组合键盘、且上述第一输入包括连续输入预设次数的数字的情况下,输入装置将数字输入键盘确定为第二键盘。Step 202c2: In the case that the first keyboard is a combination keyboard, and the first input includes consecutively inputting numbers for a preset number of times, the input device determines the number input keyboard as the second keyboard.
其中,上述组合键盘包括以下任一项:数字按键和英文按键,数字按键和拼音按键。Wherein, the above-mentioned combined keyboard includes any one of the following: numeric keys and English keys, numeric keys and pinyin keys.
示例性地,上述步骤202c1和步骤202c2中的预设次数可以相同也可以不同。Exemplarily, the preset times in the above steps 202c1 and 202c2 may be the same or different.
在另一种示例中,当用户使用第一键盘进行输入时,若用户连续输入了多个数字,表示用户可能正在输入身份证号码或者手机号码,用户在第一键盘上输入数字不太方便,此时,输入装置将上述第一键盘切换为数字输入键盘,方便用户输入。具体地,上述第一键盘可以为组合键盘,由于组合键盘键位较多,每个键的响应区域较小,用户在组合键盘上进行数字输入时,并不十分方便,很容易出现输入错误的情况。In another example, when the user uses the first keyboard for input, if the user continuously inputs multiple numbers, it means that the user may be inputting an ID number or a mobile phone number, and it is inconvenient for the user to input numbers on the first keyboard. At this time, the input device switches the above-mentioned first keyboard to a numeric input keyboard, which is convenient for the user to input. Specifically, the above-mentioned first keyboard can be a combination keyboard. Since the combination keyboard has many key positions and the response area of each key is small, it is not very convenient for the user to input numbers on the combination keyboard, and it is easy to make input errors. Happening.
如此,输入装置可以根据用户在第一键盘上的输入行为,确定出与该输入行为对应的第二键盘,并进行智能切换,方便用户输入。In this way, the input device can determine the second keyboard corresponding to the input behavior according to the user's input behavior on the first keyboard, and perform intelligent switching to facilitate user input.
可选地,在本申请实施例中,输入装置为了方便用户输入,在将第一键盘切换到第二 键盘后,还可以在满足预定条件的情况下,将第二键盘切换回第一键盘。Optionally, in this embodiment of the present application, in order to facilitate user input, after switching the first keyboard to the second keyboard, the input device can also switch the second keyboard back to the first keyboard under the condition that a predetermined condition is satisfied.
示例性地,上述步骤203之后,本申请实施例提供的输入方法,还可以包括以下步骤204和步骤205:Exemplarily, after the above step 203, the input method provided by this embodiment of the present application may further include the following steps 204 and 205:
步骤204、输入装置接收用户在上述第二键盘上的第二输入。Step 204: The input device receives the second input from the user on the second keyboard.
步骤205、输入装置在上述第二输入满足第二预设条件的情况下,将上述第二键盘更新显示为第一键盘。Step 205: The input device updates and displays the second keyboard as the first keyboard when the second input satisfies the second preset condition.
其中,上述第二预设条件包括以下任一项:上述第二输入的最后一次触控输入后的预设时间内未接收到新的触控输入,在上述第二输入包括至少一次触控输入的情况下,上述第二输入的输入内容与预设内容相匹配。Wherein, the second preset condition includes any one of the following: no new touch input is received within a preset time after the last touch input of the second input, and the second input includes at least one touch input , the input content of the second input matches the preset content.
示例性地,对于中文输入来说,由于用户多数情况下是在拼音输入键盘上进行输入,因此,当输入装置在第二输入结束后的预设时间内为接收到新的输入,或者,上述第二输入的输入内容与预设内容相匹配时,则判断用户已经结束了在第二键盘上的输入,输入装置可以将上述第二键盘更新显示为第一键盘。Exemplarily, for Chinese input, since the user inputs on the Pinyin input keyboard in most cases, when the input device receives a new input within a preset time after the second input is completed, or, the above-mentioned When the input content of the second input matches the preset content, it is determined that the user has finished inputting on the second keyboard, and the input device can update the second keyboard to display the first keyboard.
例如,当输入装置预测用户将要输入手机号码时,将第一键盘切换为数字输入键盘,之后,当输入装置检测到用户输入完成手机号码时,可以将数字输入键盘切换为第一输入键盘。For example, when the input device predicts that the user will input a mobile phone number, the first keyboard is switched to a numeric input keyboard, and then, when the input device detects that the user has completed inputting the mobile phone number, the numeric input keyboard can be switched to the first input keyboard.
如此,输入装置可以在切换键盘、且用户完成在切换后的键盘上的输入后,将键盘切换为原来的键盘,减少了用户的操作步骤。In this way, the input device can switch the keyboard to the original keyboard after switching the keyboard and after the user completes the input on the switched keyboard, thereby reducing the operation steps of the user.
本申请实施例提供的输入方法,通过接收用户在第一键盘上的第一输入,并在用户的第一输入满足第一预设条件的情况下,确定与该第一输入的第一内容匹配的第二键盘,之后,将第一键盘更新显示为第二键盘,可以在判断出用户需要切换键盘时,帮助用户切换键盘。之后,在满足第二预设条件的情况下,输入装置还可以从第二键盘切换至第一键盘,避免用户在输入过程中频繁切换键盘,减少了输入过程的操作步骤。In the input method provided by the embodiment of the present application, by receiving the first input of the user on the first keyboard, and in the case that the first input of the user satisfies the first preset condition, it is determined that the first content of the first input matches the first content After that, the first keyboard is updated and displayed as the second keyboard, which can help the user to switch the keyboard when it is determined that the user needs to switch the keyboard. Afterwards, under the condition that the second preset condition is satisfied, the input device can also be switched from the second keyboard to the first keyboard, which avoids the user from frequently switching keyboards during the input process, and reduces the operation steps of the input process.
需要说明的是,本申请实施例提供的输入方法,执行主体可以为输入装置,或者该输入装置中的用于执行输入方法的控制模块。本申请实施例中以输入装置执行输入方法为例,说明本申请实施例提供的输入装置。It should be noted that, in the input method provided by the embodiments of the present application, the execution subject may be an input device, or a control module in the input device for executing the input method. In the embodiment of the present application, the input device provided by the embodiment of the present application is described by taking the input device executing the input method as an example.
需要说明的是,本申请实施例中,上述各个方法附图所示的。输入方法均是以结合本 申请实施例中的一个附图为例示例性的说明的。具体实现时,上述各个方法附图所示的输入方法还可以结合上述实施例中示意的其它可以结合的任意附图实现,此处不再赘述。It should be noted that, in the embodiments of the present application, the above methods are shown in the accompanying drawings. The input methods are all illustratively described with reference to a figure in the embodiment of the present application as an example. During specific implementation, the input methods shown in the drawings of the above methods can also be implemented in combination with any other drawings shown in the above embodiments that can be combined, and details are not described herein again.
图4为实现本申请实施例提供的一种输入装置的可能的结构示意图,如图4所示,输入装置600包括:接收模块601、确定模块602和更新模块603;接收模块601,用于接收用户在第一键盘上的第一输入;确定模块602,用于在接收模块601接收的第一输入满足第一预设条件的情况下,确定与第一输入的第一输入内容匹配的第二键盘;更新模块603,用于将第一键盘更新显示为第二键盘。FIG. 4 is a schematic diagram of a possible structure for implementing an input device provided by an embodiment of the present application. As shown in FIG. 4 , the input device 600 includes: a receiving module 601, a determining module 602, and an updating module 603; the receiving module 601 is used for receiving The first input by the user on the first keyboard; the determining module 602 is configured to determine a second input that matches the first input content of the first input when the first input received by the receiving module 601 satisfies the first preset condition keyboard; the updating module 603 is used for updating and displaying the first keyboard as the second keyboard.
可选地,确定模块602,具体用于基于预设方法,预测用户在第一输入后的第二输入内容;确定模块602,具体还用于将与第二输入内容对应的键盘确定为第二键盘;其中,预设方法包括以下至少一项:第一输入内容与正则表达式是否匹配,第一输入内容与用户输入的高频词汇是否匹配。Optionally, the determining module 602 is specifically configured to predict the second input content of the user after the first input based on a preset method; the determining module 602 is specifically configured to determine the keyboard corresponding to the second input content as the second input content. A keyboard; wherein the preset method includes at least one of the following: whether the first input content matches a regular expression, and whether the first input content matches a high-frequency vocabulary input by the user.
可选地,第一输入包括至少一次连续的触控输入;第一输入内容包括:至少一次连续的触控输入所输入的预设次数的目标输入内容;确定模块602,具体用于将与目标输入内容对应的键盘确定为第二键盘。Optionally, the first input includes at least one continuous touch input; the first input content includes: a preset number of target input contents input by at least one continuous touch input; the determining module 602 is specifically configured to match the target input with the target input. The keyboard corresponding to the input content is determined as the second keyboard.
可选地,确定模块602,具体用于在第一输入包括连续点击预设次数的退格键的情况下,将手写输入键盘确定为第二键盘。Optionally, the determining module 602 is specifically configured to determine the handwriting input keyboard as the second keyboard when the first input includes continuously clicking the backspace key for a preset number of times.
可选地,确定模块602,具体用于在第一键盘为组合键盘、且第一输入包括连续输入预设次数的数字的情况下,将数字输入键盘确定为第二键盘;其中,组合键盘为以下任一项:数字按键和英文按键,数字按键和拼音按键。Optionally, the determination module 602 is specifically configured to determine the number input keyboard as the second keyboard when the first keyboard is a combination keyboard and the first input includes numbers that are continuously input for a preset number of times; wherein the combination keyboard is Any of the following: Numeric keys and English keys, Numeric keys and Pinyin keys.
可选地,电子设备600,还包括:输入模块604;输入模块604,用于接收用户在第二键盘上的第二输入;更新模块603,还用于在输入模块604接收的第二输入满足第二预设条件的情况下,将第二键盘更新显示为第一键盘;其中,第二预设条件包括以下任一项:第二输入的最后一次触控输入后的预设时间内未接收到新的触控输入,在所述第二输入包括至少一次触控输入的情况下,第二输入的输入内容与预设内容相匹配。Optionally, the electronic device 600 further includes: an input module 604; the input module 604 is configured to receive the second input from the user on the second keyboard; the update module 603 is further configured to satisfy the second input received by the input module 604. In the case of the second preset condition, the second keyboard is updated and displayed as the first keyboard; wherein, the second preset condition includes any one of the following: the second input is not received within the preset time after the last touch input To a new touch input, if the second input includes at least one touch input, the input content of the second input matches the preset content.
本申请实施例中的输入装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计 算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The input device in this embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The apparatus may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). assistant, PDA), etc., non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
本申请实施例中的输入装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为iOS操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The input device in this embodiment of the present application may be a device with an operating system. The operating system may be an Android (Android) operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
本申请实施例提供的输入装置能够实现图1至图3的方法实施例中输入装置实现的各个过程,为避免重复,这里不再赘述。The input device provided in the embodiment of the present application can implement each process implemented by the input device in the method embodiments of FIG. 1 to FIG. 3 , and to avoid repetition, details are not described here.
本实施例中各种实现方式具有的有益效果具体可以参见上述方法实施例中相应实现方式所具有的有益效果,为避免重复,此处不再赘述。For the beneficial effects of the various implementations in this embodiment, reference may be made to the beneficial effects of the corresponding implementations in the foregoing method embodiments, which are not repeated here to avoid repetition.
本申请实施例提供的输入装置,通过接收用户在第一键盘上的第一输入,并在用户的第一输入满足第一预设条件的情况下,确定与该第一输入的第一内容匹配的第二键盘,之后,将第一键盘更新显示为第二键盘,可以在判断出用户需要切换键盘时,帮助用户切换键盘。之后,在满足第二预设条件的情况下,输入装置还可以从第二键盘切换至第一键盘,避免用户在输入过程中频繁切换键盘,减少了输入过程的操作步骤。The input device provided by the embodiment of the present application determines that the first content of the first input matches the first content of the first input by receiving the first input of the user on the first keyboard, and when the first input of the user satisfies the first preset condition After that, the first keyboard is updated and displayed as the second keyboard, which can help the user to switch the keyboard when it is determined that the user needs to switch the keyboard. Afterwards, under the condition that the second preset condition is satisfied, the input device can also be switched from the second keyboard to the first keyboard, which avoids the user from frequently switching keyboards during the input process, and reduces the operation steps of the input process.
可选的,本申请实施例还提供一种电子设备,包括处理器110,存储器109,存储在存储器109上并可在所述处理器110上运行的程序或指令,该程序或指令被处理器110执行时实现上述输入方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, an embodiment of the present application further provides an electronic device, including a processor 110, a memory 109, a program or instruction stored in the memory 109 and executable on the processor 110, the program or instruction being processed by the processor When 110 is executed, each process of the above-mentioned input method embodiment is implemented, and the same technical effect can be achieved. In order to avoid repetition, details are not repeated here.
需要注意的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
图5为实现本申请各个实施例的一种电子设备的硬件结构示意图。FIG. 5 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present application.
该电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、以及处理器110等部件。The electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110, etc. part.
本领域技术人员可以理解,电子设备100还可以包括给各个部件供电的电源(比如电 池),电源可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图5中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power management through the power management system. consumption management and other functions. The structure of the electronic device shown in FIG. 5 does not constitute a limitation on the electronic device. The electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .
其中,输入单元104,用于接收用户在第一键盘上的第一输入;处理器110,用于在输入单元104接收的第一输入满足第一预设条件的情况下,确定与第一输入的第一输入内容匹配的第二键盘;显示单元106,用于将第一键盘更新显示为第二键盘。Wherein, the input unit 104 is used for receiving the first input of the user on the first keyboard; the processor 110 is used for determining the difference between the first input and the first input when the first input received by the input unit 104 satisfies the first preset condition. The second keyboard that matches the first input content of ; the display unit 106 is configured to update and display the first keyboard as the second keyboard.
如此,通过接收用户在第一键盘上的第一输入,并在用户的第一输入满足第一预设条件的情况下,确定与该第一输入的第一内容匹配的第二键盘,之后,将第一键盘更新显示为第二键盘,可以在判断出用户需要切换键盘时,帮助用户切换键盘,避免用户在输入过程中频繁切换键盘,减少了输入过程的操作步骤。In this way, by receiving the user's first input on the first keyboard, and when the user's first input satisfies the first preset condition, the second keyboard that matches the first content of the first input is determined, and then, The first keyboard is updated and displayed as the second keyboard, when it is determined that the user needs to switch the keyboard, the user can switch the keyboard, avoid the user frequently switching the keyboard during the input process, and reduce the operation steps of the input process.
可选地,处理器110,具体用于基于预设方法,预测用户在第一输入后的第二输入内容;处理器110,具体还用于将与第二输入内容对应的键盘确定为第二键盘;其中,预设方法包括以下至少一项:第一输入内容与正则表达式是否匹配,第一输入内容与用户输入的高频词汇是否匹配。Optionally, the processor 110 is specifically configured to predict the second input content of the user after the first input based on a preset method; the processor 110 is specifically configured to determine the keyboard corresponding to the second input content as the second input content A keyboard; wherein the preset method includes at least one of the following: whether the first input content matches a regular expression, and whether the first input content matches a high-frequency vocabulary input by the user.
如此,输入装置可以根据用户当前输入的内容,对用户将要输入的内容机进行预测,之后,根据预测内容确定第二键盘。In this way, the input device can predict the content to be input by the user according to the content currently input by the user, and then determine the second keyboard according to the predicted content.
可选地,第一输入包括至少一次连续的触控输入;第一输入内容包括:至少一次连续的触控输入所输入的预设次数的目标输入内容;处理器110,具体用于将与目标输入内容对应的键盘确定为第二键盘。Optionally, the first input includes at least one continuous touch input; the first input content includes: target input content input for a preset number of times by at least one continuous touch input; the processor 110 is specifically configured to connect with the target The keyboard corresponding to the input content is determined as the second keyboard.
可选地,处理器110,具体用于在第一输入包括连续点击预设次数的退格键的情况下,将手写输入键盘确定为第二键盘。Optionally, the processor 110 is specifically configured to determine the handwriting input keyboard as the second keyboard when the first input includes continuously clicking the backspace key for a preset number of times.
可选地,处理器110,具体用于在第一键盘为组合键盘、且第一输入包括连续输入预设次数的数字的情况下,将数字输入键盘确定为第二键盘;其中,组合键盘为以下任一项:数字按键和英文按键,数字按键和拼音按键。Optionally, the processor 110 is specifically configured to determine the number input keyboard as the second keyboard when the first keyboard is a combination keyboard and the first input includes numbers that are continuously input for a preset number of times; wherein the combination keyboard is: Any of the following: Numeric keys and English keys, Numeric keys and Pinyin keys.
如此,输入装置可以根据用户在第一键盘上的输入行为,确定出与该输入行为对应的第二键盘,并进行智能切换,方便用户输入。In this way, the input device can determine the second keyboard corresponding to the input behavior according to the user's input behavior on the first keyboard, and perform intelligent switching to facilitate user input.
可选地,输入单元104,用于接收用户在第二键盘上的第二输入;显示单元106,还用于在输入单元104接收的第二输入满足第二预设条件的情况下,将第二键盘更新显示为第一键盘;其中,第二预设条件包括以下任一项:第二输入的最后一次触控输入后的预设时间内未接收到新的触控输入,在第二输入包括至少一次触控输入的情况下,第二输入的输入内容与预设内容相匹配。Optionally, the input unit 104 is configured to receive the user's second input on the second keyboard; the display unit 106 is further configured to display the first input when the second input received by the input unit 104 satisfies the second preset condition. The second keyboard is updated and displayed as the first keyboard; wherein, the second preset condition includes any one of the following: no new touch input is received within the preset time after the last touch input of the second input, and the second input In the case of including at least one touch input, the input content of the second input matches the preset content.
如此,输入装置可以在切换键盘、且用户完成在切换后的键盘上的输入后,将键盘切换为原来的键盘,减少了用户的操作步骤。In this way, the input device can switch the keyboard to the original keyboard after switching the keyboard and after the user completes the input on the switched keyboard, thereby reducing the operation steps of the user.
本申请实施例提供的电子设备,通过接收用户在第一键盘上的第一输入,并在用户的第一输入满足第一预设条件的情况下,确定与该第一输入的第一内容匹配的第二键盘,之后,将第一键盘更新显示为第二键盘,可以在判断出用户需要切换键盘时,帮助用户切换键盘。之后,在满足第二预设条件的情况下,输入装置还可以从第二键盘切换至第一键盘,避免用户在输入过程中频繁切换键盘,减少了输入过程的操作步骤。The electronic device provided by the embodiment of the present application determines that the first content of the first input matches the first input of the user by receiving the first input of the user on the first keyboard, and when the first input of the user satisfies the first preset condition After that, the first keyboard is updated and displayed as the second keyboard, which can help the user to switch the keyboard when it is determined that the user needs to switch the keyboard. Afterwards, under the condition that the second preset condition is satisfied, the input device can also be switched from the second keyboard to the first keyboard, which avoids the user from frequently switching keyboards during the input process, and reduces the operation steps of the input process.
应理解的是,本申请实施例中,输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元106可包括显示面板1061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板1061。用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器109可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。It should be understood that, in this embodiment of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042. Such as camera) to obtain still pictures or video image data for processing. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and other input devices 1072 . The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts, a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which are not described herein again. Memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems. The processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and an application program, and the like, and the modem processor mainly processes wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 110 .
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述输入方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, each process of the foregoing input method embodiment can be implemented, and can achieve the same The technical effect, in order to avoid repetition, will not be repeated here.
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质, 包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the foregoing embodiments. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述输入方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each of the foregoing input method embodiments process, and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in the reverse order depending on the functions involved. To perform functions, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to some examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台电子设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make an electronic device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in the various embodiments of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of this application, without departing from the scope of protection of the purpose of this application and the claims, many forms can be made, which all fall within the protection of this application.

Claims (17)

  1. 一种输入方法,所述方法包括:An input method comprising:
    接收用户在第一键盘上的第一输入;receiving the first input from the user on the first keyboard;
    在所述第一输入满足第一预设条件的情况下,确定与所述第一输入的第一输入内容匹配的第二键盘;In the case that the first input satisfies a first preset condition, determining a second keyboard that matches the first input content of the first input;
    将所述第一键盘更新显示为第二键盘。The first keyboard is updated and displayed as a second keyboard.
  2. 根据权利要求1所述的方法,其中,所述确定与所述第一输入的第一输入内容匹配的第二键盘,包括:The method of claim 1, wherein the determining a second keyboard that matches the first input content of the first input comprises:
    基于预设方法,预测所述用户在所述第一输入后的第二输入内容;based on a preset method, predicting the second input content of the user after the first input;
    将与所述第二输入内容对应的键盘确定为第二键盘;determining the keyboard corresponding to the second input content as the second keyboard;
    其中,所述预设方法包括以下至少一项:所述第一输入内容与正则表达式是否匹配,所述第一输入内容与用户输入的高频词汇是否匹配。The preset method includes at least one of the following: whether the first input content matches a regular expression, and whether the first input content matches a high-frequency vocabulary input by the user.
  3. 根据权利要求1所述的方法,其中,所述第一输入包括至少一次连续的触控输入;所述第一输入内容包括:所述至少一次连续的触控输入所输入的预设次数的目标输入内容;The method according to claim 1, wherein the first input comprises at least one continuous touch input; the first input content comprises: a preset number of targets input by the at least one continuous touch input input content;
    所述确定与所述第一输入的第一输入内容匹配的第二键盘,包括:The determining of the second keyboard that matches the first input content of the first input includes:
    将与所述目标输入内容对应的键盘确定为第二键盘。The keyboard corresponding to the target input content is determined as the second keyboard.
  4. 根据权利要求3所述的方法,其中,所述确定与所述第一输入的第一输入内容匹配的第二键盘,包括:The method of claim 3, wherein the determining a second keyboard that matches the first input content of the first input comprises:
    在所述第一输入包括连续点击预设次数的退格键的情况下,将手写输入键盘确定为第二键盘。In the case that the first input includes continuously clicking the backspace key for a preset number of times, the handwriting input keyboard is determined as the second keyboard.
  5. 根据权利要求3所述的方法,其中,所述确定与所述第一输入的第一输入内容匹配的第二键盘,包括:The method of claim 3, wherein the determining a second keyboard that matches the first input content of the first input comprises:
    在所述第一键盘为组合键盘、且所述第一输入包括连续输入预设次数的数字的情况下,将数字输入键盘确定为第二键盘;In the case where the first keyboard is a combination keyboard and the first input includes consecutively inputting numbers for a preset number of times, determining the number input keyboard as the second keyboard;
    其中,所述组合键盘包括以下任一项:数字按键和英文按键,数字按键和拼音按键。Wherein, the combination keyboard includes any one of the following: numeric keys and English keys, numeric keys and pinyin keys.
  6. 根据权利要求1至5中任一项所述的方法,其中,所述将所述第一键盘更新显示为第二键盘之后,所述方法还包括:The method according to any one of claims 1 to 5, wherein after the updating and displaying the first keyboard as the second keyboard, the method further comprises:
    接收用户在所述第二键盘上的第二输入;receiving a second input from the user on the second keyboard;
    在所述第二输入满足第二预设条件的情况下,将所述第二键盘更新显示为所述第一键盘;When the second input satisfies a second preset condition, updating and displaying the second keyboard as the first keyboard;
    其中,所述第二预设条件包括以下任一项:所述第二输入的最后一次触控输入后的预设时间内未接收到新的触控输入,在所述第二输入包括至少一次触控输入的情况下,所述第二输入的输入内容与预设内容相匹配。Wherein, the second preset condition includes any one of the following: no new touch input is received within a preset time after the last touch input of the second input, and the second input includes at least one touch input In the case of touch input, the input content of the second input matches the preset content.
  7. 一种输入装置,所述装置包括:接收模块、确定模块和更新模块;An input device, the device includes: a receiving module, a determining module and an updating module;
    所述接收模块,用于接收用户在第一键盘上的第一输入;The receiving module is used to receive the first input of the user on the first keyboard;
    所述确定模块,用于在所述接收模块接收的第一输入满足第一预设条件的情况下,确定与所述第一输入的第一输入内容匹配的第二键盘;The determining module is configured to determine a second keyboard that matches the first input content of the first input when the first input received by the receiving module satisfies a first preset condition;
    所述更新模块,用于将所述第一键盘更新显示为第二键盘。The updating module is configured to update and display the first keyboard as a second keyboard.
  8. 根据权利要求7所述的装置,其中,The apparatus of claim 7, wherein,
    所述确定模块,具体用于基于预设方法,预测所述用户在所述第一输入后的第二输入内容;The determining module is specifically configured to predict the second input content of the user after the first input based on a preset method;
    所述确定模块,具体还用于将与所述第二输入内容对应的键盘确定为第二键盘;The determining module is further configured to determine the keyboard corresponding to the second input content as the second keyboard;
    其中,所述预设方法包括以下至少一项:所述第一输入内容与正则表达式是否匹配,所述第一输入内容与用户输入的高频词汇是否匹配。The preset method includes at least one of the following: whether the first input content matches a regular expression, and whether the first input content matches a high-frequency vocabulary input by the user.
  9. 根据权利要求7所述的装置,其中,所述第一输入包括至少一次连续的触控输入;所述第一输入内容包括:所述至少一次连续的触控输入所输入的预设次数的目标输入内容;The device according to claim 7, wherein the first input comprises at least one continuous touch input; the first input content comprises: a target input for a preset number of times by the at least one continuous touch input input content;
    所述确定模块,具体用于将与所述目标输入内容对应的键盘确定为第二键盘。The determining module is specifically configured to determine the keyboard corresponding to the target input content as the second keyboard.
  10. 根据权利要求9所述的装置,其中,The apparatus of claim 9, wherein,
    所述确定模块,具体用于在所述第一输入包括连续点击预设次数的退格键的情况下,将手写输入键盘确定为第二键盘。The determining module is specifically configured to determine the handwriting input keyboard as the second keyboard when the first input includes continuously clicking the backspace key for a preset number of times.
  11. 根据权利要求9所述的装置,其中,The apparatus of claim 9, wherein,
    所述确定模块,具体用于在所述第一键盘为组合键盘、且所述第一输入包括连续输入预设次数的数字的情况下,将数字输入键盘确定为第二键盘;The determining module is specifically configured to determine the number input keyboard as the second keyboard when the first keyboard is a combination keyboard and the first input includes numbers that are continuously input for a preset number of times;
    其中,所述组合键盘包括以下任一项:数字按键和英文按键,数字按键和拼音按键。Wherein, the combination keyboard includes any one of the following: numeric keys and English keys, numeric keys and pinyin keys.
  12. 根据权利要求7至11中任一项所述的装置,其中,所述装置还包括输入模块;The apparatus of any one of claims 7 to 11, wherein the apparatus further comprises an input module;
    所述输入模块,用于所述更新模块将所述第一键盘更新显示为第二键盘之后,接收用户在所述第二键盘上的第二输入;The input module is used for receiving the second input from the user on the second keyboard after the update module updates and displays the first keyboard as the second keyboard;
    所述更新模块,还用于在所述输入模块接收的第二输入满足第二预设条件的情况下,将所述第二键盘更新显示为所述第一键盘;The updating module is further configured to update and display the second keyboard as the first keyboard when the second input received by the input module satisfies a second preset condition;
    其中,所述第二预设条件包括以下任一项:所述第二输入的最后一次触控输入后的预设时间内未接收到新的触控输入,在所述第二输入包括至少一次触控输入的情况下,所述第二输入的输入内容与预设内容相匹配。Wherein, the second preset condition includes any one of the following: no new touch input is received within a preset time after the last touch input of the second input, and the second input includes at least one touch input. In the case of touch input, the input content of the second input matches the preset content.
  13. 一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1至6中任一项所述的输入方法的步骤。An electronic device, comprising a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being executed by the processor to achieve as claimed in claims 1 to 6 The steps of any one of the input methods.
  14. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1至6中任一项所述的输入方法的步骤。A readable storage medium on which programs or instructions are stored, and when the programs or instructions are executed by a processor, implement the steps of the input method according to any one of claims 1 to 6.
  15. 一种计算机程序产品,所述程序产品被至少一个处理器执行以实现如权利要求1至6中任一项所述的输入方法。A computer program product executed by at least one processor to implement the input method of any one of claims 1 to 6.
  16. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1至6中任一项所述的输入方法。A chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used for running a program or an instruction to implement the input according to any one of claims 1 to 6 method.
  17. 一种电子设备,包括所述电子设备被配置成用于执行如权利要求1至6中任一项所述的输入方法。An electronic device comprising the electronic device configured to perform the input method of any one of claims 1 to 6.
PCT/CN2022/081204 2021-03-18 2022-03-16 Input method and apparatus, electronic device and readable storage medium WO2022194207A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110293079.1 2021-03-18
CN202110293079.1A CN113126780A (en) 2021-03-18 2021-03-18 Input method, input device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
WO2022194207A1 true WO2022194207A1 (en) 2022-09-22

Family

ID=76773472

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/081204 WO2022194207A1 (en) 2021-03-18 2022-03-16 Input method and apparatus, electronic device and readable storage medium

Country Status (2)

Country Link
CN (1) CN113126780A (en)
WO (1) WO2022194207A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113126780A (en) * 2021-03-18 2021-07-16 维沃移动通信有限公司 Input method, input device, electronic equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102830924A (en) * 2012-08-08 2012-12-19 北京小米科技有限责任公司 Method and device for adjusting input method keyboards
CN106375810A (en) * 2016-08-31 2017-02-01 深圳Tcl数字技术有限公司 Input method automatic switching method and system for smart television
CN108509061A (en) * 2018-03-28 2018-09-07 努比亚技术有限公司 A kind of method, apparatus and computer readable storage medium of auxiliary input
US20180364905A1 (en) * 2017-06-15 2018-12-20 Boris Mikhailovich Putko Method, system and keyboard for input of characters
CN113126780A (en) * 2021-03-18 2021-07-16 维沃移动通信有限公司 Input method, input device, electronic equipment and readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102830924A (en) * 2012-08-08 2012-12-19 北京小米科技有限责任公司 Method and device for adjusting input method keyboards
CN106375810A (en) * 2016-08-31 2017-02-01 深圳Tcl数字技术有限公司 Input method automatic switching method and system for smart television
US20180364905A1 (en) * 2017-06-15 2018-12-20 Boris Mikhailovich Putko Method, system and keyboard for input of characters
CN108509061A (en) * 2018-03-28 2018-09-07 努比亚技术有限公司 A kind of method, apparatus and computer readable storage medium of auxiliary input
CN113126780A (en) * 2021-03-18 2021-07-16 维沃移动通信有限公司 Input method, input device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN113126780A (en) 2021-07-16

Similar Documents

Publication Publication Date Title
WO2022017525A1 (en) Page display method and apparatus, and electronic device
WO2022012656A1 (en) Split screen display method, apparatus, and electronic device
WO2022083750A1 (en) Text display method and apparatus and electronic device
US20120023433A1 (en) Method and apparatus for inputting character in a portable terminal
WO2014193962A1 (en) Multiple graphical keyboards for continuous gesture input
WO2022121790A1 (en) Split-screen display method and apparatus, electronic device, and readable storage medium
US20210097993A1 (en) Speech recognition control method and apparatus, electronic device and readable storage medium
WO2023005920A1 (en) Screen splitting method and apparatus, and electronic device
WO2022135474A1 (en) Information recommendation method and apparatus, and electronic device
WO2021233282A1 (en) Method and apparatus for displaying message detail page, and electronic device
WO2023056977A1 (en) Application program start method and apparatus, and electronic device
WO2022135295A1 (en) Sending method and apparatus, and electronic device
WO2023025121A1 (en) Display method and apparatus, electronic device, and readable storage medium
US20230104250A1 (en) Application icon display method and apparatus, and electronic device
WO2022247789A1 (en) Candidate word update method and apparatus, and electronic device
WO2023046101A1 (en) Icon display method and apparatus, and electronic device
EP2909702A1 (en) Contextually-specific automatic separators
WO2022143524A1 (en) Information display method and apparatus, and electronic device
WO2022194207A1 (en) Input method and apparatus, electronic device and readable storage medium
WO2022143660A1 (en) Icon display method and apparatus, and electronic device
WO2022135294A1 (en) Candidate word display method and apparatus, and electronic device
WO2023274171A1 (en) Application running method and device
WO2022143523A1 (en) Vocabulary display method and apparatus, and electronic device
WO2022257883A1 (en) Presentation method and presentation apparatus
WO2022222785A1 (en) Image display method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22770560

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22770560

Country of ref document: EP

Kind code of ref document: A1