Movatterモバイル変換


[0]ホーム

URL:


CN110874148A - Input control method and electronic equipment - Google Patents

Input control method and electronic equipment
Download PDF

Info

Publication number
CN110874148A
CN110874148ACN201911033620.4ACN201911033620ACN110874148ACN 110874148 ACN110874148 ACN 110874148ACN 201911033620 ACN201911033620 ACN 201911033620ACN 110874148 ACN110874148 ACN 110874148A
Authority
CN
China
Prior art keywords
input
box
content
input box
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911033620.4A
Other languages
Chinese (zh)
Other versions
CN110874148B (en
Inventor
杨磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co LtdfiledCriticalVivo Mobile Communication Co Ltd
Priority to CN201911033620.4ApriorityCriticalpatent/CN110874148B/en
Publication of CN110874148ApublicationCriticalpatent/CN110874148A/en
Application grantedgrantedCritical
Publication of CN110874148BpublicationCriticalpatent/CN110874148B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The embodiment of the invention provides an input control method and electronic equipment, which are applied to the field of communication and are used for solving the problem that the steps of executing input operation on a plurality of input boxes are complicated. The method comprises the following steps: under the condition that the first content is displayed in the input method control and the input focus is not included in the first input box, receiving first input of a user for the first content; responding to the first input, inputting first content into the first input box, and controlling the first input box to acquire an input focus; the first input box is an input box in M input boxes displayed on a screen of the electronic equipment, and M is a positive integer greater than or equal to 2. The method is particularly applied to the process of executing input operation on the input box in the plurality of input boxes.

Description

Translated fromChinese
一种输入控制方法及电子设备An input control method and electronic device

技术领域technical field

本发明实施例涉及通信技术领域,尤其涉及一种输入控制方法及电子设备。Embodiments of the present invention relate to the field of communication technologies, and in particular, to an input control method and an electronic device.

背景技术Background technique

当前,用户可能需求电子设备同时显示多个应用程序的界面(记为应用界面)。例如,电子设备可以通过展开的折叠屏分别显示多个应用界面。其中,电子设备显示的多个应用界面中的每个应用界面中均可能包括输入框,以支持用户对各个输入框执行输入操作,以输入特定的内容(如账号名称或账号密码等)。Currently, a user may require an electronic device to simultaneously display interfaces of multiple application programs (referred to as application interfaces). For example, the electronic device can display multiple application interfaces respectively through the unfolded folding screen. Wherein, each of the multiple application interfaces displayed by the electronic device may include an input box to support the user to perform input operations on each input box to input specific content (such as account name or account password, etc.).

具体的,在用户需求对每个应用界面中的输入框执行输入操作的情况下,用户需要分别针对各个输入框执行触发输入,触发电子设备分别针对各个输入框调出输入法控件,以通过输入法控件执行相应的输入操作。如此,导致对多个输入框执行输入操作的步骤较为繁琐。Specifically, when the user needs to perform an input operation on the input box in each application interface, the user needs to perform trigger input for each input box, and trigger the electronic device to call up the input method control for each input box, so as to pass the input The method control performs the corresponding input operation. In this way, the steps of performing input operations on multiple input boxes are complicated.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供一种输入控制方法及电子设备,以解决对多个输入框执行输入操作的步骤较为繁琐问题。Embodiments of the present invention provide an input control method and an electronic device, so as to solve the problem that the steps of performing input operations on multiple input boxes are cumbersome.

为了解决上述技术问题,本发明实施例是这样实现的:In order to solve the above technical problems, the embodiments of the present invention are implemented as follows:

第一方面,本发明实施例提供一种输入控制方法,应用于电子设备,该方法包括:在输入法控件中显示第一内容、且第一输入框中不包括输入焦点的情况下,接收用户针对第一内容的第一输入;响应于第一输入,将第一内容输入至第一输入框中,并控制第一输入框获取输入焦点;其中,第一输入框为电子设备的屏幕上显示的M个输入框中的输入框,M为大于或等于2的正整数。In a first aspect, an embodiment of the present invention provides an input control method, which is applied to an electronic device. The method includes: in the case where a first content is displayed in an input method control and the first input box does not include an input focus, receiving a user For the first input of the first content; in response to the first input, input the first content into the first input box, and control the first input box to obtain the input focus; wherein, the first input box is displayed on the screen of the electronic device The input boxes of the M input boxes, where M is a positive integer greater than or equal to 2.

第二方面,本发明实施例还提供了一种电子设备,该电子设备包括:接收模块和控制模块;接收模块,用于在输入法控件中显示第一内容、且第一输入框中不包括输入焦点的情况下,接收用户针对第一内容的第一输入;控制模块,用于响应于接收模块接收的第一输入,将第一内容输入至第一输入框中,并控制第一输入框获取输入焦点;其中,第一输入框为电子设备的屏幕上显示的M个输入框中的输入框,M为大于或等于2的正整数。In a second aspect, an embodiment of the present invention further provides an electronic device, the electronic device includes: a receiving module and a control module; the receiving module is configured to display the first content in the input method control, and the first input box does not include In the case of input focus, receive the first input from the user for the first content; the control module is configured to input the first content into the first input box in response to the first input received by the receiving module, and control the first input box Obtain the input focus; wherein, the first input box is an input box among M input boxes displayed on the screen of the electronic device, and M is a positive integer greater than or equal to 2.

第三方面,本发明实施例提供了一种电子设备,包括处理器、存储器及存储在该存储器上并可在该处理器上运行的计算机程序,该计算机程序被该处理器执行时实现如第一方面所述的输入控制方法的步骤。In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a memory, and a computer program stored in the memory and running on the processor, the computer program being executed by the processor to achieve the The steps of the input control method described in one aspect.

第四方面,本发明实施例提供了一种计算机可读存储介质,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现如第一方面所述的输入控制方法的步骤。In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, implements the steps of the input control method according to the first aspect .

在本发明实施例中,在输入法控件中显示第一内容、且第一输入框中不包括输入焦点的情况下,可以通过针对第一内容的第一输入,将第一内容输入至第一输入框中,并控制第一输入框获取输入焦点。如此,在电子设备显示多个输入框的场景中,用户通过较为便捷的第一输入,可以触发电子设备将当前输入法控件中的内容(第一内容)输入至第一输入框中;而不一定需要用户先对第一输入框的触发输入控制第一输入框获取输入焦点,再通过向输入法控件中输入内容(如第一内容)以将向第一输入框中输入该内容。从而,简化了对多个输入框中的输入框执行输入操作的步骤。In this embodiment of the present invention, when the first content is displayed in the input method control and the first input box does not include the input focus, the first content can be input to the first content through the first input for the first content input box, and control the first input box to obtain the input focus. In this way, in a scenario where the electronic device displays multiple input boxes, the user can trigger the electronic device to input the content (first content) in the current input method control into the first input box through a relatively convenient first input; instead of The user must first control the first input box to obtain the input focus on the trigger input of the first input box, and then input the content (such as the first content) into the input method control to input the content into the first input box. Thus, the steps of performing an input operation on the input boxes of the plurality of input boxes are simplified.

附图说明Description of drawings

图1为本发明实施例提供的一种可能的安卓操作系统的架构示意图;1 is a schematic diagram of the architecture of a possible Android operating system provided by an embodiment of the present invention;

图2为本发明实施例提供的一种输入控制方法的流程示意图;2 is a schematic flowchart of an input control method provided by an embodiment of the present invention;

图3为本发明实施例提供的一种电子设备显示内容的示意图之一;FIG. 3 is one of schematic diagrams of displaying content of an electronic device according to an embodiment of the present invention;

图4为本发明实施例提供的一种电子设备显示内容的示意图之二;4 is the second schematic diagram of an electronic device displaying content according to an embodiment of the present invention;

图5为本发明实施例提供的一种电子设备显示内容的示意图之三;5 is a third schematic diagram of an electronic device displaying content according to an embodiment of the present invention;

图6为本发明实施例提供的一种电子设备显示内容的示意图之四;FIG. 6 is a fourth schematic diagram of content displayed by an electronic device according to an embodiment of the present invention;

图7为本发明实施例提供的一种可能的电子设备的结构示意图;7 is a schematic structural diagram of a possible electronic device provided by an embodiment of the present invention;

图8为本发明实施例提供的一种电子设备的硬件结构示意图。FIG. 8 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

需要说明的是,本文中的“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。“多个”是指两个或多于两个。It should be noted that “/” in this document means or, for example, A/B can mean A or B; “and/or” in this document is only an association relationship that describes an associated object, indicating that there may be three A relationship, for example, A and/or B, can mean the existence of A alone, the existence of both A and B, and the existence of B alone. "Plural" means two or more.

需要说明的是,本发明实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本发明实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to represent examples, illustrations, or descriptions. Any embodiments or designs described as "exemplary" or "such as" in the embodiments of the present invention should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present the related concepts in a specific manner.

本发明的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一输入和第二输入等是用于区别不同的输入,而不是用于描述输入的特定顺序。The terms "first" and "second" and the like in the description and claims of the present invention are used to distinguish different objects, rather than to describe a specific order of the objects. For example, the first input and the second input, etc. are used to distinguish different inputs, not to describe a specific order of the inputs.

本发明实施例提供的输入控制方法及电子设备,在输入法控件中显示第一内容、且第一输入框中不包括输入焦点的情况下,可以通过针对第一内容的第一输入,将第一内容输入至第一输入框中,并控制第一输入框获取输入焦点。如此,在电子设备显示多个输入框的场景中,用户通过较为便捷的第一输入,可以触发电子设备将当前输入法控件中的内容(第一内容)输入至第一输入框中;而不一定需要用户先对第一输入框的触发输入控制第一输入框获取输入焦点,再通过向输入法控件中输入内容(如第一内容)以将向第一输入框中输入该内容。从而,简化了对多个输入框中的输入框执行输入操作的步骤。In the input control method and electronic device provided by the embodiments of the present invention, when the first content is displayed in the input method control and the first input box does not include the input focus, the first input for the first content can A content is input into the first input box, and the first input box is controlled to obtain the input focus. In this way, in a scenario where the electronic device displays multiple input boxes, the user can trigger the electronic device to input the content (first content) in the current input method control into the first input box through a relatively convenient first input; instead of The user must first control the first input box to obtain the input focus on the trigger input of the first input box, and then input the content (such as the first content) into the input method control to input the content into the first input box. Thus, the steps of performing an input operation on the input boxes of the plurality of input boxes are simplified.

本发明实施例中的电子设备可以为移动电子设备,也可以为非移动电子设备。移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等;非移动电子设备可以为个人计算机(personalcomputer,PC)、电视机(television,TV)、柜员机或者自助机等;本发明实施例不作具体限定。The electronic device in the embodiment of the present invention may be a mobile electronic device or a non-mobile electronic device. The mobile electronic device can be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle-mounted terminal, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. ; The non-mobile electronic device may be a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc. The embodiments of the present invention are not specifically limited.

需要说明的是,本发明实施例提供的输入控制方法,执行主体可以为电子设备,或者,该电子设备的中央处理器(Central Processing Unit,CPU),或者该电子设备中的用于执行输入控制方法的控制模块。本发明实施例中以电子设备执行输入控制方法为例,说明本发明实施例提供的输入控制方法。It should be noted that, in the input control method provided by the embodiments of the present invention, the execution body may be an electronic device, or a central processing unit (Central Processing Unit, CPU) of the electronic device, or a device in the electronic device for executing input control The method's control module. In the embodiment of the present invention, the input control method provided by the embodiment of the present invention is described by taking the electronic device executing the input control method as an example.

本发明实施例中的电子设备可以为具有操作系统的电子设备。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本发明实施例不作具体限定。The electronic device in the embodiment of the present invention may be an electronic 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 embodiment of the present invention.

下面以安卓操作系统为例,介绍一下本发明实施例提供的输入控制方法所应用的软件环境。The following takes the Android operating system as an example to introduce the software environment to which the input control method provided by the embodiment of the present invention is applied.

如图1所示,为本发明实施例提供的一种可能的安卓操作系统的架构示意图。在图1中,安卓操作系统的架构包括4层,分别为:应用程序层、应用程序框架层、系统运行库层和内核层(具体可以为Linux内核层)。As shown in FIG. 1 , it is a schematic structural diagram of a possible Android operating system provided by an embodiment of the present invention. In FIG. 1, the architecture of the Android operating system includes four layers, namely: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).

