[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN106970848A - Input control method, device and electronic equipment - Google Patents

Input control method, device and electronic equipment Download PDF

Info

Publication number
CN106970848A
CN106970848A CN201710196892.0A CN201710196892A CN106970848A CN 106970848 A CN106970848 A CN 106970848A CN 201710196892 A CN201710196892 A CN 201710196892A CN 106970848 A CN106970848 A CN 106970848A
Authority
CN
China
Prior art keywords
input
input area
area
interface
text
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
CN201710196892.0A
Other languages
Chinese (zh)
Other versions
CN106970848B (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201710196892.0A priority Critical patent/CN106970848B/en
Publication of CN106970848A publication Critical patent/CN106970848A/en
Application granted granted Critical
Publication of CN106970848B publication Critical patent/CN106970848B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/543User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

This application discloses a kind of input control method, device and electronic equipment, this method includes:Monitor the text of input in the first input area in the first interface where input focus;Cache the text of the last input in first input area;When detecting the input focus and being switched to the second input area from the first input area, the last target text inputted in first input area before obtaining current time, and showed the target text as the candidate item of the corresponding optional input of second input area.The scheme of the application can improve the convenience and high efficiency of input operation.

Description

输入控制方法、装置和电子设备Input control method, device and electronic device

技术领域technical field

本申请涉及互联网技术领域,更具体地说,涉及一种输入控制方法、装置和电子设备。The present application relates to the technical field of the Internet, and more specifically, to an input control method, device and electronic equipment.

背景技术Background technique

在日常生活以及工作过程中,用户在进行输入操作的过程中,经常会涉及相同内容的重复输入,在该种情况中,用户需要重复输入之前的内容,操作过程较为复杂,导致输入效率较低。如,用户在一款搜索引擎的页面中输入搜索关键词进行搜索之后,如果没有搜索到与该关键词匹配的搜索结果,则可能需要更换另一款搜索引擎对该关键词进行搜索,那么用户在切换了搜索引擎之后,就可能需要重复上一次输入的关键词,然后再发起搜索,导致搜索过程较为复杂。因此,如何提高输入操作的便捷性和高效性是本领域技术人员迫切需要解决的技术问题。In daily life and work, the user often involves repeated input of the same content during the input operation. In this case, the user needs to repeatedly input the previous content, and the operation process is relatively complicated, resulting in low input efficiency. . For example, after a user enters a search keyword in the page of a search engine to search, if no search result matching the keyword is found, it may be necessary to switch to another search engine to search for the keyword, then the user After switching the search engine, it may be necessary to repeat the keyword entered last time, and then initiate a search, resulting in a more complicated search process. Therefore, how to improve the convenience and efficiency of the input operation is an urgent technical problem to be solved by those skilled in the art.

发明内容Contents of the invention

有鉴于此,本申请提供了一种输入控制方法、装置和电子设备,以提高输入操作的便捷性和高效性。In view of this, the present application provides an input control method, device and electronic equipment to improve the convenience and efficiency of input operations.

为了实现上述目的,现提出的方案如下:In order to achieve the above purpose, the proposed scheme is as follows:

一种输入控制方法,包括:An input control method, comprising:

监控第一界面中输入焦点所在的第一输入区域内输入的文本;Monitor the text input in the first input area where the input focus is located in the first interface;

缓存所述第一输入区域内最近一次输入的文本;caching the last text input in the first input area;

当检测到所述输入焦点从第一输入区域切换到第二输入区域时,获取当前时刻之前所述第一输入区域内最近一次输入的目标文本,并将所述目标文本作为所述第二输入区域对应的可选择输入的候选项进行展现。When it is detected that the input focus is switched from the first input area to the second input area, acquire the target text input last time in the first input area before the current moment, and use the target text as the second input Selectable input candidates corresponding to the region are displayed.

优选的,在所述将所述目标文本作为所述第二输入区域对应的可选择输入的候选项进行展现之后,还包括:Preferably, after presenting the target text as a selectable input candidate corresponding to the second input area, the method further includes:

当检测到用于触发对展现出的所述目标文本进行选择的预设操作时,将所述目标文本输入到所述第二输入区域。When a preset operation for triggering selection of the displayed target text is detected, the target text is input into the second input area.

优选的,所述检测到所述输入焦点从第一输入区域切换到第二输入区域,包括:Preferably, the detecting that the input focus is switched from the first input area to the second input area includes:

检测到输入焦点从所述第一界面的第一输入区域切换到第二界面的第二输入区域。It is detected that the input focus is switched from the first input area of the first interface to the second input area of the second interface.

优选的,所述缓存所述第一输入区域内最近一次输入的文本,包括:Preferably, the caching of the last text input in the first input area includes:

当检测到处于显示界面顶层的界面从所述第一界面切换为第二界面时,缓存所述第一输入区域内最近一次输入的文本。When it is detected that the interface at the top layer of the display interface is switched from the first interface to the second interface, the latest input text in the first input area is cached.

优选的,所述监控第一界面中输入焦点所在的第一输入区域内输入的文本,包括:Preferably, the monitoring of text input in the first input area where the input focus is located in the first interface includes:

监控第一应用的第一界面中,输入焦点所在的第一输入区域内输入的文本;Monitoring the text entered in the first input area where the input focus is located in the first interface of the first application;

则所述检测到输入焦点从所述第一界面的第一输入区域切换到第二界面的第二输入区域,包括:Then the detection that the input focus is switched from the first input area of the first interface to the second input area of the second interface includes:

检测到输入焦点从所述第一界面的第一输入区域切换到第二应用中第二界面的第二输入区域。It is detected that the input focus is switched from the first input area of the first interface to the second input area of the second interface in the second application.

优选的,所述监控第一界面中输入焦点所在的第一输入区域内输入的文本,包括:Preferably, the monitoring of text input in the first input area where the input focus is located in the first interface includes:

监控第一搜索界面中输入焦点所在的第一搜索输入栏中输入的关键词;Monitoring keywords input in the first search input field where the input focus is located in the first search interface;

所述检测到输入焦点从所述第一界面的第一输入区域切换到第二界面的第二输入区域,包括:The detecting that the input focus is switched from the first input area of the first interface to the second input area of the second interface includes:

检测到输入焦点从所述第一搜索界面的第一搜索输入栏切换到第二搜索界面的第二搜索输入栏。It is detected that the input focus is switched from the first search input field of the first search interface to the second search input field of the second search interface.

优选的,所述缓存所述第一输入区域内最近一次输入的文本,包括:Preferably, the caching of the last text input in the first input area includes:

调用所述第一输入区域关联的第一输入法程序将所述第一输入区域内最近一次输入的文本缓存到指定存储区;calling the first input method program associated with the first input area to cache the last input text in the first input area to a designated storage area;

则所述获取当前时刻之前所述第一输入区域内最近一次输入的目标文本,并将所述目标文本作为所述第二输入区域对应的可选择输入的候选项进行展现,包括:Then the acquisition of the target text input last time in the first input area before the current moment, and presenting the target text as a candidate for selectable input corresponding to the second input area, includes:

向所述第二输入区域关联的第二输入法程序发送候选词呈现指示,所述候选词呈现指示用于指示所述第二输入法程序从所述指定存储空间读取所述第一输入区域内最近一次输入的目标文本,并将所述目标文本展现在所述第二输入法程序的候选输入栏中。sending a candidate word presentation indication to a second input method program associated with the second input area, where the candidate word presentation indication is used to instruct the second input method program to read the first input area from the designated storage space The last input target text is displayed in the input candidate column of the second input method program.

另一方面,本申请实施例还提供了一种电子设备,包括:On the other hand, the embodiment of the present application also provides an electronic device, including:

输入单元,用于监控第一界面中输入焦点所在的第一输入区域内输入的文本;an input unit, configured to monitor text input in the first input area where the input focus is located in the first interface;

存储器,用于缓存所述第一输入区域内最近一次输入的文本;a memory, used for caching the latest text input in the first input area;

处理器,用于当检测到所述输入焦点从第一输入区域切换到第二输入区域时,从所述存储器中获取当前时刻之前所述第一输入区域内最近一次输入的目标文本,并将所述目标文本作为所述第二输入区域对应的可选择输入的候选项;a processor, configured to obtain from the memory the last input target text in the first input area before the current moment when it is detected that the input focus is switched from the first input area to the second input area, and The target text is used as a candidate for selectable input corresponding to the second input area;

输出单元,用于将所述目标文本作为所述第二输入区域对应的可选择输入的候选项进行展现。An output unit, configured to present the target text as a selectable input candidate corresponding to the second input area.

优选的,所述处理器,还用于,在所述输出单元将所述目标文本作为所述第二输入区域对应的可选择输入的候选项进行展现之后,当检测到用于触发对展现出的所述目标文本进行选择的预设操作时,控制所述输出单元将所述目标文本输入到所述第二输入区域。Preferably, the processor is further configured to, after the output unit presents the target text as a selectable input candidate corresponding to the second input area, when a trigger for displaying is detected When the preset operation of selecting the target text is performed, the output unit is controlled to input the target text into the second input area.

优选的,所述电子设备在检测到所述输入焦点从第一输入区域切换到第二输入区域时,具体用于,检测到输入焦点从所述第一界面的第一输入区域切换到第二界面的第二输入区域。Preferably, when the electronic device detects that the input focus is switched from the first input area to the second input area, it is specifically used to detect that the input focus is switched from the first input area to the second input area on the first interface. The second input area of the interface.

优选的,所述输入单元在监控第一界面中输入焦点所在的第一输入区域内输入的文本时,具体用于,监控第一搜索界面中输入焦点所在的第一搜索输入栏中输入的关键词;Preferably, when the input unit monitors the text input in the first input area where the input focus is located in the first interface, it is specifically used to monitor the key input in the first search input field where the input focus is located in the first search interface. word;

所述处理器在检测到输入焦点从所述第一界面的第一输入区域切换到第二界面的第二输入区域时,具体用于,检测到输入焦点从所述第一搜索界面的第一搜索输入栏切换到第二搜索界面的第二搜索输入栏。When the processor detects that the input focus switches from the first input area of the first interface to the second input area of the second interface, it is specifically configured to detect that the input focus switches from the first input area of the first search interface to the second input area of the second interface. The search input field switches to the second search input field of the second search interface.

优选的,所述处理器,还用于调用所述第一输入区域关联的第一输入法程序将所述第一输入区域内最近一次输入的文本缓存到所述存储器的指定存储区;Preferably, the processor is further configured to call a first input method program associated with the first input area to cache the last input text in the first input area to a designated storage area of the memory;

则所述处理器在获取当前时刻之前所述第一输入区域内最近一次输入的目标文本时,并将所述目标文本作为所述第二输入区域对应的可选择输入的候选项,具体用于,向所述第二输入区域关联的第二输入法程序发送候选词呈现指示,所述候选词呈现指示用于指示所述第二输入法程序从所述指定存储空间读取所述第一输入区域内最近一次输入的目标文本,并将所述目标文本展现在所述第二输入法程序的候选输入栏中。Then, when the processor obtains the target text input last time in the first input area before the current moment, the target text is used as a candidate for the selectable input corresponding to the second input area, specifically for , sending a candidate word presentation indication to a second input method program associated with the second input area, where the candidate word presentation indication is used to instruct the second input method program to read the first input from the designated storage space The last input target text in the region, and display the target text in the candidate input field of the second input method program.

另一方面,本申请实施例还提供了一种输入控制装置,包括:On the other hand, the embodiment of the present application also provides an input control device, including:

监控单元,用于监控第一界面中输入焦点所在的第一输入区域内输入的文本;a monitoring unit, configured to monitor the text input in the first input area where the input focus is located in the first interface;

存储单元,用于缓存所述第一输入区域内最近一次输入的文本;a storage unit, configured to cache the latest text input in the first input area;

处理单元,用于当检测到所述输入焦点从第一输入区域切换到第二输入区域时,从所述存储器中获取当前时刻之前所述第一输入区域内最近一次输入的目标文本,并将所述目标文本作为所述第二输入区域对应的可选择输入的候选项进行展现。A processing unit, configured to obtain from the memory the last input target text in the first input area before the current moment when it is detected that the input focus is switched from the first input area to the second input area, and The target text is displayed as a selectable input candidate corresponding to the second input area.

由以上内容可知,在本申请实施例中,电子设备会监控输入焦点所在的第一界面中第一输入区域内所输入的文本,并将该第一输入区域内最近一次所输入的文本进行缓存,这样,当输入焦点从该第一输入区域切换为第二输入区域时,则可以从缓存中获取当前时刻之前该第一输入区域中最近一次输入的目标文本,并将该目标文本作为可选择的候选项进行展现,因此,如果用户希望在该第二输入区域内重新输入该目标内容,则可以直接选择该候选项,便可以完成将该目标文本输入到该第二输入区域的操作,避免了用户通过输入法手动输入该目标文本中所包含的字符串,减少了输入操作的复杂度,也提高了输入效率。It can be seen from the above that, in the embodiment of the present application, the electronic device monitors the text input in the first input area of the first interface where the input focus is located, and caches the text input last time in the first input area , so that when the input focus is switched from the first input area to the second input area, the target text input last time in the first input area before the current moment can be obtained from the cache, and the target text can be selected as Therefore, if the user wishes to re-input the target content in the second input area, he can directly select the candidate, and then the operation of inputting the target text into the second input area can be completed, avoiding It prevents the user from manually inputting the character string contained in the target text through the input method, reduces the complexity of the input operation, and improves the input efficiency.

附图说明Description of drawings

为了更清楚地说明本申请实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings that need to be used in the description of the embodiments. Obviously, the drawings in the following description are only the embodiments of the present application. Those of ordinary skill in the art can also obtain other drawings based on the provided drawings on the premise of not paying creative efforts.

图1为本申请公开的一种输入控制方法一个实施例的流程示意图;FIG. 1 is a schematic flowchart of an embodiment of an input control method disclosed in the present application;

图2为本申请公开的一种输入控制方法又一个实施例的流程示意图;FIG. 2 is a schematic flowchart of another embodiment of an input control method disclosed in the present application;

图3为本申请公开的一种输入控制方法又一个实施例的流程示意图;FIG. 3 is a schematic flowchart of another embodiment of an input control method disclosed in the present application;

图4为本申请公开的一种电子设备一个实施例的组成结构示意图;FIG. 4 is a schematic diagram of the composition and structure of an embodiment of an electronic device disclosed in the present application;

图5为本申请公开的一种输入控制装置一个实施例的组成结构示意图。FIG. 5 is a schematic structural diagram of an embodiment of an input control device disclosed in the present application.

具体实施方式detailed description

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

如图1所示,其示出了本申请一种输入控制方法一个实施例的流程示意图,本实施例的方法可以应用于电子设备,如,手机、平板电脑、笔记本电脑以及台式电脑等。本实施例的方法可以包括:As shown in FIG. 1 , it shows a schematic flowchart of an embodiment of an input control method of the present application. The method of this embodiment can be applied to electronic devices, such as mobile phones, tablet computers, notebook computers, and desktop computers. The method of this embodiment may include:

101,监控第一界面中输入焦点所在的第一输入区域内输入的文本。101. Monitor text input in a first input area where an input focus is located in a first interface.

其中,输入焦点可以理解为光标或者其他输入标志。其中,输入焦点所在的界面一般处于显示界面的顶层,如,在进行文本输入的过程中,光标所在的窗口就是输入焦点所在的窗口。Wherein, the input focus can be understood as a cursor or other input symbols. Wherein, the interface where the input focus is located is generally at the top layer of the display interface, for example, in the process of text input, the window where the cursor is located is the window where the input focus is located.

其中,输入焦点所在的输入区域可以为进行文本输入的区域,根据第一界面的不同,该输入区域也可以有多种可能情况,如,输入区域可以为会话窗口、word文档、搜索输入栏等等输入区域。Wherein, the input area where the input focus is located may be an area for text input. According to the difference of the first interface, the input area may also have multiple possible situations, for example, the input area may be a conversation window, a word document, a search input field, etc. Wait for the input field.

为了便于区分,本申请实施例将输入焦点所在的界面称为第一界面,并将该第一界面中输入焦点所在的输入区域称为第一输入区域。For ease of distinction, in this embodiment of the present application, the interface where the input focus is located is called the first interface, and the input area where the input focus is located in the first interface is called the first input area.

102,缓存该第一输入区域内最近一次输入的文本。102. Buffer the latest text input in the first input area.

在本申请实施例中,在输入焦点在第一输入区域进行输入操作的过程中,会缓存该第一输入区域内最近一次输入的文本,以便于后续可以获取到该第一输入区域内最近一次输入的文本内容。In the embodiment of the present application, during the input operation process of the input focus in the first input area, the latest input text in the first input area will be cached, so that the latest input text in the first input area can be obtained later. The entered text content.

可以理解的是,确定一次输入的文本的方式可以有多种:It can be understood that there are many ways to determine the text input once:

在一种可能的情况中,可以是第一输入区域中当前输入焦点所在位置与上一次输入焦点所在位置之间的文本,例如,在第一输入区域中的文本可以为“今天|”,则输入焦点位于“天”之后,如果用户在该输入焦点之后连续输入了“天气很好”这一连续的字符串,则第一输入区域内的文本变为“今天天气很好|”,输入焦点移动至“好”之后,则当前输入焦点与上一次输入焦点所在位置之间的文本,即最近一次输入的文本为“天气很好”。In a possible situation, it may be the text between the current input focus position and the last input focus position in the first input area, for example, the text in the first input area may be "today |", then The input focus is after "day", if the user continuously enters the continuous character string "the weather is fine" after the input focus, the text in the first input area becomes "the weather is fine today|", and the input focus After moving to "OK", the text between the current input focus and the position of the last input focus, that is, the last input text is "the weather is fine".

在又一种可能的情况中,可以将输入区域中当前存在的所有文本内容为最近一次输入的文本。如,对于一些对话框或者搜索输入栏的输入区域而言,该输入区域内当前存在的文本内容就可以认为是最近一次输入的文本内容。以搜索引擎的搜索输入栏为例,用户每次进行一次搜索输入,都需要在搜索输入栏中输入所需搜索的关键词,每次输入的关键词可以看成是一个整体,因此,无论该关键词是通过几次输入来完成的,都将该搜索输入栏中最近一次输入的关键词整体作为最近一次输入的文本。In yet another possible situation, all text content currently existing in the input area may be the latest input text. For example, for the input area of some dialog boxes or search input fields, the text content currently existing in the input area can be considered as the last input text content. Take the search input field of a search engine as an example. Every time a user performs a search input, he needs to enter the keywords he needs to search in the search input field. The keywords entered each time can be regarded as a whole. Therefore, no matter the The keyword is completed through several input, and the last input keyword in the search input field is taken as the latest input text.

可以理解的是,由于在第一输入区域进行文本输入之后,每完成一次输入,那么输入的文本内容都可以看成是最近一次输入的文本,因此,缓存该最近一次输入的文本可以认为监控每次输入的文本,并将本次输入的文本进行缓存,从而缓存不同次输入所输入的文本。可选的,为了减少数据缓存量,缓存该最近一次输入的文本可以将最近一次输入的文本覆盖之前各次所输入的文本,使得缓存区中仅仅存储距离当前时刻最近的一次输入所输入的文本。It can be understood that, after the text input in the first input area, every time the input is completed, the input text content can be regarded as the latest input text, therefore, caching the latest input text can be regarded as monitoring every time The text input for the first time, and the text input for this time is cached, so as to cache the text input for different times of input. Optionally, in order to reduce the amount of data cache, caching the last input text can cover the last input text over the previous input texts, so that only the latest input input text from the current moment is stored in the cache area .

103,当检测到该输入焦点从第一输入区域切换到第二输入区域时,获取当前时刻之前该第一输入区域内最近一次输入的目标文本,并将该目标文本作为该第二输入区域对应的可选择输入的候选项进行展现。103. When it is detected that the input focus is switched from the first input area to the second input area, obtain the target text input last time in the first input area before the current moment, and use the target text as the corresponding input area of the second input area Candidates for optional input are displayed.

其中,该第二输入区域不同于该第一输入区域。Wherein, the second input area is different from the first input area.

可以理解的是,由于步骤102中缓存的动作可能会存在多次,为了便于区分,在本申请实施例,在确定出输入焦点从第一输入区域切换到第二输入区域的时刻时,将缓存的,该时刻之前该第一输入区域内最近一次输入的文本称为目标文本。It can be understood that since the actions cached in step 102 may exist multiple times, in order to facilitate the distinction, in this embodiment of the application, when the moment when the input focus switches from the first input area to the second input area is determined, the cached , the latest input text in the first input area before this moment is called the target text.

其中,第二输入区域对应的可选择输入的候选项是指可以通过选择操作直接输入的候选项,因此,如果用户选择该候选项,则可以触发将该候选项输入到该第二输入区域内。Wherein, the selectable input candidate corresponding to the second input area refers to a candidate that can be directly input through a selection operation, therefore, if the user selects the candidate, the input of the candidate into the second input area can be triggered .

当输入焦点切换到第二输入区域时,则说明用户需要更换输入区域进行输入操作,在该种情况,用户有可能会希望重新输入该第一输入区域中最近一次所输入的内容,因此,在该种情况下,会获取该第一输入区域中最近一次所输入的目标文本,并将目标文本作为可选择输入的候选项进行展现,从而使得用户可以直接选择该目标文本作为输入内容。When the input focus switches to the second input area, it means that the user needs to change the input area for input operation. In this case, the user may wish to re-enter the last input content in the first input area. Therefore, in In this case, the last input target text in the first input area will be obtained, and the target text will be displayed as a selectable input option, so that the user can directly select the target text as the input content.

可选的,在该步骤103之后,还可以包括:当检测到用于触发对展现出的该目标文本进行选择的预设操作时,将目标文本输入到该第二输入区域。即存在对作为候选项的目标文本的选择操作时,则将目标文本输入到该第二输入区域。如,用户可以对展现出的该目标文本的候选项进行点击,则可以触发向该第二输入区域内输入该目标文本。Optionally, after step 103, the method may further include: when a preset operation for triggering selection of the displayed target text is detected, inputting the target text into the second input area. That is, when there is a selection operation on the target text as a candidate, the target text is input into the second input area. For example, the user may click on the displayed candidate of the target text, which may trigger input of the target text into the second input area.

可见,在本申请实施例中,电子设备会监控输入焦点所在的第一界面中第一输入区域内所输入的文本,并将该第一输入区域内最近一次所输入的文本进行缓存,这样,当输入焦点从该第一输入区域切换为第二输入区域时,则可以从缓存中获取当前时刻之前该第一输入区域中最近一次输入的目标文本,并将该目标文本作为可选择的候选项进行展现,因此,如果用户希望在该第二输入区域内重新输入该目标内容,则可以直接选择该候选项,便可以完成将该目标文本输入到该第二输入区域的操作,避免了用户通过输入法手动输入该目标文本中所包含的字符串,减少了输入操作的复杂度,也提高了输入效率。It can be seen that in the embodiment of the present application, the electronic device monitors the text input in the first input area of the first interface where the input focus is located, and caches the text input last time in the first input area. In this way, When the input focus is switched from the first input area to the second input area, the last input target text in the first input area before the current moment can be obtained from the cache, and the target text can be used as a selectable candidate Therefore, if the user wishes to re-input the target content in the second input area, he can directly select the candidate, and then the operation of inputting the target text into the second input area can be completed, avoiding the user's The input method manually inputs the character string contained in the target text, which reduces the complexity of the input operation and improves the input efficiency.

可以理解的是,在本申请实施例中,该第一输入区域与第二输入区域可以均为第一界面中的两个输入区域,如,在一个界面中存在两个不同的输入栏或者输入窗口,则检测到输入焦点从第一界面的第一输入区域切换到第二输入区域时,则可以从缓存的文本中,获取当前时刻之前该第一输入区域最近一次输入的目标文本,并将该目标文本作为该第二输入区域关联的候选项进行展现。It can be understood that, in the embodiment of the present application, the first input area and the second input area may both be two input areas in the first interface, for example, there are two different input fields or input fields in one interface. window, when it is detected that the input focus is switched from the first input area of the first interface to the second input area, the target text last entered in the first input area before the current moment can be obtained from the cached text, and The target text is displayed as a candidate associated with the second input area.

可选的,考虑到很多情况下,用户经常在切换到界面之后,才可能会需要重新输入相同的内容,因此,该第一输入区域与该第二输入区域可以属于不同的界面,即输入焦点从第一界面的第一输入区域切换到第二界面的第二输入区域时,则会获取缓存到的该第一输入区域内最近一次输入的目标文本。Optionally, considering that in many cases, the user may need to re-enter the same content only after switching to the interface, therefore, the first input area and the second input area may belong to different interfaces, that is, the input focus When switching from the first input area of the first interface to the second input area of the second interface, the cached target text entered last time in the first input area will be obtained.

可以理解的是,该第一界面与第二界面可以为浏览器中展现出的不同网页,这两个页面可以由同一台服务器或者服务平台提供,也可以是不同的服务器或者服务平台提供。It can be understood that the first interface and the second interface may be different webpages displayed in the browser, and these two pages may be provided by the same server or service platform, or may be provided by different servers or service platforms.

该第一界面与第二界面也可以是同一款应用中的两个不同界面。The first interface and the second interface may also be two different interfaces in the same application.

该第一界面与第二界面也可以是不同应用中的两个界面,如,第一界面为第一应用的界面,而第二界面为第二应用的界面。如,用户从第一即时通讯应用的会话窗口进行输入操作之后,可能需要向第二即时通讯应用的会话窗口中输入相同的内容,在该种情况下,如果用户在切换到第二即时通讯应用的会话窗口之后,再重新输入相关内容,则会比较麻烦;即使用户可以在第一即时通讯应用的会话窗口中复制所需重复输入的内容,并在切换到该第二即时通讯应用的会话窗口之后,再在该第二即时通讯应用的会话窗口中进行粘贴操作,也必然需要用户进行选择所需复制的内容,点击复制以及触发粘贴等多步操作,操作过程较为复杂。The first interface and the second interface may also be two interfaces in different applications, for example, the first interface is the interface of the first application, and the second interface is the interface of the second application. For example, after the user performs an input operation from the session window of the first instant messaging application, he may need to input the same content into the session window of the second instant messaging application. In this case, if the user switches to the second instant messaging application After the session window of the instant messaging application, it will be more troublesome to re-enter the relevant content; Afterwards, the paste operation is performed in the session window of the second instant messaging application, and the user must select the content to be copied, click copy, and trigger paste. The operation process is relatively complicated.

而本申请由于已经缓存了第一界面的第一输入区域中最近一次输入的文本,因此,在检测到输入焦点从第一应用的第一界面切换到第二应用的第二界面时,则可以获取当前时刻之前该第一输入区域最近一次输入的目标文本,并将该目标文本作为该第二界面中第二输入区域关联的候选项展现,从而使得用户可以根据需要直接选择该目标文本进行输入,避免了用户复杂的操作,提高了输入的便捷性和高效性。However, since the present application has cached the last input text in the first input area of the first interface, when it is detected that the input focus is switched from the first interface of the first application to the second interface of the second application, it can Acquiring the target text last entered in the first input area before the current moment, and displaying the target text as a candidate associated with the second input area in the second interface, so that the user can directly select the target text for input as required , which avoids complex operations for users and improves the convenience and efficiency of input.

可选的,考虑到实际应用中,考虑到在用户进行搜索操作的过程中,如果搜索不到所需的内容之后,很可能会更新搜索界面进行重新搜索,因此,该第一界面可以为第一搜索界面,而该第二界面可以为第二搜索界面。如,参见图2,其示出了本申请一种输入控制方法又一个实施例的流程示意图,本实施例的方法可以应用于电子设备,如,手机、平板电脑、笔记本电脑以及台式电脑等。本实施例的方法可以包括:Optionally, in consideration of practical applications, if the user cannot find the desired content during the search operation, the search interface may be updated for re-searching. Therefore, the first interface may be the second A search interface, and the second interface may be a second search interface. For example, see FIG. 2 , which shows a schematic flowchart of another embodiment of an input control method of the present application. The method of this embodiment can be applied to electronic devices, such as mobile phones, tablet computers, notebook computers, and desktop computers. The method of this embodiment may include:

201,监控第一搜索界面中输入焦点所在的第一搜索输入栏内输入的关键词。201. Monitor keywords input in the first search input field where the input focus is located in the first search interface.

在本实施例中,该搜索界面可以为搜索引擎应用的搜索界面,也可以是其他可以实现搜索功能的应用中的界面,如,通讯录中可以搜索联系人的搜索界面等。In this embodiment, the search interface may be a search interface of a search engine application, or an interface of other applications capable of realizing a search function, for example, a search interface for searching contacts in an address book, and the like.

在本申请实施例中,将该搜索输入栏中输入的所需搜索的内容称为关键词。In the embodiment of the present application, the content to be searched inputted in the search input field is called a keyword.

202,缓存该第一搜索输入栏内最近一次输入的关键词。202. Buffer the last keyword input in the first search input field.

其中,搜索输入栏中最近一次输入的关键词可以认为是该搜索输入栏中最近一次输入操作所输入的关键词,或者是,向第一搜索输入栏中输入的,且触发搜索的关键词。Wherein, the last input keyword in the search input field can be regarded as the keyword input in the last input operation in the search input field, or the keyword input into the first search input field and triggering the search.

如,用户在第一搜索输入栏中输入“电影M”之后,则可以缓存该关键词“电影M”;又如,用户在第一搜索输入栏中输入“电影M”之后,如果用户点击搜索按钮触发搜索之后,则可以触发缓存该关键词“电影M”。For example, after the user enters "movie M" in the first search input field, the keyword "movie M" can be cached; After the button triggers the search, the keyword "Movie M" can be triggered to be cached.

203,当检测到输入焦点从第一搜索界面的第一搜索输入栏切换到第二搜索界面的第二搜索输入栏,获取当前时刻之前该第一搜索输入栏内最近一次输入的目标关键词,并将该目标关键词作为该第二搜索输入栏对应的可选择输入的候选项进行展现。203. When it is detected that the input focus is switched from the first search input field of the first search interface to the second search input field of the second search interface, acquire the last target keyword input in the first search input field before the current moment, And present the target keyword as a candidate for selectable input corresponding to the second search input field.

该步骤可以与前面实施例的介绍相似,不同之处仅仅在于,缓存的文本内容为一条关键词。This step may be similar to the introduction of the previous embodiment, the only difference is that the cached text content is a keyword.

204,当检测到用于触发对展现出的该目标关键词进行选择的预设操作时,将目标关键词输入到该第二搜索输入栏。204. When a preset operation for triggering selection of the displayed target keyword is detected, input the target keyword into the second search input field.

可见,在输入焦点从第一搜索界面的第一搜索输入栏切换到第二搜索界面的第二搜索输入栏之后,电子设备可以将该第一搜索输入栏中最近一次输入的关键词作为候选项展现出来,这样,如果用户希望该关键词,则可以直接选择该候选项便可以完成输入,避免了用户复杂的输入操作。It can be seen that after the input focus is switched from the first search input field of the first search interface to the second search input field of the second search interface, the electronic device can use the last input keyword in the first search input field as a candidate In this way, if the user wants the keyword, he can directly select the candidate to complete the input, which avoids complicated input operations for the user.

可选的,在本申请以上任意一个实施例中,在第一输入区域属于第一界面,而该第二输入区域属于第二界面的情况下,可以在检测到处于显示界面顶层的界面从该第一界面切换到第二界面时,缓存该第一输入区域内最近一次输入的文本。可以理解的是,在第一界面切换到第二界面时,说明用户需要更换输入操作的输入区域,在该种情况下,则可能需要重新输入第一输入区域内最近一次输入的内容,因此,在检测到显示界面顶层的界面从第一界面切换到第二界面时,缓存该第一输入区域内最近一次输入的文本,既可以减少数据存储量,也可以减少向缓存中缓存数据的次数,有利于减少数据处理资源的占用。Optionally, in any one of the above embodiments of the present application, in the case where the first input area belongs to the first interface and the second input area belongs to the second interface, the interface at the top layer of the display interface may be detected from the When switching from the first interface to the second interface, the latest text input in the first input area is cached. It can be understood that when the first interface is switched to the second interface, it means that the user needs to change the input area of the input operation. In this case, it may be necessary to re-enter the last input content in the first input area. Therefore, When it is detected that the interface on the top layer of the display interface is switched from the first interface to the second interface, the last input text in the first input area is cached, which can reduce the amount of data storage and the number of times of caching data in the cache. It is beneficial to reduce the occupation of data processing resources.

其中,检测显示界面顶层的第一界面切换为第二界面的方式可以有多种。可选的,考虑到当界面切换的过程中,输入法需要先关闭,并在切换到第二界面中重新启动,因此,可以在检测到与第一搜索界面关联的第一输入法程序关闭时,缓存该第一界面中第一输入区域内最近一次输入的文本。如,检测到关闭第一搜索界面关联的第一输入法程序的指令时,指示该第一输入法程序,其中,该第一搜索界面关联的第一输入法程序为在该第一搜索界面开启的输入法应用。Wherein, there may be multiple ways of detecting that the first interface on the top layer of the display interface is switched to the second interface. Optionally, considering that during the interface switching process, the input method needs to be closed first, and restarted when switching to the second interface, therefore, when it is detected that the first input method program associated with the first search interface is closed , to cache the last text input in the first input area in the first interface. For example, when an instruction to close the first input method program associated with the first search interface is detected, the first input method program is indicated, wherein the first input method program associated with the first search interface is opened on the first search interface input method application.

相应的,可以在第一输入法程序关闭之后,检测到启动第二输入法程序时,确认显示界面顶层的第一界面切换为第二界面。Correspondingly, after the first input method program is closed, when it is detected that the second input method program is started, it is confirmed that the first interface on the top layer of the display interface is switched to the second interface.

可以理解的是,考虑到在第一输入区域关联的输入法程序可以获取到该第一输入区域所输入的文本,因此,在需要缓存该第一输入区域最近一次输入的文本时,可以调用该第一输入区域关联的第一输入法程序将该第一输入区域最近一次输入的文本缓存到指定存储区。It can be understood that, considering that the input method program associated with the first input area can obtain the text input in the first input area, when it is necessary to cache the last text input in the first input area, you can call the The first input method program associated with the first input area caches the latest text input in the first input area into the designated storage area.

进一步,在输入焦点切换到第二输入区域之后,由于第二输入区域会开启该第二输入区域关联的第二输入法程序,因此,可以向该、第二输入法程序发送候选词呈现指示,其中,候选词呈现指示用于指示第二输入法程序从指定存储空间读取该第一输入区域内最近一次输入的目标文本,并将该目标文本展现在第二输入法程序的候选输入栏中。由于目标文本直接作为候选输入栏中的候选项展现出来,用户可以直接从候选栏中选择该目标文本,以将该目标文本输入到该第二输入区域中。Further, after the input focus is switched to the second input area, since the second input area will open the second input method program associated with the second input area, a candidate word presentation instruction may be sent to the second input method program, Wherein, the candidate word presentation instruction is used to instruct the second input method program to read the last input target text in the first input area from the specified storage space, and display the target text in the candidate input field of the second input method program . Since the target text is directly presented as a candidate in the candidate input field, the user can directly select the target text from the candidate field to input the target text into the second input area.

为了便于理解,仍以第一输入区域为第一搜索界面的第一搜索输入栏,该第二输入区域为第二搜索界面的第二搜索输入栏为例进行介绍。如,参见图3,其示出了本申请一种输入控制方法又一个实施例的流程示意图,本实施例的方法可以包括:For ease of understanding, the first input area is still the first search input field of the first search interface, and the second input area is the second search input field of the second search interface as an example for introduction. For example, referring to FIG. 3 , it shows a schematic flowchart of another embodiment of an input control method of the present application. The method of this embodiment may include:

301,监控第一搜索界面中输入焦点所在的第一搜索输入栏内输入的关键词。301. Monitor keywords input in the first search input field where the input focus is located in the first search interface.

302,当检测到关闭该第一搜索输入栏关联的第一输入法程序时,调用该第一输入法程序缓存该第一搜索输入栏内最近一次输入的关键词,以将该第一搜索输入栏最近一次输入的关键词缓存至指定存储空间。302. When it is detected that the first input method program associated with the first search input field is closed, call the first input method program to cache the last input keyword in the first search input field, so as to input the first search The last entered keyword in the column is cached to the specified storage space.

其中,为了便于区分,将第一搜索界面的第一搜索输入栏进行输入操作所启动的输入法程序称为该第一搜索输入栏关联的第一输入法程序,相应的,将后续第二搜索界面中第二搜索输入栏进行输入操作所启动的输入法程序称为第二输入法程序。当然,在实际应用中,该第一输入法程序与该第二输入法程序可以为同一款输入法程序,也可能是不同款输入法程序,具体由用户所选择的输入法决定。Wherein, for the convenience of distinction, the input method program started by performing an input operation in the first search input field of the first search interface is called the first input method program associated with the first search input field, and correspondingly, the subsequent second search The input method program activated by the input operation in the second search input field in the interface is called the second input method program. Of course, in practical applications, the first input method program and the second input method program may be the same type of input method program, or they may be different types of input method programs, which are specifically determined by the input method selected by the user.

可以理解的是,在第一输入法程序缓存了该第一搜索输入栏最近一次输入的关键词之后,可以终止该第一输入法程序的运行。It can be understood that, after the first input method program caches the last keyword input in the first search input field, the running of the first input method program can be terminated.

在本实施例中,是以调用该第一输入法程序来缓存该第一搜索输入栏中最近一次输入的关键词为例进行介绍,但是可以理解的是,电子设备通过其他方式将该第一搜索输入栏最近一次输入的关键词缓存到该指定存储空间也同样适用于本实施例,在此不加以限制。In this embodiment, the introduction is made by calling the first input method program to cache the latest input keyword in the first search input field, but it can be understood that the electronic device uses the first input method program in other ways. Caching the last entered keyword in the search input field to the specified storage space is also applicable to this embodiment, and no limitation is imposed here.

303,当检测到输入触点位于第二搜索界面的第二搜索输入栏内时,向该第二搜索输入栏关联的第二输入法程序发送候选词呈现指示,以通过该第二输入法程序从该指定存储空间读取该第一搜索输入栏内最近一次输入的目标关键词。303. When it is detected that the input contact is located in the second search input field of the second search interface, send a candidate word presentation instruction to the second input method program associated with the second search input field, so as to pass the second input method program The last input target keyword in the first search input field is read from the designated storage space.

304,通过该第二输入法程序将该目标关键词展现在该第二输入法程序的候选输入栏中。304. Display the target keyword in a candidate input field of the second input method program through the second input method program.

在本实施例中,当将第一搜索界面切换为第一搜索界面时,第一搜索界面关联的第一搜索输入法关闭,会触发缓存该第一搜索输入栏中输入的关键词。同时,在输入触点位于该第二搜索界面的第二搜索输入栏的同时,会启动该第二搜索输入栏关联的第二输入法程序,电子设备通过调用该第二输入法程序来从该指定存储空间区域中取出该目标关键词,并直接在第二输入法程序上展现候选输入栏,且在该候选输入栏中将该目标关键词作为候选项进行展现,以使得用户可以直接选择该候选项,提高了输入的便捷性。In this embodiment, when the first search interface is switched to the first search interface, the first search input method associated with the first search interface is closed, which triggers caching of keywords input in the first search input field. At the same time, when the input contact is located in the second search input field of the second search interface, the second input method program associated with the second search input field will be started, and the electronic device will call the second input method program to obtain the input method from the second search input field. The target keyword is taken out from the designated storage space area, and a candidate input field is displayed directly on the second input method program, and the target keyword is displayed as a candidate in the candidate input field, so that the user can directly select the Candidates improve the convenience of input.

当然,本实施例是以调用第二输入法程序来从指定存储空间读取该目标关键词为例进行介绍,但是可以理解的是,在实际应用中,电子设备也可以通过指定接口来访问该指定存储空间,以获取该目标关键词,并将该目标关键词返回给第二输入法程序进行展现。Of course, this embodiment is introduced by calling the second input method program to read the target keyword from the specified storage space as an example, but it can be understood that in practical applications, the electronic device can also access the target keyword through a specified interface. Designate a storage space to obtain the target keyword, and return the target keyword to the second input method program for display.

305,当检测到用于触发对展现出的该目标关键词进行选择的预设操作时,将目标关键词输入到该第二搜索输入栏。305. When a preset operation for triggering selection of the displayed target keyword is detected, input the target keyword into the second search input field.

为了实现以上输入控制方法,本申请实施例还提供了一种电子设备,如图4所示,其示出了本申请一种电子设备一个实施例的组成结构示意图。在本实施例中该电子设备可以为手机、笔记本电脑、平板电脑等等。In order to implement the above input control method, an embodiment of the present application further provides an electronic device, as shown in FIG. 4 , which shows a schematic composition structure diagram of an embodiment of an electronic device of the present application. In this embodiment, the electronic device may be a mobile phone, a notebook computer, a tablet computer, and the like.

该电子设备可以包括:This electronic equipment can include:

输入单元401,用于监控第一界面中输入焦点所在的第一输入区域内输入的文本;The input unit 401 is configured to monitor the text input in the first input area where the input focus is located in the first interface;

存储器402,用于缓存所述第一输入区域内最近一次输入的文本;a memory 402, configured to cache the latest text input in the first input area;

处理器403,用于当检测到所述输入焦点从第一输入区域切换到第二输入区域时,从所述存储器中获取当前时刻之前所述第一输入区域内最近一次输入的目标文本,并将所述目标文本作为所述第二输入区域对应的可选择输入的候选项;The processor 403 is configured to, when it is detected that the input focus is switched from the first input area to the second input area, obtain from the memory the last target text input in the first input area before the current moment, and using the target text as a candidate for selectable input corresponding to the second input area;

输出单元404,用于将所述目标文本作为所述第二输入区域对应的可选择输入的候选项进行展现。An output unit 404, configured to present the target text as a selectable input candidate corresponding to the second input area.

可以理解的是,在本申请实施例中,该存储器还用于存储处理器执行以上操作所需的程序。It can be understood that, in the embodiment of the present application, the memory is also used to store programs required by the processor to perform the above operations.

当然,图4仅仅是电子设备的一个示意图,在实际应用中,该电子设备还可以包括其他多种部件,如该电子设备还可以包括连接处理器、存储器、输入单元以及输出单元的通信总线,该电子设备还可以包括通信模块、传感器等等部件,在此不再赘述。Of course, FIG. 4 is only a schematic diagram of an electronic device. In practical applications, the electronic device may also include other various components, such as the electronic device may also include a communication bus connecting a processor, a memory, an input unit, and an output unit. The electronic device may also include components such as a communication module and a sensor, which will not be repeated here.

可选的,所述处理器,还用于,在所述输出单元将所述目标文本作为所述第二输入区域对应的可选择输入的候选项进行展现之后,当检测到用于触发对展现出的所述目标文本进行选择的预设操作时,控制所述输出单元将所述目标文本输入到所述第二输入区域。Optionally, the processor is further configured to, after the output unit presents the target text as a selectable input candidate corresponding to the second input area, When a preset operation of selecting the target text is performed, the output unit is controlled to input the target text into the second input area.

可选的,所述电子设备在检测到所述输入焦点从第一输入区域切换到第二输入区域时,具体用于,检测到输入焦点从所述第一界面的第一输入区域切换到第二界面的第二输入区域。Optionally, when the electronic device detects that the input focus is switched from the first input area to the second input area, it is specifically configured to detect that the input focus is switched from the first input area to the second input area on the first interface. The second input area of the second interface.

可选的,所述处理器,还用于当检测到处于显示界面顶层的界面从所述第一界面切换为第二界面时,将所述第一输入区域内最近一次输入的文本缓存至所述存储器中。Optionally, the processor is further configured to, when it is detected that the interface at the top layer of the display interface is switched from the first interface to the second interface, cache the last text input in the first input area to the in the memory.

可选的,所述输入单元在监控第一界面中输入焦点所在的第一输入区域内输入的文本时,具体用于,监控第一应用的第一界面中,输入焦点所在的第一输入区域内输入的文本;Optionally, when the input unit monitors the input text in the first input area where the input focus is located in the first interface, it is specifically used to monitor the first input area where the input focus is located in the first interface of the first application. The text entered in;

则所述处理器在检测到输入焦点从所述第一界面的第一输入区域切换到第二界面的第二输入区域时,具体用于检测到输入焦点从所述第一界面的第一输入区域切换到第二应用中第二界面的第二输入区域。Then, when the processor detects that the input focus is switched from the first input area of the first interface to the second input area of the second interface, it is specifically used to detect that the input focus has switched from the first input area of the first interface to the second input area of the second interface. The area is switched to the second input area of the second interface in the second application.

可选的,所述输入单元在监控第一界面中输入焦点所在的第一输入区域内输入的文本时,具体用于,监控第一搜索界面中输入焦点所在的第一搜索输入栏中输入的关键词;Optionally, when the input unit monitors the text input in the first input area where the input focus is located in the first interface, it is specifically used to monitor the text input in the first search input field where the input focus is located in the first search interface. Key words;

所述处理器在检测到输入焦点从所述第一界面的第一输入区域切换到第二界面的第二输入区域时,具体用于,检测到输入焦点从所述第一搜索界面的第一搜索输入栏切换到第二搜索界面的第二搜索输入栏。When the processor detects that the input focus switches from the first input area of the first interface to the second input area of the second interface, it is specifically configured to detect that the input focus switches from the first input area of the first search interface to the second input area of the second interface. The search input field switches to the second search input field of the second search interface.

可选的,所述处理器,还用于调用所述第一输入区域关联的第一输入法程序将所述第一输入区域内最近一次输入的文本缓存到所述存储器的指定存储区;Optionally, the processor is further configured to call a first input method program associated with the first input area to cache the last input text in the first input area to a designated storage area of the memory;

则所述处理器在获取当前时刻之前所述第一输入区域内最近一次输入的目标文本时,并将所述目标文本作为所述第二输入区域对应的可选择输入的候选项,具体用于,向所述第二输入区域关联的第二输入法程序发送候选词呈现指示,所述候选词呈现指示用于指示所述第二输入法程序从所述指定存储空间读取所述第一输入区域内最近一次输入的目标文本,并将所述目标文本展现在所述第二输入法程序的候选输入栏中。Then, when the processor obtains the target text input last time in the first input area before the current moment, the target text is used as a candidate for the selectable input corresponding to the second input area, specifically for , sending a candidate word presentation indication to a second input method program associated with the second input area, where the candidate word presentation indication is used to instruct the second input method program to read the first input from the designated storage space The last input target text in the region, and display the target text in the candidate input field of the second input method program.

另一方面,本申请实施例还提供了一种输入控制装置,如,参见图5,其示出了本申请一种输入控制装置一个实施例的组成结构示意图,本实施例的装置可以包括:On the other hand, the embodiment of the present application also provides an input control device. For example, refer to FIG. 5 , which shows a schematic diagram of the composition and structure of an embodiment of an input control device of the present application. The device in this embodiment may include:

监控单元501,用于监控第一界面中输入焦点所在的第一输入区域内输入的文本;a monitoring unit 501, configured to monitor the text input in the first input area where the input focus is located in the first interface;

存储单元502,用于缓存所述第一输入区域内最近一次输入的文本;a storage unit 502, configured to cache the latest text input in the first input area;

处理单元503,用于当检测到所述输入焦点从第一输入区域切换到第二输入区域时,从所述存储器中获取当前时刻之前所述第一输入区域内最近一次输入的目标文本,并将所述目标文本作为所述第二输入区域对应的可选择输入的候选项进行展现。The processing unit 503 is configured to, when it is detected that the input focus is switched from the first input area to the second input area, obtain from the memory the target text input last time in the first input area before the current moment, and and presenting the target text as a selectable input candidate corresponding to the second input area.

可选的,还包括:Optionally, also include:

输入执行单元,用于在所述处理单元将所述目标文本作为所述第二输入区域对应的可选择输入的候选项进行展现之后,当检测到用于触发对展现出的所述目标文本进行选择的预设操作时,将所述目标文本输入到所述第二输入区域。The input execution unit is configured to, after the processing unit presents the target text as a selectable input candidate corresponding to the second input area, when a trigger is detected to execute the displayed target text When the preset operation is selected, the target text is input into the second input area.

可选的,所述处理单元在检测到所述输入焦点从第一输入区域切换到第二输入区域时,具体为,检测到输入焦点从所述第一界面的第一输入区域切换到第二界面的第二输入区域。Optionally, when the processing unit detects that the input focus is switched from the first input area to the second input area, specifically, it detects that the input focus is switched from the first input area to the second input area on the first interface. The second input area of the interface.

可选的,所述存储单元包括:Optionally, the storage unit includes:

存储子单元,用于当检测到处于显示界面顶层的界面从所述第一界面切换为第二界面时,缓存所述第一输入区域内最近一次输入的文本。The storage subunit is configured to cache the latest text input in the first input area when it is detected that the interface at the top layer of the display interface is switched from the first interface to the second interface.

可选的,所述监控单元,包括:Optionally, the monitoring unit includes:

第一监控单元,用于监控第一应用的第一界面中,输入焦点所在的第一输入区域内输入的文本;The first monitoring unit is configured to monitor the text input in the first input area where the input focus is located in the first interface of the first application;

则所述处理单元在检测到输入焦点从所述第一界面的第一输入区域切换到第二界面的第二输入区域时,具体为,检测到输入焦点从所述第一界面的第一输入区域切换到第二应用中第二界面的第二输入区域。Then when the processing unit detects that the input focus is switched from the first input area of the first interface to the second input area of the second interface, specifically, it detects that the input focus switches from the first input area of the first interface to The area is switched to the second input area of the second interface in the second application.

可选的,所述监控单元,包括:Optionally, the monitoring unit includes:

第二监控单元,用于监控第一搜索界面中输入焦点所在的第一搜索输入栏中输入的关键词;The second monitoring unit is used to monitor keywords input in the first search input field where the input focus is located in the first search interface;

所述处理单元在检测到输入焦点从所述第一界面的第一输入区域切换到第二界面的第二输入区域时,具体用于,检测到输入焦点从所述第一搜索界面的第一搜索输入栏切换到第二搜索界面的第二搜索输入栏。When the processing unit detects that the input focus switches from the first input area of the first interface to the second input area of the second interface, it is specifically configured to detect that the input focus switches from the first input area of the first search interface to the second input area of the second interface. The search input field switches to the second search input field of the second search interface.

可选的,所述存储单元包括:Optionally, the storage unit includes:

存储调用子单元,用于调用所述第一输入区域关联的第一输入法程序将所述第一输入区域内最近一次输入的文本缓存到指定存储区;The storage calling subunit is used to call the first input method program associated with the first input area to cache the last input text in the first input area to a specified storage area;

则所述处理器在获取当前时刻之前所述第一输入区域内最近一次输入的目标文本,并将所述目标文本作为所述第二输入区域对应的可选择输入的候选项进行展现时,具体用于,向所述第二输入区域关联的第二输入法程序发送候选词呈现指示,所述候选词呈现指示用于指示所述第二输入法程序从所述指定存储空间读取所述第一输入区域内最近一次输入的目标文本,并将所述目标文本展现在所述第二输入法程序的候选输入栏中。Then when the processor obtains the target text input last time in the first input area before the current moment, and presents the target text as a candidate for selectable input corresponding to the second input area, specifically It is configured to send a candidate word presentation indication to a second input method program associated with the second input area, where the candidate word presentation indication is used to instruct the second input method program to read the first input method program from the designated storage space. The target text input last time in an input area, and display the target text in the candidate input field of the second input method program.

最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。Finally, it should also be noted that in this text, relational terms such as first and second etc. are only used to distinguish one entity or operation from another, and do not necessarily require or imply that these entities or operations, any such actual relationship or order exists. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.

本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other.

对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本申请。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其它实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the application. Therefore, the present application will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (13)

1. a kind of input control method, it is characterised in that including:
Monitor the text of input in the first input area in the first interface where input focus;
Cache the text of the last input in first input area;
When detecting the input focus and being switched to the second input area from the first input area, institute before current time is obtained The target text of the last input in the first input area is stated, and regard the target text as second input area pair The candidate item for the optional input answered is showed.
2. input control method according to claim 1, it is characterised in that it is described using the target text as described After the candidate item of the corresponding optional input of second input area is showed, in addition to:
When detect the predetermined registration operation of selection is carried out to the target text shown for triggering when, by the target text It is input to second input area.
3. input control method according to claim 1, it is characterised in that described to detect the input focus from first Input area is switched to the second input area, including:
Detect the second input area that input focus is switched to second contact surface from first input area at first interface.
4. input control method according to claim 3, it is characterised in that in caching first input area most The nearly text once inputted, including:
When detect the interface in display interface top layer from first changing interface be second contact surface when, caching described first The text of the last input in input area.
5. the input control method according to claim 3 or 4, it is characterised in that inputted in the interface of monitoring first burnt The text of input in the first input area where point, including:
In first interface of the application of monitoring first, the text of input in the first input area where input focus;
It is then described to detect the second input that input focus is switched to second contact surface from first input area at first interface Region, including:
Detect input focus from first input area at first interface be switched to the second application in second contact surface second Input area.
6. the input control method according to claim 3 or 4, it is characterised in that inputted in the interface of monitoring first burnt The text of input in the first input area where point, including:
Monitor the keyword inputted in the first search input field in the first search interface where input focus;
It is described to detect the second input area that input focus is switched to second contact surface from first input area at first interface Domain, including:
Detect input focus and be switched to the second of the second search interface from the first search input field of first search interface Search for input field.
7. the input control method according to any one of Claims 1-4, it is characterised in that the caching described first is defeated Enter the text of the last input in region, including:
The first input method procedure of the first input area association is called to be inputted the last in first input area Text buffer to designated storage area;
The then target text for obtaining the last input in current time the first input area of the foregoing description, and by the mesh Mark text is showed as the candidate item of the corresponding optional input of second input area, including:
The second input method procedure associated to second input area sends candidate word and instruction is presented, and the candidate word, which is presented, to be referred to Show for indicating that it is the last in first input area that second input method procedure is read from the designated memory space The target text of input, and the target text is presented in candidate's input field of second input method procedure.
8. a kind of electronic equipment, it is characterised in that including:
Input block, for monitoring the text inputted in the first input area in the first interface where input focus;
Memory, the text for caching the last input in first input area;
Processor, for when detecting the input focus and being switched to the second input area from the first input area, from described Obtain the target text of the last input in current time the first input area of the foregoing description in memory, and by the target Text as the corresponding optional input of second input area candidate item;
Output unit, for entering the target text as the candidate item of the corresponding optional input of second input area Row shows.
9. electronic equipment according to claim 8, it is characterised in that the processor, is additionally operable to, in the output unit After the target text is showed as the candidate item of the corresponding optional input of second input area, work as detection To when carrying out the predetermined registration operation of selection to the target text shown for triggering, the output unit is controlled by the mesh Text input is marked to second input area.
10. electronic equipment according to claim 8, it is characterised in that the electronic equipment is detecting input Jiao O'clock from the first input area be switched to the second input area when, specifically for detecting input focus from first interface First input area is switched to the second input area of second contact surface.
11. electronic equipment according to claim 10, it is characterised in that the input block is defeated in the first interface is monitored During the text of the interior input of the first input area where entering focus, specifically for input focus institute in the first search interface of monitoring The first search input field in the keyword that inputs;
The processor is detecting input focus is switched to second contact surface from first input area at first interface During two input areas, specifically for detecting input focus and being switched to from the first search input field of first search interface Second search input field of the second search interface.
12. the electronic equipment according to any one of claim 8 to 11, it is characterised in that the processor, is additionally operable to call First input method procedure of the first input area association delays the text of the last input in first input area It is stored to the designated storage area of the memory;
Then during the processor target text that the last time inputs in the acquisition input area of the current time foregoing description first, And using the target text as the corresponding optional input of second input area candidate item, specifically for described Second input method procedure of the second input area association sends candidate word and instruction is presented, and the candidate word, which is presented, to be indicated to be used to indicate Second input method procedure reads the target of the last input in first input area from the designated memory space Text, and the target text is presented in candidate's input field of second input method procedure.
13. a kind of input control device, it is characterised in that including:
Monitoring unit, for monitoring the text inputted in the first input area in the first interface where input focus;
Memory cell, the text for caching the last input in first input area;
Processing unit, for when detecting the input focus and being switched to the second input area from the first input area, from institute State the target text that the last input in current time the first input area of the foregoing description is obtained in memory, and by the mesh Mark text is showed as the candidate item of the corresponding optional input of second input area.
CN201710196892.0A 2017-03-29 2017-03-29 Input control method and device and electronic equipment Active CN106970848B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710196892.0A CN106970848B (en) 2017-03-29 2017-03-29 Input control method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710196892.0A CN106970848B (en) 2017-03-29 2017-03-29 Input control method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN106970848A true CN106970848A (en) 2017-07-21
CN106970848B CN106970848B (en) 2022-04-22

Family

ID=59335923

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710196892.0A Active CN106970848B (en) 2017-03-29 2017-03-29 Input control method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN106970848B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107479818A (en) * 2017-08-16 2017-12-15 维沃移动通信有限公司 A kind of information interacting method and mobile terminal
CN109426417A (en) * 2017-08-31 2019-03-05 北京嘀嘀无限科技发展有限公司 Information display method and system
CN113064496A (en) * 2021-03-22 2021-07-02 上海臣星软件技术有限公司 Input method information processing method, device, equipment and computer storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103294657A (en) * 2012-03-02 2013-09-11 富泰华工业(深圳)有限公司 Method and system for text editing
CN104007886A (en) * 2013-02-27 2014-08-27 联想(北京)有限公司 Information processing method and electronic device
CN104699700A (en) * 2013-12-05 2015-06-10 腾讯科技(深圳)有限公司 Searching method and device
CN105744053A (en) * 2014-12-12 2016-07-06 联想(北京)有限公司 Information processing method and electronic device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103294657A (en) * 2012-03-02 2013-09-11 富泰华工业(深圳)有限公司 Method and system for text editing
CN104007886A (en) * 2013-02-27 2014-08-27 联想(北京)有限公司 Information processing method and electronic device
CN104699700A (en) * 2013-12-05 2015-06-10 腾讯科技(深圳)有限公司 Searching method and device
CN105744053A (en) * 2014-12-12 2016-07-06 联想(北京)有限公司 Information processing method and electronic device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107479818A (en) * 2017-08-16 2017-12-15 维沃移动通信有限公司 A kind of information interacting method and mobile terminal
CN107479818B (en) * 2017-08-16 2020-01-07 维沃移动通信有限公司 Information interaction method and mobile terminal
CN109426417A (en) * 2017-08-31 2019-03-05 北京嘀嘀无限科技发展有限公司 Information display method and system
CN113064496A (en) * 2021-03-22 2021-07-02 上海臣星软件技术有限公司 Input method information processing method, device, equipment and computer storage medium

Also Published As

Publication number Publication date
CN106970848B (en) 2022-04-22

Similar Documents

Publication Publication Date Title
US12026170B2 (en) User interface for searching
US8825699B2 (en) Contextual search by a mobile communications device
US8799806B2 (en) Tabbed content view on a touch-screen device
US11068156B2 (en) Data processing method, apparatus, and smart terminal
US20170177600A1 (en) Method, system, and device for processing data in connection with an application
EP2549383A2 (en) Context-related data handling
US20130325844A1 (en) Causing display of search results
CN112988006B (en) Display method, device, electronic device and storage medium
WO2014032579A1 (en) A method and apparatus for displaying information
US20150242474A1 (en) Inline and context aware query box
CN104536995A (en) Method and system both for searching based on terminal interface touch operation
US20230214094A1 (en) Methods and apparatus for related search within a browser
CN106970848B (en) Input control method and device and electronic equipment
CN107870721A (en) Method and device for displaying search results and device for displaying search results
CN106970899A (en) A kind of text handling method and device
CN106598617A (en) Method for setting webpage shortcut, and electronic equipment
WO2017045277A1 (en) Search method, device and apparatus, and non-volatile computer storage medium
WO2017100357A1 (en) Method, system, and device for processing data in connection with an application
US20210200832A1 (en) Presenting indicators associated with network-associated content
CN111459351A (en) Quick search method and device for terminal and computer storage medium
WO2019119285A1 (en) Method for inserting a web address in a message on a terminal
US20230214435A1 (en) Methods and apparatus for persistent search within a browser
CN110866153B (en) Data processing method and device for data processing
KR102051507B1 (en) Method for providing web browser and terminal device using the same
CN118401934A (en) Method and apparatus for persistent searching within a browser

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TG01 Patent term adjustment
TG01 Patent term adjustment