CN106970848B - Input control method and device and electronic equipment - Google Patents

Input control method and device and electronic equipment Download PDF

Info

Publication number
CN106970848B
CN106970848B CN201710196892.0A CN201710196892A CN106970848B CN 106970848 B CN106970848 B CN 106970848B CN 201710196892 A CN201710196892 A CN 201710196892A CN 106970848 B CN106970848 B CN 106970848B
Authority
CN
China
Prior art keywords
input
interface
area
text
input area
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.)
Active
Application number
CN201710196892.0A
Other languages
Chinese (zh)
Other versions
CN106970848A (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

Images

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

The application discloses an input control method, an input control device and electronic equipment, wherein the method comprises the following steps: monitoring a text input in a first input area where an input focus is located in a first interface; caching the latest input text in the first input area; when the input focus is detected to be switched from the first input area to the second input area, the target text input for the last time in the first input area before the current time is obtained, and the target text is used as a candidate item of selectable input corresponding to the second input area to be displayed. The scheme of this application can improve the convenience and the high efficiency of input operation.

Description

Input control method and device and electronic equipment
Technical Field
The present application relates to the field of internet technologies, and in particular, to an input control method and apparatus, and an electronic device.
Background
In daily life and work, the user often involves repeated input of the same content during input operation, in which case, the user needs to repeatedly input the previous content, the operation process is complicated, and the input efficiency is low. For example, after a user inputs a search keyword into a page of one type of search engine to perform a search, if a search result matching the keyword is not searched, another type of search engine may need to be replaced to perform the search on the keyword, and after the user switches the search engine, the user may need to repeat the keyword input last time and then initiate the search, which results in a complicated search process. Therefore, how to improve the convenience and efficiency of the input operation is a technical problem that needs to be solved urgently by those skilled in the art.
Disclosure of Invention
In view of this, the present application provides an input control method, an input control apparatus, and an electronic device, so as to improve convenience and efficiency of input operation.
In order to achieve the above object, the following solutions are proposed:
an input control method comprising:
monitoring a text input in a first input area where an input focus is located in a first interface;
caching the latest input text in the first input area;
when the input focus is detected to be switched from a first input area to a second input area, a target text input for the last time in the first input area before the current time is obtained, and the target text is used as a candidate item of selectable input corresponding to the second input area to be displayed.
Preferably, after presenting the target text as a candidate of selectable input corresponding to the second input area, the method further includes:
when a preset operation for triggering selection of the presented target text is detected, inputting the target text into the second input area.
Preferably, the detecting that the input focus is switched from the first input region to the second input region includes:
detecting that an input focus switches from a first input region of the first interface to a second input region of a second interface.
Preferably, the caching the text input last time in the first input area includes:
when the interface at the top layer of the display interface is detected to be switched from the first interface to the second interface, caching the most recently input text in the first input area.
Preferably, the monitoring the text input in the first input area where the input focus is located in the first interface includes:
monitoring a text input in a first input area where an input focus is located in a first interface of a first application;
the detecting that the input focus switches from a first input region of the first interface to a second input region of a second interface comprises:
switching an input focus from a first input region of the first interface to a second input region of a second interface in a second application is detected.
Preferably, the monitoring the text input in the first input area where the input focus is located in the first interface includes:
monitoring a keyword input in a first search input field where an input focus is located in a first search interface;
the detecting that the input focus switches from a first input region of the first interface to a second input region of a second interface comprises:
detecting that an input focus switches from a first search input field of the first search interface to a second search input field of a second search interface.
Preferably, the caching the text input last time in the first input area includes:
calling a first input method program associated with the first input area to cache the latest input text in the first input area to a designated storage area;
the obtaining a target text input most recently in the first input area before the current time, and presenting the target text as a candidate for selectable input corresponding to the second input area, includes:
and sending a candidate word presenting instruction to a second input method program associated with the second input area, wherein the candidate word presenting instruction is used for instructing the second input method program to read the target text input most recently in the first input area from the specified storage space and present the target text in a candidate input field of the second input method program.
On the other hand, an embodiment of the present application further provides an electronic device, including:
the input unit is used for monitoring the text input in a first input area where an input focus is located in the first interface;
the memory is used for caching the most recently input text in the first input area;
the processor is used for acquiring a target text input last time in the first input area before the current time from the memory when the input focus is detected to be switched from the first input area to the second input area, and taking the target text as a candidate item of selectable input corresponding to the second input area;
and the output unit is used for showing the target text as a candidate item of selectable input corresponding to the second input area.
Preferably, the processor is further configured to, after the output unit presents the target text as a candidate for selectable input corresponding to the second input area, control the output unit to input the target text into the second input area when a preset operation for triggering selection of the presented target text is detected.
Preferably, the electronic device is specifically configured to, when detecting that the input focus is switched from the first input region to the second input region of the first interface, detect that the input focus is switched from the first input region of the first interface to the second input region of the second interface.
Preferably, the input unit is specifically configured to monitor a keyword input in a first search input field in which an input focus is located in a first search interface when monitoring a text input in a first input area in which the input focus is located in the first interface;
the processor is specifically configured to, when 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, detect 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 processor is further configured to call a first input method program associated with the first input area, and cache a last input text in the first input area to a specified storage area of the memory;
when the processor acquires a target text input last time in the first input area before the current time, the processor uses the target text as a candidate item of selectable input corresponding to the second input area, and is specifically configured to send a candidate word presentation instruction to a second input method program associated with the second input area, where the candidate word presentation instruction is used to instruct the second input method program to read the target text input last time in the first input area from the specified storage space and present the target text in a candidate input field of the second input method program.
On the other hand, an embodiment of the present application further provides an input control apparatus, including:
the monitoring unit is used for monitoring the text input in the first input area where the input focus is located in the first interface;
the storage unit is used for caching the latest input text in the first input area;
and the processing unit is used for acquiring a target text input most recently in the first input area before the current time from the memory when the input focus is detected to be switched from the first input area to the second input area, and displaying the target text as a candidate item of selectable input corresponding to the second input area.
As can be seen from the above, in the embodiment of the present application, the electronic device monitors the text input in the first input region in the first interface where the input focus is located, and caches the text input last time in the first input region, so that when the input focus is switched from the first input region to the second input region, the target text input last time in the first input region before the current time can be obtained from the cache, and the target text is displayed as a selectable candidate item, therefore, if the user wants to re-input the target content in the second input region, the candidate item can be directly selected, the operation of inputting the target text into the second input region can be completed, the user is prevented from manually inputting the character strings included in the target text by an input method, and the complexity of the input operation is reduced, the input efficiency is also improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on the provided drawings without creative efforts.
FIG. 1 is a schematic flow chart diagram illustrating one embodiment of an input control method disclosed herein;
FIG. 2 is a schematic flow chart diagram illustrating a further embodiment of an input control method disclosed herein;
FIG. 3 is a schematic flow chart diagram illustrating a further embodiment of an input control method disclosed herein;
FIG. 4 is a schematic diagram of an exemplary embodiment of an electronic device disclosed herein;
fig. 5 is a schematic structural diagram of an embodiment of an input control device disclosed in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
As shown in fig. 1, which illustrates a flowchart of an embodiment of an input control method according to the present application, the method of the present embodiment may be applied to an electronic device, such as a mobile phone, a tablet computer, a notebook computer, a desktop computer, and the like. The method of the embodiment may include:
and 101, monitoring the text input in the first input area where the input focus is located in the first interface.
The input focus may be understood as a cursor or other input sign. The interface where the input focus is located is generally located 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.
The input area where the input focus is located may be an area for text input, and the input area may also have a plurality of possible situations according to the difference of the first interface, for example, the input area may be an input area of a conversation window, a word document, a search input field, and the like.
For convenience of distinction, in the embodiment of the present application, an interface where an input focus is located is referred to as a first interface, and an input region where the input focus is located in the first interface is referred to as a first input region.
And 102, caching the text which is input most recently in the first input area.
In the embodiment of the application, in the process that the input focus performs the input operation in the first input area, the text input last time in the first input area is cached, so that the text content input last time in the first input area can be acquired subsequently.
It will be appreciated that there are a number of ways to determine the text entered at one time:
in one possible case, the text in the first input area between the position of the current input focus and the position of the last input focus may be, for example, the text in the first input area may be "today |", the input focus is located after "day", if the user continuously inputs a continuous character string of "good weather" after the input focus, the text in the first input area becomes "good weather today |", and the input focus moves after "good", the text between the current input focus and the position of the last input focus, that is, the text input last time is "good weather".
In yet another possible scenario, all text content currently present in the input area may be the most recently entered text. For example, for some dialog boxes or input regions of a search input field, the text content currently present in the input region may be considered the most recently entered text content. Taking a search input field of a search engine as an example, each time a user performs a search input, a keyword to be searched for needs to be input in the search input field, and the keyword input at each time can be regarded as a whole.
It can be understood that, after the text is input in the first input area, each time the input is completed, the input text content can be regarded as the text input last time, and therefore, caching the text input last time can be regarded as monitoring the text input each time, and caching the text input this time, so as to cache the text input at different times. Optionally, in order to reduce the data buffer amount, the last input text may be buffered to cover the last input text with the previous input text, so that only the text input by the last input at the current time is stored in the buffer area.
103, when it is detected that the input focus is switched from the first input area to the second input area, obtaining a target text input most recently in the first input area before the current time, and presenting the target text as a candidate for selectable input corresponding to the second input area.
Wherein the second input region is different from the first input region.
It is to be understood that, since the action buffered in step 102 may exist multiple times, for convenience of distinction, in the embodiment of the present application, when it is determined that the input focus is switched from the first input region to the second input region, the text that is buffered and that was input last time in the first input region before the time is referred to as the target text.
The selectable input candidate corresponding to the second input area refers to a candidate which can be directly input through selection operation, so that if the user selects the candidate, the candidate can be triggered to be input into the second input area.
When the input focus is switched to the second input area, the input area needs to be replaced by the user for input operation, in this case, the user may wish to re-input the content input in the first input area last time, therefore, in this case, the target text input in the first input area last time is obtained and displayed as a candidate for selectable input, so that the user can directly select the target text as the input content.
Optionally, after the step 103, the method may further include: when a preset operation for triggering selection of the presented target text is detected, the target text is input to the second input area. I.e., there is a selection operation of the target text as a candidate, the target text is input to the second input region. If the user can click on the presented candidate item of the target text, the target text can be triggered to be input into the second input area.
Therefore, in the embodiment of the present application, the electronic device monitors the text input in the first input region in the first interface where the input focus is located, and caches the text input last time in the first input region, so that when the input focus is switched from the first input region to the second input region, the target text input last time in the first input region before the current time can be obtained from the cache, and the target text is displayed as a selectable candidate item, therefore, if a user wants to re-input the target content in the second input region, the candidate item can be directly selected, the operation of inputting the target text into the second input region can be completed, the user is prevented from manually inputting the character strings included in the target text by an input method, and the complexity of the input operation is reduced, the input efficiency is also improved.
It can be understood that, in the embodiment of the present application, the first input region and the second input region may both be two input regions in the first interface, and if two different input fields or input windows exist in one interface, when it is detected that the input focus is switched from the first input region to the second input region of the first interface, the target text input last time in the first input region before the current time may be obtained from the cached text, and the target text may be presented as a candidate associated with the second input region.
Optionally, considering that in many cases, the user may need to re-input the same content after switching to the interface, the first input area and the second input area may belong to different interfaces, that is, when the input focus is switched from the first input area of the first interface to the second input area of the second interface, the cached target text that was input last time in the first input area is obtained.
It is understood that the first interface and the second interface may be different web pages displayed in the browser, and the two pages may be provided by the same server or service platform or different servers or service platforms.
The first interface and the second interface can 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 an interface of a first application, and the second interface is an interface of a second application. For example, after the user performs an input operation from the session window of the first instant messaging application, it may be necessary to input the same content into the session window of the second instant messaging application, and in this case, if the user re-inputs the related content after switching to the session window of the second instant messaging application, it is troublesome; even if the user can copy the content which needs to be repeatedly input in the session window of the first instant messaging application, and perform the paste operation in the session window of the second instant messaging application after switching to the session window of the second instant messaging application, the user is inevitably required to select the content which needs to be copied, click to copy, trigger the paste operation and other multi-step operations, and the operation process is complex.
According to the method and the device, the latest input text in the first input area of the first interface is cached, so that when the input focus is detected to be switched from the first interface of the first application to the second interface of the second application, the latest input target text in the first input area before the current moment can be obtained, and the target text is used as a candidate item associated with the second input area in the second interface to be displayed, so that a user can directly select the target text for input according to needs, complex operation of the user is avoided, and convenience and high efficiency of input are improved.
Optionally, in practical applications, the first interface may be a first search interface, and the second interface may be a second search interface, considering that in the process of performing a search operation by a user, if the required content is not searched, the search interface is likely to be updated for re-searching. For example, referring to fig. 2, which shows a flowchart of another embodiment of an input control method according to the present application, the method of the present embodiment may be applied to an electronic device, such as a mobile phone, a tablet computer, a notebook computer, a desktop computer, and the like. The method of the embodiment may include:
and 201, monitoring a keyword input in a first search input field where an input focus is positioned in the first search interface.
In this embodiment, the search interface may be a search interface of a search engine application, or may be an interface in other applications that can implement a search function, for example, a search interface that can search for contacts in an address book, and the like.
In the embodiment of the present application, the content to be searched entered in the search input field is referred to as a keyword.
202, caching the keyword which is input most recently in the first search input field.
The keyword input last time in the search input field may be considered as the keyword input last time in the search input field, or the keyword which is input to the first search input field and triggers the search.
For example, after the user enters "movie M" in the first search input field, the keyword "movie M" may be cached; for another example, after the user enters "movie M" in the first search input field, if the user clicks on the search button to trigger a search, then caching of the keyword "movie M" may be triggered.
203, when it is detected that the input focus is switched from a first search input field of the first search interface to a second search input field of the second search interface, obtaining a target keyword input last time in the first search input field before the current time, and showing the target keyword as a candidate item which can be input selectively and corresponds to the second search input field.
This step may be similar to that described in the previous embodiment, except that the cached text content is a keyword.
And 204, when a preset operation for triggering the selection of the displayed target keyword is detected, inputting the target keyword into the second search input field.
Therefore, 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 equipment can display the keyword input most recently in the first search input field as a candidate item, so that if the user wants the keyword, the user can directly select the candidate item to complete the input, and the complicated input operation of the user is avoided.
Optionally, in any of the above embodiments of the present application, in a case that the first input area belongs to the first interface and the second input area belongs to the second interface, 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 text that is input last time in the first input area may be cached. It can be understood that when the first interface is switched to the second interface, it indicates that the user needs to change the input area of the input operation, and in this case, the content input last time in the first input area may need to be re-input, so that when it is detected that the interface at the top of the display interface is switched from the first interface to the second interface, the text input last time in the first input area is cached, which may reduce the data storage amount, may also reduce the number of times of caching data in the cache, and is beneficial to reducing the occupation of data processing resources.
The method for detecting the switching of the first interface of the top layer of the display interface to the second interface can be various. Optionally, in the interface switching process, the input method needs to be firstly closed and restarted in switching to the second interface, so that when it is detected that the first input method program associated with the first search interface is closed, the text which is input most recently in the first input area in the first interface may be cached. If the instruction of closing 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 an input method application opened on the first search interface.
Correspondingly, after the first input method program is closed, when the second input method program is detected to be started, the first interface at the top layer of the display interface is confirmed to be switched to the second interface.
It can be understood that, considering that the input method program associated with the first input area can acquire the text input in the first input area, when the text input last time in the first input area needs to be cached, the first input method program associated with the first input area may be invoked to cache the text input last time in the first input area to the specified storage area.
Further, after the input focus is switched to the second input area, because 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, where the candidate word presentation instruction is used to instruct the second input method program to read the target text input last time in the first input area from the specified storage space, and present 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 entry field, the user may select the target text directly from the candidate field to enter the target text into the second entry area.
For the convenience of understanding, the first input area is still taken as the first search input field of the first search interface, and the second input area is taken as the second search input field of the second search interface. For example, referring to fig. 3, which shows a schematic flow chart of another embodiment of the input control method of the present application, the method of the present embodiment may include:
301, a keyword entered in a first search input field in which an input focus is located in a first search interface is monitored.
302, when detecting that the first input method program associated with the first search input field is closed, calling the first input method program to cache the keyword input last time in the first search input field, so as to cache the keyword input last time in the first search input field to the designated storage space.
For convenience of distinction, an input method program started by an input operation performed in a first search input field of a first search interface is referred to as a first input method program associated with the first search input field, and correspondingly, an input method program started by an input operation performed in a second search input field of a subsequent second search interface is referred to as a second input method program. In practical applications, the first input method program and the second input method program may be the same input method program or different input method programs, and are determined by the input method selected by the user.
It is to be understood that the execution of the first input method program may be terminated after the first input method program caches the keyword that was last entered in the first search input field.
In this embodiment, the description is given by taking an example of calling the first input method program to cache the keyword that is input last time in the first search input field, but it is understood that the electronic device caches the keyword that is input last time in the first search input field to the specified storage space by other methods, and the embodiment is also applicable to this embodiment, and the invention is not limited thereto.
303, when it is detected that the input contact point is located in a second search input field of a second search interface, sending a candidate word presentation instruction to a second input method program associated with the second search input field, so as to read a target keyword, which is input last time, in the first search input field from the specified storage space through the second input method program.
304, displaying the target keyword in the 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, closing the first search input method associated with the first search interface triggers caching of the keyword input in the first search input field. Meanwhile, when the input contact is located in a second search input field of the second search interface, a second input method program related to the second search input field is started, the electronic equipment extracts the target keyword from the designated storage space area by calling the second input method program, and displays the candidate input field on the second input method program directly, and displays the target keyword as a candidate item in the candidate input field, so that a user can select the candidate item directly, and the input convenience is improved.
Of course, the present embodiment is described by taking an example of calling the second input method program to read the target keyword from the specified storage space, but it can be understood that, in practical applications, the electronic device may also access the specified storage space through the specified interface to obtain the target keyword, and return the target keyword to the second input method program for presentation.
305, inputting a target keyword into the second search input field when a preset operation for triggering selection of the presented target keyword is detected.
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 structural diagram of an embodiment of an electronic device according to the present application. In this embodiment, the electronic device may be a mobile phone, a notebook computer, a tablet computer, or the like.
The electronic device may include:
the input unit 401 is configured to monitor a text input in a first input area where an input focus is located in a first interface;
a memory 402 for caching a most recently entered text in the first input area;
a processor 403, configured to, when it is detected that the input focus is switched from a first input area to a second input area, obtain, from the memory, a target text that is input most recently in the first input area before a current time, and use the target text as a candidate for selectable input corresponding to the second input area;
an output unit 404, configured to present the target text as a candidate for selectable input corresponding to the second input area.
It will be appreciated that in the embodiments of the present application, the memory is also used for storing programs required by the processor to perform the above operations.
Of course, fig. 4 is only a schematic diagram of an electronic device, and in practical applications, the electronic device may further include various other components, for example, the electronic device may further include a communication bus connecting the processor, the memory, the input unit, and the output unit, and the electronic device may further include a communication module, a sensor, and other components, which are not described herein again.
Optionally, the processor is further configured to, after the output unit presents the target text as a candidate for selectable input corresponding to the second input area, control the output unit to input the target text into the second input area when a preset operation for triggering selection of the presented target text is detected.
Optionally, when detecting that the input focus is switched from the first input area to the second input area, the electronic device is specifically configured to detect that the input focus is switched from the first input area of the first interface to the second input area of the second interface.
Optionally, the processor is further configured to cache, 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 into the memory.
Optionally, the input unit is specifically configured to monitor a text input in a first input area where an input focus is located in a first interface of a first application when monitoring the text input in the first input area where the input focus is located in the first interface;
the processor is specifically configured to detect 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 when 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.
Optionally, the input unit is specifically configured to monitor a keyword input in a first search input field in which an input focus is located in the first search interface when monitoring a text input in a first input area in which the input focus is located in the first interface;
the processor is specifically configured to, when 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, detect 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.
Optionally, the processor is further configured to call a first input method program associated with the first input area, and cache a last input text in the first input area to a specified storage area of the memory;
when the processor acquires a target text input last time in the first input area before the current time, the processor uses the target text as a candidate item of selectable input corresponding to the second input area, and is specifically configured to send a candidate word presentation instruction to a second input method program associated with the second input area, where the candidate word presentation instruction is used to instruct the second input method program to read the target text input last time in the first input area from the specified storage space and present the target text in a candidate input field of the second input method program.
On the other hand, an embodiment of the present application further provides an input control device, for example, referring to fig. 5, which shows a schematic structural diagram of an embodiment of an input control device of the present application, the device of the present embodiment may include:
the monitoring unit 501 is configured to monitor a text input in a first input area where an input focus is located in a first interface;
a storage unit 502, configured to cache a text that is input last time in the first input area;
the processing unit 503 is configured to, when it is detected that the input focus is switched from a first input area to a second input area, acquire, from the memory, a target text that is input most recently in the first input area before the current time, and present the target text as a candidate for selectable input corresponding to the second input area.
Optionally, the method further includes:
an input execution unit, configured to, after the processing unit presents the target text as a candidate for selectable input corresponding to the second input area, input the target text into the second input area when a preset operation for triggering selection of the presented target text is detected.
Optionally, when detecting that the input focus is switched from the first input area to the second input area, the processing unit specifically 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.
Optionally, the storage unit includes:
and the storage subunit is used for caching the most recently input text in the first input area when the interface at the top layer of the display interface is detected to be switched from the first interface to the second interface.
Optionally, the monitoring unit includes:
the first monitoring unit is used for monitoring the text input in a first input area where an input focus is located in a first interface of a first application;
the processing unit, when 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, specifically, 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 in the second application.
Optionally, the monitoring unit includes:
the second monitoring unit is used for monitoring the keywords input in the first search input field where the input focus is located in the first search interface;
the processing unit is specifically configured to, when 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, detect 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.
Optionally, the storage unit includes:
the storage calling subunit is used for calling a first input method program associated with the first input area to cache the latest input text in the first input area to a specified storage area;
the processor is specifically configured to send a candidate word presentation instruction to a second input method program associated with the second input area when acquiring a target text input most recently in the first input area before the current time and presenting the target text as a candidate for selectable input corresponding to the second input area, where the candidate word presentation instruction is used to instruct the second input method program to read the target text input most recently in the first input area from the specified storage space and present the target text in a candidate input field of the second input method program.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The previous 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 generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to 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 (8)

1. An input control method, comprising:
monitoring a text input in a first input area where an input focus is located in a first interface;
when the interface at the top layer of the display interface is detected to be switched from the first interface to the second interface, caching the text input last time in the first input area;
detecting that an input focus is switched from a first input area of the first interface to a second input area of a second interface, acquiring a text input most recently in the first input area before the current cached time as a target text, and displaying the target text as a candidate item corresponding to the second input area and capable of being input selectively, wherein the second input area is different from the first input area;
after presenting the target text as a candidate item of selectable input corresponding to the second input area, the method further includes:
when a preset operation for triggering selection of the presented target text is detected, inputting the target text into the second input area.
2. The input control method of claim 1, wherein the monitoring text input in the first input area of the first interface where the input focus is located comprises:
monitoring a text input in a first input area where an input focus is located in a first interface of a first application;
the detecting that the input focus switches from a first input region of the first interface to a second input region of a second interface comprises:
switching an input focus from a first input region of the first interface to a second input region of a second interface in a second application is detected.
3. The input control method of claim 1, wherein the monitoring text input in the first input area of the first interface where the input focus is located comprises:
monitoring a keyword input in a first search input field where an input focus is located in a first search interface;
the detecting that the input focus switches from a first input region of the first interface to a second input region of a second interface comprises:
detecting that an input focus switches from a first search input field of the first search interface to a second search input field of a second search interface.
4. The input control method of claim 1, wherein the caching of the most recently entered text in the first input region comprises:
calling a first input method program associated with the first input area to cache the latest input text in the first input area to a designated storage area;
the obtaining a target text input most recently in the first input area before the current time, and presenting the target text as a candidate for selectable input corresponding to the second input area, includes:
and sending a candidate word presenting instruction to a second input method program associated with the second input area, wherein the candidate word presenting instruction is used for instructing the second input method program to read the target text input most recently in the first input area from the specified storage space and present the target text in a candidate input field of the second input method program.
5. An electronic device, comprising:
the input unit is used for monitoring the text input in a first input area where an input focus is located in the first interface;
the memory is used for caching the most recently input text in the first input area when the interface at the top layer of the display interface is detected to be switched from the first interface to the second interface;
the processor is used for acquiring a text input most recently in the first input area before the current cached time from the memory as a target text when the input focus is detected to be switched from the first input area of the first interface to the second input area of the second interface, and taking the target text as a candidate item of selectable input corresponding to the second input area;
the output unit is used for showing the target text as a candidate item of selectable input corresponding to the second input area, and the second input area is different from the first input area;
the processor is further configured to, after the output unit presents the target text as a candidate for selectable input corresponding to the second input area, control the output unit to input the target text into the second input area when a preset operation for triggering selection of the presented target text is detected.
6. The electronic device according to claim 5, wherein the input unit is configured to, when monitoring text input in a first input area where an input focus is located in the first search interface, monitor a keyword input in a first search input field where the input focus is located in the first search interface;
the processor is specifically configured to, when 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, detect 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.
7. The electronic device according to any one of claims 5 to 6, wherein the processor is further configured to invoke a first input method program associated with the first input area to cache a most recently entered text in the first input area into a designated storage area of the memory;
when the processor acquires a target text input last time in the first input area before the current time, the processor uses the target text as a candidate item of selectable input corresponding to the second input area, and is specifically configured to send a candidate word presentation instruction to a second input method program associated with the second input area, where the candidate word presentation instruction is used to instruct the second input method program to read the target text input last time in the first input area from the specified storage space and present the target text in a candidate input field of the second input method program.
8. An input control device, comprising:
the monitoring unit is used for monitoring the text input in the first input area where the input focus is located in the first interface;
the storage unit is used for caching the latest input text in the first input area when the interface at the top layer of the display interface is detected to be switched from the first interface to the second interface;
the processing unit is used for detecting that an input focus is switched from a first input area of the first interface to a second input area of a second interface, acquiring a cached text which is input most recently in the first input area before the current time from the memory as a target text, and displaying the target text as a candidate item of selectable input corresponding to the second input area, wherein the second input area is different from the first input area;
after the processing unit presents the target text as a candidate for selectable input corresponding to the second input area, the processing unit is further configured to:
when a preset operation for triggering selection of the presented target text is detected, inputting the target text into the 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 CN106970848A (en) 2017-07-21
CN106970848B true 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)