其中,应用程序层包括安卓操作系统中的各个应用程序(包括系统应用程序和第三方应用程序)。The application layer includes various applications (including system applications and third-party applications) in the Android operating system.

应用程序框架层是应用程序的框架,开发人员可以在遵守应用程序的框架的开发原则的情况下,基于应用程序框架层开发一些应用程序。例如,系统设置应用、系统聊天应用和系统相机应用等应用程序。第三方设置应用、第三方相机应用和第三方聊天应用等应用程序。The application framework layer is the framework of the application, and developers can develop some applications based on the application framework layer under the condition of complying with the development principles of the framework of the application. For example, applications such as the system settings app, the system chat app, and the system camera app. Apps such as third-party settings apps, third-party camera apps, and third-party chat apps.

系统运行库层包括库(也称为系统库)和安卓操作系统运行环境。库主要为安卓操作系统提供其所需的各类资源。安卓操作系统运行环境用于为安卓操作系统提供软件环境。The system runtime layer includes libraries (also called system libraries) and the Android operating system runtime environment. The library mainly provides various resources required by the Android operating system. The Android operating system operating environment is used to provide a software environment for the Android operating system.

内核层是安卓操作系统的操作系统层,属于安卓操作系统软件层次的最底层。内核层基于Linux内核为安卓操作系统提供核心系统服务和与硬件相关的驱动程序。The kernel layer is the operating system layer of the Android operating system and belongs to the bottom layer of the Android operating system software layer. The kernel layer provides core system services and hardware-related drivers for the Android operating system based on the Linux kernel.

以安卓操作系统为例,本发明实施例中,开发人员可以基于上述如图1所示的安卓操作系统的系统架构,开发实现本发明实施例提供的输入控制方法的软件程序,从而使得该输入控制方法可以基于如图1所示的安卓操作系统运行。即处理器或者电子设备可以通过在安卓操作系统中运行该软件程序实现本发明实施例提供的输入控制方法。Taking the Android operating system as an example, in this embodiment of the present invention, a developer can develop a software program that implements the input control method provided by the embodiment of the present invention based on the system architecture of the Android operating system as shown in FIG. The control method can run based on the Android operating system as shown in FIG. 1 . That is, the processor or the electronic device can implement the input control method provided by the embodiment of the present invention by running the software program in the Android operating system.

下面结合图2所示的输入控制方法的流程图对本发明实施例提供的输入控制方法进行详细描述。其中,虽然在方法流程图中示出了本发明实施例提供的输入控制方法的逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。例如,图2中示出的输入控制方法可以包括S201和S202:The input control method provided by the embodiment of the present invention will be described in detail below with reference to the flowchart of the input control method shown in FIG. 2 . Wherein, although the logical sequence of the input control method provided by the embodiments of the present invention is shown in the method flowchart, in some cases, the steps shown or described may be performed in a sequence different from that here. For example, the input control method shown in FIG. 2 may include S201 and S202:

S201、电子设备在输入法控件中显示第一内容、且第一输入框中不包括输入焦点的情况下,接收用户针对第一内容的第一输入。S201. In the case that the electronic device displays the first content in the input method control and the first input box does not include the input focus, receive the first input of the user for the first content.

需要说明的是,本发明实施例中,电子设备的屏幕上可以显示M个输入框(或称应用编辑框(EditText)),M为大于或等于2的正整数。即电子设备的屏幕上显示有多个输入框。It should be noted that, in this embodiment of the present invention, M input boxes (or application editing boxes (EditText)) may be displayed on the screen of the electronic device, where M is a positive integer greater than or equal to 2. That is, a plurality of input boxes are displayed on the screen of the electronic device.

可选的,M个输入框为N个应用界面中的输入框,一个应用界面包括M个输入框中的一个或多个输入框,N为小于或等于M的正整数。Optionally, the M input boxes are input boxes in N application interfaces, one application interface includes one or more input boxes in the M input boxes, and N is a positive integer less than or equal to M.

其中,第一输入框为电子设备的屏幕上显示的M个输入框中的输入框。The first input box is an input box among M input boxes displayed on the screen of the electronic device.

可选的,一个应用界面即为一个应用程序的一个界面。上述N个应用界面中的不同应用界面可以为不同应用程序中的不同界面,还可以为同一应用程序中的不同界面,本发明实施例对此不作限定。Optionally, an application interface is an interface of an application. Different application interfaces in the above N application interfaces may be different interfaces in different application programs, or may be different interfaces in the same application program, which is not limited in this embodiment of the present invention.

具体的,当前第一输入框中不包括输入焦点,即第一输入框不处于输入状态。Specifically, the current first input box does not include an input focus, that is, the first input box is not in an input state.

可以理解的是,在电子设备在屏幕上显示输入法控件之前,用户可以触发电子设备显示输入法控件,进而触发在输入法控件中显示第一内容。It can be understood that, before the electronic device displays the input method control on the screen, the user can trigger the electronic device to display the input method control, thereby triggering the display of the first content in the input method control.

可选的,在本发明实施例的第一种应用场景中,用户可以对与第一输入框不同的其他输入框(记为输入框1)输入,如在该输入框1上点击输入,触发电子设备显示输入法控件。此时,输入法控件通常显示在输入框1所在的应用界面中。Optionally, in the first application scenario of the embodiment of the present invention, the user can input other input boxes (referred to as input box 1) different from the first input box. Electronic device showing input method controls. At this time, the input method control is usually displayed in the application interface where theinput box 1 is located.

可选的,在本发明实施例的第二种应用场景中,用户可以通过对控制显示输入法控件的特定控件的输入,触发电子设备显示输入法控件。此时,对输入法控件显示在屏幕上的界面不作限定,可以为屏幕上的任一界面。其中,电子设备当前在屏幕上未显示输入焦点。Optionally, in the second application scenario of the embodiment of the present invention, the user may trigger the electronic device to display the input method control by inputting a specific control that controls the display of the input method control. At this time, the interface displayed on the screen by the input method control is not limited, and can be any interface on the screen. Wherein, the electronic device currently does not display the input focus on the screen.

本发明实施例中,输入法控件中可以包括各种字符按键(如中文字符按键、英文字符按键、标点符号按键等),以支持用户在该输入法控件中通过各个字符按键输入内容,进而实现输入操作。另外,输入法控件中通常包括一个预览输入框,用于显示处于编辑状态的内容。如,第一内容可以显示在输入法控件中的预览输入框中。再者,输入法控件中还包括Enter(回车)按键,用于触发电子设备将输入法控件中显示的内容输入至某个应用界面的输入框中。In the embodiment of the present invention, the input method control may include various character keys (such as Chinese character keys, English character keys, punctuation keys, etc.) to support the user to input content through each character key in the input method control, thereby realizing Enter an action. In addition, an input method control usually includes a preview input box to display the content in the editing state. For example, the first content may be displayed in a preview input box in the input method control. Furthermore, the input method control also includes an Enter button, which is used to trigger the electronic device to input the content displayed in the input method control into an input box of an application interface.

可选的,输入法控件中当前显示的第一内容可以由用户输入,还可以由用户触发电子设备生成(如电子设备将剪贴板中的内容粘贴至输入法控件中)。Optionally, the first content currently displayed in the input method control may be input by the user, or may be generated by the user triggering the electronic device (eg, the electronic device pastes the content in the clipboard into the input method control).

本发明实施例提供的电子设备中屏幕的数量可以为一个或多个。具体的,该电子设备可以为折叠屏式电子设备,或者非折叠屏式电子设备。其中,折叠屏式电子设备中的折叠屏可以折叠,如折叠屏中折叠的两个屏幕(或一个屏幕的两个部分)之间的夹角值可以为0度到360度之间的角度。非折叠屏式电子设备中的两个屏幕可以布置在电子设备中的不同表面上,如在该非折叠屏式电子设备为手机时,这两个屏幕可以分别布置在该手机的正面和背面上;此时,该非折叠屏式电子设备中的这两个屏幕之间的夹角值可以为360度。以下实施例中,以电子设备中的屏幕为可折叠的屏幕为例进行说明。可以理解的是,两个屏幕之间的夹角值,指的是这两个屏中的一个屏幕的显示界面所在的表面与另一个屏幕的显示界面所在的表面之间的夹角值。The number of screens in the electronic device provided by the embodiments of the present invention may be one or more. Specifically, the electronic device may be a folding-screen electronic device or a non-folding-screen electronic device. The folding screen in the folding screen electronic device can be folded, for example, the angle between two screens (or two parts of a screen) folded in the folding screen can be an angle between 0 degrees and 360 degrees. The two screens in the non-folding screen electronic device can be arranged on different surfaces in the electronic device. For example, when the non-folding screen electronic device is a mobile phone, the two screens can be respectively arranged on the front and back of the mobile phone ; At this time, the value of the included angle between the two screens in the non-folding screen electronic device may be 360 degrees. In the following embodiments, the screen in the electronic device is a foldable screen as an example for description. It can be understood that the angle value between the two screens refers to the angle value between the surface on which the display interface of one screen is located and the surface on which the display interface of the other screen is located in the two screens.

其中,上述第一输入可以用户从M个输入框中选择第一输入框的输入。Wherein, the above-mentioned first input can be input by the user selecting the first input box from M input boxes.

需要说明的是,本发明实施例提供的电子设备的屏幕可以由具有显示功能和触控功能的触控屏实现,该触控屏可以用于接收用户的输入,并响应于该输入向该用户显示该输入对应的内容。其中,上述第一输入可以为触屏输入、指纹输入、重力输入、按键输入等。其中,触屏输入为用户对电子设备的触控屏的按压输入、长按输入、滑动输入、点击输入、悬浮输入(用户在触控屏附近的输入)等输入。指纹输入为用户对电子设备的指纹识别器的滑动指纹、长按指纹、单击指纹和双击指纹等输入。重力输入为用户对电子设备特定方向的晃动、特定次数的晃动等输入。按键输入对应于用户对电子设备的电源键、音量键、Home键等按键的单击输入、双击输入、长按输入、组合按键输入等输入。具体的,本发明实施例对第一输入的方式不作具体限定,可以为任一可实现的方式。It should be noted that the screen of the electronic device provided by the embodiment of the present invention may be implemented by a touch screen having a display function and a touch function, and the touch screen may be used to receive user input, and respond to the input to the user. Displays the content corresponding to the input. Wherein, the above-mentioned first input may be touch screen input, fingerprint input, gravity input, key input, and the like. The touch screen input is input such as a user's pressing input, long press input, sliding input, click input, and floating input (input by the user near the touch screen) on the touch screen of the electronic device. The fingerprint input is the user's input to the fingerprint reader of the electronic device, such as swiping the fingerprint, long-pressing the fingerprint, single-clicking the fingerprint, and double-clicking the fingerprint. Gravity input is the user's input of shaking the electronic device in a specific direction, shaking for a certain number of times, and the like. The key input corresponds to the user's single-click input, double-click input, long-press input, combined key input, etc. on keys such as the power key, volume key, and home key of the electronic device. Specifically, the embodiment of the present invention does not specifically limit the manner of the first input, which may be any achievable manner.

S202、电子设备响应于第一输入,将第一内容输入至第一输入框中,并控制第一输入框获取输入焦点。S202. The electronic device, in response to the first input, inputs the first content into the first input box, and controls the first input box to obtain the input focus.

可选的,本发明实施例中,触发电子设备显示输入法控件的输入框(即输入框1)与第一输入框相同或不同。相应的,输入法控件不一定显示在第一输入框所在的应用界面中。Optionally, in this embodiment of the present invention, the input box (ie, the input box 1 ) that triggers the electronic device to display the input method control is the same as or different from the first input box. Correspondingly, the input method control is not necessarily displayed in the application interface where the first input box is located.

可以理解的是,在电子设备将第一内容输入至第一输入框时,第一内容将显示在第一输入框中。此时,电子设备可以取消在输入法控件中显示第一内容。It can be understood that, when the electronic device inputs the first content into the first input box, the first content will be displayed in the first input box. At this time, the electronic device may cancel displaying the first content in the input method control.

可选的,在本发明实施例提供的第一种应用场景中,上述“控制所述第一输入框获取所述输入焦点”可以通过S202a实现:Optionally, in the first application scenario provided by the embodiment of the present invention, the above-mentioned "controlling the first input box to obtain the input focus" may be implemented by S202a:

S202a、电子设备将输入焦点从第二输入框移动至第一输入框。S202a, the electronic device moves the input focus from the second input box to the first input box.

其中,第二输入框为M个输入框中的输入框,第二输入框与第一输入框不同,输入法控件为通过第二输入框触发显示的。The second input box is an input box among the M input boxes, the second input box is different from the first input box, and the input method control is triggered and displayed by the second input box.

如此,在通过第二输入框(即上述输入框1)触发电子设备显示输入法控件的情况下,用户不需要专门点击第一输入框,以控制第一输入框获取输入焦点而处于输入状态;而是针对第一内容的第一输入便可以触发将输入焦点从第二输入框移动至第一输入框。此时,即使第一输入框与第二输入框为不相邻的输入框,如第一输入框和第二输入框位于不同的应用界面中,也可以实现电子设备快速切换对不同输入框的输入操作。In this way, when the electronic device is triggered to display the input method control through the second input box (ie, the above-mentioned input box 1), the user does not need to click the first input box specifically to control the first input box to obtain the input focus and be in the input state; Instead, the first input for the first content can trigger the movement of the input focus from the second input box to the first input box. At this time, even if the first input box and the second input box are not adjacent to each other, for example, the first input box and the second input box are located in different application interfaces, the electronic device can quickly switch between the different input boxes. Enter an action.

需要说明的是,本发明实施例提供的输入控制方法,在输入法控件中显示第一内容、且第一输入框中不包括输入焦点的情况下,可以通过针对第一内容的第一输入,将第一内容输入至第一输入框中,并控制第一输入框获取输入焦点。如此,在电子设备显示多个输入框的场景中,用户通过较为便捷的第一输入,可以触发电子设备将当前输入法控件中的内容(第一内容)输入至第一输入框中;而不一定需要用户先对第一输入框的触发输入控制第一输入框获取输入焦点,再通过向输入法控件中输入内容(如第一内容)以将向第一输入框中输入该内容。从而,简化了对多个输入框中的输入框执行输入操作的步骤。It should be noted that, in the input control method provided by the embodiment of the present invention, in the case where the first content is displayed in the input method control and the input focus is not included in the first input box, the first input for the first content can be used, The first content is input into the first input box, and the first input box is controlled to obtain the input focus. In this way, in a scenario where the electronic device displays multiple input boxes, the user can trigger the electronic device to input the content (first content) in the current input method control into the first input box through a relatively convenient first input; instead of The user must first control the first input box to obtain the input focus on the trigger input of the first input box, and then input the content (such as the first content) into the input method control to input the content into the first input box. Thus, the steps of performing an input operation on the input boxes of the plurality of input boxes are simplified.

在一种可能的实现方式中,本发明实施例提供的输入控制方法,可以通过不同的示例实现通过第一输入将第一内容输入至多个输入框的第一输入框中。具体的,以下通过示例性1和示例2说明本发明实施例提供的输入控制方法。In a possible implementation manner, the input control method provided by the embodiment of the present invention may implement inputting the first content into the first input box of the plurality of input boxes through the first input through different examples. Specifically, the input control method provided by the embodiment of the present invention is described below through Example 1 and Example 2.

在本发明实施例提供的示例1中:第一输入可以为将第一内容拖动至第一输入框的输入。In Example 1 provided by the embodiment of the present invention: the first input may be an input of dragging the first content to the first input box.

在示例1的方式1中:在电子设备当前显示多个输入框(包括第一输入框)的情况下,用户在输入法控件中输入第一内容(如文字),并点击Enter按键之后,若输入焦点处于一个应用界面中的输入框(如上述第二输入框)中,则默认将该内容输入至该输入框中。另外,若当前显示的任一输入框中均不包括输入焦点,则控制输入法控件中的文字(如第一内容)以预设方式显示(如高亮显示),用户此时可以拖动高亮的文字到某个输入框(如第一输入框)中完成输入操作,输入法焦点默认切换到某个输入框中。InMode 1 of Example 1: when the electronic device currently displays multiple input boxes (including the first input box), the user enters the first content (such as text) in the input method control, and clicks the Enter button, if If the input focus is in an input box (such as the above-mentioned second input box) in an application interface, the content is input into the input box by default. In addition, if any input box currently displayed does not include the input focus, the text (such as the first content) in the control input method control is displayed in a preset way (such as highlighted), and the user can drag the high The bright text is entered into an input box (such as the first input box) to complete the input operation, and the input method focus is switched to an input box by default.

在示例1的方式2中:在电子设备当前显示多个输入框(包括第一输入框)的情况下,用户在输入法控件中输入文字(第一内容)之后,可以不点击Enter按键,而是长按输入法控件的输入框中的文字,使得该文字高亮并跟随用户的手指拖动到某个应用界面中的某个输入框(如第一输入框)中完成输入操作,输入法焦点默认切换到该某个输入框中。In Mode 2 of Example 1: when the electronic device currently displays multiple input boxes (including the first input box), after the user enters text (the first content) in the input method control, the user may not click the Enter button, but It is to long press the text in the input box of the input method control, so that the text is highlighted and dragged to an input box (such as the first input box) in an application interface with the user's finger to complete the input operation. The focus is switched to this input box by default.