Families Citing this family (3)

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

Citations (2)

* 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
CN104699700A (en) * 2013-12-05 2015-06-10 腾讯科技(深圳)有限公司 Searching method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104007886B (en) * 2013-02-27 2017-11-07 联想(北京)有限公司 The method and electronic equipment of a kind of information processing
CN105744053B (en) * 2014-12-12 2020-07-24 联想(北京)有限公司 Information processing method and electronic equipment

Patent Citations (2)

* 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
CN104699700A (en) * 2013-12-05 2015-06-10 腾讯科技(深圳)有限公司 Searching method and device

Also Published As

Publication number Publication date
CN106970848A (en) 2017-07-21

Similar Documents

Publication Publication Date Title
US9172789B2 (en) Contextual search by a mobile communications device
US9622016B2 (en) Invisiblemask: a tangible mechanism to enhance mobile device smartness
CN108369600B (en) Web browser extensions
US20050097089A1 (en) Persistent user interface for providing navigational functionality
US20190079665A1 (en) Data processing method, apparatus, and smart terminal
EP2549383A2 (en) Context-related data handling
CN106681596B (en) Information display method and device
CN112988006B (en) Display method, display device, electronic equipment and storage medium
US20150242474A1 (en) Inline and context aware query box
US11157576B2 (en) Method, system and terminal for performing search in a browser
CN106970848B (en) Input control method and device and electronic equipment
CN107045546B (en) Webpage processing method and device and intelligent terminal
CN112306256B (en) Application program switching processing method and device and electronic equipment
CN106970899B (en) Text processing method and device
US20120278078A1 (en) Input and displayed information definition based on automatic speech recognition during a communication session
CN104965633B (en) A kind of method and apparatus that service jumps
CN109446451B (en) Webpage display method, device, medium and computing equipment
CN116910368A (en) Content processing method, device, equipment and storage medium
CN113127653B (en) Information display method and device
CN105677183A (en) Method for achieving information viewing and terminal
WO2022166811A1 (en) Information processing method and apparatus, electronic device, and storage medium
CN113672826B (en) Page jump method, device, computer equipment and storage medium
CN110225201B (en) Method for selecting data object opening mode, mobile terminal and storage medium
CN109885787B (en) APP page display method and system, mobile terminal and computer readable medium
CN112286613A (en) Interface display method and interface display device

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