示例性的,如图3所示,为本发明实施例提供的一种电子设备显示内容的示意图。图3的(a)中示出的界面中包括应用程序1的界面A1和应用程序2的界面A2,界面A1中包括输入框A11,界面A2中包括输入框A21和输入框A22。另外,界面A1中还包括输入法控件B1,该输入法控件B1中显示有内容B11“我想你了”,输入框A11中还包括输入焦点C1。随后,如图3中的(b)所示,在用户对内容B11执行长按输入之后,电子设备可以高亮显示内容B11。进而,如图3中的(c)所示,用户可以将高亮的内容B11拖动至输入框A21中,使得电子设备在输入框A21中显示内容B11,在输入法控件B1中取消显示内容B11,以及将输入焦点C1移动至输入框A21中。此时,内容B11为第一内容,输入框A21为第一输入框,M个输入框为输入框A11、输入框A21和输入框A22,即M为3。Exemplarily, as shown in FIG. 3 , it is a schematic diagram of displaying content of an electronic device according to an embodiment of the present invention. The interface shown in (a) of FIG. 3 includes interface A1 ofapplication 1 and interface A2 of application 2, interface A1 includes input box A11, and interface A2 includes input box A21 and input box A22. In addition, the interface A1 also includes an input method control B1, the input method control B1 displays the content B11 "I miss you", and the input box A11 also includes an input focus C1. Subsequently, as shown in (b) of FIG. 3 , after the user performs a long-press input on the content B11 , the electronic device may highlight the content B11 . Further, as shown in (c) of FIG. 3, the user can drag the highlighted content B11 to the input box A21, so that the electronic device displays the content B11 in the input box A21, and cancels the display of the content in the input method control B1 B11, and move the input focus C1 to the input box A21. At this time, the content B11 is the first content, the input box A21 is the first input box, and the M input boxes are the input box A11 , the input box A21 and the input box A22 , that is, M is 3.

在示例1的方式3中:电子设备可以检测当前显示的输入框的数量。电子设备在显示一个输入框(第一输入框)的情况下,可以提示用户直接向该输入框输入内容。此时,在用户向输入法控件中输入第一内容(如文字),并点击Entry按键之后,电子设备可以将第一内容输入至第一输入框中。In Mode 3 of Example 1: the electronic device may detect the number of input boxes currently displayed. In the case of displaying an input box (the first input box), the electronic device may prompt the user to directly input content into the input box. At this time, after the user inputs the first content (eg, text) into the input method control and clicks the Entry button, the electronic device may input the first content into the first input box.

如此,用户对输入法控件中的内容的拖动输入,便可以将输入焦点移动至第一输入框中,并将第一内容输入至第一输入框中,有利于提高切换输入框的便捷性。In this way, the user can move the input focus to the first input box by dragging and input the content in the input method control, and input the first content into the first input box, which is beneficial to improve the convenience of switching input boxes .

在本发明实施例提供的示例2中,在电子设备在输入法控件中显示第一内容的情况下,电子设备的屏幕上还显示有M个标识,一个标识用于指示一个输入框。具体的,上述S201可以通过S201a实现:In Example 2 provided by the embodiment of the present invention, when the electronic device displays the first content in the input method control, M marks are also displayed on the screen of the electronic device, and one mark is used to indicate an input box. Specifically, the above S201 can be implemented through S201a:

S201a、电子设备接收用户针对M个标识中的第一标识的第一输入。S201a. The electronic device receives a first input from a user for a first identifier among the M identifiers.

其中,第一标识用于指示第一输入框。Wherein, the first identifier is used to indicate the first input box.

可选的,在示例2的实现方式a中:电子设备在显示多个输入框(包括第一输入框)的情况下,可以对该多个输入框中的每个输入框进行编号,以在屏幕上显示每个输入框的标识(如编号)。并且,电子设备可以将各个输入框的标识显示在相应输入框的附近,如输入框的上方。具体的,在用户在输入法控件中输入第一内容(如文字)之后,用户可以点击屏幕上的某个标识,触发电子设备将第一内容输入至该标识指示的输入框(即第一输入框)中。或者,用户可以先点击屏幕上的某个标识,再在输入法控件中输入第一内容;进而,对输入法控件中的Enter按键进行输入,以触发将第一内容输入至该标识指示的输入框(即第一输入框)中。此时,输入法焦点默认切换到该标识指示的输入框中。Optionally, in implementation a of Example 2: when the electronic device displays multiple input boxes (including the first input box), each input box in the multiple input boxes may be numbered to The identification (eg number) of each input box is displayed on the screen. Moreover, the electronic device may display the identifiers of each input box near the corresponding input box, such as above the input box. Specifically, after the user enters the first content (such as text) in the input method control, the user can click on a certain mark on the screen to trigger the electronic device to input the first content into the input box indicated by the mark (ie, the first input box). Alternatively, the user can first click on a certain mark on the screen, and then input the first content in the input method control; further, input the Enter button in the input method control to trigger the input of the first content to the input indicated by the mark box (ie the first input box). At this point, the input method focus is switched to the input box indicated by the flag by default.

示例性的,如图4所示,为本发明实施例提供的一种电子设备显示内容的示意图。结合图3中的(a),图4中的(a)中示出的屏幕上显示了应用程序1的界面A1和应用程序2的界面A2,界面A1中包括输入框A11,界面A2中包括输入框A21和输入框A22,输入框A11中还包括输入焦点C1。其中,电子设备在输入框A11的右侧显示了标识“1”,在输入框A21的右侧显示了标识“2”,在输入框A22的右侧显示了标识“3”。并且,界面A1中还包括输入法控件B1,输入法控件B1中显示有内容B11“我想你了”。另外,电子设备还在输入法控件B1的上方显示了“1”(即标识D1)、标识“1”(即标识D2)和标识“3”(即标识D3)。随后,如图4中的(b)所示,在用户对输入法控件B1的上方的标识D2进行输入,并对输入法控件B1中的Enter按键进行输入之后,电子设备可以在输入框A21中显示内容B11,在输入法控件B1中取消显示内容B11,以及将输入焦点C1移动至输入框A21中。此时,内容B11为第一内容,标识D2为第一标识,输入框A21为第一输入框,M个输入框为输入框A11、输入框A21和输入框A22,即M为3。其中,标识D2被输入之后处于选中状态,电子设备可以以一定方式显示标识D2,如加粗显示标识D2。Exemplarily, as shown in FIG. 4 , it is a schematic diagram of displaying content of an electronic device according to an embodiment of the present invention. In conjunction with (a) in FIG. 3, the screen shown in (a) in FIG. 4 displays the interface A1 of theapplication 1 and the interface A2 of the application 2, the interface A1 includes an input box A11, and the interface A2 includes Input box A21 and input box A22, input box A11 also includes input focus C1. Wherein, the electronic device displays the logo "1" on the right side of the input box A11, the logo "2" on the right side of the input box A21, and the logo "3" on the right side of the input box A22. In addition, the interface A1 also includes an input method control B1, and the input method control B1 displays the content B11 "I miss you". In addition, the electronic device also displays "1" (ie, identification D1), "1" (ie, identification D2) and "3" (ie, identification D3) above the input method control B1. Subsequently, as shown in (b) of FIG. 4 , after the user inputs the identification D2 above the input method control B1 and inputs the Enter key in the input method control B1, the electronic device can enter the input box A21 in the input box A21. Display the content B11, cancel the display of the content B11 in the input method control B1, and move the input focus C1 to the input box A21. At this time, the content B11 is the first content, the identifier D2 is the first identifier, the input box A21 is the first input box, and the M input boxes are the input box A11, the input box A21 and the input box A22, that is, M is 3. The identifier D2 is in a selected state after being input, and the electronic device can display the identifier D2 in a certain manner, such as displaying the identifier D2 in bold.

进一步的,如图4所示,电子设备在输入法控件B1的上方还可以显示一个删除控件F。其中,在用户对删除控件F进行输入之后,电子设备可以在输入法控件B1的上方取消显示标识D1、标识D2和标识D3(还可以取消每个输入框右侧显示的标识)。此时,针对屏幕上显示的任一输入框(如输入框A21),用户可以对输入框A21进行触发输入,触发电子设备在界面A1中显示输入法控件B1,进而支持用户通过输入法控件B1输入内容B11,并通过Enter按键将内容B11输入至输入框A21(如第一输入框)中。Further, as shown in FIG. 4 , the electronic device may further display a delete control F above the input method control B1. Wherein, after the user inputs the delete control F, the electronic device can cancel the display of the logo D1, the logo D2 and the logo D3 above the input method control B1 (the logo displayed on the right side of each input box can also be canceled). At this point, for any input box (such as input box A21) displayed on the screen, the user can trigger input to the input box A21, trigger the electronic device to display the input method control B1 in the interface A1, and then support the user to pass the input method control B1 Input the content B11, and input the content B11 into the input box A21 (eg, the first input box) through the Enter key.

可选的,在示例2的实现方式b中:电子设备显示的多个应用界面中的每个应用界面中包括一个输入框。具体的,一个输入框的标识可以为该输入框所在的应用界面所属的应用程序的信息(如应用程序的名称和图标等)。Optionally, in the implementation manner b of Example 2: each of the multiple application interfaces displayed by the electronic device includes an input box. Specifically, the identifier of an input box may be the information of the application program (such as the name and icon of the application program, etc.) to which the application interface where the input box is located belongs.

可选的,各个输入框的标识(即M个标识)可以以列表显示或者以饼状图的形式显示。Optionally, the identifiers of each input box (ie, the M identifiers) may be displayed in a list or in the form of a pie chart.

类似的,本发明实施例对实现方式b中电子设备在屏幕上显示输入框的标识,以及用户对各个标识的输入的描述,可以参照上述对实现方式a的相关描述,这里不再赘述。Similarly, in the embodiment of the present invention, for the identification of the input box displayed by the electronic device on the screen in implementation b, and the description of the user's input of each identification, reference may be made to the above related description of implementation a, which will not be repeated here.

示例性的,如图5所示,为本发明实施例提供的一种电子设备显示内容的示意图。图5中的(a)中示出的屏幕上显示了应用程序1的界面A1和应用程序2的界面A2,界面A1中包括输入框A11,界面A2中包括输入框A21。其中,界面A1中还包括输入法控件B1,输入法控件B1中显示有内容B11“我想你了”,输入框A11中还包括输入焦点C1。另外,电子设备还在输入法控件B1的右侧显示了标识E1“应用程序1”和标识E2“应用程序2”。随后,如图5中的(b)所示,在用户对输入法控件B1的右侧的标识E2和输入法控件B1中的Enter按键分别进行输入之后,电子设备可以在输入框A21中显示内容B11,在输入法控件B1中取消显示内容B11,以及将输入焦点C1移动至输入框A21中。此时,内容B11为第一内容,标识E2为第一标识,输入框A21为第一输入框,M个输入框为输入框A11和输入框A21,即M为2。并且,标识E1和标识E2为以列表形式显示的。其中,标识E2被输入之后处于选中状态,电子设备可以以一定方式显示标识E2,如加粗显示标识E2。Exemplarily, as shown in FIG. 5 , it is a schematic diagram of displaying content of an electronic device according to an embodiment of the present invention. The screen shown in (a) of FIG. 5 displays the interface A1 of theapplication 1 and the interface A2 of the application 2, the interface A1 includes an input box A11, and the interface A2 includes an input box A21. The interface A1 further includes an input method control B1, the content B11 "I miss you" is displayed in the input method control B1, and the input box A11 also includes an input focus C1. In addition, the electronic device also displays the identification E1 "application 1" and the identification E2 "application 2" on the right side of the input method control B1. Subsequently, as shown in (b) of FIG. 5 , after the user inputs the logo E2 on the right side of the input method control B1 and the Enter button in the input method control B1 respectively, the electronic device can display the content in the input box A21 B11, cancel the display of the content B11 in the input method control B1, and move the input focus C1 to the input box A21. At this time, the content B11 is the first content, the identifier E2 is the first identifier, the input box A21 is the first input box, and the M input boxes are the input box A11 and the input box A21, that is, M is 2. And, the identification E1 and the identification E2 are displayed in the form of a list. The identifier E2 is in a selected state after being input, and the electronic device may display the identifier E2 in a certain manner, such as displaying the identifier E2 in bold.

可选的,如图5中的(a)所示,在输入法控件B1中显示有内容B11“我想你了”的情况下,用户对输入法控件B1的右侧的标识E2进行输入,而不对输入法控件B1中的Enter按键进行输入,便可以触发电子设备在输入框A21中显示内容B11,在输入法控件B1中取消显示内容B11,以及将输入焦点C1移动至输入框A21中。此时,电子设备可以默认对应用程序2中的输入框A21执行输入操作。即电子设备执行图5中的(a)示出的步骤之后,可以直接显示图5中(c)示出的内容,而无需执行5中的(b)示出的步骤。Optionally, as shown in (a) of FIG. 5 , when the content B11 "I miss you" is displayed in the input method control B1, the user inputs the logo E2 on the right side of the input method control B1, Without inputting the Enter key in the input method control B1, the electronic device can be triggered to display the content B11 in the input box A21, cancel the display of the content B11 in the input method control B1, and move the input focus C1 to the input box A21. At this time, the electronic device can perform an input operation on the input box A21 in the application 2 by default. That is, after the electronic device performs the step shown in (a) in FIG. 5 , the content shown in (c) in FIG. 5 can be directly displayed without performing the step shown in (b) in FIG. 5 .

示例性的,如图6所示,为本发明实施例提供的一种电子设备显示内容的示意图。图6中的(a)中示出的屏幕上显示了应用程序1的界面A1和应用程序2的界面A2,界面A1中包括输入框A11,界面A2中包括输入框A21。其中,界面A1中还包括输入法控件B1,输入法控件B1中显示有内容B11“我想你了”。具体的,用户在对输入法控件B1中的Enter按键进行输入之后,如图6中的(b)所示电子设备可以将Enter按键切换显示为标识E1和标识E2。进而,用户对图6中的(b)示出的标识E2进行输入之后,电子设备可以在输入框A21中显示内容B11,在输入法控件B1中取消显示内容B11,以及将输入焦点C1移动至输入框A21中。此时,内容B11为第一内容,标识E2为第一标识,输入框A21为第一输入框,M个输入框包括输入框A11和输入框A21,即M为2。并且,图6中的(b)和(c)以饼状图形式显示标识E1和标识E2。Exemplarily, as shown in FIG. 6 , it is a schematic diagram of displaying content of an electronic device according to an embodiment of the present invention. The screen shown in (a) of FIG. 6 displays the interface A1 of theapplication 1 and the interface A2 of the application 2, the interface A1 includes an input box A11, and the interface A2 includes an input box A21. Among them, the interface A1 also includes an input method control B1, and the input method control B1 displays the content B11 "I miss you". Specifically, after the user inputs the Enter key in the input method control B1, as shown in (b) in FIG. 6 , the electronic device can switch the Enter key to display the logo E1 and the logo E2. Further, after the user inputs the identifier E2 shown in (b) of FIG. 6 , the electronic device can display the content B11 in the input box A21, cancel the display of the content B11 in the input method control B1, and move the input focus C1 to Input box A21. At this time, the content B11 is the first content, the identifier E2 is the first identifier, the input box A21 is the first input box, and the M input boxes include the input box A11 and the input box A21, that is, M is 2. And, (b) and (c) in FIG. 6 show the marker E1 and the marker E2 in the form of a pie chart.

进一步,可选的,本发明实施例中,在示例2的实现方式b中,电子设备在检测到屏幕上显示多个输入框的场景中,无需执行图6中的(a)示出的步骤,而是可以自动的将Enter按键切换显示为以饼状图显示的输入框的标识。此时,电子设备可以直接显示图6中的(b)示出的内容,并在执行图6中的(b)示出的步骤之后显示图6中的(c)示出的内容。Further, optionally, in this embodiment of the present invention, in implementation mode b of Example 2, in a scenario where the electronic device detects that multiple input boxes are displayed on the screen, it is not necessary to perform the step shown in (a) of FIG. 6 . , but can automatically switch the Enter key to display the identifier of the input box displayed in a pie chart. At this time, the electronic device may directly display the content shown in (b) in FIG. 6 , and display the content shown in (c) in FIG. 6 after performing the steps shown in (b) in FIG. 6 .

如此,在电子设备在屏幕上显示多个输入框的场景中,电子设备可以针对不同的输入框设置不同的标识,以使得用户可以通过对某个标识的输入,选择对相应的输入框执行输入操作;因此,有利于提高电子设备对多个输入框执行输入操作的便捷性。In this way, in a scenario where the electronic device displays multiple input boxes on the screen, the electronic device can set different identifiers for different input boxes, so that the user can choose to perform input on the corresponding input box by inputting a certain identifier. operation; therefore, it is beneficial to improve the convenience for the electronic device to perform input operations on multiple input boxes.

在一种可能的实现方式中,本发明实施例提供的输入控制方法,还可以包括S203和S204,如在S202之后还包括S203和S204:In a possible implementation manner, the input control method provided by the embodiment of the present invention may further include S203 and S204, for example, S203 and S204 are further included after S202:

S203、电子设备在输入法控件中显示第二内容、且第一标识处于选中状态的情况下,接收用户的第二输入。S203 , when the electronic device displays the second content in the input method control and the first identifier is in the selected state, the electronic device receives the second input from the user.

类似的,对第二输入的输入方式的描述,可以参照上述实施例中对第一输入的相关描述,本发明实施例对此不再赘述。Similarly, for the description of the input manner of the second input, reference may be made to the relevant description of the first input in the foregoing embodiment, which is not repeated in this embodiment of the present invention.

示例性的,参照上述图5或图6所示,在用户对标识E2(即第一标识)进行输入使得标识E2处于选中状态的情况下,用户向输入法控件B1中输入新的内容时,电子设备默认将新的内容输入至标识E2指示的输入框A21(即第一输入框)中。Exemplarily, as shown in FIG. 5 or FIG. 6 , when the user inputs the identification E2 (ie, the first identification) so that the identification E2 is in the selected state, when the user enters new content into the input method control B1, By default, the electronic device inputs new content into the input box A21 (ie, the first input box) indicated by the identifier E2.

S204、电子设备响应于第二输入,将第二内容输入至第一输入框。S204, the electronic device inputs the second content into the first input box in response to the second input.

示例性的,用户控制电子设备在输入法控件B1中重新输入内容B12“英语助手”之后,用户可以将内容B12拖动至输入框A21中,或者对输入法控件B1中的Enter按键进行输入,以使得电子设备将内容B12输入至输入框A21中。Exemplarily, after the user controls the electronic device to re-enter the content B12 "English Assistant" in the input method control B1, the user can drag the content B12 to the input box A21, or input the Enter key in the input method control B1, so that the electronic device inputs the content B12 into the input box A21.

进一步,用户可以通过一个输入,重新触发电子设备选择某个输入框的标识,即重新选择对哪个输入框执行输入操作。Further, the user can re-trigger the electronic device to select the identifier of a certain input box through an input, that is, re-select which input box to perform the input operation on.

可选的,用户可以先对已经选中的第一标识进行输入(如对第一标识的长按输入),使得第一标识处于为未选中状态(电子设备可以取消高亮显示第一标识)。随后,用户可以控制电子设备重新对M个标识中的某个标识进行输入,以使得该标识处于选中状态。从而,使得该标识指示的输入框处于输入状态,以使得电子设备可以将输入法控件中的内容输入至该输入框中。Optionally, the user can first input the selected first logo (eg, long-press input on the first logo), so that the first logo is in an unselected state (the electronic device can cancel the highlighting of the first logo). Subsequently, the user can control the electronic device to re-input a certain identification among the M identifications, so that the identification is in a selected state. Therefore, the input box indicated by the mark is in an input state, so that the electronic device can input the content in the input method control into the input box.

如此,由于电子设备可以控制某个输入框的标识处于选中状态,即控制某个输入持续处于输入状态,而无需每次输入内容时均重新对该输入框进行选择,因此在用户需求连续多次对同一输入框执行输入操作时,有利于进一步提高输入操作的便捷性。In this way, since the electronic device can control the identification of an input box to be in the selected state, that is, control an input to remain in the input state, without having to re-select the input box every time the content is input, the user needs to continuously select the input box for many times. When performing an input operation on the same input box, it is beneficial to further improve the convenience of the input operation.

在一种可能的实现方式中,本发明实施例中S201中的“将第一内容输入至第一输入框”可以通过S202b实现:In a possible implementation manner, "inputting the first content into the first input box" in S201 in the embodiment of the present invention may be implemented through S202b:

S202b、电子设备在满足目标条件的情况下,将第一内容输入至第一输入框;S202b, the electronic device inputs the first content into the first input box when the target condition is met;

其中,目标条件为以下条件1和条件2中的任意一项。Among them, the target condition is any one of the followingconditions 1 and 2.

条件1:屏幕为折叠屏且处于展开状态。Condition 1: The screen is a folding screen and is in an unfolded state.

一般而言,电子设备在处于展开状态的折叠屏上显示的应用界面较多,即显示的输入框较多。此时,用户需求从多个输入框中选择某个输入框执行输入操作。Generally speaking, the electronic device displays many application interfaces on the unfolded folding screen, that is, displays many input boxes. At this point, the user needs to select an input box from multiple input boxes to perform an input operation.

其中,在折叠屏且处于展开状态的情况下,输入快速切换功能处于开启状态;反之,在折叠屏且处于折叠状态的情况下,输入快速切换功能处于关闭状态。Wherein, when the screen is folded and in the unfolded state, the input quick switch function is on; on the contrary, when the screen is folded and in the folded state, the input quick switch function is off.

条件2:屏幕上显示的目标功能控件处于选中状态。Condition 2: The target function control displayed on the screen is selected.

可选的,目标功能控件可以显示在输入法控件所在界面的任意位置(如输入法控件附近,或者输入法控件中),或者显示在设置应用程序的设置界面中。Optionally, the target function control may be displayed at any position of the interface where the input method control is located (eg, near the input method control or in the input method control), or displayed in the setting interface of the setting application.

可以理解的是,本发明实施例中,电子设备中可以设置一个目标功能控件,用于设置用户是否开始输入快速切换功能。其中,在目标功能控件处于选中状态的情况下,输入快速切换功能处于开启状态;反之,在目标功能控件处于未选中状态的情况下,输入快速切换功能处于关闭状态。It can be understood that, in this embodiment of the present invention, a target function control may be set in the electronic device to set whether the user starts to input the fast switching function. Wherein, when the target function control is in a selected state, the input quick switching function is on; on the contrary, when the target function control is not selected, the input quick switching function is off.

具体的,本发明实施例中,在输入快速切换功能处于开启状态的情况下,电子设备响应于第一输入,将第一内容快速输入至第一输入框中。此时,电子设备可以响应于用户拖动第一内容至第一输入框的输入,将第一内容输入至第一输入框中。或者,电子设备可以对屏幕上显示的多个输入框分别设置标识,进行响应于用户对某个输入框的标识的输入,以对该输入框执行输入操作。此时,电子设备需要检测输入框的数量以及调用快捷切换输入框的步骤。Specifically, in the embodiment of the present invention, when the input fast switching function is in an on state, the electronic device responds to the first input and quickly inputs the first content into the first input box. At this time, the electronic device may input the first content into the first input box in response to the user's input of dragging the first content to the first input box. Alternatively, the electronic device may set identifiers on a plurality of input boxes displayed on the screen respectively, and perform an input operation on the input box in response to the user's input of the identifier of a certain input box. At this time, the electronic device needs to detect the number of input boxes and invoke the steps of shortcut switching input boxes.

相应的,在输入快速切换功能处于关闭状态的情况下,电子设备无法响应第一输入将第一内容至第一输入框。此时,电子设备不会响应于用户拖动第一内容至第一输入框的输入,将第一内容输入至第一输入框中。或者,电子设备不会对屏幕上显示的多个输入框分别设置标识,更不会响应于用户对某个输入框的标识的输入对该输入框执行输入操作。此时,用户可以分别对每个输入框执行触发输入,以调出输入法控件,并通过输入法控件向相应输入框输入内容。本发明实施例中,电子设备支持用户根据需求选择切换执行输入操作的输入框的方式。如此,在用户不需求快捷切换执行输入操作的输入框的场景中,用户可以触发电子设备停止执行检测输入框的数量的步骤、以及检测是否存在快速切换输入框的输入的步骤。从而,有利于电子设备在执行输入操作时执行不必要的操作,并提升执行输入操作过程中的用户体验。Correspondingly, when the input quick switching function is turned off, the electronic device cannot respond to the first input to transfer the first content to the first input box. At this time, the electronic device will not input the first content into the first input box in response to the user's input of dragging the first content to the first input box. Alternatively, the electronic device will not set identifiers for multiple input boxes displayed on the screen respectively, and will not perform an input operation on the input box in response to the user's input of the identifier of an input box. At this point, the user can perform trigger input on each input box to call up the input method control, and input content to the corresponding input box through the input method control. In this embodiment of the present invention, the electronic device supports the user to select a manner of switching the input box for performing the input operation according to the requirements. In this way, in a scenario where the user does not need to quickly switch input boxes for performing an input operation, the user can trigger the electronic device to stop performing the steps of detecting the number of input boxes and detecting whether there is an input of fast switching input boxes. Therefore, it is beneficial for the electronic device to perform unnecessary operations when performing the input operation, and the user experience in the process of performing the input operation is improved.

如图7所示,为本发明实施例提供的一种电子设备的结构示意图。图7示出的电子设备70包括接收模块71和控制模块72;接收模块71,用于在输入法控件中显示第一内容、且第一输入框中不包括输入焦点的情况下,接收用户针对第一内容的第一输入;控制模块72,用于响应于接收模块71接收的第一输入,将第一内容输入至第一输入框中,并控制第一输入框获取输入焦点;其中,第一输入框为电子设备的屏幕上显示的M个输入框中的输入框,M为大于或等于2的正整数。As shown in FIG. 7 , it is a schematic structural diagram of an electronic device according to an embodiment of the present invention. Theelectronic device 70 shown in FIG. 7 includes a receivingmodule 71 and acontrol module 72; the receivingmodule 71 is used to display the first content in the input method control and the first input box does not include the input focus, receive the user's target The first input of the first content; thecontrol module 72 is used to input the first content into the first input box in response to the first input received by the receivingmodule 71, and control the first input box to obtain the input focus; An input box is an input box among M input boxes displayed on the screen of the electronic device, where M is a positive integer greater than or equal to 2.

可选的,第一输入为将第一内容拖动至第一输入框的输入。Optionally, the first input is an input of dragging the first content to the first input box.

可选的,屏幕上还显示有M个标识,一个标识用于指示一个输入框;接收模块71,具体用于接收用户针对M个标识中的第一标识的第一输入;其中,第一标识用于指示第一输入框。Optionally, M identifiers are also displayed on the screen, and one identifier is used to indicate an input box; the receivingmodule 71 is specifically configured to receive the first input from the user for the first identifier in the M identifiers; wherein, the first identifier Used to indicate the first input box.

可选的,M个输入框为N个应用界面中的输入框,一个应用界面包括M个输入框中的一个或多个输入框,N为小于或等于M的正整数。Optionally, the M input boxes are input boxes in N application interfaces, one application interface includes one or more input boxes in the M input boxes, and N is a positive integer less than or equal to M.

可选的,接收模块71,还用于在输入法控件中显示第二内容、且第一标识处于选中状态的情况下,接收用户针对第二内容的第二输入;控制模块72,还用于响应于接收模块71接收的第二输入,将第二内容输入至第一输入框。Optionally, the receivingmodule 71 is further configured to display the second content in the input method control and the first identifier is in the selected state, receive the second input from the user for the second content; thecontrol module 72 is further configured to: In response to the second input received by the receivingmodule 71, the second content is input into the first input box.

可选的,控制模块72,具体用于将输入焦点从第二输入框移动至第一输入框;其中,第二输入框为M个输入框中的输入框,第二输入框与第一输入框不同,输入法控件为通过第二输入框触发显示的。Optionally, thecontrol module 72 is specifically configured to move the input focus from the second input box to the first input box; wherein, the second input box is an input box in M input boxes, and the second input box is the same as the first input box. box, the input method control is triggered and displayed through the second input box.

可选的,控制模块72,具体用于在满足目标条件的情况下,将第一内容输入至第一输入框中;其中,目标条件为以下任意一项:屏幕为折叠屏且处于展开状态,屏幕上显示的目标功能控件处于选中状态。Optionally, thecontrol module 72 is specifically configured to input the first content into the first input box when the target condition is met; wherein, the target condition is any one of the following: the screen is a folded screen and is in an unfolded state, The target function control displayed on the screen is selected.

需要说明的是,本发明实施例提供的电子设备,在输入法控件中显示第一内容、且第一输入框中不包括输入焦点的情况下,可以通过针对第一内容的第一输入,将第一内容输入至第一输入框中,并控制第一输入框获取输入焦点。如此,在电子设备显示多个输入框的场景中,用户通过较为便捷的第一输入,可以触发电子设备将当前输入法控件中的内容(第一内容)输入至第一输入框中;而不一定需要用户先对第一输入框的触发输入控制第一输入框获取输入焦点,再通过向输入法控件中输入内容(如第一内容)以将向第一输入框中输入该内容。从而,简化了对多个输入框中的输入框执行输入操作的步骤。It should be noted that, in the electronic device provided by the embodiment of the present invention, when the first content is displayed in the input method control and the first input box does not include the input focus, the first input for the first content can The first content is input into the first input box, and the first input box is controlled to obtain the input focus. In this way, in a scenario where the electronic device displays multiple input boxes, the user can trigger the electronic device to input the content (first content) in the current input method control into the first input box through a relatively convenient first input; instead of The user must first control the first input box to obtain the input focus on the trigger input of the first input box, and then input the content (such as the first content) into the input method control to input the content into the first input box. Thus, the steps of performing an input operation on the input boxes of the plurality of input boxes are simplified.

本发明实施例提供的电子设备70能够实现上述方法实施例中电子设备实现的各个过程,为避免重复,这里不再赘述。Theelectronic device 70 provided in this embodiment of the present invention can implement various processes implemented by the electronic device in the foregoing method embodiments, and to avoid repetition, details are not described herein again.

图8为本发明实施例提供的一种电子设备的硬件结构示意图,该电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、处理器110、以及电源111等部件。本领域技术人员可以理解,图8中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、以及计步器等。8 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention. Theelectronic device 100 includes but is not limited to: aradio frequency unit 101 , anetwork module 102 , anaudio output unit 103 , aninput unit 104 , asensor 105 , and adisplay unit 106 , theuser input unit 107 , theinterface unit 108 , thememory 109 , theprocessor 110 , and the power supply 111 and other components. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 8 does not constitute a limitation on the electronic device, and the electronic device may include more or less components than the one shown, or combine some components, or different components layout. In this embodiment of the present invention, the electronic devices include but are not limited to mobile phones, tablet computers, notebook computers, palmtop computers, in-vehicle electronic devices, wearable devices, and pedometers.

其中,用户输入单元107,用于在输入法控件中显示第一内容、且第一输入框中不包括输入焦点的情况下,接收用户针对第一内容的第一输入;处理器110,用于响应于用户输入单元107接收的第一输入,将第一内容输入至第一输入框中,并控制第一输入框获取输入焦点;其中,第一输入框为电子设备的屏幕上显示的M个输入框中的输入框,M为大于或等于2的正整数。Theuser input unit 107 is configured to display the first content in the input method control and the first input box does not include the input focus, and receive the first input from the user for the first content; theprocessor 110 is configured to In response to the first input received by theuser input unit 107, input the first content into the first input box, and control the first input box to obtain the input focus; wherein, the first input box is M displayed on the screen of the electronic device The input box of the input box, M is a positive integer greater than or equal to 2.

需要说明的是,本发明实施例提供的电子设备,在输入法控件中显示第一内容、且第一输入框中不包括输入焦点的情况下,可以通过针对第一内容的第一输入,将第一内容输入至第一输入框中,并控制第一输入框获取输入焦点。如此,在电子设备显示多个输入框的场景中,用户通过较为便捷的第一输入,可以触发电子设备将当前输入法控件中的内容(第一内容)输入至第一输入框中;而不一定需要用户先对第一输入框的触发输入控制第一输入框获取输入焦点,再通过向输入法控件中输入内容(如第一内容)以将向第一输入框中输入该内容。从而,简化了对多个输入框中的输入框执行输入操作的步骤。It should be noted that, in the electronic device provided by the embodiment of the present invention, when the first content is displayed in the input method control and the first input box does not include the input focus, the first input for the first content can The first content is input into the first input box, and the first input box is controlled to obtain the input focus. In this way, in a scenario where the electronic device displays multiple input boxes, the user can trigger the electronic device to input the content (first content) in the current input method control into the first input box through a relatively convenient first input; instead of The user must first control the first input box to obtain the input focus on the trigger input of the first input box, and then input the content (such as the first content) into the input method control to input the content into the first input box. Thus, the steps of performing an input operation on the input boxes of the plurality of input boxes are simplified.

应理解的是,本发明实施例中,射频单元101可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器110处理;另外,将上行的数据发送给基站。通常,射频单元101包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元101还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in this embodiment of the present invention, theradio frequency unit 101 may be used for receiving and sending signals in the process of sending and receiving information or during a call. Specifically, after receiving the downlink data from the base station, it is processed by theprocessor 110; The uplink data is sent to the base station. Generally, theradio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, theradio frequency unit 101 can also communicate with the network and other devices through a wireless communication system.

电子设备通过网络模块102为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The electronic device provides the user with wireless broadband Internet access through thenetwork module 102, such as helping the user to send and receive emails, browse web pages, access streaming media, and the like.

音频输出单元103可以将射频单元101或网络模块102接收的或者在存储器109中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元103还可以提供与电子设备100执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元103包括扬声器、蜂鸣器以及受话器等。Theaudio output unit 103 may convert audio data received by theradio frequency unit 101 or thenetwork module 102 or stored in thememory 109 into audio signals and output as sound. Also, theaudio output unit 103 may also provide audio output related to a specific function performed by the electronic device 100 (eg, call signal reception sound, message reception sound, etc.). Theaudio output unit 103 includes a speaker, a buzzer, a receiver, and the like.

输入单元104用于接收音频或视频信号。输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元106上。经图形处理器1041处理后的图像帧可以存储在存储器109(或其它存储介质)中或者经由射频单元101或网络模块102进行发送。麦克风1042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元101发送到移动通信基站的格式输出。Theinput unit 104 is used to receive audio or video signals. Theinput unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and amicrophone 1042. Thegraphics processor 1041 captures images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode data is processed. The processed image frames may be displayed on thedisplay unit 106 . The image frames processed by thegraphics processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via theradio frequency unit 101 or thenetwork module 102 . Themicrophone 1042 can receive sound and can process such sound into audio data. The processed audio data can be converted into a format that can be transmitted to a mobile communication base station via theradio frequency unit 101 for output in the case of a telephone call mode.

电子设备100还包括至少一种传感器105,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1061的亮度,接近传感器可在电子设备100移动到耳边时,关闭显示面板1061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器105还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。Theelectronic device 100 also includes at least onesensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of thedisplay panel 1061 according to the brightness of the ambient light, and the proximity sensor can turn off thedisplay panel 1061 and thedisplay panel 1061 when theelectronic device 100 is moved to the ear. / or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games , magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; thesensor 105 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, Infrared sensors, etc., are not repeated here.

显示单元106用于显示由用户输入的信息或提供给用户的信息。显示单元106可包括显示面板1061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1061。Thedisplay unit 106 is used to display information input by the user or information provided to the user. Thedisplay unit 106 may include adisplay panel 1061, and thedisplay panel 1061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

用户输入单元107可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1071上或在触控面板1071附近的操作)。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器110,接收处理器110发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1071。除了触控面板1071,用户输入单元107还可以包括其他输入设备1072。具体地,其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。Theuser input unit 107 may be used to receive input numerical or character information, and generate key signal input related to user settings and function control of the electronic device. Specifically, theuser input unit 107 includes atouch panel 1071 andother input devices 1072 . Thetouch panel 1071, also referred to as a touch screen, can collect the user's touch operations on or near it (such as the user's finger, stylus, etc., any suitable object or attachment on or near the touch panel 1071). operate). Thetouch panel 1071 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller. To theprocessor 110, the command sent by theprocessor 110 is received and executed. In addition, thetouch panel 1071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to thetouch panel 1071 , theuser input unit 107 may also includeother input devices 1072 . Specifically,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 will not be described herein again.

进一步的,触控面板1071可覆盖在显示面板1061上,当触控面板1071检测到在其上或附近的触摸操作后,传送给处理器110以确定触摸事件的类型,随后处理器110根据触摸事件的类型在显示面板1061上提供相应的视觉输出。虽然在图8中,触控面板1071与显示面板1061是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板1071与显示面板1061集成而实现电子设备的输入和输出功能,具体此处不做限定。Further, thetouch panel 1071 can be covered on thedisplay panel 1061. When thetouch panel 1071 detects a touch operation on or near it, it transmits it to theprocessor 110 to determine the type of the touch event, and then theprocessor 110 determines the type of the touch event according to the touch The type of event provides corresponding visual output ondisplay panel 1061 . Although in FIG. 8 , thetouch panel 1071 and thedisplay panel 1061 are used as two independent components to realize the input and output functions of the electronic device, but in some embodiments, thetouch panel 1071 and thedisplay panel 1061 may be integrated The implementation of the input and output functions of the electronic device is not specifically limited here.

接口单元108为外部装置与电子设备100连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元108可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备100内的一个或多个元件或者可以用于在电子设备100和外部装置之间传输数据。Theinterface unit 108 is an interface for connecting an external device to theelectronic device 100 . For example, external devices may include wired or wireless headset ports, external power (or battery charger) ports, wired or wireless data ports, memory card ports, ports for connecting devices with identification modules, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. Theinterface unit 108 may be used to receive input (eg, data information, power, etc.) from external devices and transmit the received input to one or more elements within theelectronic device 100 or may be used between theelectronic device 100 and external Transfer data between devices.

存储器109可用于存储软件程序以及各种数据。存储器109可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器109可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。Thememory 109 may be used to store software programs as well as various data. Thememory 109 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program (such as a sound playback function, an image playback function, etc.) required for at least one function, and the like; Data created by the use of the mobile phone (such as audio data, phone book, etc.), etc. Additionally,memory 109 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.

处理器110是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器109内的软件程序和/或模块,以及调用存储在存储器109内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器110可包括一个或多个处理单元;优选的,处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。Theprocessor 110 is the control center of the electronic device, using various interfaces and lines to connect various parts of the entire electronic device, by running or executing the software programs and/or modules stored in thememory 109, and calling the data stored in thememory 109. , perform various functions of electronic equipment and process data, so as to monitor electronic equipment as a whole. Theprocessor 110 may include one or more processing units; preferably, theprocessor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem The processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into theprocessor 110 .

电子设备100还可以包括给各个部件供电的电源111(比如电池),优选的,电源111可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。Theelectronic device 100 may also include a power supply 111 (such as a battery) for supplying power to various components. Preferably, the power supply 111 may be logically connected to theprocessor 110 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system and other functions.

另外,电子设备100包括一些未示出的功能模块,在此不再赘述。In addition, theelectronic device 100 includes some functional modules not shown, which will not be repeated here.

优选的,本发明实施例还提供一种电子设备,包括处理器110,存储器109,存储在存储器109上并可在所述处理器110上运行的计算机程序,该计算机程序被处理器110执行时实现上述输入控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, an embodiment of the present invention further provides an electronic device, including aprocessor 110 , amemory 109 , a computer program stored in thememory 109 and running on theprocessor 110 , when the computer program is executed by theprocessor 110 Various processes of the above-mentioned embodiments of the input control method are implemented, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.

本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述输入控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Embodiments of the present invention further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above-mentioned input control method embodiments can be implemented, and the same technology can be achieved. The effect, in order to avoid repetition, is not repeated here. The computer-readable storage medium is, for example, a 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.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。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.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台电子设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course hardware can also be used, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present application can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are 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 this 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 (12)

Translated fromChinese
1.一种输入控制方法,应用于电子设备,其特征在于,所述方法包括:1. an input control method, applied to electronic equipment, is characterized in that, described method comprises:在输入法控件中显示第一内容、且第一输入框中不包括输入焦点的情况下,接收用户针对所述第一内容的第一输入;In the case where the first content is displayed in the input method control and the first input box does not include an input focus, receiving a first input from the user for the first content;响应于所述第一输入,将所述第一内容输入至所述第一输入框中,并控制所述第一输入框获取所述输入焦点;In response to the first input, input the first content into the first input box, and control the first input box to obtain the input focus;其中,所述第一输入框为所述电子设备的屏幕上显示的M个输入框中的输入框,M为大于或等于2的正整数。The first input box is an input box among M input boxes displayed on the screen of the electronic device, and M is a positive integer greater than or equal to 2.2.根据权利要求1所述的方法,其特征在于,所述屏幕上还显示有M个标识,一个标识用于指示一个输入框;2. method according to claim 1, is characterized in that, on described screen, also is displayed with M mark, one mark is used to indicate an input box;所述接收用户针对所述第一内容的第一输入,包括:The receiving user's first input for the first content includes:接收用户针对所述M个标识中的第一标识的第一输入;receiving a first input from a user for a first identifier in the M identifiers;其中,所述第一标识用于指示所述第一输入框。Wherein, the first identifier is used to indicate the first input box.3.根据权利要求2所述的方法,其特征在于,所述M个输入框为N个应用界面中的输入框,一个应用界面包括所述M个输入框中的一个或多个输入框,N为小于或等于M的正整数。3. The method according to claim 2, wherein the M input boxes are input boxes in N application interfaces, and an application interface includes one or more input boxes in the M input boxes, N is a positive integer less than or equal to M.4.根据权利要求3所述的方法,其特征在于,所述方法还包括:4. The method according to claim 3, wherein the method further comprises:在所述输入法控件中显示第二内容、且所述第一标识处于选中状态的情况下,接收用户针对所述第二内容的第二输入;In the case where the second content is displayed in the input method control and the first identifier is in a selected state, receiving a second input from the user for the second content;响应于所述第二输入,将所述第二内容输入至所述第一输入框。In response to the second input, the second content is input to the first input box.5.根据权利要求1所述的方法,其特征在于,所述控制所述第一输入框获取所述输入焦点,包括:The method according to claim 1, wherein the controlling the first input box to obtain the input focus comprises:将输入焦点从第二输入框移动至所述第一输入框;moving the input focus from the second input box to the first input box;其中,所述第二输入框为所述M个输入框中的输入框,所述第二输入框与所述第一输入框不同,所述输入法控件为通过所述第二输入框触发显示的。The second input box is an input box in the M input boxes, the second input box is different from the first input box, and the input method control is triggered and displayed through the second input box of.6.一种电子设备,其特征在于,所述电子设备包括:接收模块和控制模块;6. An electronic device, characterized in that the electronic device comprises: a receiving module and a control module;所述接收模块,用于在输入法控件中显示第一内容、且第一输入框中不包括输入焦点的情况下,接收用户针对所述第一内容的第一输入;The receiving module is configured to receive the first input of the user for the first content when the first content is displayed in the input method control and the first input box does not include an input focus;所述控制模块,用于响应于所述接收模块接收的所述第一输入,将所述第一内容输入至所述第一输入框中,并控制所述第一输入框获取所述输入焦点;The control module is configured to input the first content into the first input box in response to the first input received by the receiving module, and control the first input box to obtain the input focus ;其中,所述第一输入框为所述电子设备的屏幕上显示的M个输入框中的输入框,M为大于或等于2的正整数。The first input box is an input box among M input boxes displayed on the screen of the electronic device, and M is a positive integer greater than or equal to 2.7.根据权利要求6所述的电子设备,其特征在于,所述屏幕上还显示有M个标识,一个标识用于指示一个输入框;7. electronic equipment according to claim 6, is characterized in that, also displays M marks on described screen, and a mark is used to indicate an input box;所述接收模块,具体用于接收用户针对所述M个标识中的第一标识的第一输入;The receiving module is specifically configured to receive a user's first input for the first identifier in the M identifiers;其中,所述第一标识用于指示所述第一输入框。Wherein, the first identifier is used to indicate the first input box.8.根据权利要求7所述的电子设备,其特征在于,所述M个输入框为N个应用界面中的输入框,一个应用界面包括所述M个输入框中的一个或多个输入框,N为小于或等于M的正整数。8. The electronic device according to claim 7, wherein the M input boxes are input boxes in N application interfaces, and one application interface includes one or more input boxes in the M input boxes , where N is a positive integer less than or equal to M.9.根据权利要求8所述的电子设备,其特征在于,9. The electronic device according to claim 8, wherein,所述接收模块,还用于在所述输入法控件中显示第二内容、且所述第一标识处于选中状态的情况下,接收用户针对所述第二内容的第二输入;The receiving module is further configured to receive a second input from the user for the second content when the second content is displayed in the input method control and the first identifier is in a selected state;所述控制模块,还用于响应于所述接收模块接收的所述第二输入,将所述第二内容输入至所述第一输入框。The control module is further configured to input the second content into the first input box in response to the second input received by the receiving module.10.根据权利要求6所述的电子设备,其特征在于,10. The electronic device according to claim 6, wherein,所述控制模块,具体用于将输入焦点从第二输入框移动至所述第一输入框;The control module is specifically configured to move the input focus from the second input box to the first input box;其中,所述第二输入框为所述M个输入框中的输入框,所述第二输入框与所述第一输入框不同,所述输入法控件为通过所述第二输入框触发显示的。The second input box is an input box in the M input boxes, the second input box is different from the first input box, and the input method control is triggered and displayed through the second input box of.11.一种电子设备,其特征在于,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至5中任一项所述的输入控制方法的步骤。11. An electronic device, characterized in that it comprises a processor, a memory and a computer program stored on the memory and running on the processor, the computer program being executed by the processor to achieve the right The steps of the input control method of any one of claims 1 to 5 are required.12.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1至5中任一项所述的输入控制方法的步骤。12. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the input according to any one of claims 1 to 5 is realized The steps of the control method.
CN201911033620.4A2019-10-282019-10-28Input control method and electronic equipmentActiveCN110874148B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201911033620.4ACN110874148B (en)2019-10-282019-10-28Input control method and electronic equipment

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201911033620.4ACN110874148B (en)2019-10-282019-10-28Input control method and electronic equipment

Publications (2)

Publication NumberPublication Date
CN110874148Atrue CN110874148A (en)2020-03-10
CN110874148B CN110874148B (en)2023-10-10

Family

ID=69717889

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201911033620.4AActiveCN110874148B (en)2019-10-282019-10-28Input control method and electronic equipment

Country Status (1)

CountryLink
CN (1)CN110874148B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN112000766A (en)*2020-07-152020-11-27北京搜狗科技发展有限公司 A data processing method, device and medium
CN114265541A (en)*2021-12-222022-04-01统信软件技术有限公司Information input method, computing device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103164162A (en)*2013-03-262013-06-19东莞宇龙通信科技有限公司 Text application method and device for handwriting input
CN105549876A (en)*2015-12-042016-05-04小米科技有限责任公司Method and apparatus for performing input in input box
CN105786797A (en)*2016-02-232016-07-20北京云知声信息技术有限公司Information processing method and device based on voice input
US20180260085A1 (en)*2013-09-302018-09-13Google Inc.Autofill user interface for mobile device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103164162A (en)*2013-03-262013-06-19东莞宇龙通信科技有限公司 Text application method and device for handwriting input
US20180260085A1 (en)*2013-09-302018-09-13Google Inc.Autofill user interface for mobile device
CN105549876A (en)*2015-12-042016-05-04小米科技有限责任公司Method and apparatus for performing input in input box
CN105786797A (en)*2016-02-232016-07-20北京云知声信息技术有限公司Information processing method and device based on voice input

Cited By (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN112000766A (en)*2020-07-152020-11-27北京搜狗科技发展有限公司 A data processing method, device and medium
CN114265541A (en)*2021-12-222022-04-01统信软件技术有限公司Information input method, computing device and storage medium
CN114265541B (en)*2021-12-222024-05-31统信软件技术有限公司Information input method, computing device and storage medium

Also Published As

Publication numberPublication date
CN110874148B (en)2023-10-10

Similar Documents

PublicationPublication DateTitle
CN109828850B (en)Information display method and terminal equipment
CN111596845A (en) Display control method, device and electronic device
WO2020181942A1 (en)Icon control method and terminal device
WO2020258929A1 (en)Folder interface switching method and terminal device
WO2021083132A1 (en)Icon moving method and electronic device
CN110413168A (en) Icon management method and terminal
CN109828731B (en) A search method and terminal device
CN110874147A (en) A display method and electronic device
CN109857289B (en)Display control method and terminal equipment
CN111026299A (en)Information sharing method and electronic equipment
CN111026350A (en)Display control method and electronic equipment
CN109521933A (en)A kind of display control method and mobile terminal
WO2021129536A1 (en)Icon moving method and electronic device
CN109829707B (en) Interface display method and terminal device
CN108170329B (en)Display control method and terminal equipment
CN110489045A (en)A kind of object displaying method and terminal device
CN111638822A (en)Icon operation method and device and electronic equipment
CN110244884A (en) A desktop icon management method and terminal device
CN111459349A (en)Application recommendation method and electronic equipment
CN110012151A (en)A kind of information display method and terminal device
WO2020199783A1 (en)Interface display method and terminal device
CN110647277A (en) A control method and terminal device
CN107992342A (en)A kind of application configuration change method and mobile terminal
WO2020181954A1 (en)Application program control method and terminal device
CN108681427A (en)A kind of method and terminal device of access privilege control

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp